Symbol tuning improves in-context learning in language models
Jerry W. WeiLe HouAndrew K. LampinenXiangning ChenDa HuangYi TayXinyun ChenYifeng LuDenny ZhouTengyu Ma
Demonstrates that finetuning language models on input-label pairs with arbitrary symbols forces them to genuinely reason over in-context mappings, leading to substantial gains on algorithmic tasks, underspecified prompts, and counterfactual examples where models must override prior knowledge.
Large language models frequently struggle to adapt reliably when given few-shot examples in prompts, often relying heavily on rigid instructions and pre-existing semantic knowledge rather than genuinely learning the task from the provided context. When prompts lack clear descriptions or natural language labels, these systems often fail to deduce the intended task. The article introduces and evaluates "symbol tuning," a finetuning method designed to force models to learn input–label mappings directly from in-context examples by replacing natural language labels with arbitrary symbols (such as random words, character combinations, or integers) and omitting instructions.
To evaluate this method, the authors finetuned instruction-tuned models across four sizes (from 8 billion to 540 billion parameters) on a balanced mixture of 22 classification datasets mapped to approximately 30,000 arbitrary symbols. They evaluated the models across 11 unseen natural language processing datasets in varying prompt formats, as well as on separate algorithmic reasoning benchmarks and prompts with intentionally flipped labels to test adaptability.
The findings show that symbol tuning substantially enhances in-context learning. First, for models with 62 billion parameters or more, the method improved performance across all prompt settings, delivering the largest gains—between 5.5% and 15.5%—when prompts lacked instructions and relevant labels. Notably, symbol-tuned 62-billion-parameter models matched or outperformed standard 540-billion-parameter models in these underspecified settings, effectively reducing the compute needed at inference time by roughly tenfold. Second, despite being trained solely on natural language text, symbol-tuned models demonstrated dramatic improvements on algorithmic reasoning benchmarks, gaining up to 18.2% on list manipulation tasks and 15.3% on Turing concept tasks. Third, symbol tuning restored the ability to follow flipped labels (such as inverted sentiment definitions), improving accuracy by 26.5% to 34.0% over standard instruction-tuned models, which routinely fail when in-context examples contradict their prior knowledge.
These results demonstrate that symbol tuning compels models to reason dynamically over exemplars rather than relying passively on memorized concepts. In practice, this reduces prompt brittleness and allows organizations to deploy smaller, more cost-effective models without sacrificing reasoning performance. The approach is directly actionable for teams developing or deploying large language models on complex reasoning pipelines, though further work is needed to explore scaling the training mixture beyond 22 datasets and adapting symbol tuning to open-ended text generation tasks. Overall, confidence in these findings is high for classification and algorithmic mappings across the tested model family, though practitioners should exercise caution when applying the technique to the smallest model sizes (such as 8 billion parameters), where symbol tuning caused minor performance drops on standard tasks due to overfitting.
- Paper: Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?, Sewon Min et al. (2022). Its finding that randomizing demonstration labels often preserves in-context learning motivates Symbol Tuning’s central test of whether models can learn input–label mappings without relying on meaningful labels.
- Paper: Meta-learning via Language Model In-context Tuning, Yanda Chen et al. (2022). Its in-context tuning approach establishes the meta-training setup that Symbol Tuning adapts by training models to infer tasks from demonstration mappings.
- Paper: MetaICL: Learning to Learn In Context, Sewon Min et al. (2022). MetaICL’s training of models to learn tasks from raw input–output examples provides a direct precursor to Symbol Tuning’s use of demonstration pairs.
No sufficiently relevant recommendations were found.
