PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
October 2, 20250 citationsOpen Access

Task-Based Flexible Feature Distillation for LLMs

View Full Paper
KSKhouloud SaadiDWDi Wang

Key Points

  • The proposed method achieves significant performance improvements in large language models across diverse tasks.
  • Empirical results indicate a performance gain of up to 3% over previous linear projection methods, enhancing flexibility in model architecture.
  • This task-based approach focuses on distilling activations from task-relevant hidden units, bypassing traditional dimensionality limitations.
  • The method offers a flexible solution for knowledge transfer between teacher and student models with differing hidden dimensions.

Abstract

Knowledge Distillation (KD) in general and feature distillation in particular are promising techniques for reducing the high computational demand of large language models (LLMs). However, traditional feature KD methods typically assume that the teacher and the student share the same hidden size, limiting the flexibility of the student's architecture. A common solution to this problem involves training a linear projector to align their feature spaces, but this introduces additional parameters that must be learned from scratch and often degrades performance on downstream tasks, especially in generative settings. To address this issue, in this work, we propose a novel task-based feature distillation method that enables knowledge transfer between teacher and student models with different hidden layer dimensions, without introducing any new parameters. Leveraging the insight that only a subset of LLM components contribute significantly to a specific downstream task, our approach identifies the most task-relevant hidden units in the teacher and directly distills their activations to the student. Our method is flexible and easily integrates with other distillation frameworks. Empirical results show consistent improvements over prior approaches across diverse tasks, including classification, instruction-following, and summarization, achieving up to a 3\% performance gain over the linear projection baseline.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Saadi et al. (2025) studied this question.

synapsesocial.com/papers/68de6f4283cbc991d0a22ee7https://doi.org/10.48550/arxiv.2507.10155
Ask AI
Helpful
Bookmark
Share
View Full Paper