Don't Throw Away Your Pretrained Model

Shangbin Feng, Wenhao Yu, Yike Wang, Hongming Zhang, Yulia Tsvetkov, Dong Yu

TL;DR

Alignment training improves a language model's reasoning and instruction-following abilities but often degrades core capabilities like creativity, calibration, and factual recall. This paper introduces SWITCH GENERATION, a framework where different checkpoints from the same training pipeline (pretrained, finetuned, and aligned) dynamically take turns generating segments of a single response. Guided by a trained "switcher" model, this collaborative inference approach consistently outperforms individual models and standard routing baselines across a wide variety of tasks.

What Problem Does This Paper Address?

Alignment techniques like Reinforcement Learning from Human Feedback (RLHF) are essential for making LLMs safe and helpful. However, this process introduces an "alignment tax," often degrading the model's performance in areas like factual knowledge retrieval, calibration, and creative diversity.

The authors argue that a typical model response is not monolithic; it requires a mix of interleaving skills. For instance, a model might need to first understand formatting instructions, recall a niche historical fact, reason through a logical connection, and finally summarize the answer.

Figure 1: Model responses are not monolithic: they switch across diverse skills which favor dif- ferent model checkpoints in the training pipeline, thus we introduce model-guided collaborative in- ference to optimally use models with diverse skills for different segments of response generation.

While a fully aligned model excels at reasoning and formatting, it might fail at raw knowledge recall where its pretrained base version was superior. Instead of discarding intermediate checkpoints once the final aligned model is trained, this paper addresses how to reuse them collaboratively during inference.

Methods

The authors propose SWITCH GENERATION, an inference-time model collaboration algorithm:

  • The Switcher LM: They train a small "switcher" language model to solve the Query-Trace-Candidate (QTC) problem: given the user query, the text generated so far (trace), and the available model candidates, which model checkpoint should speak next?
  • Training via Rollouts: To train the switcher, they simulate generation paths. For a given query and partial trace, each candidate model generates a continuation segment. The framework then samples $k$ random rollouts to complete the response and scores the final outcomes. The checkpoint that yields the highest average score becomes the target label for that specific context, creating a supervised fine-tuning (SFT) dataset for the switcher.
  • Patch-based Inference: Instead of switching models token-by-token—which breaks the continuity of thought and is computationally expensive—the switcher selects a model to generate a fixed-size "patch" of tokens (e.g., 50 tokens) before evaluating who should speak next.
Figure 2: Overview of the SWITCH GENERATION framework.
  • Distillation: To eliminate the overhead of running multiple models simultaneously at inference time, they also propose distilling the collaborative switching patterns back into a single aligned model by fine-tuning it on the generated collaborative outputs.

Datasets

The method is evaluated across 18 diverse datasets grouped into three categories based on the expected utility of the base model:

  1. Base model helpful: Knowledge/factuality (WikiDYK, TruthfulQA), creativity (Poem, GuessBench), pluralism, sycophancy, generation diversity (Movie reviews), and uncertainty (AbstainQA).
  2. Base model worse: Reasoning (GSM8k, BigBench-Hard, NLGraph), instruction following (Alpaca), and safety (Coconot).
  3. Unclear effect: General QA (MMLU-pro, AGIEval, PopQA) and scientific literature (ScienceMeter).

They also test generalization out-of-the-box on 6 unseen datasets: Normad, Human Interests, MATH, Knowledge Crosswords (K-Cross), ARC-challenge, and MedQA.

Key Insights and Ideas

  • Weak Models are Diamonds in the Rough: Even if a pretrained base model performs poorly on its own due to formatting or instruction-following issues, it remains highly valuable in a collaborative system.
Figure 4: Correlation between the performance and helpfulness of the pretrained model. While not being the best individual model, it is consis- tently helpful in the model collaboration system.
  • Compositional Skill Discovery: Switch Generation doesn't just aggregate existing skills; it solves entirely new problems. The system successfully answered 10.7% of problems that none of the individual models could solve on their own.
  • Natural Division of Labor: Analysis reveals that the switcher naturally learns an intuitive workflow: it prefers the aligned model at the very beginning and end of a response (for instruction following and summarization) but hands over the reins to pretrained or finetuned models in the middle (for raw knowledge exploration and creativity).

Key Results

  • Outperforming Baselines: Model collaboration outperformed individual models on 16 out of 18 tasks. SWITCH GENERATION beat all 8 baselines (including RouteLLM, text-level debate, and weight merging) on 13 datasets, yielding a 12.9% average relative improvement.
  • Generalization: The switcher trained on the Tulu-v3 suite generalized successfully to entirely different model families (like Qwen2.5-7B) and unseen tasks, outperforming baselines by 3.9% on average on new datasets.
  • Efficient Distillation: Distilling the collaborative generation behavior back into a single aligned model recovered 58% of the performance gains while reducing the inference cost back down to a single standard model.
Figure 3: Distilling the collaboration patterns of SWITCH GENERATION back into the aligned model. Distillation re- covers 58% of the collaboration gains with only one fourth of the inference cost.

Limitations and Future Work

  • Inference Overhead: Running multiple models simultaneously requires significant GPU memory and orchestration, though this is partially mitigated by patch-based generation and the single-model distillation strategy.
  • Fixed Patch Size: The current implementation uses a fixed token patch size hyperparameter (e.g., 50 tokens). The authors note that the optimal patch size varies by task, suggesting that dynamic, flexible patch sizing is an important direction for future work.
  • Safety Risks: Because unaligned base models are reintroduced into the generation loop, there is a potential risk that they might bypass or override the safety guardrails established in the aligned model. The authors highlight this as a critical area for future safety and red-teaming research.

Summary updated

BibTeX
@inproceedings{feng2026don,
  author = {Shangbin Feng and Wenhao Yu and Yike Wang and Hongming Zhang and Yulia Tsvetkov and Dong Yu},
  title = {{Don't Throw Away Your Pretrained Model}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=1TTeOEufHz},
}
Figure