SODA: Semi On-Policy Black-Box Distillation for Large Language Models

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

Summary

SODA (Semi On-policy Distillation with Alignment) is a novel, highly efficient framework for black-box knowledge distillation of large language models. It addresses the trade-off between simple off-policy methods like SeqKD, which struggle with student errors, and fully on-policy methods like GAD, which incur high computational overhead and instability. SODA constructs an effective contrastive signal by pairing a frontier teacher model's superior responses with a one-time static snapshot of a smaller student model's inferior zero-shot outputs. This approach, utilizing Direct Preference Optimization, eliminates the need for costly dynamic rollouts or fragile adversarial training. Evaluations across Qwen2.5 and Llama-3 models (3B-14B) with GPT-5-Chat as teacher show SODA matches or outperforms leading methods on 15 out of 16 benchmarks, while training 10x faster and using 27% less peak GPU memory.

Key takeaway

For Machine Learning Engineers tasked with distilling large language models for efficient deployment, SODA offers a compelling alternative to complex on-policy methods. You can achieve top-tier distillation quality, matching or exceeding GAD, while benefiting from 10x faster training and 27% less peak GPU memory. This approach eliminates the instability of adversarial training, making your distillation pipeline more robust and resource-friendly. Consider integrating SODA to efficiently produce capable small models from proprietary teachers.

Key insights

A static snapshot of a student's own inferior responses provides an efficient, targeted contrastive signal for black-box LLM distillation.

Principles

Method

Generate base student responses offline, perform a brief supervised warmup, then apply DPO using teacher responses as preferred and base student responses as rejected.

In practice

Topics

Code references

Best for: Research Scientist, AI Engineer, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.