Saved in:
Bibliographic Details
Main Authors: Saadi, Khouloud, Wang, Di
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.10155
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908824115347456
author Saadi, Khouloud
Wang, Di
author_facet Saadi, Khouloud
Wang, Di
contents Feature-based knowledge distillation aims to transfer intermediate representations from a teacher LLM model to a student. Existing approaches typically rely on direct feature matching or learned projections, implicitly treating representations as objects with intrinsic meaning. However, the relevance of a representation dimension is determined solely by how it affects the model's output. In this work, we propose a functional perspective on feature-based distillation. We characterize knowledge transfer in terms of the teacher's functional geometry, i.e., how its output depends on internal representations, rather than direct representation alignment. This viewpoint reveals that effective distillation need not preserve full high-dimensional features, but instead should retain dominant directions of functional contribution, naturally inducing an effective functional dimension for each task. Building on this framework, we introduce Flex-KD, an architecture-agnostic and parameter-free distillation method that transfers the teacher's functional geometry while matching the student's representational capacity. Extensive experiments across language understanding and generation benchmarks demonstrate that Flex-KD consistently outperforms existing distillation approaches, particularly under severe teacher-student dimension mismatch.
format Preprint
id arxiv_https___arxiv_org_abs_2507_10155
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle What Should Feature Distillation Transfer in LLMs? A Task-Tangent Geometry View
Saadi, Khouloud
Wang, Di
Computation and Language
Feature-based knowledge distillation aims to transfer intermediate representations from a teacher LLM model to a student. Existing approaches typically rely on direct feature matching or learned projections, implicitly treating representations as objects with intrinsic meaning. However, the relevance of a representation dimension is determined solely by how it affects the model's output. In this work, we propose a functional perspective on feature-based distillation. We characterize knowledge transfer in terms of the teacher's functional geometry, i.e., how its output depends on internal representations, rather than direct representation alignment. This viewpoint reveals that effective distillation need not preserve full high-dimensional features, but instead should retain dominant directions of functional contribution, naturally inducing an effective functional dimension for each task. Building on this framework, we introduce Flex-KD, an architecture-agnostic and parameter-free distillation method that transfers the teacher's functional geometry while matching the student's representational capacity. Extensive experiments across language understanding and generation benchmarks demonstrate that Flex-KD consistently outperforms existing distillation approaches, particularly under severe teacher-student dimension mismatch.
title What Should Feature Distillation Transfer in LLMs? A Task-Tangent Geometry View
topic Computation and Language
url https://arxiv.org/abs/2507.10155