Skip to main content
Open In Colab In Behavioral cloning and RL on a claw machine you trained MiniVLA on the claw machine with 21 bins per motion axis, and that choice went unexamined. This section looks at the data a VLA learns from, at how actions are normalized, and at the first way to represent an action: as discrete bins, one class label per action dimension. Every comparison uses the same trunk, the same demonstrations and the same training budget, so only the number of bins changes.
The claw machine is the one from Behavioral cloning and RL on a claw machine. Three colored squares lie on the floor, a claw hangs from a gantry, and the instruction names the square to drop into the chute on the left. An action is a claw move (Δx,Δz)(\Delta x, \Delta z) of at most 0.05 per axis and a grip command, open or closed. The squares are rigid boxes simulated with gravity and contact, so a released square falls and can land on another. A catch succeeds with a probability that falls with the offset between claw and square center, and an episode ends after 60 steps.

Robot demonstration datasets

A demonstration dataset is a set of episodes. Each episode is one attempt at a task, recorded as a sequence of time steps, and each step holds an observation, the instruction and the action the operator took. The observation is usually one or more camera images plus the robot’s proprioceptive state, such as joint angles or the gripper opening. The instruction is constant within an episode. The large public collections share this layout. Open X-Embodiment combined more than 70 robot datasets with over 2 million trajectories when OpenVLA was built, and OpenVLA was trained on a curated 970 thousand of them (Kim et al., 2024). Each episode is a sequence of steps with an observation dictionary, an action, a reward and flags that mark the first and last step. The LeRobot dataset format keeps the low-dimensional signals, such as states, actions and timestamps, in Parquet tables with one row per frame, and encodes the camera streams as MP4 video. Its metadata records the schema and frame rate of every feature, the mean, standard deviation, minimum and maximum of each feature for normalization, the task descriptions with their integer IDs, and where each episode starts and ends inside the shared files. The dataset below has the same fields. The operator from Behavioral cloning and RL on a claw machine plays 1,600 episodes, and only the deliveries are kept, as a lab keeps the demonstrations that worked.
The figure shows one delivered episode: six frames, the action at every step, and below it the distribution of the motion actions over the whole dataset. Six frames of one delivered episode, the claw moving out, down, catching the blue square and carrying it to the chute; below, the dx, dz and grip actions over the episode's steps, and a log-scale histogram of all motion actions with spikes at minus 0.05, 0 and plus 0.05 Most steps sit at the bounds ±0.05\pm 0.05 or at exactly 0. The claw travels at full speed along one axis while the other axis stays still, and only the last few steps of an approach take intermediate values. Those rare values decide where the claw stops.

Action normalization

Robots differ in units and ranges: a joint velocity in radians per second, a gripper opening in millimeters, an end-effector displacement in meters. Before a network sees them, each action dimension is mapped to a common range, usually [−1,1][-1, 1]: a~=2 a−aloahi−alo−1.\tilde a = 2\,\frac{a - a_{\mathrm{lo}}}{a_{\mathrm{hi}} - a_{\mathrm{lo}}} - 1 . The bounds aloa_{\mathrm{lo}} and ahia_{\mathrm{hi}} come from the training data. The minimum and maximum are the simplest choice, but a single outlier then stretches the range and wastes resolution. OpenVLA uses the 1st and 99th quantiles of each dimension instead (Kim et al., 2024). Other pipelines standardize with the mean and standard deviation. The policy predicts a~\tilde a, and the inverse map turns it back into robot units before execution. On the claw machine the bounds are known exactly, ±0.05\pm 0.05 for both motion axes, so normalization is a division by 0.05. The grip is already binary.

Discrete action bins

A token head splits the normalized range of each dimension into BB equal bins and predicts the index of a bin, so an action becomes a short sequence of class labels. MiniVLA predicts three tokens per step, as OpenVLA predicts seven, one per dimension of its action, with 256 bins each (Kim et al., 2024). The executed action is the bin center, so the quantization error on an axis of width ahi−aloa_{\mathrm{hi}} - a_{\mathrm{lo}} is at most half a bin: ∣a−a^∣≤ahi−alo2(B−1).|a - \hat a| \le \frac{a_{\mathrm{hi}} - a_{\mathrm{lo}}}{2(B - 1)} . You can measure what quantization alone costs by rounding the operator’s own actions to the bin centers before they are executed. No learning is involved.
From 9 bins up, rounding costs the operator nothing: it delivers 0.72, 0.72 and 0.71 with 9, 21 and 101 bins, the same as with exact actions (0.72). With 5 bins the smallest move is 0.025 and with 3 bins it is 0.05, both coarser than the alignment the operator waits for before it lowers the claw. Delivery falls to 0.52 with 5 bins, and with 3 bins the operator never delivers. The parity of the bin count matters too. With an odd count, one bin is centered on zero; with an even count, none is, so no token means “hold this axis still”. Rounding to 20, 22 or 256 bins gives 0.42, 0.67 and 0.69, while 21 and 255 bins both give 0.72. OpenVLA’s 256 bins span the 1st to the 99th quantile of each dimension, so whether one of them sits at zero depends on the data. Training a policy on the bins adds a cost that rounding alone does not show. More bins mean less rounding, but every bin is a separate class, so each class sees fewer examples and neighboring classes are hard to tell apart. Each run below trains the same MiniVLA for 8,000 steps on the same dataset.
Delivery rate against bins per motion axis on a log scale: the operator with rounded actions rises from 0 at 3 bins and 0.52 at 5 bins to 0.72 from 9 bins on and dips to 0.69 at 256; the trained MiniVLA stays between 0.69 and 0.72 up to 101 bins and drops to 0.62 at 256 The trained policies deliver 0.71, 0.72 and 0.69 with 5, 21 and 101 bins, the same as the operator they copy, and flat across a twentyfold change in resolution. Each number comes from one training run evaluated on 500 machines, so differences of a few hundredths carry no weight. The 5-bin policy is the clear case. It delivers 0.71, while the operator rounded to 5 bins delivers 0.52, because the policy does not round the operator’s actions: it learns from them which coarse move to make in each state. With 256 bins delivery drops to 0.62, consistent with the even-count effect above combined with 256 classes per axis that each see fewer examples. Discrete bins work on the claw machine when a bin sits at zero and there are enough of them. From 5 to 101 bins the trained policy matches the operator. Rounding the operator’s own actions costs delivery only at 5 bins or fewer and at even bin counts, most of all at 20 bins. Action representations II: regression and chunks replaces the bins with a continuous output and then with chunks of several future actions.

References

  • Kim, M., Pertsch, K., Karamcheti, S., Xiao, T., Balakrishna, A., et al. (2024). OpenVLA: An Open-Source Vision-Language-Action Model. arXiv [cs.RO]. Link

Found an error on this page? Report an issue.