atlas

Research map / Large language models / Language, safety and interpretability

DistiLLM-2: A Contrastive Approach Boosts the Distillation of LLMs

ICML 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DistiLLM-2, a contrastive LLM distillation loss that applies skew KL to teacher responses and skew reverse KL to student responses, with curriculum-based alpha and beta schedules, improving student models across instruction-following, math, code, preference alignment, and VLM tasks.

Problem

Standard LLM distillation applies the same loss to teacher- and student-generated responses, ignoring the synergy between loss formulation and data type; naive DPO-style distillation (DPKD) suffers reward hacking.

Approach

Use skew KL on teacher-generated outputs (pulling up teacher-likely regions) and skew reverse KL on student-generated outputs (pushing down student samples) in one contrastive objective, with a linear rather than log-sigmoid formulation, plus curriculum-based adaptive alpha and a gradually increasing SRKL weight beta.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace DistiLLM's loss with a contrastive loss for teacher and student responses (ablation)DistiLLM (v1) · Qwen2, Danube2, Gemma2 (average)winning rate (%): 41.55 -> 43.61Helped
increase the SRKL coefficient beta (ablation)DistiLLM-2 contrastive-loss variant · Qwen2, Danube2, Gemma2 (average)winning rate (%): 43.61 -> 44.80Helped
use curriculum-based updates to alpha (ablation)DistiLLM-2 contrastive-loss variant · Qwen2, Danube2, Gemma2 (average)winning rate (%): 43.61 -> 45.22Helped
add both increasing beta and curriculum-based alpha updates (ablation)DistiLLM-2 contrastive-loss variant · Qwen2, Danube2, Gemma2 (average)winning rate (%): 45.22 -> 46.50Helped
replace teacher responses with speculative responses for the SKL term (ablation)DistiLLM-2 · Instruction-followingperformanceHurt
replace student responses with speculative responses for the SRKL term (ablation)DistiLLM-2 · Instruction-followingperformanceHurt
replace the teacher's responses with responses from stronger LLMs for the SKL term (ablation)DistiLLM-2 · Instruction-followingperformanceHurt
use batched on-policy response generation instead of fully on-policy generation (ablation)DistiLLM-2 · databricks-dolly-15k test setROUGE-L: 26.37 -> 26.20Hurt
increase teacher sizeDistiLLM-2 with Qwen1.5-0.5B student · Evol-Instructwinning rate (%): 66.31 -> 74.86 -> 76.78Helped
distill using DistiLLM-2 rather than DistiLLMMistral-7B-Inst -> Danube2-1.8B · Evol-Instructwinning rate (%): 38.87 -> 32.84Hurt

Surprising findings

Limitations

Experimental setup

Datasets: UltraChat200k MetaMathQA WizardCoder RLAIF-V-Dataset AlpacaEval Evol-Instruct UltraFeedback GSM8K MATH HumanEval MBPP OK-VQA

Benchmarks: AlpacaEval Evol-Instruct UltraFeedback GSM8K MATH HumanEval MBPP OK-VQA TextVQA databricks-dolly-15k

Metrics: win rate accuracy pass@1 ROUGE-L

Baselines: KD SeqKD ImitKD GKD DistiLLM Speculative KD DPO DPKD MiniLLM

Builds on: DistiLLM DPO DPKD GKD MiniLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy