Introduction
An autoregressive vision-language-action model (VLA) emits an action as discrete tokens, one per forward step of its language backbone. With action chunking it predicts a whole chunk of future actions, (six end-effector deltas and a binary gripper), executes the first of them open-loop and queries again. Something has to turn the continuous chunk into a string of at most codes from a vocabulary of , and turn any string the model emits back into a chunk. The question of this task is which encoding makes the VLA trained on those codes control the robot best, with the model, its training recipe and the data fixed.
The field has answered it in several ways. The simplest is to bin every action dimension of every step uniformly, one code per number [1]. Compressing codes transform the chunk first: a discrete cosine transform followed by byte-pair encoding [2], a B-spline basis [3], or learned quantised autoencoders, residual [4, 5, 6], ordered [7, 8] or trained for what makes a tokenizer good for a policy [9].
Three properties of the problem shaped our method.
Precision is not what the policy is short of. The model decodes greedily: at each position it emits the single most likely code. Under a finely binned code, the probability of a moving action is spread over many neighbouring bins, while the rest value of a dimension is a single bin that holds a large share of the data, so the argmax falls on rest and the policy idles. In our development runs the uniform-binning starter predicted a rest value 81% of the time and never switched the gripper.
What the model can learn is what stays put. The chunks of two adjacent frames describe almost the same motion, but fine quantisation levels of that motion flip between them, which makes the target noise from the model's point of view. Following the emphasis of [9] on this temporal consistency, we measured the fraction of code positions unchanged between adjacent frames: 0.43 for the starter's bins, 0.26 for the universal DCT and byte-pair tokenizer and 0.50 for ActionCodec with the task's weights (our development measurements).
Only part of the chunk is executed, and the actions are deltas. The last actions of a chunk never reach the robot, and an error in a delta action does not stay local: it is integrated into the position the arm reaches.
Method
We call the method slow-first path coding (SFPC). It is analytic: fit() estimates a handful of
statistics from the training chunks, in a few seconds in our runs, and every code has a fixed meaning.
Training targets restored from the episodes
Before the tokenizer can describe a chunk it has to be given the right chunk. We found that the
training pipeline's goal relabelling zeroes the movement of every action past a random goal step, so a
large share of the training chunks end in a neutral tail that the demonstrator never executed: 15% to
49% of them depending on the chunk length, in our analysis of the training data. fit() therefore
builds an episode memory of the per-frame actions, keyed by a hash of the first two actions of each
chunk, and encode() replaces a chunk with a neutral tail by its true continuation when the chunk's
valid prefix identifies it uniquely. When two candidates disagree, the chunk is left as it is.
def _restore(self, chunk):
H = self.spec.horizon
nz = np.flatnonzero(np.any(chunk[:, :6] != 0.0, axis=1))
nv = int(nz[-1]) + 1 if len(nz) else 0
if nv >= H or nv < 1 or self.mem_keys is None:
return chunk
pair = chunk[:2] if H > 1 else np.stack([chunk[0], chunk[0]])
k = self._keys(pair[None])[0]
lo = int(np.searchsorted(self.mem_keys, k, side="left"))
hi = int(np.searchsorted(self.mem_keys, k, side="right"))
best = None
for n in self.mem_idx[lo:hi][:64]:
t = self._true_chunk(int(n))
if np.abs(t[:nv] - chunk[:nv]).max() < 1e-4:
if best is None:
best = t
elif np.abs(best - t).max() > 1e-4:
return chunk # ambiguous continuation: leave the chunk as it is
return chunk if best is None else bestIn our offline check this restored 99.98% of the sampled truncated training chunks exactly and restored none wrongly; the rest were left unchanged. The memory matters only for the training targets: at evaluation the model's codes are decoded, never encoded.
The executed path on a learned temporal basis
Let be the number of executed steps; nothing past them is coded. For each of the six delta dimensions we estimate a rest value , the most frequent first action of that dimension if it carries more than 5% of the data and the median otherwise, and form the path the commands trace, measured from rest:
One temporal basis serves all six dimensions. We pool the path covariance over dimensions and training chunks, , take its eigenvectors in order of decreasing eigenvalue (a Karhunen-Loeve transform, close to a DCT for smooth paths) and code the coefficients . Each coefficient lives on a uniform grid of step
where is the mode-0 coefficient of a unit constant velocity. The cap is a precision on the path; the second term makes sure that a slow constant motion of 0.035 per step moves the dominant coefficient by a full grid step when few steps are executed, so slow motions have no dead zone. Coefficient is coded only if
that is, only if its spread exceeds the distortion of a uniform quantiser of step : reverse water-filling in the path domain, which decides how many codes a chunk gets.
self.S = S
self.rest = np.zeros(D)
for d in range(D):
v, c = np.unique(X[:, 0, d], return_counts=True)
self.rest[d] = v[c.argmax()] if c.max() > 0.05 * len(X) else np.median(X[:, 0, d])
Z = np.cumsum(X[:, :, :D].astype(np.float64) - self.rest, axis=1) # (N, S, D) paths
cov = np.einsum("nsd,ntd->st", Z, Z) / (len(Z) * D)
lam, vec = np.linalg.eigh(cov)
vec = vec[:, np.argsort(lam)[::-1]]
self.basis = vec * np.sign(vec.sum(0) + 1e-12)[None] # (S, S), columns = modes
C = np.einsum("nsd,sm->nmd", Z, self.basis) # (N, modes, D)
gain = float(np.abs(self.basis[:, 0] @ np.arange(1, S + 1))) # mode-0 coefficient of a unit velocity
self.step = float(min(self.STEP, self.VSTEP * gain))
pairs = np.flatnonzero(same[:-1])
kept = [(m, d) for m in range(S) for d in range(D) if C[:, m, d].std() > self.step / np.sqrt(12.0)]
self.pm = np.array([m for m, d in kept], dtype=np.int64)
self.pd = np.array([d for m, d in kept], dtype=np.int64)Coarse cells chosen for stability
A coefficient's grid level is , clipped to the range between the 0.1% and 99.9% quantiles, widened to include zero. Emitting directly would bring back both problems from the introduction, so each coefficient is first coded by a coarse cell of contiguous levels. The rest level sits at the centre of its own cell, widened until that cell holds at least of the mass; the remaining cells are shared between the negative and positive side in proportion to their mass, and each side is cut into cells of equal mass.
The number of cells is chosen per coefficient from how much the code moves between the chunks of adjacent frames of the same episode. If a coefficient has more than three levels and its raw levels agree between adjacent frames less than 75% of the time, we try in the order , skipping any that is not smaller than the number of levels, and keep the first partition whose cells agree between adjacent frames at least 75% of the time:
If no candidate reaches it, the last one tried stays. A coefficient with at most three levels, or whose raw levels are already that stable, keeps every level as its own cell. A cell of several levels decodes to the mean of the training coefficients that fall in it, so a coarse code alone already gives the conditional mean of its cell rather than the cell's edge.
for m, d in kept:
u = C[:, m, d]
lo = int(np.floor(np.quantile(u, 0.001) / self.step + 0.5))
hi = int(np.floor(np.quantile(u, 0.999) / self.step + 0.5))
lo, hi = min(lo, 0), max(hi, 0)
lev = np.clip(np.floor(u / self.step + 0.5).astype(np.int64), lo, hi) - lo
n = hi - lo + 1
hist = np.bincount(lev, minlength=n).astype(np.float64)
a, b = lev[pairs], lev[pairs + 1]
cell = np.arange(n) # flat: every level its own cell
if n > 3 and np.mean(a == b) < self.STAB:
for B in self.CANDS:
if B >= n:
continue
cell = self._partition(hist, -lo, B)
if np.mean(cell[a] == cell[b]) >= self.STAB:
breakWithin a cell of levels a refinement code picks one of sub-ranges. Codes have shared meanings across positions: four slots for the gripper pattern, slots for a switch step, one band for coarse cells aligned so that the rest cell of every coefficient is the same code, and sixteen refinement slots.
The code string
A chunk becomes a string of fixed length , where is the number of kept coefficients and the number that have a refinement code:
- the gripper pattern over the executed steps: constant at either value, or one switch in either direction;
- the step of the first switch (zero when there is none);
- the coarse cells of all kept coefficients, mode 0 of every dimension first, then mode 1, and so on;
- the refinements, in the same order, after all coarse codes.
The gripper is coded by its own two codes (exactly when it switches at most once in the executed steps), so that greedy decoding decides whether to switch on the total probability of switching, rather than comparing one particular switch time against not switching. The slow, stable decisions come first and the model conditions every refinement on them.
def encode(self, chunk: np.ndarray) -> np.ndarray:
A, S = self.spec.action_dim, self.S
chunk = np.asarray(chunk, dtype=np.float32).reshape(self.spec.horizon, A)
if self.INPAINT:
chunk = self._restore(chunk)
g = (chunk[:S, A - 1] > 0.5).astype(np.int64)
sw = np.flatnonzero(g[1:] != g[0])
j = int(sw[0]) + 1 if len(sw) else 0
out = [int(g[0]) + (2 if j else 0), self.o_sw + j]
z = np.cumsum(chunk[:S, : A - 1].astype(np.float64) - self.rest, axis=0)
coef = (self.basis.T @ z)[self.pm, self.pd]
fine = []
for i, u in enumerate(coef):
lev = int(np.clip(np.floor(u / self.step + 0.5), self.lmin[i], self.lmin[i] + len(self.cell_of[i]) - 1)) - self.lmin[i]
cell = int(self.cell_of[i][lev])
out.append(self.o_coarse + cell - self.zero_cell[i])
if self.has_fine[i]:
n, nf = int(self.cell_n[i][cell]), self._nfine(i, cell)
fine.append(self.o_fine + ((lev - int(self.cell_lo[i][cell])) * nf) // n)
return np.asarray(out + fine, dtype=np.int64)Decoding inverts each step, and it accepts any string. A missing coarse code means the rest cell and a missing refinement means the cell's mean; the path is mapped back to deltas by and clipped to . Steps past the executed hold the last executed action.
def decode(self, codes: np.ndarray) -> np.ndarray:
H, A, S = self.spec.horizon, self.spec.action_dim, self.S
c = np.asarray(codes, dtype=np.int64).reshape(-1)[: self.length]
M = len(self.pm)
pat = int(np.clip(c[0], 0, 3))
j = int(np.clip(c[1] - self.o_sw, 0, S - 1)) if len(c) > 1 else 0
g = np.full(S, float(pat % 2))
if pat >= 2:
g[max(j, 1):] = 1.0 - pat % 2
coef = np.zeros((S, A - 1))
cells = np.zeros(M, dtype=np.int64)
for i in range(M):
cells[i] = self.zero_cell[i]
if 2 + i < len(c):
cells[i] = int(np.clip(c[2 + i] - self.o_coarse + self.zero_cell[i], 0, len(self.cell_n[i]) - 1))
coef[self.pm[i], self.pd[i]] = self.cent[i][cells[i]]
for k, i in enumerate(self.fine_of):
if 2 + M + k < len(c):
cell = cells[i]
n, nf = int(self.cell_n[i][cell]), self._nfine(i, cell)
f = int(np.clip(c[2 + M + k] - self.o_fine, 0, nf - 1))
lev = self.cell_lo[i][cell] + (f + 0.5) * n / nf - 0.5 + self.lmin[i]
coef[self.pm[i], self.pd[i]] = lev * self.step
z = self.basis @ coef
y = np.diff(z, axis=0, prepend=0.0) + self.rest
out = np.zeros((H, A))
out[:S, : A - 1] = np.clip(y, -1.0, 1.0)
out[:S, A - 1] = g
out[S:] = out[S - 1] # never executed: hold
return outFinally, allowed_codes restricts each position to the codes that can occur there: the four patterns
first, a switch step only when the pattern has a switch, the cells of the coefficient at that position,
the refinements that exist in the chosen cell, and the end of the string only after the last position.
Every string the policy can emit is therefore a well-formed SFPC string.
def allowed_codes(self, position: int, prefix: np.ndarray) -> np.ndarray:
mask = np.zeros(self.spec.vocab_size + 1, dtype=bool)
M = len(self.pm)
if position == 0:
mask[:4] = True
elif position == 1:
if len(prefix) > 0 and int(prefix[0]) >= 2 and self.S > 1:
mask[self.o_sw + 1: self.o_sw + self.S] = True
else:
mask[self.o_sw] = True
elif position < 2 + M:
i = position - 2
lo = self.o_coarse - self.zero_cell[i]
mask[lo: lo + len(self.cell_n[i])] = True
elif position < self.length:
i = int(self.fine_of[position - 2 - M])
cell = self.zero_cell[i]
if 2 + i < len(prefix):
cell = int(np.clip(int(prefix[2 + i]) - self.o_coarse + self.zero_cell[i], 0, len(self.cell_n[i]) - 1))
mask[self.o_fine: self.o_fine + self._nfine(i, cell)] = True
else:
mask[-1] = True
return maskResults
| Method | ① | ② | ③ |
|---|---|---|---|
| Success rate ↑ | Success rate ↑ | Success rate ↑ | |
| Claude Fable 5.2 | 0.872 | 0.878 | 0.272 |
| Per-dimension uniform binning | 0.570 | 0.228 | 0.217 |
| VQ-BeT | 0.906 | 0.733 | 0.378 |
| FAST | 0.889 | 0.850 | 0.411 |
| FAST+ | 0.880 | 0.833 | 0.372 |
| BEAST | 0.633 | 0.772 | 0.289 |
| OAT, original configuration | 0.836 | 0.806 | 0.394 |
| ActionCodec | 0.797 | 0.589 | 0.356 |
| OAT | 0.853 | 0.861 | 0.367 |
| FASTerVQ | 0.819 | 0.850 | 0.383 |
| VQ-VLA | 0.842 | 0.811 | 0.283 |
- ① MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 · chunk horizon 8, all 8 executed
- ② Same policy recipe · chunk horizon 32, first 16 executed
- ③ Horizon-8 policy under LIBERO-plus mixed perturbations
SFPC is ahead of every published baseline on Same policy recipe, with a success rate of 0.878 against 0.861 for the strongest baseline there, OAT [8], and against 0.228 for the uniform-binning starter it replaced.
On MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 it reaches 0.872, a large gain over the starter's 0.570 but below three published tokenizers: residual VQ (0.906, the best there), DCT with byte-pair encoding (0.889) and the universal FAST+ tokenizer (0.880). It is above the other six learned or analytic baselines.
Horizon-8 policy under LIBERO-plus mixed perturbations is where SFPC falls short. Its success rate of 0.272 is above only the starter's 0.217 and below the nine other baselines, the best of which, FAST [2], reaches 0.411. We have no development measurement that explains this gap.
How we got here
SFPC was reached in the steps below, using a local copy of the training pipeline. We ran it on the task's own data and short training runs of about a third of an epoch, judged by success in our own simulated rollouts, open-loop prediction error and the offline statistics quoted above. Absolute success in these runs is below most of the published means, and our own notes put the standard error of a single run at about three points.
- A tokenizer has to be given clean targets. Reading the data pipeline, we found the zeroed tails of goal relabelling before writing any tokenizer, and the episode memory was part of every version from the first.
- Our first transform coded velocities, not paths. It was a single principal-component transform of the delta dimensions over the executed steps, uniformly quantised, with 25 codes per chunk and one code for the gripper pattern and switch time together. We moved to two gripper codes by reasoning about greedy decoding, and the first model trained on this transform later bore it out: its joint gripper code predicted a switch in 1.4% of chunks against 10.4% in the data (our development measurement). In the same runs prediction error was far larger than quantisation error, which told us that at our training budget the bottleneck was what the model could learn, not precision.
- Integrating the deltas halved the code. Coding the cumulative path rather than the deltas, and water-filling in that domain, needed about half as many codes for the same path fidelity in our offline comparison.
- Stability had to be designed in. Fine levels of a coefficient flipped between adjacent frames, so we introduced the coarse cells and calibrated their number to an agreement of 0.75 between adjacent frames. Offline, the submitted version uses 20 codes per chunk on the configuration we analysed, with an overall agreement of 0.76 against 0.43 for the starter's bins. Setting the required agreement to zero (one cell per level, and so no refinement codes) lowered it to 0.71 in the same analysis.
We installed SFPC as the submitted candidate once its first development result was in: 28.9% on a configuration where it later also stayed ahead of a variant with a constant velocity precision instead of the path-precision cap (24.4%) and of ActionCodec (3.3%). In development it was not clearly ahead everywhere. On the configuration where we compared most variants, SFPC finished at 19.4% against 22.2% for ActionCodec with the task's pretrained weights and 21.1% for our first velocity-domain transform, all within the noise of a single run.
The variants we tried afterwards were not adopted:
- Sign-first code planes (each coefficient coded as negative, rest or positive, then a magnitude cell, then a refinement) committed to motions instead of idling, but did worse with the refinement plane (13.3% against 19.4% on the configuration where we compared most variants). Without it, one run reached 27.2%, while a seed replicate of the same configuration ran far lower on the part we saw. We had already concluded, and ran the replicate because of it, that single development runs could not rank variants this close.
- Holding a decoded gripper switch for at least four executed steps, applied at decoding only to a trained sign-first model, moved success from 27.2% to 28.9%, within noise.
- Rollouts showed where the policies failed. They deadlocked at gripper events, hovering above an object or pressing down without releasing. A probe of the predicted switch probability on true switch frames, on a checkpoint trained with SFPC, gave about 0.43, nearly flat in the time to the switch, so greedy decoding triggered the switch close to chance. We designed further variants against these failures: whitened coefficients without a rest atom, magnitude cells calibrated on moving frames, and a prefix that codes the path to the next gripper event. They were still queued or running, and none of them is in the submitted file.
Limitations
- Horizon-8 policy under LIBERO-plus mixed perturbations is not solved. SFPC is ahead only of the starter there, and below nine published tokenizers, several of which are learned. Our development runs give no account of why. The contribution is supported on Same policy recipe, and on MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 only relative to the starter and to six of the baselines.
- The development evidence is thin. The design was fixed on short training runs, about a third of an epoch, whose differences were within the noise of a single run. The constants , , and were set from offline statistics (adjacent-frame agreement, reconstruction, code counts), not from closed-loop success.
- The gripper code keeps one switch. Only the first switch within the executed steps is coded. A second switch in the same window is lost, and the diagnosed failure mode, a switch probability blurred in time around gripper events, is not addressed by the submitted version.
- Stability is calibrated on training data. The cell counts are chosen from adjacent training frames, and the cell means and rest values are training statistics. Nothing in the method adapts them to what the policy actually predicts.
- The string length is fixed per fit. Water-filling sets one length for all chunks, so a chunk at rest costs as many codes as a fast motion, and we did not use the interface's optional block-parallel decoding or vocabulary extensions.
- The episode memory is a data-pipeline repair. It helps only when the training chunks contain zeroed tails, and it relies on exact matches to the training actions. Its contribution was not isolated in a closed-loop run.
References
- Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti et al. (2024). OpenVLA: An Open-Source Vision-Language-Action Model. CoRL.
- Karl Pertsch, Kyle Stachowicz, Brian Ichter et al. (2025). FAST: Efficient Action Tokenization for Vision-Language-Action Models.
- Hongyi Zhou, Weiran Liao, Xi Huang et al. (2025). BEAST: Efficient Tokenization of B-Splines Encoded Action Sequences for Imitation Learning. NeurIPS.
- Seungjae Lee, Yibin Wang, Haritheja Etukuru et al. (2024). Behavior Generation with Latent Actions. ICML.
- Yating Wang, Haoyi Zhu, Mingyu Liu et al. (2025). VQ-VLA: Improving Vision-Language-Action Models via Scaling Vector-Quantized Action Tokenizers. ICCV.
- Yicheng Liu, Shiduo Zhang, Zibin Dong et al. (2025). FASTer: Toward Efficient Autoregressive Vision Language Action Modeling via Neural Action Tokenization.
- Chaoqi Liu, Xiaoshen Han, Jiawei Gao et al. (2026). OAT: Ordered Action Tokenization.
- Chaoqi Liu, Yue Zhao, Haonan Chen et al. (2026). Ordered Action Tokens for Visuomotor Policy Learning.
- Zibin Dong, Yicheng Liu, Shiduo Zhang et al. (2026). ActionCodec: What Makes for Good Action Tokenizers. CoRL.