betaFeedback

WorksComputer Science

SPECTRUM: Proximal Spectral Modulation for Looped Self-Distillation

Abstract

A model that learns from its own outputs inherits more than their correctness: it inherits which solutions it produces. We formulate Looped Self-Distillation, a self-evolution framework for code generation in which a model repeatedly generates and learns from its own raw outputs, under a fixed information budget, without ongoing external assessment or test-based selection of the generated samples. We identify a consequential separation: correctness can improve while the breadth of correct implementations contracts. We introduce SPECTRUM, which re-estimates loss-sensitive key/value geometry from a fixed reference anchor at each round and converts it into full-rank proximal spectral modulation. All generated completions train a single student, whose subsequent inference requires no intervention. After five rounds of experiments on MBPP, SPECTRUM retains 89.9% of the initial model's 64-sample correct AST richness, compared with 66.4% for Vanilla self-distillation and 65.5% for a subspace-projection control. The advantage persists at matched correct-sample counts. Without further training or recalibration, the resulting student also achieves higher matched-correct richness than Vanilla SD on HumanEval+ and APPS Intro, demonstrating transfer of the diversity benefit. These findings establish correct-solution retention as a complementary objective of recursive self-improvement (RSI) and show that generation-time intervention can improve the solution repertoire retained by subsequent students.

Introduction

Iterative self-distillation has improved rationales and code-data synthesizers ([19, 26]). Existing approaches use correctness selection, reward-conditioned revision, evolving teachers, or decoding-based distribution shaping ([24, 22, 8, 20, 25]). We ask: what does a model retain when it repeatedly learns from its own outputs without new external assessments of those outputs?

Each student supplies its next training distribution. Higher correctness need not make it a better source of diverse correct solutions (Figure 1). Recursive self-improvement (RSI) therefore calls for measuring whether alternative successful behaviors survive and transfer beyond the training distribution. We formulate Looped Self-Distillation under a fixed information budget. The evolving model generates a corpus, learns from every raw completion, and becomes the next generator. No new annotations, verifier rewards, judge scores, or quality-based sample selection enter training. An optional reference anchor supplies repeated calibration but is never expanded with newly judged samples. Alternative proofs, plans, and programs make solution diversity relevant across reasoning tasks. For coding agents that use language models to generate candidate programs, repeated self-distillation changes which alternatives those models can supply. We study code generation because executable tests and program structure make solution breadth measurable ([2, 16]), and multiple implementations support program search ([15]). Even when the entire pass@k curve cannot identify the distribution within correct outputs: redistributing their probability while holding total correctness fixed leaves pass@k unchanged (Proposition 1).

Each student inherits a distribution of continuations

Figure 1. Each student inherits a distribution of continuations. A shared code prefix admits different continuation forms. The schematic histograms depict concentration under repeated Vanilla SD and broader retention under SPECTRUM. Heights are conceptual; the experiments measure complete correct programs, rather than the displayed continuation starts (Figure 3).

Our experiments expose a separation between correctness and breadth. Across five rounds, Vanilla SD’s pass@1 rises while correct implementation richness contracts (Figure 3; Appendix § 11). In the final 64-sample evaluation, pass@1 increases from 37.94% to 41.45%, while correct AST richness falls from 12.802 to 8.506 classes per task. This connects recursive synthetic-data degradation ([21, 5]) and self-distillation diversity loss ([17]) to repeated learning from unselected outputs.

Figure 3. Generation design separates correctness from solution retention. Native students on 500 MBPP tasks, 16 samples per task per round. (a) C16C_{16} relative to each recorded initialization; (b) pass@1; (c) pass@16. All panels show point estimates from one training trajectory per design. SSD’s initial model is sampled independently. Additional round-level results appear in Appendix § 11.

We introduce SPECTRUM to improve retention. Building on reference-gradient calibration ([7]), it re-estimates the student’s loss-sensitive K/V geometry from the same anchor each round. A full-rank proximal gain attenuates less-sensitive directions while retaining a positive local response in every direction. The modulated model generates the corpus; native weights are restored before one LoRA learns from all completions ([10]). After five rounds, SPECTRUM retains 89.9% of initial 64-sample richness versus Vanilla SD’s 66.4%, and improves pass@64 by 2.2 percentage points over Vanilla SD. Pass@1 is 2.39 points above initialization and 1.12 below Vanilla SD. Matched-correct richness gains transfer to HumanEval+ and APPS Intro. Our contributions are:

  1. A framework for Looped Self-Distillation. Repeated learning from raw self-generated corpora under a fixed information budget, without ongoing external assessment or selection of generated samples.

  1. SPECTRUM: proximal spectral modulation. Per-round loss-sensitive geometry and a full-rank generation operator transfer a temporary intervention into one native student.

  1. Solution retention across rounds and benchmarks. Longitudinal, sampling-budget, generation-design, and transfer analyses establish improved retention within correct implementations.

Preliminaries

Self-distillation from model-generated outputs

SSD learns from self-generated code through cross-entropy training, using temperature and truncation to shape its synthetic distribution without correctness-based selection ([25]). We study this sequence-level learning mechanism when the updated student repeatedly becomes its own data source.

Looped Self-Distillation

We formulate Looped Self-Distillation as repeated generation and learning under a fixed information budget. Let θt\theta_t denote the current student, QQ a fixed set of synthesis prompts, and G\mathcal{G} a generation constructor. One round consists of

π~t=G(θt;A),Dt=((x,Yx,s))x∈Q, s=1,…,S,Yx,s∼π~t(⋅∣x),θt+1=L(θt,Dt),(1)\begin{aligned} \widetilde{\pi}_t &= \mathcal{G}(\theta_t;\mathcal{A}),\\ \mathcal{D}_t &= \left((x,Y_{x,s})\right)_{x\in Q,\ s=1,\ldots,S}, \qquad Y_{x,s}\sim\widetilde{\pi}_t(\mathord{\cdot}\mid x),\\ \theta_{t+1} &= \mathcal{L}(\theta_t,\mathcal{D}_t), \tag*{(1)} \end{aligned}

where Dt\mathcal{D}_t is an indexed corpus retaining duplicate records and L\mathcal{L} learns from every generated completion through cross-entropy training. The optional reference information A\mathcal{A} is fixed before the loop. Newly generated training samples receive no ongoing external evaluation or supervision: no verifier or judge determines their selection or training weights.

The loop closes when θt+1\theta_{t+1} becomes the next generator, exposing how an update changes the distribution available for future learning. This specifies a learning mechanism within the broader RSI agenda. Our implementation uses one LoRA per round ([10]); the outer data–parameter loop differs from recurrent-depth transformers that repeat computation within inference ([3]).

Correctness and correct-solution breadth

For a task xx, let vx(y)∈{0,1}v_x(y)\in\{0,1\} denote passing its recorded verifier, and let ϕ(y)\phi(y) identify a normalized AST class. Let pθp_\theta denote raw model likelihood and πθ\pi_\theta the fixed decoding policy induced by the model. Define aθ(x)=Pr⁡πθ[vx(Y)=1]a_\theta(x)=\Pr_{\pi_\theta}[v_x(Y)=1] and, when aθ(x)>0a_\theta(x)>0,

qθ,j(x)=Pr⁡πθ[ϕ(Y)=j∣vx(Y)=1],Pr⁡[vx(Y)=1,ϕ(Y)=j]=aθ(x)qθ,j(x).(2)q_{\theta,j}(x)=\Pr_{\pi_\theta}[\phi(Y)=j\mid v_x(Y)=1],\qquad\Pr[v_x(Y)=1,\phi(Y)=j]=a_\theta(x)q_{\theta,j}(x). \tag*{(2)}

The first factor measures success frequency; the second describes the distribution within successful outputs. Suppress xx and assume independent draws from a fixed decoding policy below.

Proposition 1 (Correctness does not identify correct-solution breadth). For fixed a>0a>0, pass⁡@k=1−(1−a)k\operatorname{pass}@k=1-(1-a)^k is independent of qq. Expected correct-class counts under kk total draws and bb correct draws are

Ck(a,q)=∑j[1−(1−aqj)k],Db(q)=∑j[1−(1−qj)b].(3)C_k(a,q)=\sum_j\left[1-(1-aq_j)^k\right],\qquad D_b(q)=\sum_j\left[1-(1-q_j)^b\right]. \tag*{(3)}

Identical pass⁡@k\operatorname{pass}@k at every kk can coexist with different DbD_b for any b≥2b\ge2.

We call CkC_k correct AST richness@k and DbD_b correct-count-matched AST richness@b. Finite-pool rarefaction estimators ([13]) and the proof appear in Appendix § 8. Conditional comparisons use tasks eligible for both methods and report their number. Across rounds, relative richness retention is the ratio of task-mean CkC_k to its initial-model value. It measures expected class counts at a fixed budget, rather than identity overlap with the initial classes.

SPECTRUM: Proximal Spectral Modulation

SPECTRUM temporarily modulates the current model’s K/V representations to generate its next training corpus. Each round recalibrates the geometry from the fixed anchor, generates under a full-rank spectral operator, restores native weights, and trains one student on all raw completions (Figure 2).

SPECTRUM within Looped Self-Distillation

Figure 2. SPECTRUM within Looped Self-Distillation. Fixed-anchor completion gradients determine a per-round K/V operator, folded into temporary generation weights. All raw completions train one LoRA student after native weights are restored. The merged student starts the next round and supports native inference. Dashed arrows denote calibration gradients; the bottom loop carries updated parameters. Geometry and code examples are schematic.

Loss-sensitive key/value geometry

Let A={(xi,yi∗)}\mathcal{A}=\{(x_i,y_i^*)\} be the reference anchor fixed before the loop. For the current student θt\theta_t, let ℓi(θt)\ell_i(\theta_t) denote the mean negative log likelihood of reference completion yi∗y_i^*. Prompt and padding targets are masked. Following reference-loss-gradient calibration of K/V directions ([7]), collect the gradient vector giu(ℓ)∈Rdℓg_{iu}^{(\ell)}\in\mathbb{R}^{d_\ell} with respect to the native linear output of each selected K/V module

ℓ\ell at nonpadding position uu. Each module is calibrated separately. Its uncentered gradient second moment and normalized geometry are

Ct,ℓ=1Mℓ∑i,u,nonpadgiu(ℓ)giu(ℓ)T,C‾t,ℓ=Ct,ℓλmax⁡(Ct,ℓ).(4)C_{t,\ell} = \frac{1}{M_{\ell}} \sum_{i,u,\mathrm{nonpad}} g_{iu}^{(\ell)} g_{iu}^{(\ell)\mathsf{T}}, \qquad\overline{C}_{t,\ell} = \frac{C_{t,\ell}}{\lambda_{\max}(C_{t,\ell})}. \tag*{(4)}

Here MℓM_{\ell} counts all included positions, including zero gradients. Nonzero calibration signal gives 0⪯Ct,ℓ⪯I0 \preceq C_{t,\ell} \preceq I. Prompt positions are included because they influence completion loss despite their masked prediction targets.

For a unit direction vv, vTCt,ℓvv^{\mathsf{T}}C_{t,\ell}v is the mean squared directional derivative (giu(ℓ)Tv)2(g_{iu}^{(\ell)\mathsf{T}}v)^2. A finite anchor observes only part of the model’s behavior, so low measured sensitivity need not imply uselessness for other valid implementations. We use this statistic for continuous attenuation and re-estimate it under each updated student.

Full-rank proximal spectral modulation

Suppressing round and module indices, consider a row activation h∈R1×dh \in\mathbb{R}^{1 \times d}. We choose the quadratic penalty z(I−C‾)zTz(I-\overline{C})z^{\mathsf{T}} and define

z⋆=arg⁡min⁡z∈R1×d{12∥z−h∥22+τ2z(I−C‾)zT}=hTτ,z^\star= \underset{z\in\mathbb{R}^{1\times d}}{\arg\min}\left\{\frac{1}{2}\lVert z-h\rVert_2^2+\frac{\tau}{2}z(I-\overline{C})z^{\mathsf{T}}\right\}=hT_{\tau},
Tτ=[I+τ(I−C‾)]−1,τ≥0.(5)T_{\tau}=[I+\tau(I-\overline{C})]^{-1},\qquad\tau\ge0. \tag*{(5)}

This quadratic proximal map ([18]) limits departure from the native activation while penalizing less-sensitive directions more strongly at fixed norm.

Writing C‾=Udiag⁡(μj)UT\overline{C}=U\operatorname{diag}(\mu_j)U^{\mathsf{T}} gives the closed-form response

Tτ=Udiag⁡(11+τ(1−μj))UT.(6)T_{\tau}=U\operatorname{diag}\left(\frac{1}{1+\tau(1-\mu_j)}\right)U^{\mathsf{T}}. \tag*{(6)}

The highest-sensitivity directions retain unit gain; all others retain positive gains at finite τ\tau. Strength varies continuously without a prescribed rank.

Proposition 2 (Local distinguishability and calibration stability). Let 0⪯C‾⪯I0 \preceq\overline{C} \preceq I and 0≤τ<∞0 \leq\tau< \infty. Equation (5) has a unique minimizer, and the gains of TτT_\tau lie in [1/(1+τ),1][1/(1+\tau),1]. For any row-vector difference δ\delta,

∥δ∥21+τ≤∥δTτ∥2≤∥δ∥2,∥Tτ−I∥2≤τ1+τ.(7)\frac{\lVert\delta\rVert_2}{1+\tau} \leq\lVert\delta T_\tau\rVert_2 \leq\lVert\delta\rVert_2,\qquad\lVert T_\tau-I\rVert_2 \leq\frac{\tau}{1+\tau}. \tag*{(7)}

For 0⪯A,B⪯I0 \preceq A,B \preceq I, the corresponding operators satisfy ∥Tτ(A)−Tτ(B)∥2≤τ∥A−B∥2\lVert T_\tau(A)-T_\tau(B)\rVert_2 \leq\tau\lVert A-B\rVert_2. The operator also increases or preserves relative alignment with the measured sensitivity geometry. Define sC‾(h)=hC‾h⊤/∥h∥22s_{\overline{C}}(h)=h\overline{C}h^\top/\lVert h\rVert_2^2 for h≠0h \ne0. Monotonicity of the gains in μj\mu_j yields

sC‾(hTτ)≥sC‾(h).(8)s_{\overline{C}}(hT_\tau) \geq s_{\overline{C}}(h). \tag*{(8)}

These local properties establish bounded, sensitivity-aligned modulation and calibration stability (Appendix § 9). Retention after attention, decoding, and student learning is measured experimentally.

Distilling the modulated generator

For a native linear module h=xW⊤+b⊤h=xW^\top+b^\top, the row operator can be folded into its parameters:

W′=Tτ⊤W,b′=Tτ⊤b,xW′⊤+b′⊤=hTτ.(9)W'=T_\tau^\top W,\qquad b'=T_\tau^\top b,\qquad xW'^\top+b'^\top=hT_\tau. \tag*{(9)}

Folding acts at native K/V outputs before rotary transformations and key normalization, requiring no generation-time activation hooks. Keys affect query–key compatibility; values affect the information aggregated by attention.

After generating DtD_t, we restore the original weights θt\theta_t and fit one LoRA adapter (Hu et al., [10]). Every raw record enters training, including unsuccessful, empty, and duplicate completions. For tokenized record z=(x,y)z=(x,y), let T(z)\mathcal{T}(z) contain its nonpadding causal targets, and let Δ\Delta denote the effective LoRA update. The student objective is

Lt(Δ)=−1∣Dt∣∑z∈Dt1∣T(z)∣∑u∈T(z)log⁡pθt+Δ(zu∣z<u).(10)\mathcal{L}_t(\Delta)=-\frac{1}{|D_t|}\sum_{z\in D_t}\frac{1}{|\mathcal{T}(z)|}\sum_{u\in\mathcal{T}(z)}\log p_{\theta_t+\Delta}(z_u\mid z_{<u}). \tag*{(10)}

SFT includes prompt targets, whereas calibration uses completion targets only. Every record contributes an equally weighted token-mean loss; the operator changes sequence frequencies, not correctness-based training weights.

The merged adapter yields θt+1\theta_{t+1}. Restoring native weights prevents direct composition of operators across rounds; their influence passes through the corpora. Final inference uses neither operator nor anchor.

Fixed reference information, no ongoing external feedback. The reference anchor is supplied before the loop and reused unchanged. Recalibration acquires no new annotations, external-model judgments, or verifier feedback. All generated records retain equal training weight; tests only evaluate the resulting students.

Experiments

Protocol and research questions

Learning and evaluation. We study five rounds with Qwen2.5-Coder-1.5B-Instruct (Hui et al., [12]) on MBPP (Austin et al., [1]). After removing three exact normalized train/test prompt overlaps, the disjoint splits contain 291 synthesis, 50 calibration, 30 validation, and 500 evaluation tasks. Each round generates 16 raw completions per synthesis task and fits one LoRA epoch: 4,656 records per round, 23,280 overall. SPECTRUM uses τ=1\tau=1, middle and last decoder-layer K/V modules, and LoRA rank 8. The anchor and hyperparameters stay fixed.

Native evaluation uses temperature 0.8, top-pp 0.95, and no top-kk truncation. Every round has 16 samples per task; a separate final pool has 64 for the initial, Vanilla SFT, projection, and SPECTRUM checkpoints. SSD is compared under the common 16-sample protocol. We report pass@kk, CkC_k, and DbD_b, using common eligible tasks for paired conditional contrasts. The longitudinal study uses one training run; intervals use 2,000 task-bootstrap resamples. Appendix § 10 gives complete settings, and Appendix § 12 provides independent initial-model context across four models and five benchmarks.

Comparators and questions. Vanilla SD uses standard sampling; SSD shapes generation through temperature 1.5, top-pp 0.8, and top-kk 20 [25]. A top-half rank projector is a generation-design ablation adapted from Hao et al. [7]. Projection and SPECTRUM share the 50 references and calibration procedure; Vanilla SD and SSD use no anchor. Synthesis tasks, record counts, and optimization schedules are shared. We ask what survives successive updates (RQ1), whether gains persist within correct outputs (RQ2), how generation design changes the result (RQ3), and whether retention transfers (RQ4). A separate one-round study supplies complementary evidence under a different training budget.

RQ1: What do successive students retain?

Vanilla SD’s pass@1 rises from 37.92% to 41.30% while C16C_{16} falls from 4.016 to 3.090. SPECTRUM instead retains 89.8% of initial C16C_{16}, versus Vanilla SD’s 76.9%, with greater richness at every learned round (Figure 3a). Its correctness also improves: pass@1 ends at 40.18%, and pass@16 at 67.2% versus Vanilla SD’s 66.0%. The joint trajectory identifies a student that improves success while retaining more of its correct repertoire.

The separate 64-sample pool confirms the retention advantage (Table 1): 11.510 correct AST classes versus 8.506, or 35.3% more, with paired difference 3.004 [2.568, 3.494]. Retention reaches 89.9% versus 66.4%. SPECTRUM solves 363 tasks versus 352, a pass@64 gain of 2.2 percentage points [0.4, 4.2]. Pass@1 is 2.39 points above initialization and 1.12 below Vanilla SD [−1.61, −0.63]. Thus richer native students solve more tasks at high budget, with a smaller single-draw success rate than Vanilla SD.

Metric ↑Initial modelVanilla SDSPECTRUM
pass@1 (%)37.9441.4540.33
pass@8 (%)61.1061.8661.89
pass@16 (%)65.6965.6466.23
pass@64 (%)72.0070.4072.60
Correct AST richness@64 (C64C_{64})12.8028.50611.510
Relative richness retention (%)100.066.489.9
Correct-count-matched richness@4 (D4D_4)3.3582.8563.143

Table 1. Final native students after five MBPP rounds. Independent 64-sample evaluation on 500 tasks. Bold marks the better trained-student estimate. D4D_4 is a marginal mean over 322/321/323 eligible tasks, respectively; paired contrasts follow separately.

RQ2: Does the advantage persist within correct outputs?

Matching successful draws isolates breadth within correct outputs. At four correct draws, SPECTRUM exceeds Vanilla SD by 0.295 expected AST classes [0.249, 0.343] on 316 common eligible tasks. At eight and sixteen correct draws, the paired gains are 0.780 and 1.816 on 296 and 254 tasks (Figure 4c). The advantage therefore persists after equalizing correct-sample counts; each budget uses its own common eligible population.

Correct AST richness, pass@k, and paired SPECTRUM-minus-Vanilla SD gains

Figure 4. (a,b) Correct AST richness and pass@kk from the same final 64-sample pools on 500 MBPP tasks. Budget groups are categorical. (c) Paired SPECTRUM-minus-Vanilla SD DbD_b gains; whiskers are 95% task-bootstrap intervals on 316, 296, and 254 common eligible tasks for b=4,8,16b=4, 8, 16.

The total-budget curves provide the complementary view. At k=1k=1, C1C_1 equals correctness and favors Vanilla SD. At every displayed larger budget, SPECTRUM produces more distinct correct structures, with its largest pass@kk advantage at k=64k=64 (Figure 4a,Figure 4b). These endpoints distinguish breadth bought by a generation budget from variety conditional on success.

RQ3: How does generation design affect retention and correctness?

Improving correctness relative to decoding-based SSD. SPECTRUM achieves the highest pass@16 among the evaluated designs. Across the five-round trajectories, its pass@1 improves by 2.25 points from its recorded initialization, whereas SSD declines by 1.85 points (Figure 3b). At round five, SPECTRUM exceeds SSD by 4.21 points in pass@1 and 1.60 in pass@16. Their C8C_8 point estimates are nearly identical (2.091), while SSD has higher C16C_{16} and marginal D4D_4 (Table 2). The designs occupy distinct correctness–richness operating points.

Designpass@1 (%)pass@16 (%)C8C_8C16C_{16}D4D_4SFT tokens (M)
Vanilla SD41.3066.001.9023.0902.7476.373
SSD35.9665.602.0913.7103.2687.326
Projection control41.3565.601.8763.0662.6906.240
SPECTRUM40.1867.202.0913.6062.9976.856

Table 2. Generation designs and realized training tokens. Round-five native students, 500 MBPP tasks, 16 evaluation draws. Success and richness are higher-is-better; D4D_4 uses each method’s eligible tasks (Appendix § 11). SFT tokens sum five rounds, in millions. All designs use 23,280 training records; these are not matched-compute measurements.

The accuracy gain uses 8.1% fewer generated completion tokens and 6.4% fewer SFT tokens than SSD. Relative to Vanilla SD, generated tokens are 9.9% higher. These are realized text budgets, not wall-clock or total-compute comparisons: SPECTRUM also performs calibration (Appendix § 14).

Continuous modulation versus projection. With the same reference anchor, calibration, module locations, and learning schedule, continuous modulation retains 89.9% of initial C64C_{64} versus projection’s 65.5%. It gains 3.122 classes and 2.4 pass@64 points, with pass@1 lower by 1.43 points. On 251 common eligible tasks in the 16-sample pool, paired D4D_4 gains are 0.312 [0.253, 0.377] for exact programs and 0.293 [0.233, 0.353] for AST classes; the coarser control-flow gain is 0.042 [−0.011, 0.095]. The evidence is strongest for implementation breadth. Attenuation strengths differ, so this contrast evaluates the complete operators.

RQ4: Does retained diversity transfer across benchmarks?

We freeze the MBPP-trained final students and evaluate 164 HumanEval+ tasks and a fixed 200-task APPS Intro subset with 16 samples per task, without further training or recalibration. HumanEval+ uses EvalPlus 0.3.1 (Liu et al., [16]); APPS uses the recorded Python function-interface adaptation (Hendrycks et al., [9]) (Appendix § 10).

The paired richness advantage is positive on both benchmarks (Table 3). On HumanEval+, SPECTRUM also matches Vanilla SD’s pass@16 (86.59%) and raises the C16C_{16} point estimate from 5.848 to 6.000. APPS C16C_{16} falls from 1.930 to 1.845, alongside its lower accuracy. Thus the transferable benefit lies in matched-correct implementation breadth, with benchmark-dependent success rates. Appendix § 13 shows recorded equal-correct-count examples.

BenchmarkΔD4\Delta D_4 ↑95% intervalCommon tasksΔ\Deltapass@1 (pp)Δ\Deltapass@16 (pp)
HumanEval++0.080[0.021, 0.142]111−1.520.00
APPS Intro+0.104[0.007, 0.205]42−1.22−1.50

Table 3. Matched-correct richness transfers to both benchmarks. SPECTRUM minus Vanilla SD after MBPP learning. D4D_4 uses common eligible tasks; accuracy differences use all tasks. Intervals are 95% paired task-bootstrap intervals. Full absolute results appear in Table 9.

Table 9: Frozen-student transfer after MBPP learning. Sixteen samples per task, without transfer training or recalibration. Success and C16C_{16} average over all tasks. D4D_4 is the marginal mean over each row’s eligible tasks; paired common-task contrasts appear in the text. Higher values indicate greater success or richness; eligibility is descriptive.

BenchmarkStudentpass@1 (%)pass@16 (%)C16C_{16}D4D_4Eligible
HumanEval+ (164)Initial53.0985.375.7683.410116
HumanEval+ (164)Vanilla SD53.4786.595.8483.422120
HumanEval+ (164)SPECTRUM51.9486.596.0003.497114
APPS Intro (200)Initial15.4741.502.0703.77250
APPS Intro (200)Vanilla SD15.1935.501.9303.63246
APPS Intro (200)SPECTRUM13.9734.001.8453.72143

Table 9.

Complementary evidence from a one-round study

A one-round study evaluates 64 MBPP tasks with 64 samples each. It uses one generate–learn cycle, 128 synthesis tasks with one completion each, and five SFT epochs, separately from the five-round protocol. SPECTRUM improves SSD’s pass@32, pass@64, and matched-correct richness (Table 4); the recorded paired D4D_4 gain is 0.0312 [0.0095, 0.0550], with pass@1 lower by 0.244 points. This supplies complementary evidence under another training budget. Appendix § 15 reports all four designs and the code-extraction and verification protocol.

Designpass@1 (%)pass@8 (%)pass@32 (%)pass@64 (%)D4D_4AST Simpson
SSD36.8956.7961.6662.503.3910.863
SPECTRUM36.6556.1863.1165.633.4220.872

Table 4. One-round comparison with SSD. 64 MBPP tasks, 64 samples per task; a separate training protocol. Values are the archived rounded summaries. Bold marks the larger estimate. Full comparisons and reported intervals are in Appendix § 15.

Related work

Sequence-level self-distillation. SSD fits self-generated, unverified code after shaping its distribution through temperature and truncation (Zhang et al., [25]). This is our closest learning paradigm.

SPECTRUM instead shapes generation with fixed reference-loss geometry and measures what native students retain across complete generation–learning cycles. Vanilla SD and the adapted SSD recipe use no reference completions.

Recursive self-improvement and evolving teachers. STaR and ReST-EM learn from solutions selected through correctness feedback ([24, 22]). Iterative self-distillation has explicit precedents: Rao et al. [19] use critics and filtering for contexts and rationales, while SCoder improves a code-data synthesizer through checkpoint sampling, scoring, and selection ([26]). SD-Zero distills reward-conditioned self-revision with teacher synchronization ([8]); CRISP refreshes an instruction-conditioned teacher for token-level KL training without correctness filtering ([20]). Our setting fixes synthesis prompts and optional reference information, retains every raw completion, and examines successive students as future data sources.

Diversity under recursive learning. Nicolicioiu et al. [17] show functional and semantic diversity loss with sampled correct demonstrations supplied to a self-teacher. Our loop omits that demonstration-conditioned feedback. UA-RL rewards rare strategies ([11]); SPECTRUM modulates generation without scoring or labeling generated strategies. Recursive model-collapse studies examine synthetic-data degradation, and data accumulation can mitigate it ([21, 5]). We hold the historical-data policy fixed and jointly measure pass@kk, CkC_k, and DbD_b to separate correctness from breadth within correct outputs.

Limitations

Our evaluation has three limitations. First, AST richness captures implementation structure rather than semantic algorithm identity. Structurally different programs may share an underlying algorithm, so semantic and behavioral comparisons would provide a more complete account of solution diversity. Second, finite tests and sample budgets can miss invalid behaviors and rare implementations, motivating broader behavioral checks and adaptive sampling. Third, diversity requires task-specific interpretation: Python AST classes do not directly correspond to distinct proofs, plans, or explanations across languages. Extending this framework requires representations that capture meaningful alternatives within each domain.

Conclusion and future work

We introduce Looped Self-Distillation as a framework for repeated self-improvement under a fixed information budget, without ongoing external assessment of generated samples. Each student supplies its next training distribution, and correctness can improve while correct-solution breadth contracts. SPECTRUM addresses this retention problem through evolving K/V geometry and full-rank proximal modulation, transferring a temporary generation intervention into a native student through unfiltered data. After five MBPP rounds, it retains 89.9% of initial 64-sample richness versus Vanilla SD’s 66.4%. Matched-correctness gains also appear on HumanEval+ and APPS Intro.

Retention and transfer matter for long-horizon RSI. Future work will investigate whether lifelong agents can consolidate experience into reusable concepts and strategies, then recombine them to solve unfamiliar problems without additional task-specific training.

Metrics, estimators, and probability analysis

Correctness and conditional implementation distributions

For a fixed task, let V=vx(Y)V = v_x(Y) and J=ϕ(Y)J = \phi(Y). Equation (2) is simply Pr⁡(V=1,J=j)=Pr⁡(V=1)Pr⁡(J=j∣V=1)\operatorname{Pr}(V = 1, J = j) = \operatorname{Pr}(V = 1)\operatorname{Pr}(J = j \mid V = 1). If a=0a = 0, unconditional correct richness is zero and qq is undefined. An observed pool with no successes need not have a=0a = 0; its matched-correct estimator is unavailable. For countably many classes the occupancy sums converge, because 1−(1−p)k≤kp1 - (1 - p)^k \le kp gives Ck≤kaC_k \le ka and Db≤bD_b \le b. These quantities count expected observed classes at the stated budget, not all possible implementations.

Proof of Proposition 1. Let IjI_j indicate observing at least one correct output from class jj in kk independent draws. Its expectation is 1−(1−aqj)k1 - (1 - aq_j)^k. Linearity of expectation gives CkC_k. The same argument for bb draws from the conditional correct distribution yields DbD_b. All kk draws fail with probability (1−a)k(1 - a)^k, so pass@k depends only on aa. For q=(1,0,…)q = (1, 0, \ldots), Db=1D_b = 1. For uniform mass on J≥2J \ge2 classes, Db=J[1−(1−1/J)b]>1D_b = J[1 - (1 - 1/J)^b] > 1 when b≥2b \ge2. Hence identical correctness at every budget does not identify conditional breadth.

More generally, spreading mass from a larger to a smaller conditional class, without reversing their order, cannot decrease DbD_b: f(q)=1−(1−q)bf(q) = 1 - (1 - q)^b is concave for b≥2b \ge2. The same applies to CkC_k at fixed aa and k≥2k \ge2. This describes a change in a probability distribution; it does not assert that the spectral operator induces that change in every network.

For a>0a > 0, the two richness endpoints are linked by the number of successful draws. Let B∼Binomial⁡(k,a)B \sim\operatorname{Binomial}(k,a) and set D0(q)=0D_0(q) = 0. Conditioning on BB gives

Ck(a,q)=E[DB(q)]=∑b=0k(kb)ab(1−a)k−bDb(q).(11)C_k(a,q) = \mathbb{E}\left[D_B(q)\right] = \sum_{b=0}^{k} \binom{k}{b} a^b(1-a)^{k-b}D_b(q). \tag*{(11)}

Given B=bB = b, the bb correct classes are drawn from qq, so their expected richness is Db(q)D_b(q). Thus total-budget richness combines how many correct samples are obtained with how broadly those samples are distributed. Matching the correct-draw budget isolates the latter quantity on the eligible tasks.

Finite-sample estimators

Suppose a task has nn generated outputs, mm of which pass its verifier, and correct-class counts mjm_j with ∑jmj=m\sum_j m_j = m. We compute

pass@⁡k^=1−(n−mk)(nk),1≤k≤n,(12)\widehat{\operatorname{pass@}k} = 1 - \frac{\binom{n-m}{k}}{\binom{n}{k}}, \qquad1 \le k \le n, \tag*{(12)}
C^k=∑j[1−(n−mjk)(nk)],1≤k≤n,(13)\widehat{C}_k = \sum_j \left[1 - \frac{\binom{n-m_j}{k}}{\binom{n}{k}}\right], \qquad1 \le k \le n, \tag*{(13)}
D^b=∑j[1−(m−mjb)(mb)],1≤b≤m.(14)\widehat{D}_b = \sum_j \left[1 - \frac{\binom{m-m_j}{b}}{\binom{m}{b}}\right], \qquad1 \le b \le m. \tag*{(14)}

We set (uv)=0\binom{u}{v} = 0 for nonnegative integers u<vu < v. Equation (12) is the standard pass@k estimator [2]. Equations (13)–(14) are rarefaction estimators [13]. A uniformly chosen subset of kk outputs misses correct class jj with probability (n−mjk)/(nk)\binom{n-m_j}{k}/\binom{n}{k}. Summing its complement gives the exact expected subset richness conditional on the recorded pool; under independent sampling it estimates the corresponding population quantity. Conditioning on correct outputs gives the analogous calculation for DbD_b.

At k=nk = n, C^n\widehat{C}_n is the number of observed correct classes. At k=1k = 1, C^1=m/n=pass@⁡1^\widehat{C}_1 = m/n = \widehat{\operatorname{pass@}1}. At b=1b = 1, D1=1D_1 = 1 wherever defined. Thus neither C1C_1 nor D1D_1 distinguishes how probability is distributed among multiple correct classes. The plotted budgets are those present in the archived estimates; we do not reconstruct a missing pass@32 value by interpolation.

AST fingerprints and concentration

Python programs are extracted using the recorded first-fenced-block rule. The primary fingerprint parses the extracted program and conservatively normalizes its AST. Formatting and docstrings are removed; local identifiers are normalized only when scope handling is unambiguous. Function names, external identifiers, literals, and uncertain scopes are retained. Consequently, distinct fingerprints can reflect structural implementation variants within one algorithm. Conversely, a fingerprint does not establish functional equivalence beyond the recorded tests. Parse failures do not silently become new correct classes. Secondary exact-program and control-flow fingerprints provide different granularities.

An additional recorded concentration statistic is correct-output Simpson diversity,

S^=1−∑jmj(mj−1)m(m−1),m≥2.(15)\hat{S}=1-\frac{\sum_j m_j(m_j-1)}{m(m-1)}, \qquad m\ge2. \tag*{(15)}

It estimates the probability that two independently drawn correct outputs fall in different classes. Its aggregate uses tasks with enough correct samples and complete labels. It complements richness by emphasizing concentration, while sharing the limitations of the class definition. Exact-program, AST, and control-flow metrics need not move equally; the coarser control-flow comparisons do not establish a uniform increase in algorithmic families.

Task aggregation and uncertainty

Pass@kk and CkC_k are macro-averaged over the full task set. A marginal DbD_b mean uses Eb(M)={x:mx(M)≥b and all correct outputs have AST labels}\mathcal{E}_b(M)=\{x:m_x(M)\ge b\text{ and all correct outputs have AST labels}\} for model MM and reports its size. A paired contrast between M1,M2M_1,M_2 averages task-level differences on Eb(M1)∩Eb(M2)\mathcal{E}_b(M_1)\cap\mathcal{E}_b(M_2). Subtracting marginal means with different eligible sets is not this paired effect. Figure 5b pairs each round with initialization at b=8b=8; its eligible population can change between rounds. It is a pointwise trajectory, not a single fixed cohort.

Within-correct retention over successive updates

Figure 5. Within-correct retention over successive updates. Original 16-sample MBPP comparison of Vanilla SD and SPECTRUM. (a) C16C_{16} relative to initialization; (b) paired D8D_8 changes from initialization on each contrast’s common eligible tasks, with pointwise 95% task-bootstrap intervals; (c) pass@16. Panels (a,c) show point estimates. The complete three-design comparison is Figure 3.

The five-round MBPP intervals use 2,000 task-bootstrap resamples. Transfer intervals also use 2,000 resamples, pairing by exact task ID and conditioning on common eligibility. Percentile endpoints are the 2.5th and 97.5th percentiles. The analysis script records the means, intervals, populations, and input hashes. These pointwise intervals describe evaluation-task uncertainty conditional on the saved training runs, not variation across independent training runs; no multiplicity adjustment is applied.

Operator derivation and mathematical scope

Reference loss and positionwise sensitivity

Let Ti\mathcal{T}_i contain the nonpadding completion targets of reference ii. The scalar differentiated during calibration is

ℓi(θ)=−1∣Ti∣∑u∈Tilog⁡pθ(yi,u∗∣xi,yi,<u∗).(16)\ell_i(\theta)=-\frac{1}{\lvert\mathcal{T}_i\rvert}\sum_{u\in\mathcal{T}_i}\log p_\theta(y^*_{i,u}\mid x_i,y^*_{i,<u}). \tag*{(16)}

This loss is computed separately for each reference before collecting gradients. For selected module ℓ\ell, let hiu(ℓ)∈Rdh^{(\ell)}_{iu}\in\mathbb{R}^d be its native linear output at position uu, written as a column here, and define giu(ℓ)=∇hiu(ℓ)ℓi(θ)g^{(\ell)}_{iu}=\nabla_{h^{(\ell)}_{iu}}\ell_i(\theta). The second moment in Equation (4) averages the outer products of these gradients over every nonpadding position, including prompt and zero-gradient positions. Completion masking selects the loss targets; it does not prevent prompt activations from influencing subsequent completion predictions.

The statistic has a direct directional interpretation. For a unit vector vv, perturbing one selected output position by ϵv\epsilon v gives

ℓi(hiu(ℓ)+ϵv)−ℓi(hiu(ℓ))=ϵ giu(ℓ)⊤v+o(ϵ),(17)\ell_i\left(h^{(\ell)}_{iu}+\epsilon v\right)-\ell_i\left(h^{(\ell)}_{iu}\right)=\epsilon\,g^{(\ell)\top}_{iu}v+o(\epsilon), \tag*{(17)}

where the notation denotes an intervention on that intermediate output, with the remaining computation propagated normally. Consequently,

v⊤Ct,ℓv=1Mℓ∑i,u,nonpad(giu(ℓ)⊤v)2.(18)v^\top C_{t,\ell}v=\frac{1}{M_\ell}\sum_{i,u,\mathrm{nonpad}}\left(g^{(\ell)\top}_{iu}v\right)^2. \tag*{(18)}

This averages squared first-order responses to individual positionwise perturbations. It does not include the cross-position terms arising from a coherent simultaneous perturbation of several outputs. Opposite gradient signs contribute positively, so Ct,ℓC_{t,\ell} measures sensitivity rather than a signed descent direction. It is an uncentered gradient second moment, not a Hessian of the reference loss.

When λmax⁡(Ct,ℓ)>0\lambda_{\max}(C_{t,\ell}) > 0, normalization produces 0⪯C‾t,ℓ⪯I0 \preceq\overline{C}_{t,\ell} \preceq I and a maximum eigenvalue of one. Empty or zero-signal calibration is rejected because the normalization would otherwise be undefined. The same anchor is reused, but the gradients and normalized statistic are recomputed at the current student parameters.

Proof of Proposition 2: proximal solution and bounds

For fixed C‾\overline{C} and row activation hh, write the objective in Equation (5) as

Fh(z)=12∥z−h∥22+τ2z(I−C‾)z⊤.(19)F_h(z) = \frac{1}{2}\lVert z-h\rVert_2^2 + \frac{\tau}{2}z(I-\overline{C})z^{\top}. \tag*{(19)}

Its Hessian is H=I+τ(I−C‾)H=I+\tau(I-\overline{C}). If μj∈[0,1]\mu_j \in[0,1] are the eigenvalues of C‾\overline{C}, the eigenvalues of HH are 1+τ(1−μj)∈[1,1+τ]1+\tau(1-\mu_j) \in[1,1+\tau]. Thus FhF_h is strongly convex and has a unique minimizer. Its first-order condition is

z−h+τz(I−C‾)=0,zH=h.(20)z-h+\tau z(I-\overline{C})=0,\qquad zH=h. \tag*{(20)}

It follows that z=hH−1=hTτz=hH^{-1}=hT_\tau. Diagonalizing HH gives

Tτ=Udiag⁡(11+τ(1−μj))U⊤,(21)T_\tau=U\operatorname{diag}\left(\frac{1}{1+\tau(1-\mu_j)}\right)U^{\top}, \tag*{(21)}

which is Equation (6).

All gains are positive at finite τ\tau, and lie in [1/(1+τ),1][1/(1+\tau),1]. Because TτT_\tau is symmetric positive definite, its singular values are precisely these gains. For any row vector δ\delta,

∥δ∥21+τ≤∥δTτ∥2≤∥δ∥2.(22)\frac{\lVert\delta\rVert_2}{1+\tau}\leq\lVert\delta T_\tau\rVert_2\leq\lVert\delta\rVert_2. \tag*{(22)}

Moreover,

∥Tτ−I∥2=max⁡jτ(1−μj)1+τ(1−μj)≤τ1+τ.(23)\lVert T_\tau-I\rVert_2=\max_j\frac{\tau(1-\mu_j)}{1+\tau(1-\mu_j)}\leq\frac{\tau}{1+\tau}. \tag*{(23)}

These establish Equation (7). The condition number is at most 1+τ1+\tau, and T0=IT_0=I.

Calibration stability

For normalized statistics A,BA,B with spectra in [0,1][0,1], write HA=I+τ(I−A)H_A=I+\tau(I-A) and HB=I+τ(I−B)H_B=I+\tau(I-B). The inverse identity gives

Tτ(A)−Tτ(B)=HA−1(HB−HA)HB−1(24)T_\tau(A)-T_\tau(B)=H_A^{-1}(H_B-H_A)H_B^{-1} \tag*{(24)}
=τTτ(A)(A−B)Tτ(B).(25)=\tau T_\tau(A)(A-B)T_\tau(B). \tag*{(25)}

Both outer factors have operator norm at most one. Submultiplicativity therefore yields

∥Tτ(A)−Tτ(B)∥2≤τ∥A−B∥2.(26)\lVert T_\tau(A)-T_\tau(B)\rVert_2\leq\tau\lVert A-B\rVert_2. \tag*{(26)}

The argument requires neither an eigengap nor shared eigenvectors. This completes the proof of Proposition 2. □\square

The result concerns normalized statistics. To relate it to raw second moments, let C,D⪰0C,D\succeq0 with c=λmax⁡(C)≥γ>0c=\lambda_{\max}(C)\geq\gamma>0 and d=λmax⁡(D)≥γ>0d=\lambda_{\max}(D)\geq\gamma>0. Since ∥D∥2=d\lVert D\rVert_2=d and ∣c−d∣≤∥C−D∥2\lvert c-d\rvert\leq\lVert C-D\rVert_2,

∥Cc−Dd∥2≤∥C−D∥2c+∥D∥2∣1c−1d∣(27)\left\lVert\frac{C}{c}-\frac{D}{d}\right\rVert_2\leq\frac{\lVert C-D\rVert_2}{c}+\lVert D\rVert_2\left\lvert\frac{1}{c}-\frac{1}{d}\right\rvert \tag*{(27)}
=∥C−D∥2+∣d−c∣c≤2∥C−D∥2γ.(28)=\frac{\lVert C-D\rVert_2+\lvert d-c\rvert}{c}\leq\frac{2\lVert C-D\rVert_2}{\gamma}. \tag*{(28)}

Combining the two estimates gives

∥Tτ(Cc)−Tτ(Dd)∥2≤2τγ∥C−D∥2.(29)\left\lVert T_\tau\left(\frac{C}{c}\right)-T_\tau\left(\frac{D}{d}\right)\right\rVert_2\leq\frac{2\tau}{\gamma}\lVert C-D\rVert_2. \tag*{(29)}

This is a deterministic perturbation bound under a nonvanishing normalization scale. No sampling-concentration claim for the finite-anchor estimator is required.

Relative reference sensitivity

For a nonzero row vector hh, define its sensitivity per unit squared norm as

sCˉ(h)=hCˉhT∥h∥22.(30)s_{\bar{C}}(h) = \frac{h\bar{C}h^{\mathsf{T}}}{\lVert h\rVert_2^2}. \tag*{(30)}

Equation (8) states that modulation cannot decrease this quantity. To prove it, write Cˉ=Udiag⁡(μj)UT\bar{C} = U\operatorname{diag}(\mu_j)U^{\mathsf{T}} and set

wj=(huj)2∥h∥22,rj=1[1+τ(1−μj)]2.(31)w_j = \frac{(hu_j)^2}{\lVert h\rVert_2^2}, \qquad r_j = \frac{1}{[1+\tau(1-\mu_j)]^2}. \tag*{(31)}

The weights sum to one and rj>0r_j > 0. Direct substitution yields

sCˉ(hTτ)−sCˉ(h)=Ew[μr]Ew[r]−Ew[μ](32)s_{\bar{C}}(hT_\tau)-s_{\bar{C}}(h)=\frac{\mathbb{E}_w[\mu r]}{\mathbb{E}_w[r]}-\mathbb{E}_w[\mu] \tag*{(32)}
=Cov⁡w(μ,r)Ew[r](33)=\frac{\operatorname{Cov}_w(\mu,r)}{\mathbb{E}_w[r]} \tag*{(33)}
=∑i,jwiwj(μi−μj)(ri−rj)2Ew[r]≥0.(34)=\frac{\sum_{i,j}w_iw_j(\mu_i-\mu_j)(r_i-r_j)}{2\mathbb{E}_w[r]}\ge0. \tag*{(34)}

The final inequality follows because rjr_j is nondecreasing in μj\mu_j. For τ>0\tau>0, it is strictly increasing, so equality holds exactly when all eigendirections carrying nonzero energy from hh share the same eigenvalue. At τ=0\tau=0, modulation is the identity.

The relative increase does not require an increase in absolute sensitivity energy. Indeed, since 0<rj≤10<r_j\le1,

(hTτ)Cˉ(hTτ)T=∑jμjrj(huj)2≤∑jμj(huj)2=hCˉhT.(35)(hT_\tau)\bar{C}(hT_\tau)^{\mathsf{T}}=\sum_j\mu_jr_j(hu_j)^2\le\sum_j\mu_j(hu_j)^2=h\bar{C}h^{\mathsf{T}}. \tag*{(35)}

Thus modulation does not increase activation norm or absolute sensitivity energy, while sensitivity per unit squared norm does not decrease. This is a property of a local quadratic statistic; it does not assert a decrease in the original reference loss.

Folding, finite precision, and the projection control

For row activations and a linear module with weight WW and bias bb,

(xWT+bT)T=x(TTW)T+(TTb)T.(36)(xW^{\mathsf{T}}+b^{\mathsf{T}})T=x(T^{\mathsf{T}}W)^{\mathsf{T}}+(T^{\mathsf{T}}b)^{\mathsf{T}}. \tag*{(36)}

Thus replacing WW and bb by TTWT^{\mathsf{T}}W and TTbT^{\mathsf{T}}b implements the same local map. This is the algebra underlying temporary weight folding. The implementation computes products in float32 and casts back to the model dtype; the exact invertibility statements concern real arithmetic. The insertion point is the native K/V linear output before rotary position operations and any subsequent key normalization. Grouped-query dimensions come from each selected module’s actual output dimension. The original weights are saved and restored before learning.

The projection design uses Pr=U1:rU1:rTP_r=U_{1:r}U_{1:r}^{\mathsf{T}}, with eigenvectors ordered by decreasing eigenvalue and rr equal to half the module output dimension in the completed run. It preserves retained directions and nulls the remainder. At τ=1\tau=1, SPECTRUM’s gains instead lie in [1/2,1][1/2,1]. The two designs differ in spectrum and effective strength, so this comparison does not match their distance from the identity.

For completeness, the infinite-strength limit of the proximal family is

lim⁡τ→∞Tτ=∑j:μj=1ujujT.(37)\lim_{\tau\to\infty}T_\tau=\sum_{j:\mu_j=1}u_ju_j^{\mathsf{T}}. \tag*{(37)}

It projects onto the maximum-eigenvalue eigenspace of the normalized statistic, not an arbitrary prescribed top-rr space. Finite-strength full rank is therefore the relevant property for the completed experiment.

Local operator properties and learned solution distributions

Positive gains preserve distinctions between inputs to the local linear map. Subsequent attention, nonlinear layers, vocabulary projection, stochastic decoding, and finite-data learning determine whether those distinctions affect output classes. The operator results establish bounded modulation, calibration stability, and relative sensitivity enrichment. The measurements of CkC_k and DbD_b establish how the resulting students distribute their correct outputs.

A separate idealization clarifies why learning from self-generated sequences is not automatically an improvement step. For a fixed prompt xx, consider the completion-only, unnormalized sequence-NLL objective

Lt(θ)=−EY∼pθt(⋅∣x)[log⁡pθ(Y∣x)].(38)L_t(\theta)=-\mathbb{E}_{Y\sim p_{\theta_t}(\cdot\mid x)}\left[\log p_\theta(Y\mid x)\right]. \tag*{(38)}

When the sequence distribution is normalized and differentiation can be interchanged with summation, its gradient at the generating parameters is

∇θLt(θ)∣θ=θt=−∑ypθt(y∣x)∇θlog⁡pθ(y∣x)∣θ=θt=−∇θ∑ypθ(y∣x)∣θ=θt=0.(39)\left.\nabla_\theta L_t(\theta)\right|_{\theta=\theta_t} =-\sum_y p_{\theta_t}(y\mid x)\left.\nabla_\theta\log p_\theta(y\mid x)\right|_{\theta=\theta_t} =-\left.\nabla_\theta\sum_y p_\theta(y\mid x)\right|_{\theta=\theta_t} =0. \tag*{(39)}

This identity assumes exact model-distribution sampling and the complete sequence log likelihood. The recorded learner in Equation (10) includes prompt targets and uses example-wise token averaging; a sequence-dependent length normalization need not preserve the zero-gradient identity. The practical loop also uses a decoding distribution, finite corpora, a fixed optimization schedule, and, for SPECTRUM, reference-calibrated generation. Its improvement and retention trajectories are measured empirically.

Algorithm, information flow, and protocol

A complete round

The following sequence implements a complete round of SPECTRUM, separating the temporary generator from the native learner.

  1. Fix synthesis prompts QQ, reference anchor AA, held-out evaluation tasks, decoding settings, and the initial checkpoint θ0\theta_0 before the loop.

  2. At round tt, calculate reference-completion loss under θt\theta_t, collect selected K/V-output gradients, and form Ct,ℓC_{t,\ell} on the unchanged anchor.

  3. Construct Tt,ℓT_{t,\ell} with the fixed strength τ\tau and temporarily fold the operators into the current checkpoint’s native linear weights.

  4. Sample SS completions for each synthesis prompt. Keep every raw record. No execution outcome, reward, uniqueness judgment, or AST label determines membership or weight in DtD_t.

  5. Restore the original θt\theta_t weights. Fit one LoRA adapter on DtD_t, merge it into the base weights, and save θt+1\theta_{t+1}.

  6. Evaluate θt+1\theta_{t+1} through common native inference, storing all outputs and verification labels. These labels do not affect the next training round. Repeat from step 2 using θt+1\theta_{t+1}.

For Vanilla SD or SSD, the same generate–learn–update loop uses the corresponding standard or decoding-shaped policy, omitting reference calibration and weight folding. The anchor itself is never expanded with newly judged samples. It is reused as supervision at every calibration step, so “fixed” describes the information source rather than an initialization-only operation. In the completed study, there is no paired intervention-on-generator diagnostic at every round; the native endpoints establish retained differences after learning, not the fraction of an immediate generator benefit transferred by SFT.

Data and prompts

The MBPP preparation starts from the full official splits. Exact normalized prompt overlaps with held-out prompts are removed before partitioning the training pool; the recorded excluded training

ComponentRecorded setting
BackboneQwen/Qwen2.5-Coder-1.5B-Instruct; BF16, SDPA
Rounds / records per round5 / 291 × 16 = 4,656
Calibration50 fixed references; completion-only mean NLL; length limit 1,536
GeometryMiddle and last decoder layers; K/V outputs before RoPE; full second moment
SPECTRUM / projection controlτ=1\tau= 1 / rank fraction 0.5
LoRARank 8, alpha 8, dropout 0.05; attention Q/K/V/O projections
SFT1 epoch; learning rate 10−510^{-5}; weight decay 0.01; warm-up ratio 0.03; gradient clipping 1.0
SFT batching / lengthMicrobatch 1, accumulation 16; maximum 1,536 tokens
SFT target maskAll nonpadding causal targets, including prompt targets
Common generationTemperature 0.8, top-pp 0.95, top-kk 0
SSD training generationTemperature 1.5, top-pp 0.8, top-kk 20
MBPP generation limits512 new tokens, 1,024 prompt tokens
Transfer generation limits1,024 new tokens, 4,096 prompt tokens
Native evaluation drawsMBPP every round: 16; final supplement: 64; transfer: 16
Uncertainty2,000 task-bootstrap resamples; one training run

Table 5. Completed training and evaluation settings. The final 64-sample MBPP supplement is a separate sample pool; only 16-sample measurements exist for all historical rounds.

IDs are 602, 704, and 872. The resulting sizes are 291 synthesis, 50 calibration, 30 validation, and 500 evaluation tasks. A Python signature stub is extracted mechanically from the reference AST to specify the interface. Its implementation and evaluation assertions are not placed in the synthesis/evaluation prompt. The calibration partition supplies complete reference solutions.

The fixed MBPP prompt body is:

[task description]
Implement this Python function.  Return only the complete
implementation.
[signature stub]

Brackets identify fields in a template, not missing manuscript results. The same template is used across methods; it does not request multiple strategies or select a strategy. Model-native chat formatting is applied by the tokenizer. Prompt and token provenance are stored in the experiment records.

HumanEval+ follows the recorded EvalPlus task interface and full base-plus tests, using release v0.1.10 with EvalPlus 0.3.1. APPS Intro is a fixed 200-task evaluation subset using the stored function-interface adapter. For stdin/stdout tasks, the prompt requests solve(stdin: str) -> str; the evaluator checks the returned output string against supplied cases using whitespace-token equality. This adapted interface, task subset, and evaluation budget are part of the result and differ from official benchmark leaderboard settings. No HumanEval+ or APPS references recalibrate the frozen MBPP students.

What the student optimizes

Let ss denote the concatenated tokenized prompt and generated completion, and let T(s)\mathcal{T}(s) contain its nonpadding causal targets. The recorded microbatch-one schedule accumulates example-level token-mean losses,

ℓs(θ)=−1∣T(s)∣∑u∈T(s)log⁡pθ(su∣s<u),LSFT=1∣Dt∣∑s∈Dtℓs(θ).(40)\ell_s(\theta) = -\frac{1}{|\mathcal{T}(s)|} \sum_{u \in\mathcal{T}(s)} \log p_\theta(s_u \mid s_{<u}), \qquad\mathcal{L}_{\mathrm{SFT}} = \frac{1}{|\mathcal{D}_t|} \sum_{s \in\mathcal{D}_t} \ell_s(\theta). \tag*{(40)}

Gradient accumulation follows the recorded minibatch schedule. Including prompt targets and averaging each example by its own length are explicit choices, distinct from completion-only calibration and globally token-weighted corpus optimization. Every record receives the same outer example weight; token normalization within each record follows its own length. Correctness and source subspace do not determine training weights. Truncation at the fixed context limit is a sequence-length constraint, not quality filtering. The completed training summaries record zero truncated training examples.

Information budgets and comparators

Vanilla SD and SSD do not use the reference anchor. SPECTRUM and the projection control use the same 50 references at each calibration step. Hence their direct comparison controls access to calibration information, whereas comparing either to Vanilla SD or SSD includes that difference in information use. SSD here adapts the published decoding idea to the small-model MBPP budget; it does not reproduce the original larger-scale results. UA-RL, which uses rewards for rare strategies, is discussed as related work but is not a completed numerical comparator in this archive.

Complete measured results

Longitudinal MBPP results at 16 samples

Table 6 contains all recorded rounds. The initial SSD row is an independently sampled evaluation of the same starting model, retained separately from the original trajectory. Small differences in initialization estimates are sampling/protocol-stream differences, not different learned checkpoints. No 64-sample intermediate-round results are inferred from these rows.

MethodRoundpass@1 (%)C16C_{16}D4D_4Eligible
Initial037.924.0163.310262
Vanilla SD138.423.8083.173261
Vanilla SD239.153.6343.080269
Vanilla SD339.653.3722.895257
Vanilla SD440.793.1902.803270
Vanilla SD541.303.0902.747268
SPECTRUM137.843.8483.222261
SPECTRUM238.363.7683.159259
SPECTRUM339.053.6623.063262
SPECTRUM439.783.5882.991263
SPECTRUM540.183.6062.997263
Projection control137.923.6923.144257
Projection control239.203.5923.059267
Projection control339.403.3142.889256
Projection control441.093.1622.774266
Projection control541.353.0662.690262
SSD initial037.813.9923.311260
SSD137.803.8463.232260
SSD236.813.7103.200250
SSD336.603.7243.196256
SSD437.093.7523.181257
SSD535.963.7103.268255

Table 6. Every completed native-student round on MBPP, 16 draws per task. Full 500-task means for pass@1 and C16C_{16}; marginal D4D_4 means with eligibility. SSD is the separate continuation.

Paired retention trajectories

Final projection comparison and correct-count matching

Sparse D64D_{64} estimates are available on few fully correct tasks but do not form a primary claim: the paired SPECTRUM–Vanilla SD population is only 29 tasks. At the recorded 16-sample round-five endpoint, the SPECTRUM-minus-projection difference in exact-program D4D_4 is 0.312 with interval [0.253, 0.377], and the AST difference is 0.293 [0.233, 0.353]. The coarser control-flow difference is 0.042 [−0.011, 0.095]. All three contrasts use 251 common eligible tasks and distinguish implementation structure from coarser control-flow variation.

Transfer contrasts and the projection control

The projection control’s HumanEval+ scores are pass@1 52.74%, pass@16 84.76%, C16=5.921C_{16}=5.921, and D4=3.473D_4=3.473 on 115 eligible tasks. Its APPS Intro scores are 14.88%, 34.50%, 1.880, and 3.685 on 47 eligible tasks. The SPECTRUM-minus-projection paired D4D_4 effects are 0.039 [−0.021, 0.102] on 109 HumanEval+ tasks and 0.067 [−0.003, 0.142] on 42 APPS tasks. The paired intervals specify the precision of these smaller transfer contrasts.

Generatorpass@1 (%)pass@64 (%)C64C_{64}Retention (%)D4D_4
Subspace projection41.7770.208.38865.52.810
SPECTRUM40.3372.6011.51089.93.143

Table 7. Final 64-sample projection ablation. Same 500 tasks, fixed reference access, and five-round training schedule. Marginal D4D_4 means are descriptive; eligible tasks are 321 and 323.

EndpointPaired difference95% intervalTasks
C64C_{64}3.004[2.568, 3.494]500
D4D_40.295[0.249, 0.343]316
D8D_80.780[0.665, 0.889]296
D16D_{16}1.816[1.582, 2.055]254

Table 8. Paired final MBPP richness contrasts, SPECTRUM minus Vanilla SD. Common eligible tasks are selected separately for each correct-draw budget. Intervals are the archived 95% task-bootstrap intervals.

Table 10: Paired transfer effects of SPECTRUM relative to Vanilla SD. Differences use all tasks for pass@1 and C16C_{16}, and common eligible tasks for D4D_4. Intervals use 2,000 paired task-bootstrap resamples of the saved task records. Students receive no transfer training or recalibration.

BenchmarkEndpointDifference95% intervalTasks
HumanEval+pass@1 (pp)−1.524[−3.088, 0.076]164
HumanEval+C16C_{16}0.152[−0.128, 0.439]164
HumanEval+D4D_40.080[0.021, 0.142]111
APPS Intropass@1 (pp)−1.219[−1.937, −0.530]200
APPS IntroC16C_{16}−0.085[−0.210, 0.055]200
APPS IntroD4D_40.104[0.007, 0.205]42

Table 10.

Cross-model and cross-benchmark baseline context

The completed matrix evaluates Qwen2.5-Coder-1.5B-Instruct, DeepSeek-Coder-6.7B-Instruct (Guo et al., [6]), Gemma-3-4B-IT (Gemma Team et al., [4]), and Qwen3-8B (Yang et al., [23]) on MBPP, HumanEval+, APPS Intro, CodeContests (Li et al., [15]), and LiveCodeBench (Jain et al., [14]). Table 11 gives pass@16; Table 12 reports the archived task-bootstrap intervals. These are initial-model evaluations, independent of the sample pools used for the five-round and frozen-student comparisons. Consequently, even the same initial checkpoint can have different finite-sample estimates across tables.

Table 11: Completed cross-model baseline matrix. Pass@16 (%) for initial models across five coding benchmarks. Each column has a common recorded evaluation setting across models. These rows measure initial-model performance, not trained SPECTRUM students.

ModelMBPPHumanEval+APPS IntroCodeContestsLiveCodeBench
Qwen2.5-Coder-1.5B66.5185.9836.500.6122.00
DeepSeek-Coder-6.7B67.4887.8050.506.0622.50
Gemma-3-4B58.0773.7838.003.0324.00
Qwen3-8B62.3893.2951.005.4540.50

Table 11.

ModelBenchmarkpass@16 (%)95% interval
Qwen2.5-Coder-1.5BMBPP66.51[62.83, 70.31]
HumanEval+85.98[80.49, 90.85]
APPS Intro36.50[30.00, 43.00]
CodeContests0.61[0.00, 2.42]
LiveCodeBench22.00[16.50, 28.00]
DeepSeek-Coder-6.7BMBPP67.48[63.69, 71.39]
HumanEval+87.80[82.91, 92.68]
APPS Intro50.50[44.00, 57.00]
CodeContests6.06[2.42, 9.70]
LiveCodeBench22.50[17.00, 28.50]
Gemma-3-4BMBPP58.07[53.64, 62.21]
HumanEval+73.78[67.06, 79.88]
APPS Intro38.00[31.50, 44.50]
CodeContests3.03[0.61, 6.06]
LiveCodeBench24.00[18.50, 30.00]
Qwen3-8BMBPP62.38[58.31, 66.59]
HumanEval+93.29[89.02, 96.95]
APPS Intro51.00[44.00, 58.00]
CodeContests5.45[2.42, 9.09]
LiveCodeBench40.50[33.50, 47.50]

Table 12. Archived uncertainty for the baseline matrix. Pointwise 95% task-bootstrap intervals for pass@16 on the percentage scale, conditional on the recorded model and sample pool.

All twenty cells completed generation and verification. Task counts are 500, 164, 200, 165, and 200, respectively. MBPP pass@16 is estimated from 64 samples per task; the other benchmarks use 16. HumanEval+ uses official EvalPlus verification; APPS Intro, CodeContests, and LiveCodeBench use the recorded native adapted verifiers. The Gemma–LiveCodeBench run uses eager attention. These protocol choices define the reported benchmark setting.

Actual equal-correct-count examples

The compact archive retains correctness and program fingerprints but removes program text. We therefore show actual class-frequency records rather than reconstructing purported code samples. For each sign of the SPECTRUM-minus-Vanilla SD observed AST-count difference, choose the numerically lowest HumanEval task ID with equal correct counts of at least four. This rule yields HumanEval/3 for a positive example and HumanEval/2 for a negative example (Figure 6). Selection conditions on the sign and is illustrative, not an estimate of prevalence.

Figure 6. The same number of correct outputs can conceal different structures. Actual saved round-five HumanEval+ samples. (a) Both methods pass all 16 draws on HumanEval/3. Vanilla SD has one AST class with count 16; SPECTRUM has counts 15 and 1, giving D^4=1\hat{D}_4 = 1 and 1.25. (b) Both pass 12 of 16 draws on HumanEval/2; Vanilla SD has twelve singleton classes, while SPECTRUM has one doubleton and ten singletons. Their D^4\hat{D}_4 values are 4 and 3.909. Classes are ranked separately within each method, so horizontal position does not assert matching class identity. Both cases follow the stated lowest-ID rule.

These examples instantiate the measurement distinction without supplying semantic algorithm labels. At equal observed nn and mm, every finite-sample pass@k estimator agrees between methods, while the correct-class occupancy can differ in either direction. Equal estimated pass curves are not proof that the underlying true success probabilities are identical.

Resources and realized sample lengths

All methods use the same 23,280 generated training records over five rounds. Table 13 records their realized lengths. SPECTRUM generates 9.9% more completion tokens than Vanilla SD; equal record count is therefore not equal token count or FLOPs. Matching the number of correct evaluation samples does not control training length or compute. It answers a distributional question about the saved students.

Table 13: Training-generation resources across five rounds. Counts are summed from saved round budgets; mean length is generated tokens divided by records. Length-capped records remain in training. SFT token counts include prompt targets under the recorded loss mask.

MethodRecordsGenerated tokensMean lengthCappedSFT tokens
Vanilla SD23,2804,859,928208.766176,373,288
SSD23,2805,812,400249.671,4987,325,760
SPECTRUM23,2805,342,368229.488336,855,728
Projection control23,2804,727,089203.056196,240,449

Table 13.

For a selected module of output dimension dd and MM gradient positions, dense second-moment accumulation costs O(Md2)O(Md^2) and eigendecomposition costs O(d3)O(d^3), excluding the reference forward/backward passes. Dense folding of a d×pd \times p weight costs O(d2p)O(d^2p). These operations are performed during calibration/construction, not at each generation token. The final student has the original dense architecture. Archived runtime records cover different hardware and stages; we make no matched wall-clock or GPU-memory efficiency claim from their combination.

One-round self-distillation study

This experiment uses Qwen2.5-Coder-1.5B-Instruct with 128 synthesis tasks, one generated completion per task, one generate–learn cycle, and five SFT epochs. Evaluation uses 64 held-out MBPP tasks and 64 samples per task. Five SFT epochs within a cycle are not five self-distillation rounds. Its task counts and training schedule differ from the main five-round study, so the two experiments are reported separately.

Code extraction and verification. For each saved completion, we extract the first Python, py, or untagged fenced code block and execute it against the task tests. Surrounding explanatory text is ignored. We re-evaluate all four generation designs with this same extraction rule.

Table 14: Complete one-round comparison. One generate–learn cycle, 64 MBPP tasks, 64 samples each. Values are archived rounded summaries; bold marks the largest estimate at shown precision. AST and exact-program statistics are structural proxies.

Metric ↑Vanilla SDSSDProjectionSPECTRUM
Correct samples / 4,0961,5081,5111,5101,501
pass@1 (%)36.8236.8936.8736.65
pass@8 (%)56.4956.7955.7856.18
pass@32 (%)61.6161.6660.8463.11
pass@64 (%)62.5062.5060.9465.63
Solved tasks / 6440403942
Exact-program unique fraction0.8020.7970.7960.814
AST unique fraction0.6220.6220.6160.649
AST Simpson diversity0.8640.8630.8690.872
Correct-count-matched AST D4D_43.3933.3913.4093.422

Table 14.

Figure 7. Complementary evidence from the one-round study. (a) Pass@kk at recorded sampling budgets; (b) correct-count-matched AST D4D_4. All four generation designs are included. Marks use archived rounded point estimates from 64 tasks and 64 samples per task; marginal error bars are unavailable. Table 15 gives the recorded paired uncertainty. This protocol is separate from the five-round study.

EndpointDifference95% interval
Correct-count-matched AST D4D_4+0.0312[0.0095, 0.0550]
Exact-program unique fraction+0.0083[0.0009, 0.0171]
AST Simpson diversity+0.0094[0.0034, 0.0162]
pass@1 (pp)−0.244[−0.854, 0.342]
pass@64 (pp)+3.125[0, 7.813]

Table 15. Paired one-round effects relative to SSD. SPECTRUM minus SSD, with pointwise task-bootstrap intervals for the evaluated checkpoints.

The one-round study combines higher high-budget success and matched-correct richness than SSD with slightly lower single-draw correctness. The full five-round experiment subsequently measures a different operating point: SPECTRUM has higher correctness than SSD, while SSD has higher C16C_{16} and marginal D4D_4. Different synthesis budgets, task sets, and optimization schedules preclude attributing this difference solely to loop length.

Relation to adjacent self-distillation settings

Sequence-level and token-feedback distillation. Our learner uses sampled sequences as cross-entropy targets. Demonstration-conditioned on-policy distillation instead supplies dense teacher feedback conditioned on privileged context. SPECTRUM shapes generation through fixed reference calibration, then trains one native student on its raw corpus. Looped Self-Distillation names the outer generate–learn–update process.

Iterative self-improvement. Iterative context/rationale learning, code-data synthesis, and teacher refresh have been studied with different feedback mechanisms ([19, 26, 20]). Our study combines a fixed-information protocol, a continuous spectral generation intervention, and longitudinal measurements of conditional correct-implementation richness. Demonstration-conditioned diversity analyses ([17]) address a different teacher-feedback construction; the present results measure contraction and retention through repeated learning from unselected raw corpora.

References

  1. [1]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and Charles Sutton. Program synthesis with large language models, 2021. URL https://arxiv.org/abs/2108.07732. arXiv preprint.
  2. [2]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Mikhail Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Philippe Tillet, Felipe Petroski Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William Hebgen Guss, Alex Nichol, Alex Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Shantanu Jain, William Saunders, Christopher Hesse, Andrew N. Carr, Jan Leike, Josh Achiam, Vedant Misra, Evan Morikawa, Alec Radford, Matthew Knight, Miles Brundage, Mira Murati, Katie Mayer, Peter Welinder, Bob McGrew, Dario Amodei, Sam McCandlish, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code, 2021. URL https://arxiv.org/abs/2107.03374. arXiv preprint.
  3. [3]Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. In International Conference on Learning Representations, 2019. URL https://arxiv.org/abs/1807.03819.
  4. [4]Gemma Team, Aishwarya Kamath, Johan Ferret, Shreya Pathak, Nino Vieillard, Ramona Merhej, Sarah Perrin, Tatiana Matejovicova, et al. Gemma 3 technical report, 2025. URL https://arxiv.org/abs/2503.19786.
  5. [5]Matthias Gerstgrasser, Rylan Schaeffer, Apratim Dey, Rafael Rafailov, Henry Sleight, John Hughes, Tomasz Korbak, Rajashree Agrawal, Dhruv Pai, Andrey Gromov, Daniel A. Roberts, Diyi Yang, David L. Donoho, and Sammi Koyejo. Is model collapse inevitable? breaking the curse of recursion by accumulating real and synthetic data, 2024. URL https://arxiv.org/abs/2404.01413. arXiv preprint.
  6. [6]Daya Guo, Qihang Zhu, Dejian Yang, Zhenda Xie, Kai Dong, Wentao Zhang, Guanting Chen, Xiao Bi, Y. Wu, Y. K. Li, Fuli Luo, Yingfei Xiong, and Wenfeng Liang. DeepSeek-Coder: When the large language model meets programming—the rise of code intelligence, 2024. URL https://arxiv.org/abs/2401.14196.
  7. [7]Guangya Hao, Yitong Shang, Yunbo Long, Zhuokai Zhao, and Hanxue Liang. Self-policy distillation via capability-selective subspace projection, 2026. URL https://arxiv.org/abs/2605.22675. arXiv preprint.
  8. [8]Yinghui He, Simran Kaur, Adithya Bhaskar, Yongjin Yang, Jiarui Liu, Narutatsu Ri, Liam Fowl, Abhishek Panigrahi, Danqi Chen, and Sanjeev Arora. Self-distillation zero: Self-revision turns binary rewards into dense supervision, 2026. URL https://arxiv.org/abs/2604.12002.
  9. [9]Dan Hendrycks, Steven Basart, Saurav Kadavath, Mantas Mazeika, Akul Arora, Ethan Guo, Collin Burns, Samir Puranik, Horace He, Dawn Song, and Jacob Steinhardt. Measuring coding challenge competence with APPS, 2021. URL https://arxiv.org/abs/2105.09938.
  10. [10]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9.arxiv.org/abs/2106.09685
  11. [11]Zhiyuan Hu, Yucheng Wang, Yufei He, Jiaying Wu, Yilun Zhao, See-Kiong Ng, Cynthia Breazeal, Anh Tuan Luu, Hae Won Park, and Bryan Hooi. Rewarding the rare: Uniqueness-aware RL for creative problem solving in LLMs. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 39765–39790, San Diego, California, United States, July 2026. Association for Computational Linguistics. doi: 10.18653/v1/2026.findings-acl.1982. URL https://aclanthology.org/2026.findings-acl.1982/.DOI
  12. [12]Binyuan Hui, Jian Yang, Zeyu Cui, Jiaxi Yang, Dayiheng Liu, Lei Zhang, Tianyu Liu, Jiajun Zhang, Bowen Yu, Keming Lu, Kai Dang, Yang Fan, Yichang Zhang, An Yang, Rui Men, Fei Huang, Bo Zheng, Yibo Miao, Shanghaoran Quan, Yunlong Feng, Xingzhang Ren, Xuancheng Ren, Jingren Zhou, and Junyang Lin. Qwen2.5-Coder technical report, 2024. URL https://arxiv.org/abs/2409.12186. arXiv preprint.
  13. [13]Stuart H. Hurlbert. The nonconcept of species diversity: A critique and alternative parameters. Ecology, 52(4):577–586, 1971. doi: 10.2307/1934145. URL https://esajournals.onlinelibrary.wiley.com/doi/10.2307/1934145.DOI
  14. [14]Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. LiveCodeBench: Holistic and contamination free evaluation of large language models for code, 2024. URL https://arxiv.org/abs/2403.07974.
  15. [15]Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, Agustin Dal Lago, Thomas Hubert, Peter Choy, Cyprien de Masson d’Autume, Igor Babuschkin, Xinyun Chen, Po-Sen Huang, Johannes Welbl, Sven Gowal, Alexey Chepernov, James Molloy, Daniel J. Mankowitz, Esme Sutherland Robson, Pushmeet Kohli, Nando de Freitas, Koray Kavukcuoglu, and Oriol Vinyals. Competition-level code generation with AlphaCode, 2022. URL https://arxiv.org/abs/2203.07814.
  16. [16]Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. Is your code generated by ChatGPT really correct? rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/43e9d647ccd3e4b7b5baab53f0368686-Abstract-Conference.html.arxiv.org/abs/2305.01210
  17. [17]Andrei Liviu Nicolicioiu, Mohammad Pezeshki, and Aaron Courville. On-policy self-distillation with sampled demonstrations reduces output diversity, 2026. URL https://arxiv.org/abs/2606.26091v1.
  18. [18]Neal Parikh and Stephen Boyd. Proximal algorithms. Foundations and Trends in Optimization, 1(3), 2014. doi: 10.1561/2400000003. URL https://web.stanford.edu/~boyd/papers/prox_alg.html.DOI
  19. [19]Kavel Rao, Liwei Jiang, Valentina Pyatkin, Yuling Gu, Niket Tandon, Nouha Dziri, Faeze Brahman, and Yejin Choi. What makes it ok to set a fire? iterative self-distillation of contexts and rationales for disambiguating defeasible social and moral situations. In Findings of the Association for Computational Linguistics: EMNLP 2023, 2023. doi: 10.18653/v1/2023.findings-emnlp.812. URL https://aclanthology.org/2023.findings-emnlp.812/.DOI
  20. [20]Hejian Sang, Yuanda Xu, Zhengze Zhou, Ran He, Zhipeng Wang, and Jiachen Sun. CRISP: Compressed reasoning via iterative self-policy distillation, 2026. URL https://arxiv.org/abs/2603.05433v7.
  21. [21]Ilia Shumailov, Zakhar Shumaylov, Yiren Zhao, Nicolas Papernot, Ross Anderson, and Yarin Gal. AI models collapse when trained on recursively generated data. Nature, 631:755–759, 2024. doi: 10.1038/s41586-024-07566-y. URL https://www.nature.com/articles/s41586-024-07566-y.DOI
  22. [22]Avi Singh, John D. Co-Reyes, Rishabh Agarwal, Ankesh Anand, Piyush Patil, Xavier Garcia, Peter J. Liu, James Harrison, Jaehoon Lee, Kelvin Xu, Aaron Parisi, Abhishek Kumar, Alex Alemi, Alex Rizkowsky, Azade Nova, Ben Adlam, Bernd Bohnet, Gamaleldin Elsayed, Hanie Sedghi, Igor Mordatch, Isabelle Simpson, Izzeddin Gur, Jasper Snoek, Jeffrey Pennington, Jiri Hron, Kathleen Kenealy, Kevin Swersky, Kshiteej Mahajan, Laura Culp, Lechao Xiao, Maxwell L. Bileschi, Noah Constant, Roman Novak, Rosanne Liu, Tris Warkentin, Yundi Qian, Yamini Bansal, Ethan Dyer, Behnam Neyshabur, Jascha Sohl-Dickstein, and Noah Fiedel. Beyond human data: Scaling self-training for problem-solving with language models. Transactions on Machine Learning Research, 2024. URL https://arxiv.org/abs/2312.06585.
  23. [23]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Cheng’en Huang, Chenxu Lv, Chujie Zheng, Daiyiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang, Le Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui Men, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, T ianyi Tang, Wenbiao Yin, Xingzhang Ren, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger Zhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan Qiu. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
  24. [24]Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah D. Goodman. STaR: Bootstrapping reasoning with reasoning, 2022. URL https://arxiv.org/abs/2203.14465.
  25. [25]Ruixiang Zhang, Richard He Bai, Huangjie Zheng, Navdeep Jaitly, Ronan Collobert, and Yizhe Zhang. Embarrassingly simple self-distillation improves code generation, 2026. URL https://arxiv.org/abs/2604.01193. arXiv preprint.
  26. [26]Xinyu Zhang, Changzhi Zhou, Linmei Hu, Luhao Zhang, Xiancai Chen, Haomin Fu, Yang Yang, and Mengdi Zhang. SCoder: Progressive self-distillation for bootstrapping small-scale data synthesizers to empower code LLMs. In Findings of the Association for Computational Linguistics: EMNLP 2025, pp. 20825–20841, 2025. doi: 10.18653/v1/2025.findings-emnlp.1136. URL https://aclanthology.org/2025.findings-emnlp.1136/.DOI

Paper details

vlnc:W_rjbzf44w
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents