arXiv:2610.13257cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13257

CAST: Credit Alignment for Cross-Tokenizer On-Policy Distillation

Jingru Yang, Jinhang Wu, Minjing Shi, Shengfeng He, Xuyan Li, Man Tan, Biye Li

Jingru Yang 1^{1} Jinhang Wu 1^{1} Minjing Shi 1^{1} Shengfeng He 2^{2}

Xuyan Li 1^{1} Man Tan 1^{1} Biye Li 1^{1}

1^{1}Taobao & Tmall Group of Alibaba

2^{2}Singapore Management University

yjr543596@alibaba-inc.com, jinhang.wjh@taobao.com

shiminjing.smj@alibaba-inc.com, shengfenghe@smu.edu.sg

lixuyan.lxy@alibaba-inc.com, tanman.tm@alibaba-inc.com

libiye.lby@alibaba-inc.com

Figure

(a) Alignment only

Figure

(b) CAST: shift or stay

Figure

Figure 1: Chunk-level alignment does not resolve credit alignment. (a) Alignment-only propagation uniformly distributes each chunk’s advantage across aligned student tokens, leaving unaligned tokens unconstrained. (b) CAST assigns credit using student uncertainty and local teacher-signal smoothness, while anchoring unaligned tokens to the supervised fine-tuning (SFT) reference with selective KL regularization.

ABSTRACT

Cross-tokenizer on-policy distillation (OPD) requires aligning teacher and student sequences before their scores can be compared. Decoded-text alignment provides such correspondence at the chunk level, but leaves a distinct problem unresolved: credit alignment. A chunk-level signal specifies how much a span should change, but not how that signal should be distributed across student tokens, while tokens without teacher correspondence remain unconstrained. We propose CAST (Chunk-aware credit Assignment with Selective Token Anchoring), a shift-or-stay framework that addresses both issues. For aligned chunks, CAST redistributes each chunk's advantage across student tokens using predictive uncertainty and local teacher-signal smoothness, emphasizing learning opportunities supported by locally consistent teacher feedback while preserving the chunk's total advantage. The resulting weights exactly solve a KL-regularized credit-allocation problem. For unaligned positions, CAST selectively anchors the student to its initial policy through a KL penalty, limiting drift where teacher supervision is unavailable. Because credit assignment is separated from chunk construction, CAST also applies to punctuation-defined or fixed-length chunks under shared tokenization. Across six mathematics, science, and code benchmarks, CAST improves the average over the strongest evaluated baseline by 2.45 and 1.32 points for cross-tokenizer transfer from Qwen3-8B to Mistral-7B and Llama-3.1-8B, respectively, and by 2.10 points for shared-tokenizer transfer to Qwen3-1.7B.

(a) Vocabulary Overlap (%)

Figure

(b) Non-one-to-one Rate (%)

Figure 2: Tokenizer mismatch persists despite vocabulary overlap. (a) Teacher vocabulary with a decoded-content match in the student. (b) Student response tokens without one-to-one teacher correspondence under heterogeneous decoded-text alignment (Appendix A.1). The shared-tokenizer 3.6% residual results from decode/re-encode normalization and special/boundary-token handling; training instead uses identity correspondence.

1 INTRODUCTION

On-policy distillation (OPD) trains a student on trajectories sampled from its own policy using feedback from a stronger teacher (Agarwal et al., 2024; Gu et al., 2024; Ko et al., 2024; Jang et al., 2026). Because supervision is applied to states the student actually visits, OPD can target student-specific errors and reduce the train-inference mismatch induced by learning only from fixed teacher-generated responses. It has therefore become an increasingly useful paradigm for language-model post-training, particularly for transferring reasoning ability (Yang et al., 2025; Bousselham et al., 2026).

A basic difficulty arises when teacher and student use different tokenizers. With a shared tokenizer, the token-wise log-density ratio log⁡πT(yt∣x,y<t)−log⁡πθold(yt∣x,y<t)\log \pi_T(y_t \mid x, y_{<t}) - \log \pi_{\theta_{\text{old}}}(y_t \mid x, y_{<t}) compares probabilities of the same next-token event. Across tokenizers, however, the same text can be segmented differently, so one student token may correspond to multiple teacher tokens, or vice versa. Teacher and student logits are also defined over different vocabularies, making direct token-wise comparison ill-defined. As shown in Figure 2, only 19.3% of the Qwen3-8B vocabulary has a decoded-content match in Mistral-7B-Instruct-v0.3, compared with 72.3% in Llama-3.1-8B. Moreover, vocabulary overlap alone does not imply token correspondence: identical IDs need not represent the same event, and identical text can still admit different segmentations.

Existing cross-tokenizer distillation methods address this mismatch by constructing a common space in which teacher and student scores can be compared (Boizard et al., 2025; Cui et al., 2025; Minixhofer et al., 2026; Singh et al., 2026). Dynamic Probabilistic Cross-tokenizer Alignment (DPCA), for example, extends decoded-text alignment to OPD by matching teacher and student sequences into text-equivalent chunks and aggregating their token probabilities within each chunk (Niu et al., 2026). Such methods establish chunk-level alignment: the teacher and student scores now refer to the same decoded text.

Our key observation is that chunk alignment does not resolve credit alignment. Alignment determines what teacher and student quantities are comparable, but OPD ultimately optimizes individual student-token probabilities. A chunk-level discrepancy therefore still has to be translated into token-level updates. Uniform propagation gives every student token in a chunk the same advantage, implicitly treating all positions as equally useful and equally reliable learning targets. This need not hold. Some positions are already predicted confidently by the student, whereas others are uncertain and offer greater opportunity for correction. At the same time, high student uncertainty alone is insufficient: it can coincide with abrupt local variation in the teacher-derived signal, where aggressively concentrating credit may be undesirable. A second issue appears outside aligned regions. Tokens without teacher correspondence receive no direct supervision, yet their predictions can still drift because they share parameters with supervised positions. Thus, decoded-text alignment leaves two coupled optimization questions: where should aligned chunk credit be assigned, and how should the student behave where teacher evidence is absent?

We address these questions with CAST (Chunk-aware credit Assignment with Selective Token Anchoring), a token-level shift-or-stay framework for OPD (Figure 1). At aligned positions, CAST selectively shifts the student toward the teacher by redistributing each chunk's advantage across its student tokens. Its credit rule combines two complementary signals: student predictive uncertainty identifies where learning may be useful, while local teacher-signal smoothness identifies where that supervision is locally consistent. Their product therefore favors uncertain student predictions supported by a stable local teacher signal. Normalization within each chunk preserves the chunk's total advantage, so CAST changes only where the credit is assigned, not how much aggregate credit the chunk receives. Moreover, the resulting weights exactly solve a KL-regularized allocation problem that trades off an uncertainty-based prior against local teacher-signal variation, with bounded relative reweighting from the smoothness term.

At unaligned positions, CAST instead encourages the student to stay close to its initial policy. Selective token anchoring applies a KL penalty toward the supervised fine-tuning (SFT) initialization only where aligned teacher supervision is unavailable, constraining incidental drift without directly competing with teacher-guided updates. Together, the two components separate the roles of teacher supervision and reference preservation: shift where teacher evidence is available, stay where it is not.

This perspective also makes CAST applicable beyond tokenizer mismatch. Credit assignment is conceptually separate from how chunks are constructed. Decoded-text alignment provides chunks under heterogeneous tokenization, but the same allocation rule can operate on punctuation-defined or fixed-length chunks when teacher and student share a tokenizer. CAST therefore addresses a more general problem: converting span-level learning signals into structured token-level updates. We additionally find that multi-rollout sampling can further improve performance by exposing the credit mechanism to multiple student trajectories per prompt.

We evaluate CAST on six benchmarks spanning mathematics, science, and code: AIME 2024, AIME 2025, AIME 2026 (Dekoninck et al., 2026), MATH-500 (Hendrycks et al., 2021), GPQA-Diamond (Rein et al., 2024), and LiveCodeBench (Jain et al., 2025). For cross-tokenizer distillation from Qwen3-8B to Mistral-7B and Llama-3.1-8B, CAST improves the six-benchmark average over the strongest evaluated baseline by 2.45 and 1.32 points, respectively. Under shared tokenization, CAST improves the corresponding average for Qwen3-1.7B by 2.10 points. On Mistral, its advantage over uniform and uncertainty-only credit controls persists across evaluated seeds, together with fewer observed training collapses (Table 5; Appendix E). On Llama, CAST also outperforms ULD across all three evaluated seeds (Table 6; Appendix E).

Our contributions are:

• We distinguish chunk-level alignment from credit alignment in cross-tokenizer OPD. Chunk alignment establishes comparable teacher and student signals, but leaves their token-level allocation and the behavior of unaligned positions unresolved.

• We propose CAST, a shift-or-stay framework that allocates chunk credit according to student uncertainty and local teacher-signal smoothness while selectively anchoring unaligned positions. The allocation preserves each chunk’s total advantage and admits an exact KL-regularized optimization interpretation.

• We show that credit alignment is useful beyond heterogeneous tokenization by applying the same rule to punctuation-defined and fixed-length chunks under shared tokenization. Across six benchmarks, CAST outperforms the strongest evaluated baseline for both heterogeneous students and shared-tokenizer Qwen3-1.7B, with additional studies of robustness, training dynamics, and component interactions.

References (42)