Composable Soft-Prompt Distillation of RL Experts: Toward Continual Post-Training

Zhen Zhang, Changyi Yang, Xuehai He, Chengzhi Liu, Yutong Yin, Ziyue Liu, Zhuoran Yin, Yangmin Li, Zhihan Liu, Jisen Li, Mingyu Jin, Chuhan Li, Zhaotian Weng, Ruoyu He, Wenyao Gao, Jiaxin Deng, Chenwei Wu, Hui Shen, Wenhao Chai, Chenyang Zhao, Zhuofan Ying, Kieran Liu, Andrew Chen, Pony Ma, Zhaoran Wang, Alkesh Patel, Zhe Gan, Xin Eric WangarXiv 2026 · arXiv

It’s late. You’ve spent all day debugging or reading through documentation. Your brain is a bit fried, and the last thing you want is a dry, 20-page lecture on reinforcement learning. But here’s a paper that’s actually quite refreshing: it’s about making AI models modular, like a Lego set, rather than a monolithic block of marble.

TL;DR

Instead of retraining a massive AI model every time you want to add a new skill (like math or coding), why not just give it a set of "digital sticky notes" to read first? This paper introduces Composable Soft-Prompt Distillation (CSPD), a way to turn expert skills into small, stackable prompts that work on a frozen model, matching the performance of complex merging techniques while keeping the model's general common sense intact.

What Problem Does This Paper Address?

When we want an LLM to become an "expert" in a specific field—say, solving complex geometry or writing Python—we usually use Reinforcement Learning (RL). This creates a specialized version of the model.

The headache starts when you want one model that is an expert in everything. Traditionally, you have two choices, both of which kind of suck:

  1. Multi-Teacher Distillation (MOPD): You retrain a "student" model to mimic all the experts at once. It’s computationally expensive and needs to be redone every time a new expert arrives.
  2. Weight Merging: You literally average the "brains" (weights) of different models. This often leads to "interference"—improving math might accidentally make the model worse at poetry or, worse, cause it to lose its general reasoning capabilities.

The authors wanted a way to add, remove, or combine expertise without ever touching the original model’s weights.

Methods

The authors propose CSPD. Here is the intuitive breakdown:

  • The Frozen Backbone: They take a standard, pre-RL model and "freeze" it. Its weights never change.
  • Soft Prompts: Instead of words, they train a "soft prompt"—a sequence of 256 mathematical vectors that sit at the very beginning of the input. Think of this as a specialized "vibe" or "instruction set" that only the model understands.
  • Independent Distillation: Each expert (the Math Expert, the Code Expert, etc.) is distilled into its own unique soft prompt. Crucially, these are trained in isolation.
  • Concatenation: To make a "Polymath" model, you simply stack the prompts together in the input. [Math Prompt] + [Code Prompt] + [User Question].

To make sure these prompts didn't get "confused" when stacked, they used prefix-robust training, where prompts were trained to work even if a bunch of random text was shoved in front of them.

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).

Datasets

The researchers put CSPD through a gauntlet of diverse tasks:

  • Math: AIME 2024/2025, MATH500, and Olympiad problems.
  • Coding: LiveCodeBench (v5 and v6).
  • Agents: SWE-bench Verified (software engineering tasks) and Terminal-Bench (using a command line).
  • Generalization (Out-of-Domain): To see if the model still had "common sense," they tested on XSTest (safety/refusals), TruthfulQA, and TriviaQA.

Key Insights and Ideas

  • Behavior over Words: When they tried to "translate" these soft prompts into human words, they found it was impossible. The prompts don't contain hidden instructions like "be careful." Instead, they change the model's internal behavior. For example, the math prompt makes the model much more likely to use tokens like "?" or "Check," essentially forcing the model to double-check its own work mid-sentence.
  • The "Free" Lunch of Composition: Surprisingly, prompts trained completely independently "composed" beautifully. Adding a new expert prompt almost always improved the average score across all domains without hurting the others.
  • Preserving the "Soul" of the Model: Because the backbone is frozen, the model doesn't suffer from "catastrophic forgetting." It retains its original safety and truthfulness better than models whose weights were actually modified.

Key Results

  • Expert Recovery: A single soft prompt recovered at least 90% of the performance gain of the original RL expert in 22 out of 23 tested scenarios.
  • Matching the Big Guys: In a multi-expert setup, CSPD achieved an average score of 67.83, essentially a tie with the state-of-the-art MOPD method (67.79), but without the need for joint retraining.
  • Superior Generalization: On held-out benchmarks (tasks the experts weren't trained for), CSPD outperformed weight-merging methods (56.6 vs 53.5), proving it’s better at staying "smart" overall.
  • Efficiency: Serving these prompts is incredibly fast. CSPD reached 2.40x the throughput of LoRA (a popular adapter method) because it doesn't add extra math to every single layer of the model.
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.

Limitations and Future Work

  • The Context Tax: Each prompt takes up 256 tokens. If you stack 10 experts, you’ve used 2,560 tokens of your context window before the user even speaks. The authors suggest looking into shorter prompts for larger libraries.
  • Backbone Locked: A prompt trained for "Llama-3" won't work on "Qwen-2." If you upgrade your base model, you have to re-distill your experts.
  • Manual Selection: Currently, a human (or a simple script) decides which prompts to include. Future work could involve an automated "router" that picks the right expert prompts for a specific user query.

In short: CSPD suggests that the future of AI might not be one giant, ever-changing brain, but a stable, reliable brain that we can instantly "specialize" with a handful of modular plug-ins. Not a bad thought to sleep on.

Summary updated

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.
BibTeX
@misc{zhang2026composable,
  author = {Zhen Zhang and Changyi Yang and Xuehai He and Chengzhi Liu and Yutong Yin and Ziyue Liu and Zhuoran Yin and Yangmin Li and Zhihan Liu and Jisen Li and Mingyu Jin and Chuhan Li and Zhaotian Weng and Ruoyu He and Wenyao Gao and Jiaxin Deng and Chenwei Wu and Hui Shen and Wenhao Chai and Chenyang Zhao and Zhuofan Ying and Kieran Liu and Andrew Chen and Pony Ma and Zhaoran Wang and Alkesh Patel and Zhe Gan and Xin Eric Wang},
  title = {{Composable Soft-Prompt Distillation of RL Experts: Toward Continual Post-Training}},
  year = {2026},
  eprint = {2611.27376},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27376},
}
Figure