Synthesizing Instruction-Tuning Datasets with Contrastive Decoding
cs.CL
Submitted: 2026-04-15
Updated: 2026-08-26
Comments: 26 pages, 7 figures
Code: https://github.com/Tatsuya736482/contrastive_decoding_public
License: http://creativecommons.org/licenses/by/4.0/
The gist: Using responses generated by high-performing large language models (LLMs) for instruction tuning has become a widely adopted approach.
Terminology
Abstract
Using responses generated by high-performing large language models (LLMs) for instruction tuning has become a widely adopted approach. However, the existing literature overlooks a property of LLM-generated responses: they conflate world knowledge acquired during pre-training with instruction-following capabilities acquired during post-training. We hypothesize that disentangling the instruction-following capabilities from pre-trained knowledge improves the effectiveness of instruction tuning. To this end, we propose CoDIT, a method that applies contrastive decoding between a post-trained model and its pre-trained counterpart during response generation. The method suppresses pre-trained knowledge shared between the two models while amplifying the instruction-following behavior acquired via post-training, resulting in responses that more purely reflect instruction-following capabilities. Experiment results demonstrate that models trained on datasets constructed via CoDIT consistently outperform those trained on directly generated responses. Training on our datasets also yields better performance than on existing publicly available instruction-tuning datasets across multiple benchmarks. Furthermore, we theoretically and empirically show that CoDIT can be interpreted as distilling the chat vector from parameter space to text space, enabling the transfer of instruction-tuning capabilities across models of different architectures.
Sources
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Olmo 3
- Gemma 3 Technical Report
- The Llama 3 Herd of Models
- Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2
- Orca 2: Teaching Small Language Models How to Reason
- Orca: Progressive Learning from Complex Explanation Traces of GPT-4
- GPT-4 Technical Report
- ZeRO: Memory Optimizations Toward Training Trillion Parameter Models
- MoDS: Model-oriented Data Selection for Instruction Tuning
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering