WorksComputer Science
Composable Soft-Prompt Distillation of RL Experts: Toward Continual Post-Training
Abstract
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.

Figure 1. MOPD consolidates domain experts into the weights of a trained student. CSPD instead distills each expert into a separate soft prompt on the frozen student, and prompts are added, removed, and concatenated at inference. As experts are added one at a time, the in-domain mean of CSPD rises with every addition and ends on par with MOPD, while its out-of-domain mean is the highest.
Introduction
Reinforcement learning (RL) post-training is typically carried out one domain at a time, since each domain comes with its own data, verifier, and environment. A common recipe is therefore to train domain experts separately from a shared base model and then consolidate them into a single model [62, 39]. Because new domains and stronger experts keep arriving, this consolidation is not a one-time step but a continual process. Ideally, each new expert would be absorbed like an installed module, such that (i) the model gains what the expert learned in its domain, (ii) everything the model could already do, in the other experts’ domains and in general, is left intact, and (iii) the cost of the update depends only on the new expert, not on how many experts came before.
Existing approaches fall into two groups. The first consolidates all experts into a single set of weights. Joint multi-task RL must rerun RL on every domain whenever one is added. Sequential RL [61] trains only on the new domain, but earlier gains are susceptible to irreversible damage from later stages. Weight merging [22, 68] combines experts by parameter arithmetic, where their updates can interfere. Multi-teacher on-policy distillation (MOPD) [62, 39] must retrain the student against all teachers. All four also apply one fixed mixture to every request and overwrite the base weights, which can degrade performance outside the target domains [63]. The second group keeps experts separate and selects them per request. Expert routing depends on a router that is hard to train and must be updated whenever an expert is added, cannot combine experts within a request, and must host a full model per expert. Merging LoRA experts per request [20, 48] avoids these issues but adds adapter computation to every layer at every decoding step.
Both groups keep experts in model parameters. We instead make each expert part of the model’s input, and propose Composable Soft-Prompt Distillation (CSPD) (Figure 2). During training, CSPD keeps the pre-RL model frozen and distills each post-RL expert into its own soft prompt [31] of 256 vectors, using only that expert’s verifier-filtered responses [28]. Each soft prompt is trained independently. To prepare the prompts for later combination, half of the training examples place a random context prefix before the prompt, so that it works regardless of what precedes it. At inference, the prompts are composed directly by concatenating them in the system message, without any joint training. Adding an expert therefore requires training only its prompt, removing an expert requires only dropping its prompt, and the backbone is never modified. Unlike merged or routed LoRA experts, the prompts are plug-in modules, with no merging coefficient or router to refit when the set of experts changes.

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).
Merging experts in input space proves surprisingly effective. A single soft prompt suffices to distill an RL expert. Across 23 math, code, and agent settings, it recovers at least 90% of the teacher’s improvement over the pre-RL model in 22 of them, and matches or exceeds the teacher in 15. Independently trained prompts exhibit strong composability. In a multi-expert setting [62], we distill soft prompts from experts in instruction following, science, code, and math, and add them to the frozen student one at a time, as in continual post-training. The four-domain average rises with every addition, from 50.41 to 67.83, and the full composition matches MOPD (67.79) without any joint training. The composition generalizes best beyond the training domains. Among the compared methods, it attains the highest mean score across six held-out benchmarks (56.6, versus 53.5 for MOPD). A soft prompt learns behavior rather than words. On a GPT-OSS math expert, the prompt closes 86.8% of the teacher–student KL gap, mainly by making the student check its intermediate results, while written instructions with the same intent close at most 2.1% (§ 4).
Input-space adaptation adds little serving overhead. Each prompt only lengthens the context on a shared backbone, so requests with different prompts can be served efficiently in the same batch. On a single B200, soft-prompt throughput stays within 1.5% of the unadapted backbone across seven concurrency levels. With 32 requests in flight, each using a distinct adapter, soft prompts deliver 2.40× the output throughput of rank-4 LoRA. These results suggest a path toward continual post-training on a fixed backbone.
Composable Soft-Prompt Distillation
In this section, we introduce Composable Soft-Prompt Distillation (CSPD), which distills the capabilities of post-RL experts into independently trained soft prompts on a shared frozen backbone. Figure 2 illustrates the workflow.
Distilling an RL Expert into a Soft Prompt
Let be the pre-RL model and an expert post-trained from it, with domain questions and a verifier. We distill the expert into a soft prompt , a sequence of vectors in the backbone’s -dimensional embedding space. The template inserts into the system message, before the question (see Appendix § 9 for details). We use sequence-level distillation ([28]). We sample teacher responses to questions in , keep those that pass the verifier, and train only on the resulting dataset with a length-normalized negative log-likelihood over response tokens:
The backbone stays frozen, and each prompt is trained using only its own teacher and data.
Composing Soft Prompts
To combine soft-prompt experts , we directly concatenate their soft tokens into and insert it into the same template:
No joint training is involved. In continual post-training, experts arrive over time. When a new expert arrives, we distill its prompt as above and add it to the existing ones, leaving the earlier prompts and the backbone unchanged. Removing an expert amounts to dropping its prompt.
Prefix-robust training for composition. A prompt is trained alone but follows other prompts at inference. To prepare it for this, we use prefix-robust training, which places a 128–256-token prefix, sampled from other questions in the same domain, before the soft prompt in half of the training examples. The prefix is excluded from the loss and is not used at inference. This makes composition more robust (Appendix § 11).
Experiments
We first evaluate whether a soft prompt can recover a single RL expert (§ 3.2). We then evaluate the composition of independently distilled prompts in-domain (§ 3.3) and in a continual post-training setting (§ 3.4), and evaluate out-of-domain generalization (§ 3.5). Finally, we measure the cost of serving a distinct prompt per request (§ 3.6).
Evaluation Metrics
We report absolute task scores and the fraction of the RL teacher’s performance gain recovered by the prompted student. Let , , and denote the student, teacher, and prompted-student scores, each either a single-task score or an average over multiple tasks. For , recovery is
A recovery of 100% indicates that the prompted student matches the teacher’s gain over the backbone. We report absolute scores alongside recovery because small teacher gains can produce large recovery ratios.
Distilling Individual RL Experts
Before composing experts, we first test whether a single soft prompt can recover an individual RL expert, using public pre-RL/post-RL model pairs in math, code, and agent tasks. For each pair, we distill the RL teacher into a 256-vector prompt on its frozen pre-RL checkpoint and compare the prompted student (Student+SP) with both (Table 1). The table also gives model links and references, and evaluation details are in Appendices § 10.§ 3 and § 10.§ 1.
| Pre-RL checkpoint | RL expert | Reference | Student | Teacher | Student+SP | Recovery (%) |
| MiMo-7B-SFT | MiMo-7B-RL | Xiaomi LLM-Core et al., [67] | 63.77 | 73.18 | 72.25 | 90.15 |
| GPT-OSS-Swallow-20B-SFT | GPT-OSS-Swallow-20B-RL | Swallow LLM, [57] | 76.53 | 90.21 | 89.67 | 96.06 |
| Qwen3-Swallow-8B-SFT | Qwen3-Swallow-8B-RL | Swallow LLM, [58] | 63.68 | 83.01 | 82.28 | 96.22 |
| OLMo-3-7B-Instruct-DPO | OLMo-3-7B-Instruct | Team OLMo et al., [59] | 42.97 | 60.72 | 60.13 | 96.70 |
| Nemotron-Cascade-8B-SFT | Nemotron-Cascade-8B-MathRL | Wang et al., [61] | 85.25 | 89.34 | 89.30 | 99.18 |
| Qwen3-Swallow-30B-A3B-SFT | Qwen3-Swallow-30B-A3B-RL | Swallow LLM, [58] | 72.91 | 86.25 | 86.23 | 99.79 |
| Eurus-2-7B-SFT | Eurus-2-7B-PRIMEa | Cui et al., [11] | 36.06 | 49.63 | 49.91 | 102.07 |
| INTELLECT-MATH-SFT | INTELLECT-MATHa | Prime Intellect, [49] | 45.47 | 54.11 | 54.62 | 105.89 |
| Poro-2-8B-Long-Math-SFT | Poro-2-8B-Long-Math-RLc | Hakala et al., [17] | 68.34 | 72.43 | 73.88 | 135.47 |
| Klear-Reasoner-8B-SFT | Klear-Reasoner-8Bb | Su et al., [56] | 62.15 | 65.00 | 66.11 | 139.02 |
| MiMo-7B-SFT | MiMo-7B-RL | Xiaomi LLM-Core et al., [67] | 50.17 | 52.87 | 52.55 | 88.08 |
| Nemotron-Cascade-8B-SFT | Nemotron-Cascade-8B-CodeRL | Wang et al., [61] | 55.73 | 69.39 | 69.56 | 101.21 |
| Klear-Reasoner-8B-SFT | Klear-Reasoner-8B | Su et al., [56] | 53.44 | 57.27 | 57.34 | 101.83 |
| Qwen3-14B | AReaL-boba-2-14B-Opend | Fu et al., [15] | 64.86 | 68.06 | 68.14 | 102.38 |
| Mellum2-12B-A2.5B-SFT | Mellum2-12B-A2.5B-Instructe | Kojic et al., [29] | 36.30 | 39.05 | 39.34 | 110.34 |
| Qwen3-8B | AReaL-boba-2-8B-Opend | Fu et al., [15] | 58.54 | 62.20 | 62.96 | 120.83 |
| OLMo-3-7B-Instruct-DPO | OLMo-3-7B-Instructf | Team OLMo et al., [59] | 28.50 | 34.10 | 36.54 | 143.44 |
| Nemotron-Cascade-8B-SFT | Nemotron-Cascade-8B | Wang et al., [61] | 23.60 | 34.60 | 33.75† | 92.27† |
| Qwen3-32B | DeepSWE-Preview | Luo et al., [38] | 24.90 | 44.05 | 45.65 | 108.36 |
| Qwen3.5-32B-A3B | Lego-RL-35B-A3B | Du et al., [13] | 64.00 | 70.40 | 72.25 | 128.91 |
| SWE-Gym-OpenHands-7B | SkyRL-Agent-7b-v0 | Cao et al., [7] | 11.40 | 12.80 | 13.60 | 157.14 |
| Qwen3.5-9B | TMax-9B | Ivison et al., [23] | 20.22 | 28.09 | 29.96 | 123.81 |
| Qwen3.6-27B | TMax-27B | Ivison et al., [23] | 43.45 | 46.07 | 48.69 | 200.00 |
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; aAIME24 + AMC + MATH + Olympiad; bAIME24/25 + HMMT25; cAIME25/26 + MATH500. Code: unmarked rows use LiveCodeBench v5/v6, and MiMo uses AReaL training data; dOct24–Feb25; etest6 (1,055 questions); fv3. 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 § 10.§ 1).
The 23 settings are deliberately diverse. They span math reasoning, code generation on LiveCodeBench, and multi-step agent tasks on SWE-bench Verified and Terminal-Bench 2.1. The models range from 7B to 35B parameters and include both dense and mixture-of-experts architectures from many model families, and their teachers were trained with different RL recipes and data. Across this range, the prompt recovers at least 90% of the teacher’s gain in 22 settings, and the prompted student matches or exceeds the teacher in 15 (Table 1). The trend holds for multi-step agent tasks as well, where the prompted student exceeds the teacher in five of six settings. For example, DeepSWE’s student improves from 24.90% to 45.65% on SWE-bench Verified, compared with 44.05% for its teacher. The lowest recovery, 88.08%, is for MiMo-7B on code. Its RL training data are not publicly available, so we distill on AReaL code questions instead. This suggests that GSPD remains effective without the expert’s original training data, although with some loss in recovery. Shorter prompts also recover much of the gain. On GPT-OSS math, 32 vectors reach 90.0% recovery, below the 93.1% of 256 vectors in the same sweep. Verifier filtering is also not strictly required. Training on responses of which only 69% are correct still recovers 90.5%, compared with 96.1% for correct-only responses (Appendix § 10.§ 2).
We next ask whether such prompts, trained independently for different domains, can be combined.
Composing Experts from Different Domains
We now further test whether soft prompts distilled independently from experts in different domains can be composed to combine their capabilities.
Experimental setting. We follow M2RL [62], which first applies supervised fine-tuning to Qwen3-4B-Base [69] and then trains a separate RL expert from this SFT model in each domain. We directly use their SFT model, M2RL-SFT, as the frozen student and their RL experts in four domains, math, code, science, and instruction following, as teachers. We do not retrain the SFT model or the RL experts, and we distill each soft prompt on the training data of the corresponding RL expert. These domains are evaluated on AIME24 [41], LiveCodeBench v5 [24], GPQA-Diamond [52], and IFBench [50], respectively. Evaluation uses temperature 0.6, a maximum generation length of 32k tokens, and sampling counts of across the four benchmarks.
Each expert is distilled independently into a 256-vector prompt with prefix-robust training (§ 2.2), using the Muon optimizer for 200 updates, and we use the final checkpoint. We evaluate the same four prompts in two configurations. Single-domain SP attaches only the prompt of the domain being evaluated, and CSPD attaches all four prompts. We report two concatenation orders, MCSI (math, code, science, instruction following) and its reverse ISCM, and use MCSI by default. The input templates and training recipe are provided in Appendix § 9.
Baselines. We compare against expert weight merging through Task Arithmetic (TA) [22] and TIES [68], and against MOPD [62]. We also distill each expert into a LoRA adapter using the same data as the prompts and combine the adapters with TA or TIES. For TA, we report the best evaluated coefficient, which is 1.0 for the full-model RL experts and 0.5 for the LoRA adapters. Coefficient sweeps and baseline training settings are in Appendix § 12.
Concatenated prompts recover the combined expert gain. Table 2 reports the single-domain and composition results. Composing the four prompts raises the student’s average score from 50.41 to 67.83, recovering approximately 107.5% of the aggregate expert gain and exceeding the average of the individual experts (66.61), which corresponds to an oracle router that sends each benchmark to its own domain expert. The same prompts evaluated individually average 65.38. Composition raises GPQA-Diamond from 49.24 to 57.77 and IFBench from 66.71 to 68.42, while AIME24 decreases slightly from 80.89 to 80.47. The reverse order ISCM gives a similar average of 67.72. Independently learned modules can therefore contribute beyond their own training domains, although composition does not improve every domain uniformly.
Training with varied context helps composition. Each prompt is trained alone but used after other prompts at inference. Prefix-robust training (§ 2.2) exposes it to varied preceding text during training. This makes the composition more stable (Table 2 and Appendix § 11).
| 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, ) | 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 |
| LoRA | ||||||
| LoRA distill + TA () | 80.21 | 63.10 | 56.22 | 62.46 | 65.50 | 93.1 |
| LoRA distill + TIES | 81.41 | 64.00 | 56.66 | 62.67 | 66.19 | 97.3 |
| Soft prompt | ||||||
| Single-domain SP | 80.89 | 64.67 | 49.24 | 66.71 | 65.38 | 92.4 |
| CSPD w/o prefix-robust training | 76.98 | 64.15 | 51.89 | 65.00 | 64.50 | 87.0 |
| CSPD (ISCM) | 79.90 | 65.72 | 57.92 | 67.33 | 67.72 | 106.8 |
| CSPD (MCSI) | 80.47 | 64.67 | 57.77 | 68.42 | 67.83 | 107.5 |
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@ with for AIME24/LCB/GPQA/IFBench.
Input-space composition matches weight-space consolidation. CSPD achieves an average score on par with MOPD (67.79) and higher than expert TIES (67.47) and expert TA (67.27). It also exceeds LoRA distillation followed by TA (65.50) or TIES (66.19), where the LoRA adapters use the same distillation data as the soft prompts. Performance varies by domain. CSPD scores higher than MOPD on GPQA-Diamond and IFBench, while MOPD performs better on AIME24 and LiveCodeBench. Thus, composing in input space reaches the in-domain performance of consolidating in weight space, while every expert remains a separate module that was trained without access to the others.
Adding and Removing Experts
We next evaluate adding experts one at a time, using the four prompts from § 3.3, keeping the backbone and all prompts fixed throughout.
Continual addition. Starting from the unprompted student, experts arrive in the order instruction following (I), science (S), code (C), and math (M). Each new prompt is placed before the existing ones, yielding the inputs
where the leftmost module is the most recent. The final input is the default composition of Table 2. We evaluate all four domains after each addition. The average rises from the student’s 50.41 to 60.99, 61.67, 63.67, and 67.83 (Figure 3a), ending above the average of the individual experts (66.61), without retraining any existing module.
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.
Individual domains exhibit both positive and negative interactions. Adding code reduces IFBench from 66.71 to 64.58, while subsequently adding math raises it to 68.42. Appending each new prompt instead gives a similar trajectory (Appendix § 11).
Module removal and cross-domain contributions. To examine each module’s contribution, we remove one prompt at a time from the MCSI composition while preserving the relative order of the remaining prompts (Figure 3b). Each row removes one prompt and each column is a benchmark. We report the score after removal minus the full-composition score, so a negative value means the removed prompt was helping.
In this configuration, every module contributes positively to its own domain and to the four-domain average. Removing math causes the largest average drop, at 4.16 points, including a 6.54-point decrease on GPQA-Diamond. Removing instruction following reduces IFBench by 12.88 points. Contributions also include negative interactions, as removing math improves LiveCodeBench by 1.87 points. The reverse order ISCM shows the same pattern (Appendix § 11).
Experts therefore interact: some transfer across domains, as math does to science, while others interfere, as code briefly does with instruction following. Individual domains can dip as experts are added, but the overall average rises with every addition.
Comparison with progressive training and merging. A natural alternative is to train each new prompt in the context of the earlier ones, as in Progressive Prompts (Razdaibiedina et al., [51]), where each new prompt is trained with all previous prompts frozen in front of it, so it can adapt to the existing composition. Because progressive training places each new prompt in front of the previous ones, we compare it with independent prompts in the same prepended order (I, SI, CSI, MCSI), with the same optimizer and number of updates. Both start from the same I prompt. Independent training gives a higher average at every stage (Figure 4): 61.67 versus 56.44 after S, 63.67 versus 58.28 after C, and 67.83 versus 65.17 after M. Progressive training also erodes the earliest capability, reducing IFBench to 52.71, 50.88, and 61.42 at these stages. Fitting a new module to a particular composition therefore does not help later joint use, and freezing earlier prompts alone does not preserve their behavior. Independent training is therefore both simpler and more effective in this setting. Figure 4 also shows expert TIES merging over the same domain subsets. Independent prompts score higher than TIES on average at every stage, ending at 67.83 versus 67.47. The IF expert alone lowers LiveCodeBench to 52.69, well below the student’s 58.61, and merging it with the science expert keeps it at 52.54. Updating the weights for one domain thus degrades another, a form of catastrophic forgetting. Independent prompts leave the backbone unchanged and keep LiveCodeBench at 62.57 and 60.55 at these stages.
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).
Out-of-Domain Generalization
Consolidating experts into the weights can approach the experts in-domain while losing capabilities elsewhere [63]. We therefore evaluate the MCSI composition of all four prompts from Table 2 on six benchmarks outside its four training domains.
We compare the composed prompts with the unprompted student, MOPD, expert TIES merging, and LoRA distillation with TA on six benchmarks (Table 3, setting in Appendix § 13). They cover refusal behavior on XSTest ([53]), truthfulness on TruthfulQA ([35]), tool calling on BFCL ([46]), closed-book knowledge on TriviaQA ([25]), difficult reasoning tasks on BBEH ([26]), and financial reasoning on FinQA ([10]).
| 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 () | 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) |
| Soft prompt | |||||||
| CSPD (MCSI) | 88.2 (+7.8) | 64.2 (−0.4) | 55.6 (+8.0) | 33.5 (+2.0) | 25.8 (+14.7) | 72.5 (+6.2) | 56.6 (+6.4) |
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.
CSPD achieves the highest mean score (56.6) and leads on four of the six benchmarks. Its largest margin over the strongest comparison on each benchmark is on BFCL, where it scores 55.6 versus 49.4 for MOPD. It also leads on XSTest by 3.1 points over LoRA and on FinQA by 1.6 points over both expert TIES and LoRA. On BBEH, the gain over the student is large (25.8 versus 11.1), although expert merging achieves a similar score (25.6). The student retains the highest TruthfulQA score (64.6 versus 64.2 for CSPD), and expert merging leads on TriviaQA by 0.1 point. Overall, CSPD improves over the student on five of the six benchmarks and changes the sixth by only 0.4 points, whereas MOPD loses 3.6 points on TruthfulQA. Adding capabilities through the input, with the backbone frozen, thus largely preserves the student’s general capabilities.
Serving Efficiency
A soft prompt adds parameters only at the input. It is processed once during prefill, and every later decoding step only attends to its cached keys and values, so relative to the backbone the only cost is a slightly longer context (Appendix § 14). A LoRA adapter, by contrast, adds computation to every layer at every decoding step. Because every expert is an input to the same frozen model, requests that use different experts, or different combinations of them, can also share one batch. We measure the cost of this by assigning a distinct adapter to every request, the extreme case of per-user personalization, and comparing throughput and first-token latency against the same backbone served without adapters.
Experimental setting. We serve GPT-OSS-20B in BF16 on a single NVIDIA B200 with SGLang. We compare the unadapted backbone, 256-vector soft prompts, and unmerged rank-4 LoRA adapters served with the CSGMV backend. Each request has 20,480 text input tokens and generates 512 tokens, simulating an agent setting. SP adds 256 vectors to the input. We use matched text inputs across configurations and register the synthetic adapters before timing generation.
We vary the concurrency limit over 1, 2, 4, 8, 16, 24, 32. After a warm-up burst of requests, a closed-loop client issues measured requests, starting a new one whenever a slot becomes available. All three configurations use the same KV-cache budget at each concurrency level, with 524,288 tokens through and 1,048,576 at and 32. We report aggregate output tokens per second from the first request submission to the last completion, and the 95th percentile of the time from request submission to receipt of the first token.
Multi-adapter serving. SP throughput stays within 1.5% of the unadapted backbone across the seven concurrency levels (Figure 5). Relative to LoRA, the advantage is largest with one request in flight, where SP delivers the output throughput of LoRA. At 32 concurrent requests, SP serves 715.4 output tokens/s, compared with 721.3 for the backbone and 298.5 for LoRA. At this operating point, SP delivers the throughput of LoRA and reduces P95 time to first token from 39.21 to 17.26 seconds, a reduction, close to the backbone’s 16.89 seconds.
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.
Speculative decoding. Soft prompts also remain compatible with draft models trained on the backbone. Adding a 256-vector prompt reduces the average acceptance length from 2.34 to 2.28 for EAGLE-3 (Li et al., [33]) (−2.6%) and from 2.96 to 2.82 for DFlash (Chen et al., [8]) (−4.7%). Acceptance length does not directly measure end-to-end latency.
What Does a Soft Prompt Learn?
We analyze one expert from Table 1, the 256-vector soft prompt that distills GPT-OSS-Swallow-20B-RL into GPT-OSS-Swallow-20B-SFT for math. The teacher, the student, and the prompted student answer 100 held-out AIME and MATH-500 questions. Each model then reads the same answers, and at every response position we compare its next-token distribution with the teacher’s. See Appendix § 15 for details.
The nearest word of a soft prompt vector does not tell what the vector learned. Across six models, 84–100% of the vectors keep their initialization token as the nearest word, even though in five of them the vectors move far from that token (median cosine similarity 0.25–0.34).
The soft prompt moves the student most of the way to the teacher, mainly by making it check its intermediate results. It closes 86.8% of the teacher–student KL gap. The tokens it raises most are ?, But, and Check, and those it lowers most are paragraph breaks, So, and Thus (Figure 6b). Instead of stating a result and moving on, the prompted student first questions or checks it, as the teacher does.
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 § 15.
Written instructions with the same intent do not reproduce the effect. Instructions asking the model to check and verify its work close at most 2.1% of the gap, and raising the reasoning effort closes none (Figure 6a).
The soft prompt acts mainly through response tokens attending to it directly, rather than by changing how the model reads the question. When only response tokens may attend to the soft prompt, 80% of its improvement remains, but only 33% remains when only input tokens may attend to it (Figure 6c).
Taken together, a soft prompt does not learn a message that can be put into words. It learns the teacher’s reasoning behavior, here checking intermediate results, and applies it through the attention of the response tokens.
Discussion
Why compose in input space? Weight-space consolidation writes every expert into the same parameters, so adding an expert means re-consolidating the model, and the experts can interfere with one another and with the backbone’s general capabilities. CSPD separates acquiring a capability from combining capabilities. Each prompt is distilled using only its own teacher and data, prompts meet only at inference, and the backbone never changes. This separation lets experts be trained in parallel by different parties, added or replaced without revisiting earlier domains, and removed exactly by dropping their prompt. Our results show that this separation does not cost in-domain performance relative to MOPD, and that it better preserves out-of-domain behavior. The progressive-training comparison further suggests that composition does not require each module to be trained with knowledge of the others.
Plug-in experts versus multi-LoRA. Combining LoRA experts from different domains usually takes one of two forms. Merging adds their weight updates with tuned coefficients ([22, 68, 20, 48]), so all experts write into the same weights and can interfere. With the same distillation data, merged LoRA adapters reach 65.50 with TA and 66.19 with TIES, below the 67.83 of composed soft prompts (Table 2). Mixture-style methods instead learn a router or gate over the adapters ([6, 71]), which must be retrained whenever an expert is added. A soft prompt is a plug-in module. Adding an expert trains only its prompt, removing one drops its prompt exactly, and several experts act together within a request by concatenation, with no coefficient or router to fit. Different requests in one batch can also use different sets of prompts on the same unchanged backbone, which gives the output throughput of rank-4 LoRA with 32 distinct adapters (§ 3.6).
Limitations. Our composition study uses one backbone, four domains, and a single training seed. Whether composition continues to improve as the number of experts grows, and how it depends on the relations between domains, remain open. Experts do interact, both positively and negatively (§ 3.4). Several reported numbers, including single-expert checkpoints and TA coefficients, are selected on the evaluation benchmarks, and small teacher gains make some recovery ratios noisy, so we report absolute scores throughout (Appendix § 10.§ 3). Each prompt adds 256 positions to the context, so attention and KV-cache costs grow with the number of composed experts. Finally, prompts are tied to their backbone and require RL teachers for supervision, so moving to a new backbone requires re-distillation.
Toward continual post-training. CSPD suggests a different shape for post-training, with a frozen backbone and a growing library of compact expert modules, each distilled when a new capability becomes available and composed as needed. Four directions follow. The first is scale, with more backbones, larger prompt libraries, several seeds, and more arrival orders. The second is prompt selection, learning which prompts each request needs instead of choosing them by hand. The third is mechanism, understanding why prompts transfer across domains and how several prompts share attention. The fourth is cost, with shorter prompts for large libraries and a full training-cost comparison with MOPD and LoRA.
Related Work
Capacity requirements of post-training. LoRA can match full fine-tuning in selected post-training regimes [54]. Single-layer training, sparse subnetworks, and low-dimensional adapters can also recover substantial RL gains [72, 44, 42], while SGD-based RL exhibits sparse updates [45]. These findings motivate studying input-space representations of expert capabilities.
Distilling post-training capabilities. Sequence-level distillation transfers teacher-generated responses, including reasoning capabilities [28, 12], whereas on-policy methods supervise student-generated trajectories [1, 16, 69, 37]. Multi-teacher on-policy distillation consolidates several experts into one student [62, 39]. Approaching teacher performance in-domain can nevertheless accompany out-of-domain losses [63], motivating evaluation beyond the distilled capabilities.
Representations of adaptation. Adaptation can reside in weights, continuous inputs, layerwise prefixes, or hidden-state interventions [19, 31, 32, 66]. PromptKD and soft-prompt teachers use learned prompts to guide distillation into student weights [27, 40]. DDPT instead places demonstration-induced reasoning in dynamically selected prompts [60]. Soft prompts can also receive distilled safety behavior [2]. Cartridges train key–value cache prefixes to compress long contexts through self-study [14]. Concurrent with our work, Hypertune trains key–value cache prefixes directly with RL or SFT, adding co-residence training so that several prefixes can be loaded together (Hyperstition, 2026). CSPD instead learns prompts in the input embedding space by distilling existing RL experts, trains each prompt in isolation, and composes them by concatenation. An input-space prompt can also be prefilled once into a key–value prefix for serving.
Composition, continual learning, and efficient serving. Model soups, Task Arithmetic, and interference-aware merging combine weight updates [64, 22, 68, 70], with mixed results for RL experts [65, 62]. Adapter composition combines updates or learns gates [47, 20, 48, 6, 71], while BAR composes experts through a routed mixture-of-experts architecture [43]. In input space, APT learns composable prompts and ATTEMPT mixes source prompts [5, 3]. Progressive Prompts freezes earlier prompts during continual learning [51], and Skill Neologisms composes independently learned skill embeddings [4]. Deployment work optimizes concurrent adapters [9, 55], prefill-only adaptation [30], and speculative decoding [33, 8]. CSPD connects these research directions by independently distilling RL experts into prompts on a shared frozen backbone, then evaluating their concatenation, out-of-domain behavior, and serving efficiency.
Conclusion
We presented CSPD, which distills each post-RL expert into an independently trained soft prompt on a frozen pre-RL backbone and composes experts by concatenating their prompts. A single prompt recovers at least 90% of the teacher’s gain in 22 of 23 math, code, and agent settings. Four prompts from different domains, trained without access to each other, compose to match MOPD in-domain, and the average rises with every expert added one at a time, as in continual post-training. The composition also attains the highest mean score on held-out benchmarks among the compared methods. Because the experts live in the input, serving them costs little more than serving the backbone alone. These results suggest input-space modules as a practical foundation for continual post-training.
Impact Statement
This work studies modular transfer of post-trained behavior. Compact, attachable modules may make specialized behaviors easier to distribute and serve, including behaviors that require safety evaluation. Freezing the backbone does not guarantee that an attached prompt, or a combination of prompts, preserves safety properties, and our XSTest evaluation covers only refusal behavior on the tested requests. Release decisions should consider model and dataset terms, generated training material, and the behavior of the resulting modules alone and in combination.
Input Templates and Training Configuration
Our multi-expert experiments use the template below with the Qwen3 chat template and thinking enabled. denotes a 256-vector soft prompt, the original system-message text (if any), the target question, and the assistant response. An empty system turn is added when absent. Each row below is a chat turn, and a newline follows each role header. At inference, generation begins after the assistant header.
Training
<|im_start|>system | Optional context | Soft prompt | System text | <|im_end|> |
<|im_start|>user | Question | <|im_end|> | ||
<|im_start|>assistant | Teacher response |
Inference
<|im_start|>system | System text | <|im_end|> | ||||
<|im_start|>user | Question | <|im_end|> | ||||
<|im_start|>assistant | Generate response |
Prefix-robust training. The optional context prefix is included for half of the examples, selected by a content hash. It contains 128–256 tokens drawn from the prompt-token stream of other examples in the same domain, including chat-template symbols, and is truncated to the selected length, so it can end within a turn. uses frozen token embeddings and is placed before the SP within the inserted system-prefix region. The original system text, if any, follows the SP. Each training example contains one SP, and only its vectors are optimized. The loss is computed only on the target assistant response, with , SP, system, and user positions masked. is omitted at inference.
Composition. At inference, the SP matrices are concatenated directly, without separators. Their order is left to right as , so is the module closest to the user question. Multiple independently trained SPs occur together only at inference.
Training configuration. Prompt vectors are initialized from sampled vocabulary embeddings with seed 42 and kept in FP32, while the backbone stays frozen in BF16. The main prompts use Muon with momentum 0.95 and Nesterov momentum. Each update orthogonalizes the gradient with five Newton–Schulz iterations and rescales it to an RMS of 0.2 times the learning rate, following [36], so that the learning rate is on the same scale as for AdamW. The learning rate follows a cosine schedule from 0.03 to 0.003 over 200 updates without warmup. Each update uses a global batch of 64 responses, and gradients are clipped to norm 1.0. All four domains use prefix-robust training, and we use the final checkpoint. The AdamW rows in Table 5 use , no weight decay, and a cosine schedule from 0.01 to 0.001, so the Muon learning rate is three times the AdamW one. The optimizer and learning rate were screened on IFBench rather than on a separate validation set. The main composition uses MCSI. Continual-addition evaluations prepend modules arriving in I, S, C, M order, producing the final MCSI composition. Single-expert experiments outside the multi-expert setting retain their original per-model protocols.
| 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 |
Table 5. 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.
Additional Single-Expert Results
Agent settings
TMax uses Terminal-Bench 2.1 with Harbor and Vanillux2, SkyRL uses OpenHands with CodeActAgent, DeepSWE uses R2E-Gym, and Lego uses Harbor with the OpenHands SDK. Nemotron uses a staged retrieval, localization, and patch-generation pipeline. Its prompted student receives the teacher’s localization, whereas the student and teacher baselines localize end to end, so its 92.27% recovery is conditional on this additional information. The prompts are distilled on Nemotron-Cascade-RL-SWE for Nemotron, SkyRL-v0-80 and SkyRL-v0-220 for SkyRL, R2E-Gym-Subset for DeepSWE, Lego-RL-2699 for Lego, tmax-15k-open-instruct for TMax-9B, and 10,401 teacher episodes for TMax-27B. The teacher–student gaps for SkyRL and TMax-27B are only 1.40 and 2.62 points, so their recovery ratios should be read together with absolute success rates.
Training dynamics, prompt length, and supervision
Training dynamics. Figure 7 shows how recovery evolves during training for the GPT-OSS math prompt. This run comes from an earlier, untuned AdamW configuration (constant learning rate 0.01, two epochs), so its scores differ from Table 1, and it is included to show the shape of the recovery curve. Recovery rises quickly in the first 60 updates and then plateaus. It peaks at 92.62% at update 180 and ends at 85.68%, so the final checkpoint need not be the best.
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.
Prompt length. Figure 8 varies the number of prompt vectors. Recovery is 51.23%, 74.11%, and 90.01% for 2, 8, and 32 vectors, and 93.10% and 87.83% for 256 and 512. Most of the gain is reached by 32 vectors. The sweep uses the same AdamW configuration as Figure 7 but a smaller training set of 13,804 responses, obtained by capping the responses per question, and its own student and teacher measurements (76.73% and 90.47%). Its 256-vector point is therefore a separate run from Figure 7, which explains why its best recovery (93.10%) differs from the 92.62% there. Since each vector has continuous values, prompt length is not an information-theoretic measure of the RL update.
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.
Correct-only versus mixed supervision. Table 4 compares two GPT-OSS training sets of 28,946 responses each, one with only correct responses and one that also includes incorrect ones. Both use 256 vectors, AdamW with constant learning rate 0.01, effective batch size 256, and 200 updates, and are evaluated on AIME 2024/2025 avg@16 and MATH500 avg@2. Correct-only supervision gives the highest recovery, 96.06%. The mixed set, in which only 69% of responses are correct, is 5.52 points lower but still exceeds 90%. CSPD therefore does not require verifier filtering, and when verified responses are scarce, incorrect responses can be added to enlarge the training set. The two sets keep at most two and four responses per question, so part of this gap may come from question coverage rather than correctness. For reference, a rank-5 LoRA on the K/V projections has a similar parameter count to a 256-vector prompt. With hidden size 2880, the prompt has parameters, and the LoRA has over 24 layers with 512-dimensional K/V projections, about 10% more. It reaches 95.72% on the correct-only set, close to the prompt.
| 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, ) | Correct-only | 28,946 | 0 | 100.0 | 814,080 | — | 95.72 |
Table 4. GPT-OSS math distillation with different supervision. Both training sets contain 28,946 responses. Recovery is the best over checkpoints.
Evaluation details and limitations
The GPT-OSS training curve in Figure 7 uses 560 questions and 3,920 outputs per checkpoint, including 32 responses per AIME question. MiMo trained on AReaL code responses reaches 52.55% accuracy and 88.08% recovery. Mellum2 uses greedy, single-sample evaluation on 1,055 questions and reaches 39.34% accuracy and 110.34% recovery. Benchmark windows and sampling counts differ across settings, so comparisons are made within each student–teacher pair.
Where the original RL data are unavailable, we use proxy training data. MiMo math uses DeepScaleR Preview, MiMo code uses AReaL code data, and Mellum2 and Nemotron CodeRL use Klear code data. Single-expert tables report the best checkpoint on the evaluation benchmarks, so they are exploratory rather than held-out estimates, and all results use one training seed. For the AReaL, Klear, Nemotron CodeRL, and OLMo code results, the Klear, MiMo, and Poro math results, and the prompt-length sweep, repeated samples of one question are correlated and are not treated as independent problems. When the teacher–student gap is small, recovery is sensitive to noise, so absolute scores are reported alongside it. Removing a prompt restores the original model exactly, but prompted behavior on unrelated tasks can still change while the prompt is attached.
Prefix-Robust Training, Optimizer, and Concatenation Order
Table 5 separates the effects of prefix-robust training and of the optimizer on the multi-expert composition. All rows use seed 42, the final checkpoint after 200 updates, and = 64, 8, 16, and 8 samples for AIME24, LCB, GPQA, and IFBench. With AdamW, prefix-robust training raises the average from 64.50 to 66.60 and recovery from 87.0% to 99.9%. The gains come from GPQA-D (+3.89), AIME24 (+2.76), and LiveCodeBench (+1.79), while IFBench is unchanged (64.96 versus 65.00). Switching to Muon raises the average further to 67.72 in the same ISCM order, and to 67.83 in MCSI.
Appending new prompts. Section 3.4 places each new prompt before the existing ones. Figure 9b instead appends each new prompt after the existing ones, with experts arriving in the same order I, S, C, M, and Figure 9a repeats the prepending curve for comparison. The average rises with every addition and reaches 67.72 for the final ISCM composition, close to the 67.83 of MCSI.
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 3a, 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.
Removing one prompt from ISCM. Figure 10 repeats the leave-one-out analysis of Figure 3b for the reverse order ISCM, keeping the order of the remaining prompts. The pattern matches MCSI. Removing math or instruction following causes the largest average drops (4.14 and 3.30 points), with AIME24 falling by 5.21 and IFBench by 12.87. Removing science or code costs only 0.47 and 0.25 points on average. Without the code prompt, IFBench rises by 0.84, consistent with the interference between code and instruction following seen in MCSI. Without the science prompt, GPQA-Diamond falls by only 1.45, since the math prompt already contributes much of the science gain.
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 3b. (b) ISCM. Negative values mean the removed prompt was helping. Both panels share the color scale.
Baselines and Task Arithmetic Sweep
Baseline implementation. Expert merge applies Task Arithmetic (TA) (Ilharco et al., [22]) or TIES (Yadav et al., [68]) directly to the four RL experts. MOPD distills multiple experts into the student’s weights with multi-teacher on-policy distillation (Wang et al., [62]). To control for distillation data, we also train one LoRA adapter per domain on the same data used for the prompts and combine the adapters with TA or TIES. LoRA adapters train for 200 updates with the same data and batch order as the prompts, using rank 16, , and learning rate . TIES uses density 0.2 and scaling 1.0, with task vectors measured relative to the student.
TA coefficient. For the four domain task vectors, TA uses , so is the arithmetic average of the four domain models. We sweep and report the coefficient with the highest four-domain average, for the full-model experts and for LoRA (Table 6). The coefficient is selected on the evaluation benchmarks, which favors the TA baselines.
| Model | Merge | AIME24 | LCB v5 | GPQA-D | IFBench | Avg. | Recovery (%) |
| Full model | TA | 73.28 | 60.78 | 53.06 | 50.25 | 59.34 | 55.1 |
| TA | 81.04 | 64.15 | 55.84 | 62.00 | 65.76 | 94.7 | |
| TA | 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 | 76.25 | 63.25 | 52.02 | 52.21 | 60.93 | 64.9 |
| TA | 80.21 | 63.10 | 56.22 | 62.46 | 65.50 | 93.1 | |
| TA | 78.39 | 56.06 | 52.53 | 69.88 | 64.22 | 85.2 | |
| TIES | 81.41 | 64.00 | 56.66 | 62.67 | 66.19 | 97.3 |
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.
Increasing from 0.5 to 1.0 trades off domains. For LoRA, IFBench rises from 62.46 to 69.88, but LiveCodeBench falls from 63.10 to 56.06, and AIME24 and GPQA-D also decline, lowering the average from 65.50 to 64.22. For the full-model experts, IFBench rises from 62.00 to 71.58 while AIME24 and GPQA-D decrease, and the average increases from 65.76 to 67.27. TIES has a higher average than every TA coefficient for both baselines.
Out-of-Domain Evaluation Setting
BFCL uses 15 categories from BFCL v3 ([46]), 4,041 questions with one sample each, excluding the missing-function and missing-parameter multi-turn categories because they are slow to evaluate. Multi-turn categories contribute one third of the aggregate. TruthfulQA ([35]) and XSTest ([53]) use four samples per question. For XSTest, Qwen3Guard judges whether safe requests are answered and unsafe requests refused, and we report this judgment-based accuracy rather than string matching. The six-benchmark mean weights TriviaQA, BBEH, FinQA, BFCL, TruthfulQA, and XSTest equally.
Serving Memory and Computation
A soft prompt adds KV positions in every attention layer, which generated tokens attend to. For a standard attention stack, the additional KV memory per request is approximately
where is the number of layers, the number of prompt vectors, the number of KV heads, the head dimension, and the bytes per value. Hybrid and sliding-window architectures need their own accounting. In our serving setting, 256 prompt vectors lengthen a 20,480-token input by 1.25%. Unmerged multi-LoRA instead applies request-specific low-rank updates at every adapted projection ([19]), which systems such as Punica ([9]) batch efficiently. A single merged LoRA is a different deployment regime and is not compared here.
Soft-Prompt Mechanism Analysis
This appendix asks what a soft prompt learns and how it changes the frozen student. We find three things. The learned vectors cannot be read as words (Section G.2). The soft prompt moves the student’s next-token distribution most of the way to the teacher’s, mainly by making it check intermediate results, and written instructions with the same intent do not reproduce this (Section G.3). The soft prompt acts mainly through response tokens attending to it directly, rather than by changing how the model reads the question (Section G.4).
Setup
Sections G.3 and G.4 study one soft prompt, the 256-vector math prompt of GPT-OSS-Swallow-20B-SFT-v0.1 at update 180, whose teacher is GPT-OSS-Swallow-20B-RL-v0.1 ([57]). As in training, the soft prompt sits at the start of the system message. We use 100 held-out questions, all 30 from each of AIME 2024 and AIME 2025 ([41]) and eight from each of the five MATH-500 difficulty levels ([18, 34]). The teacher, the student, and the student with the soft prompt (the prompted student) each answer every question twice (temperature 0.6, top- 0.95, top- 20, up to 32,768 tokens), giving 600 traces. We then compare models without generating new text. Every model reads the same trace, and at each response position we compare its next-token distribution with the teacher’s. denotes the KL divergence from the teacher to a model , averaged over response positions. It is 0 when predicts exactly like the teacher.
Embedding geometry
The nearest word of a soft prompt vector does not tell what the vector learned. A natural way to read a soft prompt is to map each vector to its nearest vocabulary embedding. We test this on the soft prompts of six models (GPT-OSS, Poro, MiMo, Nemotron, Mellum, and AReaL-8B), using only their weights. In every model, 84–100% of the vectors still have their initialization token as the nearest word. Yet in five of the models the vectors have moved far from that token, with a median cosine similarity of only 0.25–0.34. The nearest word thus stays the same even when the vector changes a lot. GPT-OSS is the exception, as its vectors barely change direction (cosine 0.999). Across models, the changes from initialization lie in fewer directions than in shuffled or Gaussian controls, with effective ranks of 44–157 out of 256. These numbers describe how the vectors moved, not what the change does, which the next two sections test.
Output distribution and natural-language instructions
The soft prompt moves the student most of the way to the teacher, mainly by making it check its intermediate results. We score a model by the share of the student–teacher gap it closes,
which is 0 for the student and 100 for a model that matches the teacher. On the 200 teacher traces, the soft prompt lowers the KL from 0.225 to 0.030, so (Figure 11a). The soft prompt at update 40 already reaches 78%, while its random initialization gives 2%. is also 86.5% on the student’s traces and on the prompted student’s traces, so the effect does not depend on who wrote the text.
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, (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.
The soft prompt makes the student more likely to write But, Check, and ? and less likely to write So and Thus, bringing these probabilities close to the teacher’s (Figure 11b,Figure 11c). Without the soft prompt, the student tends to state a result and move on (“Thus... ”). With the soft prompt, like the teacher, it first questions or checks the result (“But... ”, “Check... ”).
Written instructions with the same intent do not reproduce the effect. If the soft prompt only meant “check your work”, an instruction saying so should work as well. We place three instructions at the soft prompt’s position. The check instruction is “Do not conclude too quickly. After each intermediate result, question it and check it before moving on.” The verify instruction is a longer version that also asks the model to double-check results with another method and consider edge cases. The neutral instruction asks the model to read the problem carefully and answer. We also raise the template’s reasoning effort from medium to high. These reach of only 2.1%, 1.6%, 1.1%, and 0.0%, against 86.8% for the soft prompt (Figure 12a).
Figure 12. Figure 12. Instruction and attention analyses of the GPT-OSS math soft prompt. (a) Share of the student–teacher KL gap closed, (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, (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.
Attention pathways
The soft prompt acts mainly through response tokens attending to it directly, rather than by changing how the model reads the question. The soft prompt can affect the response in two ways. Response tokens can attend to the soft prompt directly, or question tokens can attend to it and the response then attends to the question. We separate the two by masking attention to the soft prompt. The response-only mask lets only response tokens see the soft prompt, the input-only mask lets only the input tokens see it, and the blocked mask hides it from all tokens. All masks keep the model’s built-in attention sinks. We use 40 teacher traces and 20 prompted-student traces, each cut to its first 4,096 response tokens, and report the share of the soft prompt’s improvement that a masked model keeps,
where is the student with the unmasked soft prompt. On these traces the two KL values in the denominator are 0.213 and 0.032.
Response-only keeps 80%, input-only keeps 33%, and blocked keeps about 1% (Figure 12b). Most of the effect therefore comes from response tokens reading the soft prompt. This reading happens mainly in the early layers with full attention (GPT-OSS alternates them with sliding-window layers). Different response tokens also take different information from the soft prompt. At layer 5 under the response-only mask, giving every response token the same average of what it reads from the soft prompt lowers the kept share from 80% to 28%. These results come from a single soft prompt without confidence intervals, so finer comparisons between pathways are tentative, and how composed soft prompts act remains to be tested.
References
- [1]Rishabh Agarwal et al. On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes. In International Conference on Learning Representations, 2024.arxiv.org/abs/2306.13649
- [2]Motasem Alfarra, Cristina Pinneri, Dana Kianfar, Mohammed Almousa, and Christos Louizos. Distilling safe LLM systems via soft prompts for on device settings. arXiv preprint arXiv:2606.09388, 2026. URL https://arxiv.org/abs/2606.09388.
- [3]Akari Asai et al. ATTEMPT: Parameter-Efficient Multi-task Tuning via Attentional Mixtures of Soft Prompts. In Proceedings of EMNLP, 2022.arxiv.org/abs/2205.11961
- [4]Antonin Berthon, Nicolás Astorga, and Mihaela van der Schaar. Skill neologisms: Towards skill-based continual learning. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 7815–7836, 2026. URL https://proceedings.mlr.press/v306/berthon26a.html.arxiv.org/abs/2605.04970
- [5]Benjamin Bowman, Alessandro Achille, Luca Zancato, Matthew Trager, Pramuditha Perera, Giovanni Paolini, and Stefano Soatto. A-la-carte Prompt Tuning (APT): Combining Distinct Data Via Composable Prompting. In Proceedings of CVPR, 2023.arxiv.org/abs/2302.07994
- [6]Eric L. Buehler and Markus J. Buehler. X-LoRA: Mixture of low-rank adapter experts, a flexible framework for large language models with applications in protein mechanics and molecular design. APL Machine Learning, 2024.arxiv.org/abs/2402.07148
- [7]Shiyi Cao, Sumanth Hegde, Dacheng Li, et al. SkyRL-v0: Train Real-World Long-Horizon Agents via Reinforcement Learning, 2025. URL https://novasky-ai.notion.site/skyr l-v0.
- [8]Jian Chen, Yesheng Liang, and Zhijian Liu. DFlash: Block diffusion for flash speculative decoding. In Proceedings of ICML, 2026.arxiv.org/abs/2602.06036
- [9]Lequn Chen, Zihao Ye, Yongji Wu, Danyang Zhuo, Luis Ceze, and Arvind Krishnamurthy. Punica: Multi-tenant LoRA serving. arXiv preprint arXiv:2310.18547, 2023.arxiv.org/abs/2310.18547
- [10]Zhiyu Chen, Wenhu Chen, Charese Smiley, Sameena Shah, Iana Borova, Dylan Langdon, Reema Moussa, Matt Beane, Ting-Hao Huang, Bryan Routledge, and William Yang Wang. FinQA: A dataset of numerical reasoning over financial data. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3697–3711, 2021.arxiv.org/abs/2109.00122
- [11]Ganq u Cui, Lifan Yuan, Zefan Wang, et al. Process Reinforcement through Implicit Rewards, 2025. URL https://arxiv.org/abs/2502.01456.
- [12]DeepSeek-AI et al. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv preprint arXiv:2501.12948, 2025.DOI
- [13]Yiming Du, Yuxin Jiang, Tao Yuan, Jianbo Dai, Shaowei Wang, Jierun Chen, Chaofan Tao, Xianzhi Yu, Lifeng Shang, Kam-Fai Wong, Xiaohui Li, and Haoli Bai. LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents, 2026. URL https://arxiv.org/abs/2608.17393.
- [14]Sabri Eyuboglu et al. Cartridges: Lightweight and general-purpose long context representations via self-study. arXiv preprint arXiv:2506.06266, 2025.arxiv.org/abs/2506.06266
- [15]Wei Fu, Jiaxuan Gao, Xujie Shen, et al. AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning, 2026. URL https://arxiv.org/abs/2505.24298.
- [16]Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. MiniLLM: Knowledge Distillation of Large Language Models. In International Conference on Learning Representations, 2024.
- [17]Kai Hakala, Jouni Luoma, Daniel Zautner, Adam Hrin, Elaine Zosa, Maria Barrett, Mika Koistinen, and Jonathan Burdge. Enabling Language-specific Reasoning in Multilingual Models with Reinforcement Learning, 2026. URL https://rocm.blogs.amd.com/artificial-intelligence/rl-training-playbook/README.html.
- [18]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, 2021.arxiv.org/abs/2103.03874
- [19]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. arXiv preprint arXiv:2106.09685, 2021.arxiv.org/abs/2106.09685
- [20]Chengsong Huang, Qian Liu, Bill Yuchen Lin, Tianyu Pang, Chao Du, and Min Lin. LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition. arXiv preprint arXiv:2307.13269, 2023.arxiv.org/abs/2307.13269
- [22]Gabriel Ilharco et al. Editing Models with Task Arithmetic. In International Conference on Learning Representations, 2023.arxiv.org/abs/2212.04089
- [23]Hamish Ivison, Junjie Oscar Yin, Rulin Shao, Teng Xiao, Nathan Lambert, and Hannah Hajishirzi. Tmax: A simple recipe for terminal agents, 2026. URL https://arxiv.org/abs/2606.23321.
- [24]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. In International Conference on Learning Representations, 2025.arxiv.org/abs/2403.07974
- [25]Mandar Joshi, Eunsol Choi, Daniel Weld, and Luke Zettlemoyer. TriviaQA: A large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 1601–1611, 2017.arxiv.org/abs/1705.03551
- [26]Mehran Kazemi, Bahare Fatemi, Hritik Bansal, John Palowitch, Chrysovalantis Anastasiou, Sanket Vaibhav Mehta, Lalit K. Jain, Virginia Aglietti, Disha Jindal, Peter Chen, et al. BIG-Bench extra hard. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics, pages 26473–26501, 2025.arxiv.org/abs/2502.19187
- [27]Gyeongman Kim, Doohyuk Jang, and Eunho Yang. PromptKD: Distilling Student-Friendly Knowledge for Generative Language Models via Prompt Tuning. In Findings of EMNLP, 2024.arxiv.org/abs/2402.12842
- [28]Yoon Kim and Alexander M. Rush. Sequence-level knowledge distillation. In Proceedings of EMNLP, 2016.arxiv.org/abs/1606.07947
- [29]Marko Kojic, Ivan Bondyrev, Aral de Moor, Joseph Shtok, Petr Borovlev, Kseniia Lysaniuk, Madeeswaran Kannan, Ivan Dolgov, and Nikita Pavlichenko. Mellum2 Technical Report, 2026. URL https://arxiv.org/abs/2605.31268.
- [30]Andrew Lanplouthakoun, Aryaman Arora, Zhengxuan Wu, Dhruv Pai, Ben Keigwin, Dan Jurafsky, and Christopher Potts. PreFT: Prefill-only Finetuning for Efficient Inference. arXiv preprint arXiv:2605.14217, 2026.arxiv.org/abs/2605.14217
- [31]Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. In Proceedings of EMNLP, 2021.arxiv.org/abs/2104.08691
- [32]Xiang Lisa Li and Percy Liang. Prefix-Tuning: Optimizing Continuous Prompts for Generation. In Proceedings of ACL-IJCNLP, 2021.arxiv.org/abs/2101.00190
- [33]Yuhui Li et al. EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test. arXiv preprint arXiv:2503.01840, 2025.arxiv.org/abs/2503.01840
- [34]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In International Conference on Learning Representations, 2024.arxiv.org/abs/2305.20050
- [35]Stephanie Lin, Jacob Hilton, and Owain Evans. TruthfulQA: Measuring how models mimic human falsehoods. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics, 2022.arxiv.org/abs/2109.07958
- [36]Jingyuan Liu, Jianlin Su, Xingcheng Yao, Zhejun Jiang, Guokun Lai, Yulun Du, Yidao Qin, Weixin Xu, Enzhe Lu, Junjie Yan, et al. Muon is scalable for LLM training. arXiv preprint arXiv:2502.16982, 2025.arxiv.org/abs/2502.16982
- [37]Kevin Lu and Thinking Machines Lab. On-Policy Distillation. Thinking Machines Lab: Connectionism, 2025.
- [38]Michael Luo, Naman Jain, Jaskirat Singh, et al. DeepSWE: Training a Fully Open-sourced, State-of-the-Art Coding Agent by Scaling RL, 2025. URL https://www.together.ai/blog/deepswe.
- [39]Wenhan Ma, Jianyu Wei, Liang Zhao, Hailin Zhang, Bangjun Xiao, Lei Li, Qibin Yang, Bofei Gao, Yudong Wang, Rang Li, Jinhao Dong, Zhifang Sui, and Fuli Luo. MOPD: Multi-teacher on-policy distillation for capability integration in LLM post-training. arXiv preprint arXiv:2606.30406, 2026a. URL https://arxiv.org/abs/2606.30406.
- [40]Yingzi Ma, Zichen Zhu, Ming Jiang, and Chaowei Xiao. One Student, Many Teachers: Multi-Task On-Policy Distillation via Soft-Prompt Privileged Context. arXiv preprint arXiv:2607.18293, 2026b.arxiv.org/abs/2607.18293
- [41]MAA. American Invitational Mathematics Examination – AIME. https://maa.org/math-competitions/american-invitational-mathematics-examination-aime, 2024.
- [42]John X. Morris, Niloofar Mireshghallah, Mark Ibrahim, and Saeed Mahloujifar. Learning to Reason in 13 Parameters. arXiv preprint arXiv:2602.04118, 2026.arxiv.org/abs/2602.04118
- [43]Jacob Morrison, Sanjay Adhikavesan, Akshita Bhagia, Matei Zaharia, Noah A. Smith, and Sewon Min. Train separately, merge together: Modular post-training with mixture-of-experts. arXiv preprint arXiv:2604.18473, 2026. URL https://arxiv.org/abs/2604.18473.
- [44]Sagnik Mukherjee, Lifan Yuan, Dilek Hakkani-Tur, and Hao Peng. Reinforcement Learning Finetunes Small Subnetworks in Large Language Models. In Advances in Neural Information Processing Systems, 2025.arxiv.org/abs/2505.11711
- [45]Sagnik Mukherjee, Lifan Yuan, Pavan Jayasinha, Dilek Hakkani-Tur, and Hao Peng. Do We Need Adam? Surprisingly Strong and Sparse Reinforcement Learning with SGD in LLMs. arXiv preprint arXiv:2602.07729, 2026.arxiv.org/abs/2602.07729
- [46]Shishir G. Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E. Gonzalez. The Berkeley function calling leaderboard (BFCL): From tool use to agentic evaluation of large language models. In International Conference on Machine Learning, 2025.
- [47]Jonas Pfeiffer, Aishwarya Kamath, Andreas Rücklé, Kyunghyun Cho, and Iryna Gurevych. AdapterFusion: Non-Destructive Task Composition for Transfer Learning. In Proceedings of EACL, 2021.arxiv.org/abs/2005.00247
- [48]Akshara Prabhakar, Yuanzhi Li, Karthik Narasimhan, Sham Kakade, Eran Malach, and Samy Jelassi. LoRA soups: Merging LoRAs for practical skill composition tasks, 2024. arXiv:2410.13025.arxiv.org/abs/2410.13025
- [49]Prime Intellect. Distributed Training in the Inference-Time-Compute Paradigm, 2025. URL https://www.primeintellect.ai/blog/intellect-math.
- [50]Valentina Pyatkin, Saumya Malik, Victoria Graf, Hamish Ivison, Shengyi Huang, Pradeep Dasigi, Nathan Lambert, and Hananneh Hajishirzi. Generalizing verifiable instruction following, 2025. arXiv:2507.02833.arxiv.org/abs/2507.02833
- [51]Anastasia Razdaibiedina et al. Progressive Prompts: Continual Learning for Language Models. In International Conference on Learning Representations, 2023.arxiv.org/abs/2301.12314
- [52]David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R. Bowman. GPQA: A graduate-level Google-proof Q&A benchmark. In Conference on Language Modeling, 2024.arxiv.org/abs/2311.12022
- [53]Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, and Dirk Hovy. XSTest: A test suite for identifying exaggerated safety behaviours in large language models. In Proceedings of NAACL, 2024.arxiv.org/abs/2308.01263
- [54]John Schulman and Thinking Machines Lab. LoRA Without Regret. Thinking Machines Lab: Connectionism, 2025.DOI
- [55]Ying Sheng et al. S-LoRA: Serving Thousands of Concurrent LoRA Adapters. In Proceedings of MLSys, 2024.arxiv.org/abs/2311.03285
- [56]Zhenpeng Su, Leiyu Pan, Xue Bai, Dening Liu, Guanting Dong, Jiaming Huang, Minxuan Lv, Wenping Hu, Fuzheng Zhang, Kun Gai, and Guorui Zhou. Klear-Reasoner: Advancing Reasoning Capability via Gradient-Preserving Clipping Policy Optimization, 2026. URL https://arxiv.org/abs/2508.07629.
- [57]Swallow LLM. GPT-OSS Swallow, 2026a. URL https://swallow-llm.github.io/gptoss-swallow.en.html.
- [58]Swallow LLM. Qwen3 Swallow, 2026b. URL https://swallow-llm.github.io/qwen3-swallow.en.html.
- [59]Team OLMo, Allyson Ettinger, Amanda Bertsch, et al. Olmo 3, 2026. URL https://arxiv.org/abs/2512.13961.
- [60]Ge Teng, Chen Shen, Wenxiao Wang, Sinan Fan, Liang Xie, Xiang Tian, Peng Chen, Xuesong Liu, Yaowu Chen, and Jieping Ye. DDPT: Enhancing Complex Reasoning in Large Language Models via Distillation and Dynamic Prompt Tuning. Neurocomputing, 2026.DOI
- [61]Boxin Wang, Chanky u Lee, Nayeon Lee, Sheng-Chieh Lin, Wenliang Dai, Yang Chen, Yangyi Chen, Zhuolin Yang, Zihan Liu, Mohammad Shoeybi, Bryan Catanzaro, and Wei Ping. Nemotron-Cascade: Scaling Cascaded Reinforcement Learning for General-Purpose Reasoning Models, 2026a. URL https://arxiv.org/abs/2512.13607.
- [62]Haoqing Wang, Xiang Long, Ziheng Li, Yilong Xu, Tingguang Li, and Yehui Tang. To mix or to merge: Toward multi-domain reinforcement learning for large language models. In Third Conference on Language Modeling, 2026b. URL https://openreview.net/forum?id=jP7j5XkG8J.arxiv.org/abs/2602.12566
- [63]Yichen Wang, Yufa Zhou, Siqi Zhu, Haozheng Luo, Jingzhi Bao, Zhichao Liu, and Zijun Wei. On the generalization limitation of on-policy distillation for post-RL consolidation. arXiv preprint arXiv:2611.05609, 2026c. URL https://arxiv.org/abs/2611.05609.
- [64]Mitchell Wortsman et al. Model Soups: Averaging Weights of Multiple Fine-Tuned Models Improves Accuracy without Increasing Inference Time. In Proceedings of ICML, 2022.arxiv.org/abs/2203.05482
- [65]Chenrui Wu, Zexi Li, Jiajun Bu, Jiangchuan Liu, and Haishuai Wang. Sparsity curse: Understanding RLVR model parameter space from model merging. arXiv preprint arXiv:2606.18521, 2026. URL https://arxiv.org/abs/2606.18521.
- [66]Zhengxuan Wu, Aryaman Arora, Zheng Wang, Atticus Geiger, Dan Jurafsky, Christopher D. Manning, and Christopher Potts. ReFT: Representation Finetuning for Language Models. In Advances in Neural Information Processing Systems, 2024.arxiv.org/abs/2404.03592
- [67]Xiaomi LLM-Core, Bingquan Xia, Bowen Shen, et al. MiMo: Unlocking the Reasoning Potential of Language Model – From Pretraining to Posttraining, 2025. URL https://arxiv.org/abs/2505.07608.
- [68]Prateek Yadav, Derek Tam, Leshem Choshen, Colin Raffel, and Mohit Bansal. TIES-Merging: Resolving Interference When Merging Models. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2306.01708
- [69]An Yang et al. Qwen3 Technical Report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
- [70]Le Yu, Bowen Yu, Haiyang Yu, Fei Huang, and Yongbin Li. Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch. In Proceedings of ICML, 2024.arxiv.org/abs/2311.03099
- [71]Ted Zadouri, Ahmet Üstün, Arash Ahmadian, Beyza Ermiş, Acyr Locatelli, and Sara Hooker. Pushing mixture of experts to the limit: Extremely parameter efficient MoE for instruction tuning. In International Conference on Learning Representations, 2024.arxiv.org/abs/2309.05444
- [72]Zijian Zhang, Rizhen Hu, Athanasios Glentis, Dawei Li, Chung-Yiu Yau, Hongzhou Lin, and Mingyi Hong. Is One Layer Enough? Training A Single Transformer Layer Can Match Full-Parameter RL Training. arXiv preprint arXiv:2607.01232, 2026.arxiv.org/abs/2607.01232









