Geometric Self-Distillation Improves LLM Out-of-Distribution Reasoning

Josip Juki\'c, Ivan Titov· July 9, 2026 View original

Summary

This paper introduces GeoSD, a novel geometric self-distillation objective that enhances large language models' out-of-distribution reasoning by mitigating "drift" during training. It uses a Hellinger loss to scale teacher preferences and a Fisher-Rao distance proximal term to penalize prediction drift, leading to more robust generalization.

On-policy distillation is a common technique for post-training large language models, where a teacher model provides supervision on the student's own generated text. A specific variant, privileged-context self-distillation, uses the same model as both teacher and student, but the teacher receives additional hints or full solution traces. While this provides abundant supervision, it can lead to issues: the teacher might be overly confident about continuations that are obvious with its privileged view but not yet justifiable by the student. This discrepancy can cause "drift" over many updates, degrading the student's ability to reason effectively on out-of-distribution data. To counter this, the researchers propose GeoSD, a geometric self-distillation objective. GeoSD addresses drift by treating it as movement in the student's predictive behavior. It incorporates two main components: first, a Hellinger loss scales each teacher preference based on the overlap the student already shares, reducing the pull on tokens the student cannot yet support. Second, a proximal term penalizes how far the student's predictions drift from a recent checkpoint, using a Fisher-Rao distance, which measures distance in the geometry of next-token distributions. Evaluations across mathematical reasoning benchmarks and three different model families (1.7B to 32B parameters) show that GeoSD not only maintains in-distribution performance gains but also significantly improves average out-of-distribution accuracy by 5.7-8.6 points compared to the base model. Analysis reveals that standard matching methods can lead to confident agreement on incorrect answers by draining mass from alternatives, whereas GeoSD preserves these alternatives, leading to more robust and generalizable reasoning.

Why it matters

For professionals developing or deploying LLMs, improving out-of-distribution reasoning is crucial for reliable performance in real-world, diverse applications, reducing the risk of confident but incorrect outputs. This method offers a path to more robust and trustworthy AI systems.

How to implement this in your domain

  1. 1Explore integrating GeoSD into your LLM fine-tuning pipelines, especially for tasks requiring strong generalization beyond training data.
  2. 2Experiment with Hellinger loss and Fisher-Rao distance as regularization terms in your distillation objectives.
  3. 3Benchmark the OOD performance of your current LLMs and compare it with models trained using geometric self-distillation.
  4. 4Consider applying this technique to specialized LLMs where reasoning accuracy on novel inputs is paramount.
  5. 5Analyze the impact of different distillation strategies on model confidence and the distribution of predicted tokens.

Who benefits

AI DevelopmentSoftware EngineeringResearch & DevelopmentEducationFinance

Key takeaways

  • Standard self-distillation can lead to "drift" and degrade out-of-distribution reasoning in LLMs.
  • GeoSD uses geometric principles (Hellinger loss, Fisher-Rao distance) to mitigate this drift.
  • The method significantly improves LLM generalization and OOD accuracy across various model scales.
  • It helps prevent models from confidently agreeing on wrong answers by preserving alternative predictions.

Original post by Josip Juki\'c, Ivan Titov

"arXiv:2607.06855v1 Announce Type: new Abstract: On-policy distillation is a practical post-training recipe for large language models, supplying dense teacher supervision on the student's own trajectories. In privileged-context self-distillation, teacher and student are the same m…"

View on X

Originally posted by Josip Juki\'c, Ivan Titov on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Research

AI ResearchAI Engineering & DevTools

Transformers Learn Non-Invertible Modular Multiplication via Stratified Fourier Mechanisms.

This research investigates how small transformers learn modular integer multiplication over composite moduli, a non-invertible operation. It proposes the "monoid extension" theory, suggesting models partition input space into hierarchical algebraic regions where Fourier mechanisms apply, explaining how embeddings, attention, and local features contribute to the computation.

Zitong Andrew Chen, Junaid Hasan, Akhil Srinivasan, Hemkesh Bandi, Jarod AlperJul 9, 2026
AI Engineering & DevToolsAI Research

New Interpretable Model Handles Feature Interactions in Tabular Data.

This paper introduces Interaction Aware Interpretable Machine Learning (IAIML), a framework for tabular data that addresses the limitation of traditional interpretable models in capturing feature interactions. IAIML uses adaptive discretization, pairwise interaction scoring, and a partitioned explanation budget to achieve high accuracy while maintaining interpretability.

Srikumar KrishnamoorthyJul 9, 2026
AI ResearchAI Engineering & DevTools

Principles of Deep Feedforward ReLU Networks Unveiled.

This paper systematically studies the mechanisms of deep feedforward ReLU networks, generalizing principles from two-layer networks to deeper architectures. It explains how hidden-layer units form piecewise linear manifolds to divide input space and how paths and their relationships are central to understanding the back-propagation training solution.

Changcun HuangJul 9, 2026