Knowledge Distillation of Black-Box Large Language Models (2024)
TL;DR Highlight
Adding a proxy model let black-box distillation beat white-box KD.
Who Should Read
LLM service developers who want to transfer the ability of API-only models like GPT-4 into a smaller in-house model
Core Mechanics
- Hidden internals block distillation
- Proprietary LLMs like GPT-4 expose only outputs, not internal states.
- The paper says this limits effective knowledge transfer.
- Proxy-KD adds a middleman
- A proxy model sits between the black-box teacher and the student to transfer knowledge efficiently.
- Black-box KD got better
- The paper reports improved performance over existing black-box teacher KD.
- It also beats white-box KD
- The paper claims it surpasses traditional white-box KD.
- The abstract gives no specific numbers.
Community Reactions
- Opinion that the gap versus plain SFT is small
- A commenter noted the difference between SFT alone on the student and SFT+DPO on a proxy is very small.
- They suggested focusing on making the SFT dataset perfect instead.
- Opinion that a follow-up is more interesting
- A commenter pointed to 2511.10643 'Black-Box On-Policy Distillation'.
- They said it trained Qwen 2.5 14B to GPT5 level using GAD.
- Related paper recommendation
- A commenter recommended 1908.08962 on pre-training compact models.
- Request to label the year
- Commenters asked for the 2024 date in the title and wondered why it was reposted.
How to Apply
- Build an SFT baseline from teacher outputs first
- Today, collect 100-200 teacher responses and check their quality as student SFT data.
- Use this as the baseline for comparing complex methods like Proxy-KD.
- Measure gain over SFT before adopting distillation
- Before adding DPO or proxy stages, measure improvement over SFT on the same eval set.
- If the gap is small, invest in data cleaning.
Try It
# Paste into Claude or ChatGPT (simplified version of the paper's method: teacher response quality check)
Below are samples of a large model's (teacher) responses I want to use as SFT data for a smaller model.
Rate each sample 1-5, and flag samples harmful for training (errors, ambiguity, format mismatch) with reasons.
Finally, summarize 3 improvement points for the whole dataset.
Task description: {{task description}}
Samples:
{{list of prompt-response pairs}}Terminology
Related Papers
Quadrillion-parameter transformers and how to train them
On fixed data, much bigger models with scaled weight decay and ensembling keep loss falling as compute grows.
Astra can read and write weights to improve Qwen
An LLM edited Qwen3.5-0.8B's weights directly, lifting MATH-500 from 7.9% to 48.1%.
Show HN: Qwen3-4B with the AI writing tics trained out
Distilling Qwen3-4B with LoRA cut its AI-writing slop score from 121 to 12.5 per 1000 words
Dust: Pretraining Transformers Without Backpropagation
Adding per-token noise to activations lets transformers pretrain without backpropagation, rivaling backprop.
Show HN: TurboGPT: train 22KiB transformer in 13s
A CUDA C++ project trains a tiny byte-level GPT in under a minute.
I had Gemini train its own replacement for $9
Fine-tuning GLiNER on $9 of Gemini labels reached 0.83 F1 locally.
Learning to solve hard problems in RL for LLMs by never giving up
Cutting compute on easy problems and retrying hard ones in RL raised accuracy on the hardest problems
Training a 3.8B LLM to 0.384 CORE for $998
A 3.8B LLM trained on 8 B200s in 43 hours for $998 scored 0.384 on CORE.