Introduction
Large Language Models (LLMs) such as Llama 2 are predominantly English-centric. Despite possessing vast multilingual knowledge from pre-training, they often fail to "activate" this knowledge when prompted in other languages, typically defaulting to English responses. The conventional solution is Supervised Fine-Tuning (SFT) on multilingual instruction-following data. However, SFT is resource-intensive, requires high-quality curated data, and risks "catastrophic forgetting" of original reasoning capabilities.
This research explores the superficial alignment hypothesis: the notion that SFT does not teach new languages but rather provides a stylistic trigger to access existing internal knowledge. To test this, the authors propose PRETTY (Prefix TexT as a Yarn), a training-free alignment framework that elicits non-English capabilities by simply prepending a few "prior tokens" to the model's output.
The PRETTY Framework
PRETTY operates by providing the foundation model with a "yarn"—a minimal snippet of the target output—to guide the decoding process. This nudge effectively "snaps" the model into the correct language and task mode.
The framework utilizes three strategies for generating these prior tokens (typically the first 1-2 words):
- SFT Prior: Tokens generated by an existing SFT-tuned model.
- Refined Prior: Tokens generated by a much smaller, specialized model (e.g., the 600M parameter NLLB).
- Pseudo Prior: For low-resource settings, a simple bilingual dictionary translates the first word of the input to serve as the starting token.
Insights into Model Alignment
The study reveals several critical insights into how LLMs handle cross-lingual tasks:
- The "Silent Majority": Even when a base model outputs English, the correct non-English token often resides in the top-20 candidates with significant probability. PRETTY elevates these candidates to the top choice.
- Superficiality of SFT: Adding just one or two tokens causes the base model's probability distribution to align almost perfectly with an SFT-tuned model. This suggests SFT acts more as a behavioral switch than a deep learning process.
- Weak-to-Strong Generalization: A small, specialized model (Refined Prior) can effectively steer a massive foundation model, combining specialized linguistic direction with general intelligence.
- Potential Harms of SFT: In specific tasks like Part-of-Speech (POS) tagging, foundation models guided by PRETTY outperformed SFT models, suggesting that fine-tuning might degrade inherent linguistic knowledge.
Experimental Results
The researchers evaluated PRETTY across benchmarks including Flores-101, WMT23, CrossSum, and XGLUE, covering eight diverse languages.
Key findings include:
- Translation Performance: On Flores-101, Llama2-7B with PRETTY (Refined Prior) achieved 100.9% of the performance of its SFT-tuned counterpart. Mistral-7B reached an impressive 124.6%.
- Summarization and Tagging: PRETTY enabled stable, high-quality outputs in languages where base models previously failed. In POS tagging, the training-free approach often surpassed fine-tuned models.
- Efficiency: PRETTY requires zero training and minimal inference overhead, offering a computationally efficient alternative to maintaining multiple fine-tuned checkpoints.
Conclusion and Future Directions
While PRETTY demonstrates remarkable efficacy for 7B parameter models, questions remain regarding its scalability to 70B+ models and its performance on complex multi-step reasoning tasks. Additionally, extremely low-resource languages without basic dictionaries pose a challenge for the "Pseudo Prior" approach. Future work may extend this prefix-based alignment to Reinforcement Learning from Human Feedback (RLHF) and more diverse reasoning domains.
Summary updated