After studying this material, you should be able to:
Core Concept: Knowledge distillation is the process of transferring capabilities from a large, expensive "teacher" model into a smaller, deployable "student" model.
Teacher Model Student Model
(Large, Expensive) β (Small, Fast, Deployable)
GPT-4 class Phone/Edge device class
How it works in tool-calling specifically:
"Tool-calling" means a model can invoke external tools (APIs, calculators, search engines) to complete tasks.
The standard pipeline:
1. Teacher model attempts tasks
2. Teacher generates "trajectories" (step-by-step tool-call sequences)
3. Passing trajectories β kept as training data
4. Student model learns by imitating these clean demonstrations
Key Term: Supervised Fine-Tuning (SFT) β training a model by showing it correct input-output examples repeatedly.
The Generate-and-Filter Problem:
The standard pipeline has a critical flaw:
Teacher attempts task
β
PASS? ββYESβββ Keep trajectory β Train student
β
NO
β
DISCARD β β No learning signal extracted
Why this is wasteful β by the numbers:
| Metric | Value |
|---|---|
| Teacher failure rate on ΟΒ²-bench | 57% |
| Of those failures that are "near-misses" | ~67% |
Near-miss = most tool calls were correct, but one decisive error ruined the whole trajectory
The compounding problem:
Analogy:
Imagine a student who takes a test, gets 9/10 questions right but fails because of question 7. The teacher throws away the entire test paper and gives the same test again next week. The student never learns why question 7 was wrong.
PROOF-Gen = Per-scenario Reflective Optimization to Overcome Failed Generation
Core Insight:
Instead of discarding failures, analyze them and guide the teacher to succeed on the same scenario.
The PROOF-Gen Pipeline:
Teacher FAILS on Task X
β
REFLECTOR MODULE
βββ Analyzes execution trace (what happened step by step)
βββ Reads evaluation feedback (why it failed)
βββ Writes "corrective guidance" (specific instructions to fix the error)
β
Teacher re-attempts Task X WITH corrective guidance
β
Teacher PASSES β
β
Guidance is STRIPPED OUT
β
Clean trajectory stored β Student trains on it
Critical Design Choice β Why strip the guidance?
| With Guidance | Without Guidance (PROOF-Gen) |
|---|---|
| Student learns task-specific scaffolding | Student learns generalizable reasoning |
| Overfits to hints | Learns clean demonstrations |
| Won't work on new tasks | Transfers to unseen scenarios |
The student sees only the clean, correct trajectory β not the hints that helped the teacher get there. This is like a student learning from a polished worked example, not from the teacher's rough draft notes.
Recovery Rate:
Failed scenarios before PROOF-Gen: 57% of all tasks
Recovered by PROOF-Gen: 93% of those failures
This means PROOF-Gen converts most "wasted" failures into usable training data.
Student Model Performance Gains:
| Model | Metric | Before | After |
|---|---|---|---|
| Qwen3-4B-Instruct | Pass@1 (ΟΒ²-bench) | 0.132 | 0.529 |
| Gemma 4 E4B-it | BFCL v4 multi-turn | baseline | +7.2pp |
Pass@1 = probability the model solves a task correctly on the first attempt
Real-World Deployment Results:
| Deployment Context | Improvement |
|---|---|
| Trajectory quality (goal completion) | +6.3pp |
| On-device model (goal completion) | +1.5pp |
| Response quality metrics | +1.7 to +5.0pp |
| Non-English locales (average) | +1.48pp |
Key observation: Positive transfer in every locale β the improvement is not limited to English, suggesting the method improves fundamental reasoning, not surface-level pattern matching.
Two related research directions mentioned:
PROBLEM
βββ Standard distillation wastes 57% of teacher compute
βββ Hard scenarios never improve cycle-to-cycle
SOLUTION: PROOF-Gen
βββ Reflector analyzes failures
βββ Writes per-scenario corrective guidance
βββ Teacher re-attempts β succeeds
βββ Guidance stripped β clean data for student
RESULTS
βββ 93% failure recovery
βββ Up to 4x improvement in Pass@1
βββ Positive transfer across languages & deployment contexts
BROADER CONTEXT
βββ On-policy distillation β token-level supervision questions
βββ Scaling laws β compute-optimal teacher/student allocation
PROOF-Gen reframes failures as opportunities. Instead of discarding expensive teacher failures, it extracts corrective signal, recovers clean trajectories, and trains better students β all without leaking task-specific hints into the training data. The result is a more data-efficient distillation pipeline that compounds improvements rather than repeating the same mistakes.