Manuscript Offprint
arXiv:2610.09178CAP: Codebook-Aligned Prediction for Tokenized Robot Policies
Haoran Chen , Jingtian Ji , Samuel Wheeler , Kaylene Caswell Stocking , and Matthew Walter
1 Training the action tokenizer
Continuous action chunk → discrete
token sequence
Standard Action reconstruction
Continuous action chunk

Action tokenizer
Discrete token sequence
...
Learned codebook
d(c₁) d(c₂) d(c₃) d(c₄)
...
Tokenizer learns both token mapping and latent codes.
2 Training the autoregressive policy
Predict the action token sequence from observations using teacher forcing
Standard Token-index supervision
Observation
Autoregressive policy
Image(s) / state
Teacher forcing with target token indices
Standard classifier
p(c₁|o, c<1)
Supervision: Token indices
Ours
Codebook-aligned prediction (CAP)
Observation
Autoregressive policy
Image(s) / state
Codebook aligned prediction
p(c₁|o, c<1)
One simple swap:
Parametrize the policy's
categorical classifier using
the tokenizer's code space.
Teacher forcing with target token indices
c₁
c₂
c₃
c₄
Supervision: Token indices
3 Outcomes and analyses
Improvements come from more benign errors and better representation learning
Policy success rate (%)

Standard classifier (baseline) CAP (ours)
Error and mechanism analyses

CAP results in no better token prediction; but induces benign action errors.
CAP is more robust to observation perturbation.
CAP provides action-aware latent code structure to guide policy learning and improves its backbone representations.
Fig. 1: Codebook-Aligned Prediction (CAP). An action tokenizer converts continuous action chunks into discrete token sequences while learning structured latent code representations. Standard autoregressive policies discard this structure and predict token indices with a learnable linear head. CAP instead reuses the tokenizer's codebook to structure the policy prediction space. This simple replacement yields more benign action-space errors and better policy representations, improving downstream success across simulation and real-world tasks.
Abstract—Action tokenization converts continuous robot actions into discrete symbols that can be modeled autoregressively. However, existing tokenizer-based policies typically ignore the tokenizer's learned latent code structure: after tokenization, the policy treats tokens as unrelated class indices and learns a new classifier from scratch. We show that this discarded structure is valuable. We introduce Codebook-Aligned Prediction (CAP), a method that directly reuses the tokenizer's code vectors as policy class prototypes while leaving the tokenizer and policy backbone otherwise unchanged. Across four quantizer families, three simulation benchmarks, and two real-robot tasks, CAP consistently improves task success over standard token classification heads while holding the tokenizer—and therefore its reconstruction quality—fixed. Our analysis further shows that these gains are not explained by higher token accuracy or changes in the policy head alone. Instead, reusing the tokenizer codebook provides the policy with valuable information about the tokenizer's learned latent structure across tokens, making token prediction errors more benign in action space and improving the representations learned by the policy backbone. These results suggest that action tokenizers learn useful action-aware latent structure beyond discrete targets that should be preserved when training downstream policies.
I. INTRODUCTION
Robot policies learned from demonstrations now range from task-specific visuomotor controllers [1, 2] to generalist vision-language-action (VLA) models [3, 4]. A critical design choice for robot policies is how to represent the action space. Common approaches include direct regression [5], continuous generative models [1, 2, 6], and discrete autoregressive models [7, 8]. Each formulation presents distinct challenges for robot policies, including differences in training objectives and inference procedures.
In this work, we focus on the last formulation: action tokenizers that discretize continuous action chunks, followed by autoregressive policies that predict the resulting action tokens. Casting action prediction as categorical next-token prediction enables the policy to represent multimodal action distributions, provide explicit token likelihoods, and avoid iterative continuous-sample refinement at inference time. For VLA models, it allows the policy to generate actions
Equal contribution.
Toyota Technological Institute at Chicago.
Argonne National Laboratory.
using the same autoregressive framework employed for language [9, 10, 11]. The tokenizer does more than simply convert continuous actions into discrete tokens for the policy: it determines reconstruction fidelity, sequence length, and the target distribution that the policy must learn.
Existing action tokenizers fall into two broad categories. Predefined tokenizers map actions to tokens using fixed coordinates or trajectory transforms, including per-dimension bins [12], frequency coefficients [10], and B-spline bases [13]. In contrast, learned action tokenizers adapt the discrete representation to the action distribution. Among these approaches, VQ-BeT [14] and QueST [15] learn latent vocabularies; VQ-VLA [11] and FASTer [16] emphasize reconstruction and compression for autoregressive VLA models; OAT [17] imposes coarse-to-fine structure across tokens; and other methods further shape the vocabulary through optimization-oriented or multimodal objectives [18, 19].
Once trained, action tokenizers are typically used only to provide discrete token labels for downstream policy learning, while their associated code representations are discarded. This creates a mismatch between the structure learned by the tokenizer and how its tokens are modeled by the policy. In multi-level tokenizers, for example, the same token index may correspond to different code representations across levels, yet standard policies commonly use a shared classifier across the token sequence. More generally, one-hot supervision penalizes all incorrect tokens equally, regardless of their similarity to the target action. Consequently, the policy prediction objective ignores information already encoded in the tokenizer's latent code space. This raises a natural question: can these learned representations be used to better inform downstream policy learning?
Our work answers this question affirmatively. We propose Codebook-Aligned Prediction (CAP) for policy training, which reuses tokenizer code vectors as class prototypes in the policy classifier and scores output representations by their distance to these prototypes. CAP therefore inherently aligns the policy’s prediction heads with the tokenizer’s level-wise structure and retains information already learned by the tokenizer without changing the tokenizer, policy backbone, or autoregressive training objective.
Our contributions are summarized below:
• We propose Codebook-Aligned Prediction (CAP), a simple prediction mechanism that reuses rather than discards tokenizer code representations and that can be used with both learned-codebook and lookup-free quantizers.
• We find that CAP consistently improves task success across four quantizer families, three simulation benchmarks, and two real-world tasks.
• We perform thorough analysis and ablations to investigate the causes of CAP’s effectiveness, attributing these gains to more benign action errors and improved policy representations.
A. Quantization and Robot Action Tokenizers
Quantization has long been used for discrete representation learning, from scalar and vector quantization [20] to neural quantizers such as VQ-VAE [21], residual quantization [22], and structured designs like FSQ [23] and BSQ [24]. Its applications span vision [25], audio [26], and speech [27].
In robotics, action tokenizers use either predefined or learned representations. Predefined quantization schemes discretize action dimensions or transformed trajectories, as in RT-1 [12], FAST [10], and related approaches [13]. Frequency- and spline-based methods [10, 13] alleviate the redundancy of simple binning methods with compact trajectory representations, but their underlying bases remain fixed by design rather than adapting to correlations or recurring patterns in the action data. Learned tokenizers instead adapt their representations to the action distribution: VQ-BeT and QueST learn latent action vocabularies [14, 15], VQ-VLA [11] and FASTer [16] integrate learned tokens into autoregressive VLA models, and recent methods further structure the vocabulary through architectural and auxiliary objectives [17, 18, 19]. These works improve how actions are tokenized, but the downstream policy only receives token index labels and has to learn a new categorical classifier from scratch, ignoring the prior knowledge in the tokenizer's learned latent structure. In this work, we study how this structure can instead be leveraged to improve the policy.
B. Imitation Learning
Imitation learning trains policies with expert demonstrations, typically through behavior cloning, and is widely used for robot manipulation [28]. Action chunking predicts a sequence of future actions rather than a single action, allowing policies to capture short-horizon temporal structure and reduce the frequency of policy queries. Among methods that use action chunking, different policy parameterizations model the action distribution in different ways. ACT [1] directly predicts continuous action chunks with a conditional VAE, Diffusion Policy [2] learns a denoising process, and flow-matching policies [6] regress a conditional vector field. For tokenized policies, the action chunks are instead represented as discrete token sequences and predicted autoregressively [7, 14, 15]. We focus on this formulation and study how token representation alignment affects policy behavior.
III. METHOD
We first formulate the standard two-stage training pipeline where a tokenizer first learns a mapping between continuous actions and discrete tokens and an autoregressive policy then learns to predict the appropriate action tokens. We then identify two structural mismatches at their interface: (1) the same token index may correspond to different code representations across levels in a tokenizer, yet standard policies predict all levels with a shared categorical head, and (2) policy training uses only the discrete token indices and ignores the latent structure learned by the tokenizer. To address these issues, we propose Codebook-Aligned Prediction (CAP) to structure the policy’s prediction space by reusing tokenizer representations as class prototypes for policy training.
A. Preliminaries
In this work, an action tokenizer first maps a continuous action chunk to a sequence of discrete tokens and learns to reconstruct the original actions. The trained tokenizer is then frozen, and its token sequences serve as categorical targets for an autoregressive policy conditioned on observations.
Action Tokenizer: Let denote an -step action chunk, where . A tokenizer consists of an encoder , a quantizer , and an action decoder . The encoder first maps the action chunk to a continuous embedding, . The indexing map then converts into a sequence of discrete action tokens, , where is the token index at level , is the number of quantization levels, and is the number of possible indices per level. The index-to-latent map converts these indices into a continuous quantized embedding, , using the corresponding level-wise codes. Finally, the decoder reconstructs the action chunk from the quantized embedding, i.e., .
We therefore define tokenization and detokenization as and , respectively. A tokenizer is typically trained with a reconstruction objective:
Here, denotes the action-chunk distribution in the demonstrations. We use the mean squared error (MSE) to define the reconstruction loss:
For VQ-based tokenizers, we additionally use the standard codebook and commitment losses.
Autoregressive Token Policy: Let denote the demonstration distribution, where is the observation context paired with action chunk . Once the tokenizer has been trained, we freeze it and map each action chunk to a target token sequence .
A standard policy with parameters uses a learned classifier shared across levels to predict categorical logits and models this sequence autoregressively [7, 11, 14, 15]:
(3)
Here is the ground-truth sequence prefix. The policy is trained by minimizing the token-level negative log-likelihood through teacher forcing. During a rollout, the policy generates autoregressively, and the frozen detokenizer reconstructs the predicted action chunk as .
B. Multi-Level Quantization and Policy Mismatch
Multi-level Quantizers. The forms of the indexing and index-to-latent maps, q and d, depend on the quantizer family. We consider four representative multi-level quantizers spanning both explicit learned codebooks and lookup-free quantization, as well as parallel and sequential residual constructions. Vector quantization (VQ) and finite scalar quantization (FSQ) quantize L latent vectors in parallel; residual VQ (RVQ) and normalized RVQ (NRVQ) quantize a single latent vector sequentially through L residual stages.
For VQ, the encoder produces latent vectors . At level , let denote the codebook, with . Each latent vector is independently quantized as
For RVQ and NRVQ, the encoder generates a single latent . RVQ applies the lookup sequentially to the residual with ,
and the quantized latent is [22, 26]. NRVQ follows the same residual structure but performs assignment using normalized code directions and scales the selected direction at each level by a learned scalar before reconstruction [29].
FSQ uses a fixed Cartesian grid instead of a learned lookup table for the L encoded latent vectors [23]. Let map grid points to token indices; its quantized latent at level l is
where is a linear layer with tanh-based bounding and maps the selected grid point to the decoder embedding. Its finite Cartesian-product code space is closely related to product quantization [30].
Shared and Level-Specific Quantization. Let denote the quantization parameters used at level . A shared quantizer ties these parameters across levels, , whereas a level-specific quantizer uses independently parameterized . For VQ and RVQ, corresponds to the codebook ; for NRVQ, to the normalized direction table; and for FSQ, to the projection pair . Both parameterizations nevertheless produce token sequences in the same discrete space .
Tokenizer–Policy Mismatch. A standard autoregressive policy (Eqn. 3) typically uses a single head (SH), with one categorical classifier shared across quantization levels. This is potentially problematic for level-specific quantizers, where the same token index can correspond to different code representations across levels: a shared head must use one set of classifier parameters for token classes whose tokenizer-side meanings are level-dependent.
A simple remedy is to match the policy-head structure to the tokenizer. We therefore also consider a multi-head policy (MH), with a separate categorical classifier per level. We call SH structurally matched to shared quantization and MH matched to level-specific quantization; we refer to the opposite pairings as mismatched. Such matching provides a natural inductive bias, preserves the tokenizer's parameter-sharing structure in the downstream policy, and avoids unnecessary coupling between independently parameterized levels.
C. Codebook-Aligned Prediction
Structural matching addresses how prediction heads are shared across levels, but it does not use the latent structure learned by the tokenizer. Even with matched heads, categorical supervision treats token indices as discrete class labels and ignores action-relevant relationships encoded in their latent representations which have been learned while training the tokenizer. We therefore propose Codebook-Aligned Prediction (CAP) to target this remaining gap by carrying that tokenizer structure into policy prediction.
Class prototype construction: At level , CAP associates each token index with a tokenizer-derived code representation , forming a class prototype matrix . For quantizers with explicit learned codebooks, we reuse their code representations directly. For lookup-free quantizers, we provide a systematic way to construct their corresponding implicit codebooks.
a) Learned Codebooks: For VQ and RVQ, CAP directly reuses the learned code vectors, (Eqn. 4). For NRVQ, we use the normalized directions, .
b) Implicit Codebooks: Lookup-free quantizers replace learned codebooks with structured finite code sets. These code sets define an implicit codebook. For FSQ, we enumerate the grid points and map them through the decoder-side projection to construct CAP's prototypes:
Thus, the resulting prototypes are decoder-input embeddings rather than grid coordinates. Note that the same construction can be extended to LFQ and BSQ using their respective binary code sets and decoder-side embedding maps.
Prototype-based token prediction: CAP, by construction, follows the structurally matched head configuration introduced above: shared quantization uses a single head (SH) across levels, whereas level-specific quantization uses one head per level (MH). This ensures that each policy head is paired with the code representations that define the corresponding tokenizer level.
At level , let denote the policy embedding for token prediction at position . We learn an affine down-projection and a positive logit scale . , , and are tied across levels for shared quantization and learned independently for level-specific quantization. With CAP, the policy output embedding is translated into a distribution over action tokens via:
(8)
where denotes the logit for predicting token . Tokens whose codebook latent representations are closer to the projected policy output are assigned higher probability.
Frozen and fine-tuned CAP: We consider two variants. Frozen CAP (CAP-FRZ) keeps the prototypes fixed at their

(a) RoboMimic: Can
(b) LIBERO: Goal
(c) RoboTwin: Burger&Fries
Fig. 2: Example tasks from the three simulation benchmarks.
tokenizer-derived values; Fine-tuned CAP (CAP-FT) updates them through the policy cross-entropy objective. The tokenizer itself remains fixed during policy training.
IV. RESULTS
A. Experimental Setup
a) Benchmarks and Evaluation: We evaluate CAP on three simulation benchmarks and two real-world tasks spanning single-arm and bimanual manipulation. For the simulation benchmarks (Fig. 2), we use Lift, Square, and Can from RoboMimic [31]; the Spatial, Object, Goal, and Long suites from LIBERO [32], with 10 tasks per suite (40 tasks in total); and Grab Roller, Place Burger and Fries, and Place Cans in a Plastic Box from RoboTwin [33]. The real-world tasks (Fig. 4) involve hanging a coffee cup on a rack (Cup Hang) and stacking a cube (Cube Stack). We train a separate tokenizer and policy for each simulation benchmark using all tasks within that benchmark. For the real-world setup, we likewise train one tokenizer and one policy jointly on the combined two-task dataset. We evaluate each policy on 300 episodes per RoboMimic task, 50 per LIBERO task using the benchmark's provided evaluation seeds, 100 per RoboTwin task, and 30 per real-world task. We report the policy's rollout success rate along with the bootstrap estimate of the standard error, using the validation-selected checkpoint for simulation environments and the final checkpoint for the real-world experiments.
b) Quantizer Configurations: We evaluate VQ, RVQ, NRVQ, and FSQ with both shared and level-specific parameterizations as described in Sec. III-B, denoted by the suffixes -S and -L, respectively. For all experiments, we set , , and .
c) Baselines and Our Methods: For each tokenizer configuration, we train both single-head (SH) and multi-head (MH) baselines along with CAP-FRZ and CAP-FT. All policy variants use the same transformer backbone, frozen tokenizer, training data, and optimization protocol; only the prediction heads differ.
B. Simulation Results
Table I reports validation raw-action reconstruction MSE and policy success rate on the simulation benchmarks, where gray cells indicate the mismatched baseline. The use of multiple policy heads is most consequential for level-specific tokenizers, where a shared policy head must serve independently learned codebooks. Accordingly, MH outperforms SH in eleven of the twelve level-specific comparisons; the
TABLE I: Simulation results: raw-action reconstruction MSE (RoboMimic/LIBERO: ; RoboTwin: ) and success rate (, bootstrap standard error). Gray: mismatched baseline; bold: best policy for each benchmark-tokenizer pair.
| Quantizer | RoboMimic | LIBERO | RoboTwin | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Recon.↓ | SH | MH | CAP-FRZ | CAP-FT | Recon.↓ | SH | MH | CAP-FRZ | CAP-FT | Recon.↓ | SH | MH | CAP-FRZ | CAP-FT | |
| VQ-S | 2.02 | 80.2 ± 1.3 | 77.2 ± 1.4 | 89.8 ± 1.0 | 89.7 ± 1.0 | 0.600 | 45.4 ± 1.1 | 17.4 ± 0.9 | 61.5 ± 1.1 | 61.2 ± 1.1 | 8.90 | 75.7 ± 2.5 | 53.7 ± 2.9 | 88.7 ± 1.8 | 86.0 ± 2.0 |
| VQ-L | 2.17 | 71.9 ± 1.5 | 78.8 ± 1.4 | 91.7 ± 0.9 | 92.0 ± 0.9 | 0.954 | 49.4 ± 1.1 | 51.4 ± 1.1 | 74.2 ± 1.0 | 71.0 ± 1.0 | 4.47 | 39.3 ± 2.8 | 53.0 ± 2.9 | 93.0 ± 1.5 | 92.0 ± 1.6 |
| FSQ-S | 2.74 | 74.8 ± 1.4 | 75.3 ± 1.4 | 85.3 ± 1.2 | 85.8 ± 1.2 | 1.35 | 32.2 ± 1.0 | 23.5 ± 0.9 | 62.3 ± 1.1 | 50.5 ± 1.1 | 8.10 | 69.7 ± 2.6 | 66.7 ± 2.7 | 75.7 ± 2.5 | 84.0 ± 2.1 |
| FSQ-L | 2.46 | 74.0 ± 1.5 | 79.4 ± 1.4 | 88.4 ± 1.1 | 87.9 ± 1.1 | 1.22 | 16.7 ± 0.8 | 25.0 ± 1.0 | 71.1 ± 1.0 | 61.6 ± 1.1 | 6.39 | 67.0 ± 2.7 | 65.3 ± 2.8 | 84.7 ± 2.1 | 85.3 ± 2.0 |
| RVQ-S | 3.37 | 78.4 ± 1.4 | 87.9 ± 1.1 | 86.7 ± 1.1 | 88.2 ± 1.1 | 1.58 | 64.5 ± 1.1 | 47.8 ± 1.1 | 66.4 ± 1.0 | 49.3 ± 1.1 | 7.31 | 72.3 ± 2.6 | 72.3 ± 2.6 | 59.3 ± 2.8 | 56.3 ± 2.9 |
| RVQ-L | 2.43 | 55.6 ± 1.6 | 74.4 ± 1.5 | 80.6 ± 1.3 | 80.7 ± 1.3 | 1.01 | 51.9 ± 1.1 | 55.2 ± 1.1 | 64.6 ± 1.1 | 64.4 ± 1.1 | 4.53 | 26.3 ± 2.5 | 45.7 ± 2.9 | 31.3 ± 2.7 | 63.7 ± 2.8 |
| NRVQ-S | 4.31 | 80.7 ± 1.3 | 83.3 ± 1.2 | 80.8 ± 1.3 | 87.0 ± 1.1 | 1.74 | 38.7 ± 1.1 | 50.4 ± 1.1 | 62.9 ± 1.1 | 64.4 ± 1.1 | 13.8 | 63.3 ± 2.8 | 70.7 ± 2.6 | 48.0 ± 2.9 | 76.0 ± 2.5 |
| NRVQ-L | 2.66 | 48.3 ± 1.7 | 74.9 ± 1.4 | 84.0 ± 1.2 | 81.9 ± 1.3 | 1.37 | 49.1 ± 1.1 | 67.8 ± 1.0 | 69.2 ± 1.0 | 68.3 ± 1.0 | 8.34 | 34.0 ± 2.7 | 47.0 ± 2.9 | 57.7 ± 2.8 | 58.3 ± 2.8 |
only exception is RoboTwin FSQ-L, where SH is higher by 1.7 percentage points. For shared tokenizers, the comparison depends on the quantizer type. MH outperforms SH in four of six RVQ-S and NRVQ-S comparisons. In contrast, SH outperforms MH in five of six VQ-S and FSQ-S comparisons. We hypothesize that the benefit of multiple heads for shared residual tokenizers arises from the stage-specific roles of tokens: even with a shared codebook, different levels encode progressively finer residual information and may therefore benefit from level-specific classifiers (MH).
Across all three benchmarks, a CAP variant outperforms both baselines for all but a single (one out of 24) benchmark-tokenizer combination. Relative to the matched vanilla baseline (SH for *-S and MH for *-L), CAP-FRZ and CAP-FT improve success rates by 8.2 and 9.0 percentage points, respectively, on RoboMimic, by 19.0 and 13.8 points on LIBERO, and by 5.8 and 13.7 points on RoboTwin when averaged over the eight quantizers. The relative performance of CAP-FRZ and CAP-FT depends on the tokenizer type. Averaged across the three benchmarks and both shared and level-specific configurations, CAP-FRZ improves over the matched baselines by 19.6 percentage points for parallel tokenizers (VQ and FSQ) and 2.4 points for residual tokenizers (RVQ and NRVQ). In comparison, CAP-FT yields improvements of 18.0 and 6.3 points, respectively. Overall, CAP-FT outperforms CAP-FRZ by 3.9 percentage points for residual tokenizers, whereas CAP-FRZ leads by 1.6 points for parallel tokenizers.
Takeaway. 1) CAP consistently outperforms standard prediction heads across both single-arm and bimanual manipulation. CAP-FT is more effective for residual tokenizers, whereas CAP-FRZ is less sensitive to tokenizer structure and therefore a better choice for parallel tokenizers. 2) VQ-L delivers the strongest and most consistent policy performance across benchmarks, despite the recent prevalence of RVQ- and FSQ-based action tokenizers.
C. Error Analysis
We first characterize how CAP, baseline-SH, and baseline-MH change token prediction errors and the resulting errors in action space at inference time, without further training.
Token accuracy does not explain CAP's gains. We examine whether CAP's rollout improvements can be explained by higher token prediction accuracy. We measure next-token prediction accuracy under teacher forcing on the RoboMimic policy-validation split, conditioning on the observation and ground-truth token prefix. As shown in Table II, CAP has similar token accuracy to the baselines, and the policy with the highest validation token accuracy is the one that achieves the highest rollout success for only three of eight quantizers in Table I. Thus, validation token accuracy does not explain CAP's increase in rollout success rates.
TABLE II: Teacher-forced token accuracy (%) on RoboMimic. Gray denotes the highest validation accuracy, while bold marks the policy with the best rollout success.
| VQ-S | VQ-L | RVQ-S | RVQ-L | NRVQ-S | NRVQ-L | FSQ-S | FSQ-L | |
|---|---|---|---|---|---|---|---|---|
| Baseline-SH | 35.1 | 36.4 | 39.0 | 22.7 | 41.3 | 21.5 | 32.2 | 35.7 |
| Baseline-MH | 32.8 | 35.7 | 36.2 | 23.3 | 38.0 | 22.7 | 30.8 | 33.7 |
| CAP-FRZ | 36.5 | 40.7 | 35.9 | 23.3 | 38.3 | 23.6 | 32.5 | 36.7 |
| CAP-FT | 35.8 | 40.0 | 37.0 | 25.1 | 38.8 | 23.8 | 31.9 | 36.7 |
CAP yields more benign errors. Since token accuracy does not explain CAP's strong performance, we next test whether CAP makes token prediction errors that are more benign once decoded into actions. For each validation example, we force the first ground-truth tokens and autoregressively sample the remaining tokens, using rejection sampling at each suffix position to ensure that the sampled token is different from the ground-truth token. We repeat this procedure independently 16 times per example at temperature 1, yielding 16 complete token sequences, each with an exact Hamming distance of . We then measure the error between the decoded and ground-truth actions using , the per-element MSE in raw action space defined in Eqn. 2. Figure 3(a) reports the mean as a function of , the number of suffix token errors. For six of the eight quantizers, both CAP variants consistently yield lower action error than both baselines, while action error is similar for the remaining two quantizers (RVQ-S and NRVQ-S). Thus, when CAP policies make token prediction errors, the resulting decoded actions are closer to the ground-truth actions.
CAP improves perturbation robustness. We finally test whether this benign error translates to greater robustness under perturbed observations. We add zero-mean Gaussian noise with standard deviation to each image pixel intensity, using the same noise realization across predictors, and greedily decode the resulting action tokens. Figure 3(b) reports the mean as a function of . Across VQ, FSQ, RVQ-L, and NRVQ-L, both CAP variants consistently result in lower action error than both baselines for different amounts of Gaussian noise, while the advantage is less pronounced for RVQ-S and NRVQ-S. These results highlight a practical consequence of the benign prediction errors induced by CAP: the resulting policies are more robust to perturbations in the

(a) Prefix forcing: number of incorrect suffix tokens
(b) Observation perturbation: pixel-noise standard deviation
Baseline-SH Baseline-MH CAP-FRZ CAP-FT
Fig. 3: Action error under controlled (a) suffix errors and (b) observation perturbations. Columns correspond to the shared (S) and level-specific (L) variants of VQ, RVQ, NRVQ, and FSQ. Both Baseline-SH and Baseline-MH are shown; solid filled circles denote SH, and dashed open circles denote MH.
visual observation.
Takeaway. CAP does not improve the token prediction accuracy; instead, it is more robust to token prediction errors and observation perturbations, yielding more benign errors in action space.
D. Mechanism Analysis
We next investigate what gives rise to these differences. Through controlled ablations, we examine three candidate mechanisms: prediction-head parameterization, action-aware codebook structure, and representation learning in the policy backbone. We perform these ablations on both the matched baselines and our methods.
- Prediction-Head Parameterization: We ask whether the benefit of CAP can be explained by the parameterization of its prediction head, rather than by its use of tokenizer code vectors. We construct two ablated predictors: a distance head (DH) and a low-rank predictor (LP) that separately test distance-based scoring and low-rank parameterization.
The distance head ablation replaces the tokenizer code vectors with randomly initialized, trainable prototypes, while retaining the same distance-based scoring rule (Eqn. 8). In this way, it isolates the effect of the distance-based parameterization from the semantic structure supplied by the pretrained tokenizer.
The low-rank predictor ablation instead retains a standard learned prediction head but constrains it to a low-dimensional subspace. We include this control because the tokenizer codebooks are substantially lower-rank than the learned baseline heads: across the eight tokenizer configurations, the mean codebook rank ranges from 3.2 to 12.4, whereas the corresponding policy-output rank ranges from 79.7 to 111.3 (approximately larger). To test whether CAP's gains can be explained by this low-rank constraint alone, the low-rank predictor ablation factorizes its weight matrix as , , with no bias, where is the policy-backbone dimension, is the number of output classes, and matches the code-vector dimension. Thus, LP imposes a rank- bottleneck.
TABLE III: RoboMimic success rates for distance head (DH) and low-rank predictor (LP) prediction-head ablations.
| Method | Quant. | Success rate (%) | Mean Δ (pp) | ||||
|---|---|---|---|---|---|---|---|
| VQ | FSQ | RVQ | NRVQ | Baseline | CAP-FRZ | ||
| DH | S | 73.2 ± 1.5 | 74.0 ± 1.5 | 80.9 ± 1.3 | 84.3 ± 1.2 | -0.4 | -7.6 |
| L | 71.2 ± 1.5 | 71.1 ± 1.5 | 57.2 ± 1.6 | 60.2 ± 1.6 | -12.0 | -21.3 | |
| LP | S | 64.6 ± 1.6 | 68.8 ± 1.5 | 74.1 ± 1.5 | 72.2 ± 1.5 | -8.6 | -15.7 |
| L | 71.2 ± 1.5 | 74.4 ± 1.4 | 43.7 ± 1.7 | 42.0 ± 1.6 | -19.1 | -28.4 | |
Table III shows that neither the distance head nor the low-rank predictor ablation matches the performance of CAP-FRZ on RoboMimic. The degradation of the distance head ablation is consistent with the fact that distance-based scoring does not fundamentally change the prediction function. Let be the backbone output, and let and denote the distance head's projection matrix and bias, respectively. For prototype , its logit is
The first term is shared by all tokens and therefore has no effect on the softmax probabilities, while the remaining terms form an affine function of . Thus, the distance head is itself an affine classifier, with its weights and biases parameterized by the prototypes . This explains why distance-based scoring alone does not recover the benefit of CAP-FRZ.
Likewise, the low-rank predictor ablation shows that low-rank parameterization alone does not account for the improvement. A low-rank factorization only restricts the expressivity of the prediction head. Together, these results suggest that CAP's improvement does not arise from the prediction-head parameterization alone.
- Action-Aware Codebook Structure: We test whether CAP benefits from the action-aware structure encoded by the tokenizer code vectors. Unlike one-hot supervision, CAP relates token labels through their corresponding code vectors, whose distances reflect structure learned from actions.
TABLE IV: RoboMimic success rates for the permuted-codebook and soft-target controls.
| Method | Quant. | Success rate (%) | Mean Δ (pp) | ||||
|---|---|---|---|---|---|---|---|
| VQ | FSQ | RVQ | NRVQ | Baseline | CAP-FRZ | ||
| PC | S | 42.0 ± 1.7 | 7.4 ± 0.9 | 18.0 ± 1.3 | 18.8 ± 1.3 | -57.0 | -64.1 |
| L | 50.1 ± 1.6 | 1.6 ± 0.4 | 4.1 ± 0.7 | 9.3 ± 1.0 | -60.6 | -69.9 | |
| ST | S | 79.8 ± 1.3 | 76.7 ± 1.4 | 86.7 ± 1.1 | 84.6 ± 1.2 | +3.4 | -3.7 |
| L | 78.6 ± 1.4 | 77.6 ± 1.4 | 71.3 ± 1.5 | 74.2 ± 1.5 | -1.5 | -10.8 | |
TABLE V: RoboMimic success rates for representation-learning ablations.
| Backbone | Quant. | Success rate (%) | Mean Δ (pp) | ||||
|---|---|---|---|---|---|---|---|
| VQ | FSQ | RVQ | NRVQ | Baseline | CAP-FRZ | ||
| CAP-FRZ | S | 87.8 ± 1.1 | 87.3 ± 1.1 | 85.8 ± 1.2 | 75.9 ± 1.4 | +5.7 | -1.5 |
| L | 83.4 ± 1.3 | 86.0 ± 1.2 | 79.9 ± 1.3 | 82.8 ± 1.3 | +6.2 | -3.2 | |
| Baseline | S | 79.2 ± 1.4 | 77.3 ± 1.4 | 81.2 ± 1.3 | 66.3 ± 1.6 | -2.5 | -9.7 |
| L | 84.2 ± 1.2 | 75.6 ± 1.4 | 66.9 ± 1.6 | 59.0 ± 1.6 | -5.5 | -14.8 | |
We construct two ablations to test this effect. The permuted codebook (PC) randomly permutes the correspondence between frozen codebook prototypes and token labels while leaving the tokenizer and token embeddings unchanged. This preserves the prototype set, including its norms, rank, and spectrum, but breaks the code-label alignment. The soft-target (ST) control retains vanilla prediction heads but uses the soft label , where is the decoded Euclidean action error from substituting token at level while fixing all other ground-truth tokens. For each level, we choose a temperature such that the dataset-average entropy of these soft targets matches the dataset-average predictive entropy of CAP-FRZ at that level. Soft-target control helps isolate whether the learned tokenizer representations are truly helpful, or whether CAP's performance is simply due to soft prediction targets that take into account action-space error.
As shown in Table IV, the permuted-codebook control performs substantially worse than both CAP-FRZ and the baseline, showing that preserving the codebook statistics alone is insufficient when the code-label correspondence is broken. In contrast, the soft-target control improves over one-hot training, indicating that information about the relative quality of alternative tokens is useful, although it still performs worse than CAP-FRZ. The effectiveness of the soft target may also depend on how its temperature is calibrated. Together, these results suggest that the action-aware alignment between code vectors and token labels is an important contributor to CAP's success.
- Representation Learning: We further ask whether CAP improves the representations learned by the policy backbone. To isolate this effect, we freeze backbones trained with either the matched baseline or CAP-FRZ, and retrain only a new prediction head with the alternative parameterization. Specifically, the baseline-trained backbone is paired with a CAP head, while the CAP-trained backbone is paired with an unconstrained classifier. Both cases preserve the matched single- or multi-head structure.
Table V reports the resulting RoboMimic success rates. A frozen CAP-FRZ backbone paired with a newly trained vanilla prediction head consistently outperforms the corre- sponding baseline and recovers a substantial portion of the gap to the original CAP-FRZ policy. In contrast, replacing the head of a frozen baseline backbone with a CAP head generally degrades performance.

(a) Cup Hang
(b) Cube Stack
Fig. 4: Real-world evaluation tasks.
TABLE VI: Real-robot results: validation raw-action reconstruction MSE ( ) and success rate (%, bootstrap standard error) over 30 trials per task. For each tokenizer configuration, the best result is shown in bold.
| Quantizer | Recon. | Cup Hang | Cube Stack | ||
|---|---|---|---|---|---|
| SH | CAP-FRZ | SH | CAP-FRZ | ||
| RVQ-S | 2.77 | ||||
| RVQ-L | 2.04 | ||||
| FSQ-S | 2.18 | ||||
| FSQ-L | 2.28 | ||||
This asymmetry suggests that the CAP head provides a useful training signal for shaping the upstream policy representation, rather than acting only as a better parameterization of the final classifier.
Takeaway. CAP's gains are not explained by head parameterization alone, but are driven by action-aware codebook structure and improved policy backbone representations.
E. Real-World Evaluation
We first trained four tokenizers on the combined Cup Hang and Cube Stack dataset. For each tokenizer, we trained two policies: a baseline with the single vanilla prediction head and our proposed CAP-FRZ policy.
As shown in Table VI, CAP-FRZ consistently improves success rates across both tasks and all four tokenizers. The gains are particularly pronounced for the level-specific tokenizers. Averaged across the two tasks, the success rate of RVQ-L increases from 6.7% to 45.0%, while that of FSQ-L increases from 11.7% to 65.0%.
Reconstruction error alone does not predict downstream policy performance. Although RVQ-L achieves the lowest reconstruction error among the four tokenizers, it yields one of the weakest baseline policies. This suggests that reconstruction quality is not sufficient for assessing the suitability of an action tokenizer for policy learning.
V. CONCLUSION
We study an overlooked interface in tokenized robot policies: after an action tokenizer is trained, its discrete indices are retained as prediction targets while the corresponding code representations are typically discarded. We introduce Codebook-Aligned Prediction (CAP), which reuses these representations as class prototypes and aligns the policy prediction heads with the tokenizer's quantization scheme. Across four quantizer families, three simulation benchmarks, and two real-world manipulation tasks, CAP consistently improves task performance over standard classification heads. Our analyses provide insights into the reasons for this improvement—CAP does not simply improve token prediction accuracy; instead, its prediction errors are more benign after decoding into action space and its policies are more robust to observation perturbations. Controlled ablations show that these gains cannot be explained by distance-based scoring or low-rank head parameterization alone. Instead, preserving the action-aware alignment between code vectors and token labels is important, possibly because this improves the representations learned by the policy backbone.
Our results also motivate broader questions about the design of action tokenizers. Future work should revisit which quantization schemes are most appropriate for downstream tasks. We also plan to evaluate these tokenizer design choices and CAP across a broader range of tasks and models, including VLA policies and world models.
REFERENCES
[1] T. Z. Zhao, V. Kumar, S. Levine, and C. Finn, “Learning fine-grained bimanual manipulation with low-cost hardware,” arXiv preprint arXiv:2304.13705, 2023.
[2] C. Chi, Z. Xu, S. Feng, E. Cousineau, Y. Du, B. Burchfiel, R. Tedrake, and S. Song, “Diffusion policy: Visuomotor policy learning via action diffusion,” in Proc. Robotics: Science and Systems (RSS), 2023.
[3] M. J. Kim, K. Pertsch, S. Karamcheti, T. Xiao, A. Balakrishna, S. Nair et al., “OpenVLA: An open-source vision-language-action model,” arXiv preprint arXiv:2406.09246, 2024.
[4] Physical Intelligence et al., “ : A vision-language-action model with open-world generalization,” arXiv preprint arXiv:2504.16054, 2025.
[5] S. Haldar, Z. Peng, and L. Pinto, “BAKU: An efficient transformer for multi-task policy learning,” arXiv preprint arXiv:2406.07539, 2024.
[6] E. Chisari, N. Heppert, M. Argus, T. Welschehold, T. Brox, and A. Valada, “Learning robotic manipulation policies from point clouds with conditional flow matching,” in Proc. Conf. on Robot Learning (CoRL), 2025.
[7] N. M. M. Shafiullah, Z. J. Cui, A. Altanzaya, and L. Pinto, “Behavior transformers: Cloning k modes with one stone,” in Advances in Neural Information Processing Systems (NeurIPS), 2022.
[8] D. Yunis, J. Jung, F. Dai, and M. Walter, “Subwords as skills: Tokenization for sparse-reward reinforcement learning,” in Advances in Neural Information Processing Systems (NeurIPS), Dec. 2024.
[9] B. Zitkovich, T. Yu, S. Xu, P. Xu, T. Xiao, F. Xia, J. Wu, P. Wohlhart, S. Welker, A. Wahid et al., “RT-2: Vision-language-action models transfer web knowledge to robotic control,” in Proc. Conf. on Robot Learning (CoRL), 2023.
[10] K. Pertsch, K. Stachowicz, B. Ichter, D. Driess, S. Nair, Q. Vuong, O. Mees, C. Finn, and S. Levine, “FAST: Efficient action tokenization for vision-language-action models,” in Proc. Robotics: Science and Systems (RSS), 2025.
[11] Y. Wang, H. Zhu, M. Liu, J. Yang, H.-S. Fang, and T. He, “VQ-VLA: Improving vision-language-action models via scaling vector-quantized action tokenizers,” in Proceedings of the International Conference on Computer Vision (ICCV), 2025.
[12] A. Brohan et al., “RT-1: Robotics transformer for real-world control at scale,” arXiv preprint arXiv:2212.06817, 2023.
[13] H. Zhou, W. Liao, X. Huang, Y. Tang, F. Otto, X. Jia, X. Jiang, S. Hilber, G. Li, Q. Wang, Ö. E. Yagmurlu, N. Blank, M. Reuss, and R. Lioutikov, “BEAST: Efficient tokenization of B-splines encoded action sequences for imitation learning,” in Advances in Neural Information Processing Systems (NeurIPS), 2025.
[14] S. Lee, Y. Wang, H. Etukuru, H. J. Kim, N. M. M. Shafiullah, and L. Pinto, “Behavior generation with latent actions,” arXiv preprint arXiv:2403.03181, 2024.
[15] A. Mete, H. Xue, A. Wilcox, Y. Chen, and A. Garg, “QueST: Self-supervised skill abstractions for learning continuous control,” in Advances in Neural Information Processing Systems (NeurIPS), 2024.
[16] Y. Liu, S. Zhang, Z. Dong, B. Ye, T. Yuan, X. Yu, L. Yin, C. Lu, J. Shi, L. J.-T. Yu, L. Zheng, T. Jiang, J. Gong, X. Qiu, and H. Zhao, “FASTer: Toward efficient autoregressive vision language action modeling via neural action tokenization,” in Proc. Int’l Conf. on Learning Representations (ICLR), 2026.
[17] C. Liu, Y. Zhao, H. Chen, X. Han, J. Gao, E. Adeli, and Y. Du, "Ordered action tokens for visuomotor policy learning," in Proc. Robotics: Science and Systems (RSS), 2026.
[18] Z. Dong, Y. Liu, S. Zhang, B. Ye, Y. Yuan, F. Ni, J. Gong, X. Qiu, H. Zhao, Y. Li, and J. Hao, “ActionCodec: What makes for good action tokenizers,” arXiv preprint arXiv:2602.15397, 2026.
[19] M. Kang, L. Shi, L. Liang, R. Gan, D. Liu, P. Zhang, S. Chen, S. Qin, Y. Zheng, J. Zheng, H. Wang, X. Zhan, and H. Su, “X-Tokenizer: A multimodal action tokenizer for vision-language-action pretraining,” arXiv preprint arXiv:2606.14752, 2026.
[20] R. M. Gray, “Vector quantization,” IEEE ASSP Magazine, vol. 1, no. 2, pp. 4–29, 1984.
[21] A. van den Oord, O. Vinyals, and K. Kavukcuoglu, “Neural discrete representation learning,” in Advances in Neural Information Processing Systems (NeurIPS), 2017.
[22] D. Lee, C. Kim, S. Kim, M. Cho, and W.-S. Han, “Autoregressive image generation using residual quantization,” in Proc. IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR), 2022.
[23] F. Mentzer, D. Minnen, E. Agustsson, and M. Tschannen, “Finite scalar quantization: VQ-VAE made simple,” in Proc. Int’l Conf. on Learning Representations (ICLR), 2024.
[24] Y. Zhao, Y. Xiong, and P. Krähenbühl, “Image and video tokenization with binary spherical quantization,” in Proc. Int’l Conf. on Learning Representations (ICLR), 2025.
[25] P. Esser, R. Rombach, and B. Ommer, “Taming transformers for high-resolution image synthesis,” in Proc. IEEE/CVF Conf. on Computer Vision and Pattern Recognition (CVPR), 2021.
[26] N. Zeghidour, A. Luebs, A. Omran, J. Skoglund, and M. Tagliasacchi, "SoundStream: An end-to-end neural audio codec," IEEE/ACM Trans. on Audio, Speech, and Language Processing, vol. 30, pp. 495–507, 2022.
[27] W.-N. Hsu, B. Bolte, Y.-H. H. Tsai, K. Lakhotia, R. Salakhutdinov, and A. Mohamed, “HuBERT: Self-supervised speech representation learning by masked prediction of hidden units,” IEEE/ACM Trans. on Audio, Speech, and Language Processing, vol. 29, pp. 3451–3460, 2021.
[28] S. Ross, G. J. Gordon, and J. A. Bagnell, “A reduction of imitation learning and structured prediction to no-regret online learning,” in Proc. Int’l Conf. on Artificial Intelligence and Statistics (AISTATS), 2011.
[29] J. Yu, X. Li, J. Y. Koh, H. Zhang, R. Pang, J. Qin, A. Ku, Y. Xu, J. Baldridge, and Y. Wu, “Vector-quantized image modeling with improved VQGAN,” in Proc. Int’l Conf. on Learning Representations (ICLR), 2022.
[30] H. Jégou, M. Douze, and C. Schmid, “Product quantization for nearest neighbor search,” IEEE Trans. on Pattern Analysis and Machine Intelligence, vol. 33, no. 1, pp. 117–128, 2011.
[31] A. Mandlekar, D. Xu, J. Wong, S. Nasiriany, C. Wang, R. Kulkarni, L. Fei-Fei, S. Savarese, Y. Zhu, and R. Martín-Martín, “What matters in learning from offline human demonstrations for robot manipulation,” in Proc. Conf. on Robot Learning (CoRL), 2022.
[32] B. Liu, Y. Zhu, C. Gao, Y. Feng, Q. Liu, Y. Zhu, and P. Stone, "LIBERO: Benchmarking knowledge transfer for lifelong robot learning," in Advances in Neural Information Processing Systems (NeurIPS), vol. 36, 2023.
[33] T. Chen, Z. Chen, B. Chen, Z. Cai, Y. Liu, Z. Li, Q. Liang, X. Lin, Y. Ge, Z. Gu et al., “RoboTwin 2.0: A scalable data generator and benchmark with strong domain randomization for robust bimanual robotic manipulation,” arXiv preprint arXiv:2506.18088, 2025.