Manuscript Offprint

arXiv:2610.09178

CAP: Codebook-Aligned Prediction for Tokenized Robot Policies

Haoran Chen, Jingtian Ji, Samuel Wheeler, Kaylene Caswell Stocking, Matthew Walter

Haoran Chen 1,∗^{1,*}, Jingtian Ji 1,∗^{1,*}, Samuel Wheeler 2^{2}, Kaylene Caswell Stocking 1^{1}, and Matthew Walter 1^{1}

1 Training the action tokenizer

Continuous action chunk → discrete

token sequence

Standard Action reconstruction

Continuous action chunk

Figure

Action tokenizer

Discrete token sequence

c1c_{1} c2c_{2} c3c_{3} c4c_{4} ...

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 (%)

Figure

Standard classifier (baseline) CAP (ours)

Error and mechanism analyses

Figure

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.

1^{1}Toyota Technological Institute at Chicago.

2^{2}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.

References (33)