Knowledge distillation through geometry-aware representational alignment

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Bhattarai, Prajjwal, Amjad, Mohammad, Zhylko, Dmytro, Alhanai, Tuka
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909815058464768
author Bhattarai, Prajjwal
Amjad, Mohammad
Zhylko, Dmytro
Alhanai, Tuka
author_facet Bhattarai, Prajjwal
Amjad, Mohammad
Zhylko, Dmytro
Alhanai, Tuka
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_25253
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Knowledge distillation through geometry-aware representational alignment
Bhattarai, Prajjwal
Amjad, Mohammad
Zhylko, Dmytro
Alhanai, Tuka
Machine Learning
Artificial Intelligence
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.
title Knowledge distillation through geometry-aware representational alignment
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2509.25253