Introduction
A VLA whose language backbone emits one discrete code per forward step has to be given a way to write down a continuous chunk of future actions, an array of which only the first rows are executed before the policy is queried again. The training recipe, the data and the chunking protocol are fixed; what we design is the map from a chunk to a string of at most codes from a vocabulary of size , its inverse, and optionally a mask on the codes the policy may emit at each position. The quantity that matters is the closed-loop success rate of the policy trained on those codes.
The field offers several answers. The simplest bins every action dimension of every step uniformly, one code per number [1]. Frequency-domain compression followed by byte-pair encoding shortens the string [2]; B-spline control points give a smooth parametrization [3]; learned vector quantizers compress the chunk into a few latent codes [4, 5, 6, 7]; and ordered tokens put coarse information first [8, 9].
Our starting point is a different observation. The policy does not reproduce the expert's codes; it predicts a distribution over each code and the greedy decoder takes its mode. Wherever several demonstrations are plausible for the same observation, the mode of a code can be far from the mean of the motions behind it, and a code whose meaning depends on its neighbours (a compressed coefficient, a latent index) can turn one wrong choice into a wrong chunk. A good tokenizer therefore has to ask questions whose modal answers, taken independently, still add up to a sensible motion. Three properties of the problem shape what we built. Only the first actions of a chunk are executed, so precision there matters more than precision in the tail. The arm commands are velocities with a well-defined rest command that a large share of the data sits on, so "do not move along this axis" deserves an exact code. And the backbone is a pretrained language model whose output embeddings for digits and for words like open and close already exist.
Method
We separate the six arm dimensions from the gripper. The arm part of a chunk is described by its mean velocity on a few segments; each segment value is reported by a block of threshold questions; the gripper is reported by one binary code per executed step. The string has a fixed length and is decoded in one block.
What is encoded: segment displacements
Let . We split the executed steps into segments of about four steps and, when , add one segment for the unexecuted tail. For segment with step set and arm dimension , the reported field is the segment mean
that is, the displacement over the segment divided by its length. Averaging over a segment is what lets the code spend its precision where the robot acts: the executed horizon gets several segments, the tail gets one. The gripper is reported as a binary code at every executed step and at the last step of the chunk, thinned uniformly if that exceeds the budget.
def __init__(self, spec: TokenizerSpec) -> None:
super().__init__(spec)
h, d = spec.horizon, spec.action_dim - 1
k = min(h, max(1, spec.execute_horizon))
segments = max(1, (k + 3) // 4)
edges = np.rint(np.linspace(0, k, segments + 1)).astype(int)
if k < h:
edges = np.r_[edges, h]
self.average = np.zeros((len(edges) - 1, h), dtype=np.float32)
for j, (start, stop) in enumerate(zip(edges, edges[1:])):
self.average[j, start:stop] = 1 / (stop - start)
self.grip_times = np.unique(np.r_[np.arange(k), h - 1])
if len(self.grip_times) > spec.token_budget:
take = np.rint(np.linspace(0, len(self.grip_times) - 1, spec.token_budget)).astype(int)
self.grip_times = self.grip_times[take]
self.grip_index = np.abs(np.arange(h)[:, None] - self.grip_times).argmin(axis=1)
self.radix = min(3, spec.vocab_size)
self.width = 2 if spec.vocab_size >= 9 and d >= 2 else 1
self.alphabet = self.radix ** self.width
self.powers = self.radix ** np.arange(self.width)
self.grip_offset = self.alphabet if self.alphabet + 2 <= spec.vocab_size else 0
# The backbone already has output embeddings for digits, signs and gripper verbs.
arm_ids = (15, 10, 12) if self.alphabet == 3 else tuple(range(15, 15 + self.alphabet))
self.code_token_ids = arm_ids + ((5552, 2508) if self.grip_offset else ())
fields = len(self.average) * d
room = spec.token_budget - len(self.grip_times)
self.levels = max(1, min(10, room * self.width // fields))
order = np.arange(fields * self.levels).reshape(len(self.average), d, self.levels)
for j in range(d):
shift = (j % self.width) * max(1, self.levels // self.width)
order[:, j] = np.roll(order[:, j], shift, axis=1)
self.order = order.transpose(0, 2, 1).ravel()
self.inverse_order = np.argsort(self.order)
self.padding = (-len(self.order)) % self.width
self.motion_tokens = min(room, (len(self.order) + self.padding) // self.width)
self.length = self.motion_tokens + len(self.grip_times)
self.block_decoding = (self.length, self.length)The arm alphabet is (radix ), and when the vocabulary allows it two ternary digits share one word of symbols. The words are mapped onto existing token ids of the backbone, ten consecutive ids starting at 15 for the arm and two further ids for the gripper, which the agent's code comment calls the backbone's digits and gripper verbs and which the trace shows to be the digit tokens 0 to 8 and the words "close" and "open". The number of threshold levels per field is for fields, word width and gripper codes, so the precision of every field grows with whatever budget the gripper leaves over.
Signed excursions from a rest command
Each field is measured against an origin , the robot's stationary command, estimated as the median of the densest bin of a fine histogram of the first action of every chunk (if that bin holds more than 1.2% of the data). Positive and negative excursions from are quantized separately by a one-dimensional Lloyd iteration on their histograms, with the lowest level pinned to an exact zero:
The code for field is then a set of ternary digits. Digit asks one question with three answers, using one positive and one negative cut, and the pairing is deliberately crossed: the near cut on one side is paired with the far cut on the other,
The decoded value is the origin plus the increments of all positive answers minus those of all negative ones,
This is a thermometer code on each side: a correctly encoded value answers "beyond" to every question whose cut on its side it passes and "between" to the rest, and every question carries a fixed physical increment. Because each increment is attached to a question and not to a position in a compressed string, a policy that gets one digit wrong moves the decoded value by at most the increments attached to that question. And because the crossed pairing makes each question a vote between two opposite tails, the two directions of a field compete inside a single categorical prediction instead of in two independent ones.
def _encode_motion(self, means):
if self.scalar_repeats:
return (means[:, :, None, None] > self.scalar_cuts).sum(3).reshape(len(means), -1)
value = (means - self.origin)[:, :, None]
if self.interval is not None:
crossed = np.concatenate([value >= -self.low, value > self.high], axis=2)
lower = crossed[:, self.field_id, self.interval[:, :, 0]]
upper = crossed[:, self.field_id, self.interval[:, :, 1]]
digits = upper.astype(np.int8) + 2 * (~lower).astype(np.int8)
else:
positive = (value > self.high).astype(np.int8)
if self.radix == 3:
digits = positive + 2 * (value < -self.low).astype(np.int8)
else:
digits = positive % self.radix
ordered = digits.reshape(len(means), -1)[:, self.order]
if self.padding:
ordered = np.pad(ordered, ((0, 0), (0, self.padding)))
return ordered.reshape(len(means), -1, self.width) @ self.powers
def _read_motion(self, codes):
if self.scalar_repeats:
z = codes.reshape(len(codes), len(self.scalar_cuts), self.scalar_repeats)
v = self.scalar_table[self.scalar_fields, self.scalar_positions, z].sum(2)
return v.reshape(len(codes), len(self.average), -1)
digits = ((codes[:, :, None] // self.powers) % self.radix).reshape(len(codes), -1)
digits = digits[:, self.inverse_order].reshape(len(codes), -1, self.levels)
if self.interval is not None:
change = ((digits != 2) * self.inc0 + (digits == 1) * self.inc1).sum(2)
return (self.origin - self.down.sum(1) + change).reshape(len(codes), len(self.average), -1)
change = ((digits == 1) * self.up - (digits == 2) * self.down).sum(axis=2)
return (self.origin + change).reshape(len(codes), len(self.average), -1)Fitting the questions to the policy's modal answer
The crossed pairing is our starting point, not the final layout. When there are at least two levels and the digits pack exactly, we re-pair the cuts of each field into two-cut questions by a search that accounts for how a greedy policy will answer them. For a sample of anchor chunks we collect a cohort of related chunks: chunks from other demonstrations with the same instruction at similar progress, hand state and recent displacement, and chunks from nearby times of the same demonstration. Each cohort gives a local distribution of the field, approximated as , which stands in for what the policy will see as plausible. For a given pairing the decoder returns the modal reconstruction , the sum of the increments selected by the most probable answer to each question. The pairing is scored by a risk that adds the squared bias of that modal reconstruction to an excess-variance term for how well the summed answers locate a shift of the distribution,
where is the sum of the answers' standardized scores, the standardized location and an effective cohort size. Starting from the best of four fixed pairings, we greedily apply the best exchange of partners between two questions until no exchange lowers the mean risk on training anchors or rounds have passed. Anchors from a held-out third of the demonstrations then decide whether the searched pairing replaces the crossed one at all.
def prefix_sum(values):
return np.pad(values.cumsum(axis=1), ((0, 0), (1, 0)))
def risk(sensitivity, variability, modal):
efficiency = np.clip(sensitivity ** 2 / np.maximum(variability, 1e-9), .12, 1)
return (modal + origin - center) ** 2 + variance * (1 / efficiency - 1) / repeats
def totals(pairs):
ids = index[pairs[:, 0], pairs[:, 1]]
# Scalar location score summed over the questions in this packet.
total = np.take_along_axis(score[ids], category[ids, None, :], axis=2).sum(0)
sensitivity = (moment * total).sum(1)
variability = (mass * total ** 2).sum(1)
return total, value[ids].sum(0), sensitivity, variability
def losses(pairs):
_, modal, sensitivity, variability = totals(pairs)
return risk(sensitivity, variability, modal)A scalar regime for short budgets
When one nine-symbol word can name every level of a field (), the token budget covers at least one word per field, and the gripper has its own symbols, the thermometer is replaced by direct scalar words. Each field is reported by words, word dividing the field's range into cells whose cuts sit at the probabilities
of a smoothed, cube-root-flattened distribution of the field, so the grids are staggered against each other. The decoded value is a sum of per-word tables, . The tables are fitted by backfitting with an isotonic constraint, where the input to each table is the cell a greedy policy would choose under the local distribution of a cohort and the target is the mean of an independent cohort, so the levels learn what the modal choice should decode to rather than the centre of each cell. The arity is chosen per field on held-out demonstrations, preferring the smaller arity unless the larger one wins by more than one standard error.
for j in range(repetitions):
probability = (np.arange(1, arity) + (j + .5) / repetitions - .5) / arity
t = np.searchsorted(mass, probability).clip(1, cells - 1)
t = np.maximum.accumulate(t - np.arange(len(t))) + np.arange(len(t))
t = np.minimum(t, cells - np.arange(len(t), 0, -1))
cut = np.r_[0, t, cells].astype(int)
choice = np.searchsorted(t, labels, side='right')
n = np.bincount(choice, minlength=arity)
total = np.bincount(choice, weights=values, minlength=arity)
nominal = .5 * (centers[cut[:-1]] + centers[cut[1:] - 1])
levels.append(np.divide(total, n, out=nominal.copy(), where=n > 0) / repetitions)
cuts.append(cut)
modes.append((np.diff(F[:, cut], axis=1) + bias).argmax(1))
initial = np.stack(levels)
prediction = sum(tab[u] for tab, u in zip(levels, modes))
prior = .004 * max(1e-8, np.sum(weight)) / arity
for it in range(3):
before = weight @ ((prediction - truth) ** 2)
order = range(repetitions) if it % 2 == 0 else range(repetitions - 1, -1, -1)
for j in order:
choice = modes[j]
target = truth - (prediction - levels[j][choice])
n = np.bincount(choice, weights=weight, minlength=arity) + prior
total = np.bincount(choice, weights=weight * target, minlength=arity) + prior * initial[j]
levels[j] = _ascending_levels(n, total)
prediction = truth - target + levels[j][choice]
if before - weight @ ((prediction - truth) ** 2) < 1e-9:
break
F, truth, weight = validation
result = sum(l[(np.diff(F[:, c], axis=1) + bias).argmax(1)] for l, c in zip(levels, cuts))
error = (result - truth) ** 2
return weight @ error, error, cuts, levelsQuestion order, labels and decoding
Finally we choose the order in which the motion words are emitted and which symbol stands for which answer. On a sample of encoded chunks we compute, for every pair of positions, the optimal matching between their symbols (a linear assignment on the covariance of their one-hot indicators) and the correlation it achieves. The positions are ordered along an approximate shortest path through , found by nearest-neighbour construction and two-edge exchanges, and the symbol labels are propagated along that path through the matchings. Adjacent positions in the string then tend to ask correlated questions with consistently named answers, which is what an autoregressive head can exploit.
def _align_queries(words, alphabet):
"""Order positions by the best class-label agreement between their targets."""
samples, count = words.shape
indicator = (words[:, :, None] == np.arange(alphabet)).astype(np.float32)
indicator -= indicator.mean(axis=0)
features = indicator.reshape(samples, count * alphabet)
covariance = (features.T @ features / samples).reshape(count, alphabet, count, alphabet)
covariance = covariance.transpose(0, 2, 1, 3)
positions = np.arange(count)
variance = np.maximum(1e-7, np.trace(covariance[positions, positions], axis1=1, axis2=2))
identity = np.arange(alphabet)
matches = np.tile(identity, (count, count, 1)).astype(np.int16)
similarity = np.eye(count, dtype=np.float32)
for first in range(count):
for second in range(first + 1, count):
pair = covariance[first, second]
left, right = linear_sum_assignment(-pair)
matches[first, second, right] = left
matches[second, first, left] = right
correlation = pair[left, right].sum() / np.sqrt(variance[first] * variance[second])
similarity[first, second] = similarity[second, first] = correlation
path = _query_path(np.maximum(0, 1 - similarity))
labels = np.tile(identity, (count, 1))
for i in range(1, count):
labels[i] = labels[i - 1, matches[path[i - 1], path[i]]]
return path, labelsDecoding inverts the labels, reads the segment values, and maps them to all steps of each arm dimension with a ridge regression fitted on the training chunks from the decoded segment values to the true actions, , so that the interpolation learns the shape of typical motion within and between segments. A code string that stops early is completed with the most frequent symbol at each missing position. The mask allows only arm symbols (in the scalar regime only those within each field's arity) at motion positions, only the two gripper symbols at gripper positions, and the end of the string only after its full length.
def decode(self, codes: np.ndarray) -> np.ndarray:
c = np.asarray(codes, dtype=np.int64).ravel()[:self.length]
arm_codes = c[:self.motion_tokens]
if self.fast_queries:
means = self._packet_means(arm_codes) - self.measured_mean
else:
z = self.prior.copy()
read = len(arm_codes)
z[self.path[:read]] = self.unlabel[self.positions[:read], arm_codes % self.alphabet]
means = self._read_motion(z[None])[0] - self.measured_mean
arm = self.action_mean + np.einsum('sd,dsh->hd', means, self.interpolation)
grip = self.grip_prior.copy()
observed = c[self.motion_tokens:]
if len(self.code_token_ids) > 1:
grip[:len(observed)] = (observed - self.grip_offset) & 1
chunk = np.empty((self.spec.horizon, self.spec.action_dim), dtype=np.float32)
np.clip(arm, -1., 1., out=chunk[:, :-1])
chunk[:, -1] = grip[self.grip_index]
return chunk
def allowed_codes(self, position: int, prefix: np.ndarray) -> np.ndarray:
mask = np.zeros(len(self.code_token_ids) + 1, dtype=bool)
if position >= self.length:
mask[-1] = True
elif position < self.motion_tokens:
mask[:self.alphabet] = self.scalar_allowed[position] if self.scalar_repeats else True
else:
mask[self.grip_offset:min(len(self.code_token_ids), self.grip_offset + 2)] = True
return maskResults
| Method | ① | ② | ③ |
|---|---|---|---|
| Success rate ↑ | Success rate ↑ | Success rate ↑ | |
| GPT-6.2 Astra | 0.922 | 0.917 | 0.422 |
| 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
Our tokenizer has a higher success rate than every baseline on all three settings. The clearest gain is on Same policy recipe, where it reaches 0.917 against 0.861 for the strongest baseline there, OAT [8], and against 0.228 for the per-dimension uniform binning it replaces. On MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 it reaches 0.922 against 0.906 (Residual VQ [4]), and on Horizon-8 policy under LIBERO-plus mixed perturbations 0.422 against 0.411 (FAST [2]); both of these margins are small, and we do not claim them as more than parity with the best baseline.
The baselines that come closest are not of one kind: a residual vector quantizer on MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 and the frequency-domain and ordered-token methods on the other settings. Our tokenizer is at the top on all three, which is the behaviour we designed for: the same fitting procedure chooses the number of levels, the regime and the question layout from the budget and the data, without any per-setting constants. Horizon-8 policy under LIBERO-plus mixed perturbations stays the hardest for every method, and our success rate there remains below one half.
How we got here
We did not have access to the scored environments during development, so every decision below rests on our own comparisons: policies trained from scratch or from the pretrained backbone on public demonstration sets (human Robomimic demonstrations, MimicGen tasks and the language-conditioned CALVIN suite) and rolled out in their simulators on starts held out from training. The counts are our development measurements.
- Threshold questions on segment displacements came first. Our first learned-policy comparison, with state observations, favoured predicting segment displacements through threshold tests: 28 successes in 36 held-out rollouts, against 17 each for uniform binning and FAST. With camera observations the ranking initially changed, and a staggered-grid variant led in the first short runs; on a three-task full-vision comparison the threshold tokenizer later reached 40 of 60, against 25 for uniform binning and 24 for FAST.
- Using the backbone's own tokens gave a large early gain that did not repeat. Mapping the same motion codes onto existing digit tokens and the "close" and "open" words, instead of reserved vocabulary slots, took a short pretrained-camera run from 9 to 24 successes out of 45, with identical encoded actions. A longer camera trial did not reproduce the effect: 46 of 60 with native tokens against 51 with reserved ones, and 40 against 37 with both image encoders fine-tuned.
- Signed excursions replaced an ordinal code. We found that the zero of a percentile-normalized action missed the physical rest command by 0.187 per axis on average on human demonstrations, and that a better rest estimate brought this to 0.026. Coding positive motion, negative motion and holding near the rest command separately won matched full-vision comparisons by 86 to 81 out of 96 and 79 to 73 out of 108.
- Learned ordering helped, but modestly. Reordering the same votes improved one camera test from 40 to 51 out of 78; on 34 CALVIN tasks the aligned version reached 338 of 511 against 324 without alignment, with a paired interval that includes zero; a later installed version reached 354 of 559 against 349 for its predecessor, again with an interval that includes a tie.
- Short budgets needed a different code. On a short-chunk multi-operator suite the threshold tokenizer succeeded on only 3 and 8 of 90 starts across two independent training runs, against 33 and 48 for a scalar alternative. Swapping only the translation commands recovered most of the difference (2 to 27 of 90), swapping only the gripper commands did not (5 of 90), and the failures were grasps the policy reached but often left open. We installed the scalar regime for budgets where one word can carry every level of a field, and a later full vision-and-language fine-tune gave 37 of 90 for scalar words against 8 for paired votes.
- Several ideas did not survive. A decoder trained on votes of similar demonstrations lowered held-out action error but tied the incumbent at 79 of 105. Forcing overlapping windows to agree on their labels lost 75 to 78 out of 84. A threshold redesign that reproduced the expert actions to within still fell from 78 to 69 out of 84 once a policy was trained on it, a reminder that reconstruction is not the target. A bounded-error quantizer reached 19 of 90 on the short suite, below the scalar code. A decoder that scaled arm speed to about 80% dropped from 106 successes to 7. A bootstrap recalibration of the decoding levels gained about two percentage points across five paired comparisons with an interval that included a loss, and was not adopted.
- Diagnostics that shaped the design. In 2,652 paired simulator replays, a one-chunk translation error caused failure in 19 to 23% of otherwise successful starts and an equal-sized rotation error in 5 to 8%. On an insertion task with several equally valid paths, independently predicted coordinates often aimed between them; the cohort-based fitting of the question layout is our answer to that, in that it optimizes the decoded value of the modal answer under a multi-demonstration distribution. We also found and fixed an edge case in which one long demonstration could fill the whole neighbour search with its own samples.
Limitations
- Two of the three gains are small. On MiniVLA (Qwen2.5-0.5B Prismatic) on LIBERO-90 and Horizon-8 policy under LIBERO-plus mixed perturbations our success rate exceeds the strongest baseline by a small margin, and we have no per-setting variance to tell whether that margin is real. The result we can stand behind is the gain on Same policy recipe.
- Horizon-8 policy under LIBERO-plus mixed perturbations remains largely unsolved. At 0.422 our policy fails on most attempts there, as every baseline does; nothing in the tokenizer addresses what makes that setting hard.
- The design is complex, and we cannot attribute the gain. The tokenizer combines a rest-command origin, Lloyd levels, crossed and searched cut pairing, a separate scalar regime, a learned question order and backbone-native tokens. Our development comparisons suggest that the signed excursions and the scalar regime each helped, while the early native-token gain did not repeat in a longer trial, but we have no ablation on the scored settings, and several of our development differences have intervals that include zero.
- Several components rest on assumptions about the data. The rest command is detected as a histogram mode and falls back to zero when no mode is dense enough; the cohorts assume episode and instruction identifiers, with weaker fallbacks without them; and the backbone token ids are fixed constants chosen for one tokenizer family, which would have to change with the backbone.
- The decoder is linear. Within-chunk detail beyond the segment means comes only from a ridge regression on the training data, so atypical trajectories inside a segment are smoothed toward the average shape, and the tail beyond the executed horizon is described by a single segment.
- The regime switch is a hard rule. Whether a field is reported by thermometer votes or by scalar words is decided by the budget, not by a comparison on the data, and our development evidence for the switch comes from a small number of task suites.
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.
- Zibin Dong, Yicheng Liu, Shiduo Zhang et al. (2026). ActionCodec: What Makes for Good Action Tokenizers. CoRL.
- Chaoqi Liu, Yue Zhao, Haonan Chen et al. (2026). Ordered Action Tokens for Visuomotor Policy Learning.
- Chaoqi Liu, Xiaoshen Han, Jiawei Gao et al. (2026). OAT: Ordered Action Tokenization.