Organizations: University of California, Santa Barbara · Carnegie Mellon University · University of California, Santa Cruz · Northwestern University · NVIDIA · University of Illinois Urbana-Champaign · Independent Researcher · University of California, Los Angeles · SemiAnalysis · SGLang-Omni · University of Michigan · Princeton University · LMSYS Org · Mind Lab · Columbia University · Apple
RL post-training typically produces domain experts that must then be consolidated into one model, and as new experts keep arriving, this consolidation becomes a continual process. Weight merging and multi-teacher on-policy distillation (MOPD) must re-consolidate the whole model whenever an expert is added, and can erode capabilities outside the target domains. We propose Composable Soft-Prompt Distillation (CSPD), which keeps the pre-RL model frozen, distills each RL expert independently into a soft prompt, and composes experts by concatenating their prompts without joint training. A single soft prompt suffices to distill an RL expert, recovering at least 90% of the teacher's gain in 22 of 23 math, code, and agent settings. Independently trained prompts compose well. In a multi-expert setting, the average rises with every expert added, and the full composition matches MOPD (67.83 vs. 67.79). The composition generalizes best across six held-out benchmarks. Input-space adaptation adds little serving overhead, keeping throughput within 1.5% of the unadapted backbone and reaching 2.40x that of rank-4 LoRA. These results point toward continual post-training on a fixed backbone.
Figures & tables
Figure 2: Overview of composable soft-prompt distillation. Each RL expert is distilled into a separate prompt on the frozen pre-RL student (a). The resulting prompts form a library (b). Selected prompts are concatenated at inference (c), and requests with different prompts can share a batch on the same student (d).
Pre-RL checkpoint
RL expert
Reference
Student
Teacher
Student+SP
Recovery (%)
(a) Math
MiMo-7B-SFT
MiMo-7B-RL
Xiaomi LLM-Core et al.,2025
63.77
73.18
72.25
90.15
GPT-OSS-Swallow-20B-SFT
GPT-OSS-Swallow-20B-RL
Swallow LLM,2026a
76.53
90.21
89.67
96.06
Qwen3-Swallow-8B-SFT
Qwen3-Swallow-8B-RL
Swallow LLM,2026b
63.68
83.01
82.28
96.22
OLMo-3-7B-Instruct-DPO
OLMo-3-7B-Instruct
Team OLMo et al.,2026
42.97
60.72
60.13
96.70
Nemotron-Cascade-8B-SFT
Nemotron-Cascade-8B-MathRL
Wang et al.,2026a
85.25
89.34
89.30
99.18
Table 1: Distilling individual RL experts into soft prompts in math, code, and agent tasks. Student+SP is the best evaluated prompted-student score, and recovery follows Equation ( 3 ). All values are percentages, and rows within each block are ordered by increasing recovery. Math: unmarked rows use AIME24/25 + MATH500; a AIME24 + AMC + MATH + Olympiad; b AIME24/25 + HMMT25; c AIME25/26 + MATH500. Code: unmarked rows use LiveCodeBench v5/v6, and MiMo uses AReaL training data; d Oct24–Feb25; e test6 (1,055 questions); f v3. Agent: SWE-bench Verified uses 500 tasks, with avg@4 for Nemotron, DeepSWE, and Lego. Terminal-Bench 2.1 uses 89 tasks, avg@3. † The prompted student receives the teacher’s predicted bug locations (Appendix B.1 ).
Method
AIME24
LCB v5
GPQA-D
IFBench
Avg.
Recovery (%)
Student (no prompt)
55.94
58.61
44.38
42.71
50.41
0.0
Individual domain experts (oracle routing)
81.77
66.92
50.44
67.33
66.61
100.0
Full model
Expert merge (TA, λ=1.0 )
78.85
64.52
54.14
71.58
67.27
104.1
Expert merge (TIES)
81.25
65.42
57.07
66.12
67.47
105.2
MOPD
83.28
66.24
55.21
66.42
67.79
107.2
Table 2: Single-domain and composition results. Full model, LoRA, and SP denote the adaptation representation. Scores and recovery are percentages. All rows use avg@ K with K=64/8/16/8 for AIME24/LCB/GPQA/IFBench.
Figure 3: Capability expansion and module interactions. (a) Independently trained prompts are prepended in arrival order I, S, C, M, starting from the unprompted student. The dashed line marks the average of the individual experts. Curves show each domain and the overall average. (b) Score change on each benchmark (columns) after removing one prompt (rows) from MCSI, preserving the remaining order. Negative values mean the removed prompt was helping. Both panels use the four prompts of Table 2 .
Figure 4: Independent SP training, progressive SP training, and expert TIES merging by domain and overall. Experts arrive as I, S, C, M, and each new SP is prepended. All curves start at the unprompted student. The two SP strategies share the initial I prompt. TIES merges the same domain subset at each stage (the first stage uses the IF expert).
Method
XSTest
TruthfulQA
BFCL
TriviaQA
BBEH
FinQA
Mean
Student (no prompt)
80.4
64.6
47.6
31.5
11.1
66.3
50.3
Full model
Expert merge (TIES)
82.4 (+2.0)
63.7 (−0.9)
48.5 (+0.9)
33.6 (+2.1)
25.6 (+14.5)
70.9 (+4.6)
54.1 (+3.9)
MOPD
84.2 (+3.8)
61.0 (−3.6)
49.4 (+1.8)
31.9 (+0.4)
23.9 (+12.8)
70.8 (+4.5)
53.5 (+3.3)
LoRA
LoRA distill + TA ( λ=0.5 )
85.1 (+4.7)
63.8 (−0.8)
47.5 (−0.1)
32.7 (+1.2)
23.0 (+11.9)
70.9 (+4.6)
53.8 (+3.6)
Table 3: Out-of-domain scores (%). CSPD uses the MCSI composition from Table 2 . The mean weights each benchmark equally and is computed from the displayed scores. Bold marks each column maximum. Parentheses give changes from the student.
Figure 5: Request-specific adapter serving on one B200. Higher throughput (left) and lower P95 time to first token (right) are better. At 32 concurrent requests, the arrows show the SP-to-LoRA throughput ratio and the LoRA-to-SP latency ratio. The lower panels show SP’s percentage change relative to the unadapted backbone, with zero indicating equal performance.
Figure 6: What the GPT-OSS math soft prompt does. (a) Share of the teacher–student KL gap closed by the soft prompt, written instructions, and high reasoning effort. (b) Tokens that appear most often among the 2,000 positions where the soft prompt raises (blue) or lowers (red) the probability of the trace token the most. ␣ marks a leading space. (c) Share of the soft prompt’s improvement kept when only some tokens may attend to it. Details in Appendix G .
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 7: GPT-OSS math recovery during training with an earlier, untuned AdamW configuration. All 13 evaluated checkpoints are shown without smoothing, each on 560 questions and 3,920 outputs. The dashed and dotted lines mark the teacher (90.63%) and the student (77.50%), and the vertical line marks the end of the first epoch at update 113.
Figure 8: GPT-OSS math recovery for five prompt lengths, trained on a smaller set than Figure 7 . Each point is the best recovery over checkpoints, and the 256-vector default is enlarged.
Adapter
Training set
Correct
Incorrect
Correct (%)
Params
Best update
Recovery (%)
SP (256)
Correct-only
28,946
0
100.0
737,280
140
96.06
SP (256)
Mixed
19,973
8,973
69.0
737,280
100
90.54
LoRA (K/V, r=5 )
Correct-only
28,946
0
100.0
814,080
—
95.72
Appendix
Table 4: GPT-OSS math distillation with different supervision. Both training sets contain 28,946 responses. Recovery is the best over checkpoints.
Configuration
AIME24
LCB v5
GPQA-D
IFBench
Avg.
Recovery (%)
CSPD (AdamW, ISCM) w/o prefix-robust training
76.98
64.15
51.89
65.00
64.50
87.0
CSPD (AdamW, ISCM)
79.74
65.94
55.78
64.96
66.60
99.9
CSPD (Muon, ISCM)
79.90
65.72
57.92
67.33
67.72
106.8
CSPD (Muon, MCSI)
80.47
64.67
57.77
68.42
67.83
107.5
Appendix
Table 5: Composition ablations in the multi-expert setting. Scores and recovery are percentages. M/C/S/I denote math, code, science, and instruction following.
Figure 9: Continual addition with experts arriving in the order I, S, C, M. (a) Each new prompt is placed before the existing ones, as in Figure 3 a, ending in MCSI. (b) Each new prompt is placed after the existing ones, ending in ISCM. The dashed line marks the average of the individual experts.
Figure 10: Score change on each benchmark (columns) after removing one prompt (rows), preserving the order of the remaining prompts. (a) MCSI, as in Figure 3 b. (b) ISCM. Negative values mean the removed prompt was helping. Both panels share the color scale.
Model
Merge
AIME24
LCB v5
GPQA-D
IFBench
Avg.
Recovery (%)
Full model
TA λ=0.25
73.28
60.78
53.06
50.25
59.34
55.1
TA λ=0.5
81.04
64.15
55.84
62.00
65.76
94.7
TA λ=1.0
78.85
64.52
54.14
71.58
67.27
104.1
TIES
81.25
65.42
57.07
66.12
67.47
105.2
LoRA
TA λ=0.25
76.25
63.25
52.02
52.21
60.93
64.9
TA λ=0.5
80.21
63.10
56.22
62.46
65.50
93.1
Appendix
Table 6: TA coefficient sweep and TIES results for the full-model and LoRA baselines. Scores and recovery are percentages. Bold marks the selected TA coefficient.
Figure 11: Effect of the GPT-OSS math soft prompt on the student’s next-token distribution. (a) Share of the student–teacher KL gap closed, G (Eq. 5 ), for the soft prompt’s initialization, update 40, and update 180 on teacher traces, and for update 180 on student and prompted-student traces. (b) Mean probability of three tokens in the reasoning channel, divided by the teacher’s. (c) Tokens that appear most often among the 2,000 positions where the soft prompt raises (blue) or lowers (red) the probability of the trace token the most. ␣ marks a leading space.
Figure 12: Instruction and attention analyses of the GPT-OSS math soft prompt. (a) Share of the student–teacher KL gap closed, G (Eq. 5 ), on 200 teacher traces for the soft prompt, two checking instructions, a neutral instruction, and high reasoning effort. (b) Share of the soft prompt’s improvement kept, K (Eq. 6 ), under attention masks on 60 traces. Response only lets only response tokens see the soft prompt, input only lets only input tokens see it, and blocked allows neither. Neither panel reports task scores.
Language model distillation transfers a larger model’s capabilities to smaller or specialized models using outputs, probabilities, or internal representations.