Cross-model Control: Improving Multiple Large Language Models in One-time Training

Jiayi Wu, Hao Sun, Hengyi Cai, Lixin Su, Shuaiqiang Wang, Dawei Yin, Xiang Li, Ming Gao

Fine-tuning large language models (LLMs) is a resource-intensive endeavor. Typically, teaching multiple models to follow instructions or unlearn sensitive data requires separate training sessions for each. Researchers from East China Normal University, Peking University, and Baidu propose Cross-model Control (CMC), a novel framework that breaks this cycle by training a single, portable "tiny" model once to transfer behaviors to various larger models without modifying their weights.

Abstract

Fine-tuning large language models (LLMs) is computationally expensive, typically requiring separate training for each model. This paper introduces Cross-model Control (CMC), a framework that trains a single, portable "tiny" delta model once to transfer specific behaviors to multiple larger models. By leveraging the observation that logit shifts are similar across different architectures, CMC enables model enhancement without modifying the base weights of target models. We also introduce PM-MinED, a token-mapping strategy to bridge vocabulary gaps. Experiments on instruction tuning and unlearning demonstrate that CMC significantly improves performance across various model scales and architectures at a fraction of the traditional fine-tuning cost.

The Core Challenge: The "One-and-Done" Bottleneck

The current paradigm for model optimization is model-specific. Fine-tuning outcomes are locked into the architecture they were trained on. For instance, learned weights for Llama-2-7B cannot be directly applied to Mistral-7B or Llama-2-70B due to differences in internal structures and vocabularies. This creates a bottleneck for users with limited computational budgets. CMC addresses this by asking: Can we capture the "essence" of fine-tuning and apply it as a portable module to any model?

Methodology

Overview of the CMC framework, showing the training of a portable tiny LM on a template model and its subsequent sharing with various user models.

Universal Logit Shifts

The researchers discovered that while LLMs differ in internal weights, the logit shift—the change in output probability distribution before and after fine-tuning—is remarkably similar across different models for the same task. This empirical observation forms the foundation of CMC.

Logit shifts across different models (Llama2 and Mistral) exhibit high similarity for the same task, suggesting a universal direction for improvement.

The CMC Framework

The CMC framework operates in two stages:

  1. Training Stage: A "Template LLM" (e.g., Llama-2-7B) is frozen. A "Tunable Tiny LM" (the delta model) is trained alongside it to predict the necessary adjustments to the Template LLM's output to achieve a target goal.
  2. Inference Stage: This tiny delta model (as small as 15M parameters) is shared with other "User LLMs." At runtime, the User LLM generates base probabilities, and the delta model adds its learned "nudges" to them.

Bridging the Vocabulary Gap with PM-MinED

A major hurdle in sharing a delta model is differing tokenizers. The authors introduced Prefix-Match with Minimal Edit Distance (PM-MinED) to solve this. Instead of exact token matches, it identifies semantically related tokens by analyzing shared prefixes and calculating edit distances. This ensures that a nudge for a token like "ultimate" in the delta model correctly maps to "ultimately" in a user model.

Experimental Evaluation

The authors evaluated CMC on two distinct tasks:

  • Instruction Tuning: Using the GPT4-Alpaca dataset and AlpacaEval benchmark.
  • Unlearning: Using the TOFU benchmark to test the model's ability to "forget" specific information while retaining general knowledge.

Key Results

  • Instruction Following: On AlpacaEval, a Llama-2-70B model using a CMC delta model (trained on a 7B template) achieved a 49.81% win rate, compared to the vanilla base model's 11.55%.
  • Unlearning: CMC successfully reduced the probability of outputting "forgotten" information to near zero without degrading performance on unrelated tasks.
  • Efficiency: CMC achieves these results with significantly lower inference costs than methods requiring two full-sized models.

Discussion and Limitations

CMC demonstrates that tiny models can act as effective "controllers" for much larger models, suggesting that the necessary knowledge often resides within the base model and only needs specialized steering. However, limitations remain:

  • Vocabulary Constraints: The delta model is limited by its own vocabulary; mapping may fail for tokens in languages unseen by the delta model.
  • Performance Ceiling: While highly portable, CMC slightly trails full LoRA fine-tuning on target models—a trade-off for significantly reduced training costs.

Future work may explore CMC for detoxification or domain-specific adaptation in a plug-and-play fashion.

Summary updated

BibTeX
@inproceedings{wu2024cross,
  author = {Jiayi Wu and Hao Sun and Hengyi Cai and Lixin Su and Shuaiqiang Wang and Dawei Yin and Xiang Li and Ming Gao},
  title = {{Cross-model Control: Improving Multiple Large Language Models in One-time Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=YPqHSTSoFs},
}
Figure