Don't Throw Away Your Pretrained Model
Shangbin Feng, Wenhao Yu, Yike Wang, Hongming Zhang, Yulia Tsvetkov, Dong Yu
TL;DR
This work tackles the alignment tradeoffs in language models by proposing model collaboration through Switch Generation, where a dedicated switcher LM dynamically assigns next-segment generation to pretrained, finetuned, or aligned checkpoints. By training on outcomes of candidate-segment generation and using patch-level routing, Switch Generation achieves strong improvements over individual checkpoints and baselines, with an average 12.9% gain across 18 datasets and 13 datasets where it dominates. The approach generalizes to unseen models and tasks and can distill its collaborative gains back into a single aligned model, reducing inference costs while preserving strengths. Overall, the work demonstrates the value of reusing byproducts from the model development lifecycle and provides a practical framework for compositional, adaptable AI systems.
Abstract
Alignment training has tradeoffs: it helps language models (LMs) gain in reasoning and instruction following but might lose out on skills such as creativity and calibration, where unaligned base models are better at. We aim to make the best of both worlds through model collaboration, where different models in the training pipeline collaborate and complement each other. Since LM responses feature interleaving skills that favor different models, we propose Switch Generation, where pretrained and aligned model versions take turns to ``speak'' in a response sequence. Specifically, we train a switcher LM by learning from outcomes of choosing different models to generate the next segment across diverse queries and contexts. At inference time, the switcher LM guides different model checkpoints to dynamically generate the next segment where their strengths are most needed. Extensive experiments with 8 model collaboration baselines and 18 datasets show that 1) model collaboration consistently outperforms individual models on 16 out of 18 tasks, and 2) Switch Generation further outperforms baselines by 12.9% on average. Further analysis reveals that Switch Generation discovers compositional skills to solve problems where individual models struggle and generalizes to unseen models and tasks, reusing and repurposing by-products in expensive model training pipelines that are otherwise discarded.
