Don't Throw Away Your Pretrained Model

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

Alignment training, such as Reinforcement Learning from Human Feedback (RLHF), is often a double-edged sword. While it significantly boosts a model's reasoning capabilities and safety guardrails, it frequently imposes an "alignment tax"—diminishing the model's creativity and factual recall. This paper introduces Switch Generation, a novel framework where different checkpoints from a model's training pipeline (pretrained, finetuned, and aligned) collaborate in real-time. Guided by a specialized "switcher" model, this system dynamically selects the best expert for each segment of a response, aiming to achieve the best of all worlds.

The Problem: The Disposable Checkpoint Paradigm

In the current Large Language Model (LLM) development cycle, intermediate model checkpoints are typically treated as disposable stepping stones. Developers start with a Pretrained base, perform Supervised Fine-Tuning (SFT), and finish with Alignment (RLHF). Usually, only the final aligned model is deployed to end-users.

However, aligned models often suffer from increased sycophancy, reduced creativity, and sometimes poorer factual accuracy compared to their "unaligned" ancestors. The authors argue that a single user prompt rarely requires a monolithic response. Instead, a high-quality answer might require raw knowledge recall (where base models shine) followed by complex reasoning and formatting (where aligned models excel). The core challenge is learning how to dynamically "switch" between these models during a single generation.

Methods: The Switch Generation Framework

The authors propose treating the various stages of a model's training lifecycle as a panel of specialized experts.

  1. The Switcher LM: The researchers train a small "switcher" language model to solve the Query-Trace-Candidate (QTC) problem. Given a user query and the text generated so far (the "trace"), the switcher predicts which candidate model should generate the next segment.
  2. Learning to Switch: To train this switcher, the authors employ a "roll-out" strategy. For various queries, they allow each candidate model to generate a continuation. These continuations are scored using automated metrics (like accuracy or reward models), creating a supervised dataset. The switcher learns contextual cues: for instance, recognizing when to call the Pretrained model for facts versus the Aligned model for formatting.
Overview of the Switch Generation framework, showing how the switcher learns to select the best candidate model for the next segment.
  1. Patch-based Inference: Switching models at every single token is computationally prohibitive. Instead, the system generates text in "patches" (e.g., 50 tokens at a time). The switcher intervenes at the start of each patch to hand off the baton to the most capable model.
  2. Collaboration Distillation: Recognizing that running three separate models simultaneously is expensive, the authors demonstrate that this "collaborative" behavior can be distilled back into a single model. This distilled model retains over half of the performance gains at a fraction of the inference cost.

Experimental Setup

The study evaluates the method across 18 diverse datasets, categorized by which model they naturally favor:

  • Base-favored (Knowledge/Creativity): WikiDYK, TruthfulQA, Poem generation, GuessBench, and Movie reviews.
  • Alignment-favored (Reasoning/Safety): GSM8k (math), BigBench-Hard, NLGraph, Alpaca (instruction following), and Coconot (safety).
  • General/Unclear: MMLU-pro, AGIEval, PopQA, and ScienceMeter.

The primary models used for collaboration were the Tulu-v3 family (based on Llama-3.1-8B) and Qwen 2.5.

Key Insights and Results

The results demonstrate that model collaboration is highly effective, outperforming individual models on 16 out of 18 tasks.

  • Outperforming Baselines: Switch Generation beat 11 other collaboration baselines (including routing and model merging) by an average of 12.9%.
  • Compositional Intelligence: Switch Generation successfully solved 10.7% of problems that none of the individual models could solve alone. This proves that the models can complement each other's mid-response weaknesses, making the whole greater than the sum of its parts.
  • Temporal Roles: Analysis revealed a clear pattern during generation. The Pretrained model is most active at the beginning of a response (recalling facts and grounding the answer), while the Aligned model takes over toward the end (summarizing and ensuring the response follows the user's requested format).
  • Zero-Shot Generalization: A switcher trained on the Tulu model family worked surprisingly well when applied to the Qwen family without any additional training, suggesting that "knowing when to switch" is a highly transferable skill.
Performance comparison across diverse datasets, highlighting the superiority of the collaborative approach ('full ours').

Furthermore, on tasks where it was previously unclear if a base model would help, Switch Generation saw a 6.58 point average gain, proving its adaptability. Through distillation, the authors successfully recovered 57.5% of the collaborative gains while using only a single model for inference.

Limitations and Future Work

While promising, Switch Generation has limitations. Even with patch-based generation, calling a switcher and loading multiple models increases latency and memory requirements. Additionally, integrating unaligned base models into a pipeline introduces potential safety risks; if the switcher is not perfectly tuned, it could bypass safety guardrails.

Future work will explore dynamic patch sizes—allowing the model to decide exactly when to hand over control rather than relying on fixed token counts—and expanding the pool of experts to include specialized checkpoints, such as code-specific or math-specific models.

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