Introduction
An autoregressive vision-language-action model emits one discrete code per forward step of its language backbone. To act with an action chunk, a continuous block of future actions of which the first are executed open-loop before the next query, the chunk has to be written as a string of codes and read back. The tokenizer therefore does two jobs at once: it defines the targets of the cross-entropy loss the policy is trained on, and it defines the space in which the policy's greedy decoding makes its decisions at test time.
The field has explored the first job extensively. The simplest choice bins every action dimension uniformly, one code per dimension and per step [1]. Compression-based codes transform the chunk first: FAST applies a discrete cosine transform and byte-pair encoding [2], BEAST fits B-spline control points [3]. Learned codes quantise a latent of the whole chunk with residual or other vector quantisation [4, 5, 6], and recent work asks which properties make a learned code a good policy interface, among them a coarse-to-fine ordering that lets any prefix decode [7, 8] and stability of the codes when the chunk window shifts by one step [9].
Our starting observation is that the second job matters at least as much. When the policy is uncertain, greedy decoding takes the argmax of each code separately. If each code describes one dimension or one time step, the argmax picks each coordinate's own most likely value, and the joint result can be an action that never occurs in the data. In the demonstrations this task trains on, every delta dimension has a point mass at the teleoperation deadzone value: in the training data we measured it on 12% to 42% of the values per dimension, while all six deltas sit at it together in a vanishingly small fraction of actions. A per-dimension code then decodes an uncertain state to "do not move"; the robot stays put, the image does not change, and the next query is just as uncertain. Our question is how to build a code in which that cannot happen, without giving up fidelity on the actions that are actually executed.
Method
KPCA has four parts: one linear code over the whole chunk, step weights that follow the execution horizon and the time scale of the motion, a single event code for the gripper, and a repair of the training targets. The tokenizer is fitted analytically, in seconds, and has no learned network.
One joint linear code, coarse to fine
Let be the six end-effector deltas of a chunk, flattened time-major, and let be a weight per time step (defined below), repeated over the six dimensions into the diagonal matrix . On the training chunks we form the weighted, centred data and its eigendecomposition
A chunk is coded by its first coefficients , each quantised with one shared step into a level in a fixed range,
and decoded by , clipped to . A coefficient missing from a short string is decoded as zero, the mean, so every prefix decodes.
Two properties follow from the construction. Every code is a linear combination of all dimensions and all time steps, so the axis-aligned point masses of the deadzone are smeared across many levels of every code instead of concentrating on one; in our development data no level of any of the first six motion codes held more than 1% to 3% of the chunks, against 12% to 42% for the largest bin of per-dimension binning. And the codes come in decreasing order of weighted variance: the first ones fix the overall motion of the chunk, including the acceleration that follows a slow start, and the later ones refine its time profile. Under uncertainty, greedy decoding therefore commits to a real motion of the whole chunk rather than to the slow first step a demonstration typically begins with.
def encode(self, chunk: np.ndarray) -> np.ndarray:
H, A = self.spec.horizon, self.spec.action_dim
c = self.repair(chunk).astype(np.float64)
z = ((c[:, :A - 1].reshape(-1) - self.mu) * self.ws) @ self.U
lev = np.clip(np.round(z / self.step).astype(np.int64) - self.lo_l, 0, self.nlev - 1)
out = []
for p, (k, j) in enumerate(self.pos):
if k == "g":
v = self._grip_code(c[:, -1])
elif k == "j":
v = 0
for jj in self.joint:
v = v * int(self.ncoarse[jj]) + int(min(lev[jj] // self.F[jj], self.ncoarse[jj] - 1))
else:
v = lev[j] // self.F[j] if k == 0 else lev[j] % self.F[j]
out.append(self.pos_off[p] + int(min(v, self.pos_size[p] - 1)))
return np.asarray(out, dtype=np.int64)Step weights from the execution horizon and the coherence of the motion
Only the first actions of each decoded chunk are executed, which argues for spending fidelity on them. But a chunk whose steps all belong to one coherent motion is better described as that motion. We measure the time scale of coherence on the training data: the coherence time is the smallest lag at which the autocorrelation of the per-episode de-meaned deltas falls below (searched up to lag 64). On the training data we measured steps. The weights are
so a chunk no longer than the coherence time is coded uniformly, and a longer chunk gives its executed steps full weight and the unexecuted ones, together, at most a quarter of the executed steps' total weight.
# step weights: the executed steps get full weight, the rest share RHO times that weight. A chunk no longer
# than one motion-coherence time (the lag at which the actions' autocorrelation falls below 1/2) is one
# coherent motion: all its steps get full weight, so the leading codes describe that motion as a whole
# (under uncertainty greedy decoding then falls back to the chunk's motion rather than to its slow start).
tau = self._coherence_time(x, episode_ids) if self.COHERENCE else 0
if self.COHERENCE == 2:
full = H if H <= tau else self.K
else:
full = int(min(H, max(self.K, tau)))
w = np.ones(H)
if full < H:
w[full:] = min(1.0, self.RHO * self.K / (H - full))
ws = np.repeat(np.sqrt(w), D)
mu = X.mean(0)
Xw = (X - mu) * ws
ev, U = np.linalg.eigh(Xw.T @ Xw / len(Xw))
ev, U = np.clip(ev[::-1], 0, None), U[:, ::-1]How many codes, and how fine
The number of codes is the fewest whose error on the executed steps meets a target. Because the coefficients are uncorrelated, dropping components costs exactly on the executed steps, where is the energy of basis vector on those steps in action units (after undoing the weights). With a target of squared error per executed delta, the budget is , and is the smallest count with truncation error below , capped at 48 motion codes and at the token budget. When the target is met within that cap, what is left of the budget goes to quantisation, but never less than 5% of it, and the shared step follows from the variance of uniform quantisation noise:
The range of each coefficient is set from its 0.05% and 99.95% quantiles, the step is raised so that no coefficient's range spans more than 512 steps, and it is enlarged by a factor of 1.25 until the whole code fits in at most 16640 ids; when the result exceeds the default vocabulary, the tokenizer requests a wider one.
# fewest codes meeting the executed-step target: the coefficients are uncorrelated, so dropping components
# m.. costs sum_i ev_i * e_i on the executed steps (e_i: executed energy of basis vector i in action units);
# the kept components share what is left of the budget as quantisation noise (step = sqrt(12 theta)).
e = ((U / ws[:, None])[: self.K * D] ** 2).sum(0)
budget = self.MSE_EXEC * self.K * D
cap = int(min(self.MAX_COEF, len(ev), self.spec.token_budget - 1 - min(self.MAX_SPLIT, len(ev)) * (self.SPLIT_ABOVE > 0)))
tail = np.r_[np.cumsum((ev * e)[::-1])[::-1], 0.0]
ok = np.flatnonzero(tail[1:cap + 1] < budget)
n = int(ok[0]) + 1 if ok.size else max(cap, 0)
left = budget - tail[n]
if left > 0: # quantisation gets what is left, but at least QSHARE of the budget (no needlessly fine step)
theta = max(left, self.QSHARE * budget) / max(e[:n].sum(), 1e-12)
else: # target unreachable within the cap
theta = ev[n - 1] / 4.0 if n > 0 else 1.0
theta = max(theta, 1e-12)
step = float(np.sqrt(12.0 * theta))The gripper as one event code, placed first
The gripper command is binary. Coding it per step invites flicker, so we code a whole chunk's gripper as one event: its state at the first step, , and the step of its first switch ( for no switch), in a single code out of . This is exact for any chunk with at most one switch. The gripper code comes first in the string, so it is decided from the observation alone and not conditioned on the motion codes that follow it.
def _grip_code(self, g):
H = len(g)
b = (np.asarray(g) > 0.5).astype(np.int64)
sw = np.flatnonzero(b[1:] != b[:-1])
return int(b[0]) * H + (int(sw[0]) + 1 if sw.size else 0)
def _grip_decode(self, code):
H = self.spec.horizon
code = int(min(max(code, 0), 2 * H - 1))
g0, s = code // H, code % H
g = np.full(H, float(g0))
if s > 0:
g[s:] = 1.0 - g0
return gEvery position of the string owns a disjoint block of code ids, and allowed_codes restricts the
policy at position to that block, with the end of the string allowed only after the last
position. The strings therefore have a fixed length and every greedy output decodes.
Repairing the training targets
Reading the training pipeline, we found that it relabels a random future goal step for every frame
and zeroes the deltas of every chunk action past it. In our development data this turned up to
about a quarter of the actions of a long chunk into spurious "stop" targets, which the policy then
learns to imitate. Because fit sees every training chunk in episode order (or with episode ids),
the true action sequence of an episode is simply the sequence of chunk heads. encode finds the
first step whose deltas are all zero (if that is not the first step of the chunk), looks the chunk up in a memo keyed by a hash of its first two
actions (which the truncation never touches), and encodes the true future window instead; at the
true end of an episode it pads as the pipeline does, with zero deltas and the gripper held. A chunk
not found in the memo has its last valid action held.
def repair(self, chunk):
c = np.asarray(chunk, dtype=np.float32)
if not self.REPAIR or self.keys is None:
return c
H = c.shape[0]
zero = np.all(c[:, :-1] == 0.0, axis=1)
m = int(np.argmax(zero)) if zero.any() else H
if m == H or m == 0: # nothing truncated (or an all-zero first action: leave it alone)
return c
self.rstats["trunc"] += 1
k = np.uint64(_key(c))
lo = int(np.searchsorted(self.keys, k, side="left"))
hi = int(np.searchsorted(self.keys, k, side="right"))
for p in range(lo, hi):
w = self._window(int(self.key_idx[p]), H)
if np.array_equal(w[:m], c[:m]):
self.rstats["hit"] += 1
return w
self.rstats["miss"] += 1 # unseen chunk: hold the last valid action
out = c.copy()
if m > 0:
out[m:] = c[m - 1]
return outThe repair changes only what the policy is trained on; at test time only decode and
allowed_codes are used.
Results
| Method | ① | ② | ③ |
|---|---|---|---|
| Success rate ↑ | Success rate ↑ | Success rate ↑ | |
| Claude Opus 5.5 | 0.889 | 0.922 | 0.367 |
| 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
On Same policy recipe KPCA is ahead of every published baseline, at a success rate of 0.922 against 0.861 for the strongest baseline there, OAT [8], and far above per-dimension binning at 0.228.
On MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 KPCA reaches 0.889. That is level with FAST (0.889) and FAST+ (0.880), and below the strongest baseline, Residual VQ [4], at 0.906; against per-dimension binning (0.570) the gain is large.
On Horizon-8 policy under LIBERO-plus mixed perturbations KPCA reaches 0.367, the same as OAT (0.367) and above per-dimension binning (0.217), but below five baselines, the highest being FAST [2] at 0.411. KPCA is not the best tokenizer on that setting.
The common thread is that KPCA is well above per-dimension binning on every setting, and that its advantage over the strongest learned and compressed codes is clear on one setting only.
How we got here
We began by reading the papers behind the baselines and summarising what they report and leave open. Two observations from that reading shaped the design: a coarse-to-fine, prefix-decodable ordering helps [7, 8], and stability of the codes under a one-step shift of the window correlates with success [9]. None of the papers we read examined greedy decoding, gripper handling, or the dependence on the executed horizon , and none mentioned that the training pipeline truncates chunk targets.
All the measurements below are our own development measurements, made in a reconstruction of the training and evaluation pipeline that we built during the run; they are single runs, noisy, and not the task's evaluation. Repeat evaluations of the same model differed by about four points, and two models trained on codes that barely differ could differ by up to about fifteen.
- The truncation came first. Reading the pipeline showed the goal-relabelling truncation. The repair's premise, that the chunk heads of an episode reproduce its true actions, checked out exactly on the 79,623 chunks we tested. Our first tokenizers were repaired binning, binning of only the executed actions, and an early version of KPCA; a learned finite-scalar-quantisation autoencoder was written as a fallback and only smoke-tested.
- Binning deadlocked, and that is what reframed the method. Per-dimension binning succeeded in none of its development episodes; a debug rollout showed the robot never moving, every query decoding to the deadzone bin in all six dimensions. Doubling the training length did not fix it (3.6% on an evaluation we stopped early, against 64.4% for KPCA at that length). This is what made greedy decoding, not fidelity, the centre of the design.
- Rotation alone was not enough. To separate the two things a joint code does, we tested a control that rotates each step's six deltas by a per-step principal basis and bins them. It has no point masses, yet reached only 8.3% against 53.3% for KPCA in the same configuration. A rollout showed a second failure: demonstrations start from rest, so a code that decodes the first step first copies a crawl and the scene again never changes. Whole-chunk codes escape that, which is why KPCA's codes span the chunk in time as well as across dimensions. The pretrained FASTerVQ baseline [6], run in our pipeline in the same configuration, reached 7.8%.
- Three refinements made no measurable difference, so we kept the base code. Splitting the coefficients with many levels into a coarse and a fine code (52.2% against 53.3%), a looser error target of (53.9%), and placing the gripper code last (49.4%) were all within noise. Gripper-last, however, doubled the gripper switches per episode (6.09 against 3.00): conditioning the gripper on the decoded motion let motion uncertainty leak into it. The gripper code stays first.
- The step weights were reconciled from two contradicting results. At a short execution horizon, uniform weights (, which gives for every step there) did better than the executed-step emphasis (58.3% against 53.3%). On a long chunk, a uniformly weighted model lost 10.6 points to the execution-weighted one (57.2% against 67.8%). The coherence rule, measured from the data, reconciles them: uniform weights when the chunk fits inside one coherence time, executed emphasis beyond it. A variant that instead gave full weight up to showed no consistent gain on long chunks (52.8% against 50.0%, within noise, in one configuration, 46% against 59.4% partway through in another), and was dropped. Direct runs of the final code at two short horizons gave 42.8% against 43.9% and 56.1% against 53.3% for the earlier weighting, so the gain from uniform weights at short horizons is small and within noise; we kept it as the principled choice.
- The repair was ablated and helped both tokenizers we tried it with on a long chunk. On a long chunk, KPCA with the repair reached 67.8% and without it 53.9%. With ActionCodec [9] run in our pipeline, the same repair raised it from 13.9% to 50.0%. Without repair, the model's predicted action magnitude decayed along the chunk, which is the learned "stop" showing through.
- One configuration had a degenerate quantisation step. Giving all the leftover budget to quantisation produced a needlessly fine step (0.0152 against 0.024 to 0.029 in the other configurations with a short execution horizon) and an oversized vocabulary; the minimum 5% share fixed it (0.0248) and left every other configuration's codes unchanged.
Two further checks did not change the design. With ActionCodec, the strongest baseline we ran in our pipeline, it gave 53.9% in one short-chunk configuration, close to KPCA, but 8.16 gripper switches per episode. And an offline check of the gripper code on long chunks showed the probability of a switch spread over many possible switch steps, so greedy decoding could pick "no switch" even when some switch is likely; scored open loop, the model did resolve the timing, so we left it. Splitting the gripper code into "switch or not" and "when", a weight floor reaching beyond by about one coherence time, and quantisation bins that counter greedy decoding's bias toward slow motion are the leads we recorded and did not test.
Limitations
- Horizon-8 policy under LIBERO-plus mixed perturbations is not improved over the strong baselines. KPCA is below five published baselines there, and level with OAT. Our development work suggested that the remaining failures are precision grasps, which a better code alone may not fix, but we have no measurement on that setting to support this.
- MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 shows no advantage over the best codes. KPCA is level with FAST and FAST+ and below the best baseline there.
- Part of the gain may come from the target repair, not the code. The repair corrects an
artefact of this training pipeline; it depends on
fitreceiving the chunks in episode order or with episode ids, and under a pipeline without that truncation it does nothing. It changes the targets the policy is trained on, and a reviewer may reasonably ask whether that is tokenization or data repair. In our development runs it raised a baseline tokenizer as well, so the comparison in the table mixes the two contributions. - The code is linear and fixed-length. A principal basis cannot represent a multi-modal chunk distribution inside one code; greedy decoding still takes a per-coefficient argmax, and only the smearing of point masses protects it. Every chunk uses the same number of codes, up to 48 motion codes plus the gripper code, regardless of how simple it is.
- The gripper code assumes at most one switch per chunk. A second switch inside a chunk is lost, and on long chunks the switch step is spread over many values.
- The constants are tuned, and most of our ablations sit inside the noise. , the error target , the 5% quantisation share and the coherence threshold of were set by hand; the development runs that compared alternatives are single runs whose differences were often smaller than the run-to-run variation we measured.
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.