Knowledge distillation through geometry-aware representational alignment

Prajjwal Bhattarai, Mohammad Amjad, Dmytro Zhylko, Tuka Alhanai
9/27/2025
cs.LGcs.AI

No official code found. Best implementation: x-labs-xyz/feature-distillation (1 star, MIT, last commit 2025-08-05).

Abstract

Knowledge distillation is a common paradigm for transferring capabilities from larger models to smaller ones. While traditional distillation methods leverage a probabilistic divergence over the output of the teacher and student models, feature-based distillation methods often minimize variants of Euclidean norms between the hidden layer representations. The main goal is for the student to mimic the structure of the feature space of the teacher. In this work, we theoretically show that existing feature distillation methods, such as projection based mean squared loss or Centered Kernel Alignment (CKA), cannot capture the feature structure, even under zero loss. We then motivate the use of Procrustes distance and the Frobenius norm of Feature Gram Matrix, distances already common in the context of measuring representational alignment, as distillation losses. We show that feature distillation through our method showcases statistically significant improvement in distillation performance across language models families (BERT and OPT) in classification and instruction-following tasks by up to 2 percentage points, showcasing the potential of integrating feature geometry into existing distillation methods.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "Knowledge distillation through geometry-aware representational alignment"

10Python, Jupyter NotebookAug 1, 20251 years agoMIT

Similar Papers

Cite this paper

@article{bhattarai2025knowledge,
  title  = {Knowledge distillation through geometry-aware representational alignment},
  author = {Prajjwal Bhattarai and Mohammad Amjad and Dmytro Zhylko and Tuka Alhanai},
  year   = {2025},
  eprint = {2509.25253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.25253v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.25253.svg)](https://codeofpaper.com/paper/2509.25253)

Discussion