INQUIRING LINE

Can you shrink an AI's giant prompt or 'teacher' model down to something smaller without losing what made it good?

Can compressed context distilled into smaller models preserve teacher performance reliably?

This explores whether you can squeeze what a large 'teacher' model knows, or the rich context it works from, into a smaller or cheaper 'student' and still get the teacher's results. The corpus suggests the answer is 'sometimes, and sometimes better', but not reliably, and the reasons it fails are surprising.


This explores whether compressing a big model's knowledge or context into something smaller keeps the big model's performance. The corpus has no paper on 'context distillation' as a named technique. It does come at the question from three directions: compressing prompts, distilling teachers into students, and what the teacher's context does to the student. Together they say performance can be kept, and can even improve, but reliability depends on fit more than on how good the teacher is.

Start with the optimistic case. Prompts turn out to be very compressible. LLMLingua cuts prompts by up to 20x with only about a 1.5-point accuracy drop. The trick is that it doesn't compress evenly: it protects instructions and questions and cuts example demonstrations much harder, using a small model to judge which tokens the big model will barely miss Can prompts be compressed without losing model performance?. On the distillation side, Walmart's search team found that small BERT models trained on large amounts of LLM-labeled data actually beat their LLM teachers Can smaller models outperform their LLM teachers with enough data?. The student saw a wider range of inputs, smoothed by the teacher's judgments, and generalized better than the teacher. So 'preserve' is sometimes too modest a goal.

Now the catch you might not expect: giving the teacher a better context can make the student worse. When teachers are given the correct answer and verifier feedback before writing their reasoning, they produce short, confident traces. Students copy that confidence, and they lose the ability to express uncertainty. They do well on familiar problems and stumble on unfamiliar ones, where caution matters Does richer teacher context hurt student generalization?. In a similar way, teacher-refined training data can hurt a student if the refinements are beyond what the student can learn yet. 'Higher quality' data degrades performance unless the student filters for refinements that fit its own profile Does teacher-refined data always improve student model performance?. The common thread is that what gets transferred includes style and habits as well as knowledge, and those habits may not suit a smaller model.

There are also hard limits on what compressed context can do at all. Prompting can only bring out knowledge a model already has; it cannot add knowledge that is missing Can prompt optimization teach models knowledge they lack?. A compressed prompt handed to a small model therefore can't make up for facts the small model never learned. And when context does conflict with what a model learned in training, the training often wins Why do language models ignore information in their context?. One reframing worth knowing: some researchers argue that turning context into a model's internal state is mostly a compute problem, not a memory problem. More 'consolidation' passes give better results, much like spending more time thinking at inference Is long-context bottleneck really about memory or compute?. Small models aren't hopeless containers either: at tiny scales, deep-and-thin designs get more out of limited parameters than wide ones do Does depth matter more than width for tiny language models?.

The takeaway: compression and distillation can preserve, and sometimes beat, teacher performance on the tasks they were tuned for. 'Reliably' is the weak word in the question. The risk is less that the student gets dumber across the board. It is that the student quietly picks up the teacher's overconfidence, or gets lessons it can't absorb. Those failures show up when the student meets something new, not on the benchmark.


Sources 8 notes

Can prompts be compressed without losing model performance?

LLMLingua achieves up to 20x prompt compression with only 1.5-point performance drops by allocating less compression to instructions and questions, more to demonstrations, then pruning tokens using a small model's perplexity scoring aligned to the target LLM.

Can smaller models outperform their LLM teachers with enough data?

Walmart's student cross-encoders outperformed their LLM teachers when trained on sufficiently large augmented datasets of teacher-labeled queries. The student's broader input distribution exposure, smoothed by teacher predictions, enabled better generalization than the teacher achieved.

Does richer teacher context hurt student generalization?

Teachers conditioned on correct answers and verifier output produce confident, concise traces that students inherit. This style suppresses uncertainty expression, optimizing in-domain performance while degrading generalization to out-of-distribution problems that require epistemic caution.

Does teacher-refined data always improve student model performance?

Teacher-refined data degrades performance when it exceeds the student's learning frontier, even if objectively higher quality. Students should filter refinements using their own statistical profile to retain only compatible improvements.

Can prompt optimization teach models knowledge they lack?

Prompting works entirely within a model's pre-existing training distribution and cannot supply domain knowledge absent from training data. This creates a hard ceiling: no prompt strategy can compensate for missing foundational knowledge, only reorganize what already exists.

Show all 8 sources
Why do language models ignore information in their context?

Research demonstrates that LMs generate outputs inconsistent with their context because parametric knowledge from training dominates over in-context information. Textual prompting alone cannot override strong priors; causal intervention in representations is required.

Is long-context bottleneck really about memory or compute?

Research shows the bottleneck is not memory capacity but the compute required to consolidate evicted context into fast weights during offline sleep phases. Performance improves with more consolidation passes, following a test-time scaling pattern on harder reasoning tasks.

Does depth matter more than width for tiny language models?

MobileLLM shows deep-and-thin architectures yield 2.7–4.3% accuracy gains over balanced designs at 125M–350M scale by composing abstract concepts through layers rather than spreading parameters across width.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.