Skip to main content
Open In Colab Action representations I: discrete bins showed that a token head matches the operator on the claw machine when it has enough bins and one of them sits at zero. This section replaces the bins with a regression head that outputs continuous actions, and then with action chunks: several future actions predicted from one observation. A 21-bin token head trained on the same demonstrations is the baseline.
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.
The demonstrations are recorded as in Action representations I: discrete bins: the operator plays 1,600 episodes and only the deliveries are kept. The operator’s own delivery rate, measured with exact actions on 2,000 new machines, is the reference for every policy below.
The baseline is a token head with 21 bins per motion axis, trained for 8,000 steps.
The baseline delivers 0.72, the same as the operator (0.715). Each delivery rate on this page comes from one training run evaluated on 500 new machines, so differences of a few hundredths carry no weight.

Continuous regression

A regression head skips the bins. It outputs the normalized motion a~∈[−1,1]2\tilde a \in [-1, 1]^2 directly and is trained with an L1 loss, and a separate logit gives the probability of a closed claw. There is no rounding at all, and the output layer is two numbers instead of one logit per bin. ACT trains its action decoder with the L1 loss because it gave more precise actions than the squared error (Zhao et al., 2023).

Action chunks

A chunked policy predicts the next kk actions from one observation, πθ(at:t+k∣ot,ℓ)\pi_\theta(a_{t:t+k} \mid o_t, \ell), instead of a single action (Zhao et al., 2023). The robot can then execute the chunk in two ways. Open-loop execution runs all kk actions and calls the model again only at step t+kt + k, which cuts the number of model calls by a factor kk and, in ACT’s words, the effective horizon of the task. Receding-horizon execution calls the model at every step and executes only the first action of each new chunk. Executing ss actions per call, with 1≤s≤k1 \le s \le k, spans the range between the two. The code below trains a regression head with k=1k = 1 and one with k=8k = 8, with the same trunk and training budget as the baseline, and runs the second with s=1s = 1, 4 and 8.
The single-step regression head delivers 0.07, against 0.72 for the 21-bin baseline. The chunked head with the same output layer delivers between 0.40 and 0.46, depending on how many actions it executes per call. Executing four of every eight predicted actions calls the model 14 times per episode instead of about 55, and executing whole chunks open loop needs only 7.5 calls, at a delivery rate of 0.40. Claw x over time in eight episodes for three policies: the 21-bin and chunked policies stop at the named square's x, while the single-step regression policy drives right to about 0.87 in every episode The claw’s horizontal position shows what goes wrong. Each line is one episode, dotted lines mark the named square, and blue episodes were delivered. The single-step regression policy drives right to about x=0.87x = 0.87 in every episode, whatever the instruction says, and closes over whatever square is there. It delivers only when the named square happens to sit there. At its first close, the claw is over the named square in 16% of the episodes, against 98% for the 21-bin head and 92% for the chunked head; the median horizontal miss is 0.269 versus 0.016. The operator travels at full speed and stops within a step or two of its aim point. A single-step target therefore shows the stop on only one or two steps per episode, and on every other travel step the target is the same full-speed move. With chunks of 8, each of the last eight travel steps carries the coming stop inside its target. That fits the result, but this experiment does not prove it is the cause. The token head learns the stop from single steps, so the failure belongs to the regression head on this data, not to single-step prediction in general.

Comparison

The 21-bin token head matches the operator, which is the most behavioral cloning can do here: it copies the demonstrations, including the operator’s off-center grabs. Continuous regression failed to ground the instruction with single-step targets. Predicting chunks recovered more than half of the gap to the baseline and cut model calls by up to a factor of eight. ACT predicts chunks to shorten the effective horizon in the same way (Zhao et al., 2023), and later sections of this chapter return to them. Both heads here also predict a single action for a given input, the median or the most likely bin. Neither can represent an operator who sometimes passes an obstacle on the left and sometimes on the right. Heads that sample from a learned distribution over chunks, such as diffusion and flow matching, address that case.

References

  • Zhao, T., Kumar, V., Levine, S., Finn, C. (2023). Learning fine-grained bimanual manipulation with low-cost hardware. arXiv [cs.RO]. DOI

Found an error on this page? Report an issue.