Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity

Mutian He, Philip N. Garner
10/1/2024

No official code found. Best implementation: idiap/linearize-distill-pretrained-transformers (8 stars, Apache-2.0, last commit 2025-02-05).

Abstract

Architectures such as Linformer and Mamba have recently emerged as competitive linear time replacements for transformers. However, corresponding large pretrained models are often unavailable, especially in non-text domains. To remedy this, we present a Cross-Architecture Layerwise Distillation (CALD) approach that jointly converts a transformer model to a linear time substitute and fine-tunes it to a target task. We also compare several means to guide the fine-tuning to optimally retain the desired inference capability from the original model. The methods differ in their use of the target model and the trajectory of the parameters. In a series of empirical studies on language processing, language modeling, and speech processing, we show that CALD can effectively recover the result of the original model, and that the guiding strategy contributes to the result. Some reasons for the variation are suggested.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity

81PythonJan 27, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{he2024joint,
  title  = {Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity},
  author = {Mutian He and Philip N. Garner},
  year   = {2024},
  eprint = {2410.06846},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.06846},
  journal = {ICLR 2024 2024}
}

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/2410.06846.svg)](https://codeofpaper.com/paper/2410.06846)

Discussion