Manuscript Offprint

arXiv:2609.11768

A Unified Per-Token Gating Family for On-Policy Distillation: FKL/RKL Mixing with Multi-Channel and Bias Coefficients

Suwan Wu, Yumeng Lin, Pengcheng Yuan, Xiaolong Jiang

Abstract

Per-token gating of forward/reverse KL losses has become a standard technique for on-policy knowledge distillation (OPD), but existing methods such as EOPD (Jin et al., 2026) and ToDi (Jung et al., 2025) each fix a single gating signal and a single gating direction, and the two have never been compared directly. We introduce a four-coefficient parameterization λt=σ(a⋅ht+b⋅u(x)+c+d⋅gapt)\lambda_t = \sigma(a \cdot h_t + b \cdot u(x) + c + d \cdot \text{gap}_t) in which direction-aligned proxies of EOPD and ToDi appear as one-dimensional (1D) restrictions, and which adds multi-channel composition and an explicit bias as further degrees of freedom. On TweetEval (Barbieri et al., 2020) emotion and hate, with a Qwen3-32B teacher and a Qwen3-4B student, configurations in the full family reach higher accuracy than the matched-magnitude single-channel (entropy-only / gap-only) 1D restrictions in 33 of 36 comparable cells, and a 26-cell mean-match isolation experiment places dynamic gating ahead of effective-KL-matched static baselines in 19 of 26 cells. Because cells share training data, models, and parameter substructure, we report both counts as exploratory aggregate directional evidence rather than as independent hypothesis tests. Targeted three-seed paired replications of the nine headline comparisons singled out by that sweep — including a third task, offensive — are directionally consistent, but individually smaller than the single-seed estimates and not significant at n=3n=3. We therefore present the parameterization primarily as a shared coordinate system for comparing per-token gating designs in short-output classification OPD.

1 Introduction

Knowledge distillation (KD) from large language models (LLMs) to smaller student models typically combines forward Kullback–Leibler (FKL) and reverse KL (RKL) losses to balance two complementary objectives: FKL drives the student to cover the teacher’s full output distribution (mode-covering), while RKL drives mode-seeking on the teacher’s high-probability regions (Kim and Rush, 2016; Gu et al., 2024). The relative weighting of these two losses — captured by a single scalar λ∈[0,1]\lambda \in [0, 1] in standard formulations — determines the student’s distillation regime.

Recent work has argued that fixed λ\lambda is suboptimal and that per-token dynamic gating λt∈[0,1]\lambda_t \in [0, 1] helps (Jin et al., 2026; Jung et al., 2025). The two dominant approaches differ in their choice of gating signal:

• EOPD (Jin et al., 2026) uses teacher entropy hth_{t}: high entropy tokens (where the teacher is uncertain) receive more FKL weight to encourage student exploration.

• ToDi (Jung et al., 2025) uses teacher–student disagreement (the log-ratio of teacher to student probability, computed for every vocabulary entry): entries on which the teacher places more mass than the student receive more FKL weight, raising the student’s probability there.

Both lines of work report improvements over static baselines under their respective protocols, but two questions remain: why per-token gating helps, and which signal is preferable for a given task. Since each fixes a single signal and a single gating direction, it has not been tested whether their improvements come from the signal choice, from gating in general, or from hyperparameter tuning — and the two cannot be compared directly, as they operate in different parameter subspaces with different conventions.

A unified analysis framework. Rather than proposing a new gating method, we introduce a

Accepted at the Findings of the 2026 Conference on Empirical Methods in Natural Language Processing (EMNLP 2026 Findings).

parametric family that turns the choice between EOPD, ToDi, and their variants from a discrete method selection into a continuous point in a shared parameter space:

λt=σ(a⋅ht+b⋅u(x)+c+d⋅gapt),(1)\lambda_{t}=\sigma\big(a\cdot h_{t}+b\cdot u(x)+c+d\cdot\mathrm{g a p}_{t}\big), \tag{1}

where hth_t is the per-token normalized teacher entropy, u(x)u(x) is the per-sample prompt-level teacher entropy, gapt=1−pstudent(ytteacher-top1)\text{gap}_t = 1 - p_{\text{student}}(y_t^{\text{teacher-top1}}) is the per-token teacher-student disagreement, and cc is a bias term. The per-token mixture is L(t)=λtLRKL(t)+(1−λt)LFKL(t)\mathcal{L}(t) = \lambda_t \mathcal{L}_{\text{RKL}}(t) + (1 - \lambda_t) \mathcal{L}_{\text{FKL}}(t).

Under this parameterization, direction-aligned proxies of the prior methods appear as 1D restrictions:

• EOPD corresponds to (−β,0,0,0)(-\beta, 0, 0, 0) — only token-level entropy, no bias, with the sign reversed by the original “high entropy → more FKL” semantics.

• ToDi corresponds to (0,0,0,−β)(0,0,0,-\beta) — only teacher-student disagreement, no bias. The sign is negative because ToDi's weight multiplies FKL whereas our λt\lambda_{t} multiplies RKL (Section 3.3).

As we detail in Section 3.3, these 1D restrictions are structurally aligned proxies for the original methods within our convex-mixture family, not faithful reproductions of the published algorithms; all comparisons in this paper should be read accordingly.

What this framework enables. Our central contribution is this unified parameterization. It re-frames two prior questions as questions about points in a shared parameter space:

  1. Which signal helps which task? The framework exposes four signal coefficients independently, so the grid analysis in Section 4 can ask whether different tasks prefer different channels rather than assuming one gating signal a priori. Single-restriction methods cannot represent this trade-off.

  2. Do dynamic gates contribute beyond what a constant λ\lambda captures? The framework allows a clean isolation protocol — training a static baseline at the emergent effective KL ratio of each dynamic configuration — to disentangle dynamic structure from average KL weighting. Section 4.5 reports this 26-cell isolation experiment.

Empirical contributions. We instantiate the framework with student Qwen3-4B and teacher Qwen3-32B (Qwen Team, 2025) and evaluate on TweetEval emotion (4-way classification, ntest=1421n_{test} = 1421) and hate (binary, ntest=2970n_{test} = 2970) (Barbieri et al., 2020), plus a third task, offensive (binary, ntest=860n_{test} = 860), added for seed-robustness replication (Section 6). Our sweeps span 13 OPD configurations per task across the (a,b,c,d)(a, b, c, d) space (Section 4: G1−G5G_{1}-G_{5}, H1−H4H_{1}-H_{4}, HGd±2,±4HG_{d\pm2,\pm4}), each compared against the aligned single-coefficient restrictions corresponding to ToDi and EOPD at the same signal magnitude.

Three findings emerge:

Finding 1 — Structural coverage. Hate’s best configuration in the sweep, G4=(0,4,−1,0)G_{4} = (0, 4, -1, 0), uses the u(x)u(x) channel, structurally absent in both ToDi and EOPD. Across the 26 (config × task) cells the two restrictions give 52 potential comparisons, of which 10 are ToDi-N/A and 6 are EOPD-N/A — configurations a matched-magnitude restriction cannot represent by construction — leaving the 36 comparable cells used below. The parameterization strictly extends the union of the two 1D restrictions.

Finding 2 — Aggregate directional advantage at matched magnitude. Across the 36 comparable cells (emotion 20 + hate 16), the full family beats the matched 1D restriction in 33 cells (91.7%), with one unfavorable cell outside the sampling-SE reference band that Section 4.4 identifies as a granularity mismatch. Because cells share data, models, and parameter substructure, we report this count as exploratory aggregate directional evidence and attach no significance to individual gaps.

Finding 3 — The aggregate gain is not explained by the effective KL ratio. In 26 isolation experiments against mean-matched static baselines sharing the same effective KL ratio (Section 4.5), dynamic gating is ahead in 19 of 26 configurations, none below the negative 1σ1\sigma sampling-SE reference band — so the per-token structure appears to carry information a constant λ\lambda at the same ratio does not.

Section 6 then quantifies how much of the per-cell magnitude is seed noise: nine headline comparisons singled out by the single-seed sweep, spanning both axes and all three tasks, were re-run with three seeds on both sides. All three-seed means are smaller than the single-seed estimates, eight of nine remain directionally positive, and none is individually significant at n=3; we consequently state all empirical claims at the group level.

References (8)