Saved in:
Bibliographic Details
Main Authors: Xia, Xiaojie, Zhang, Huigang, Zhong, Chaoliang, Sun, Jun, Oishi, Yusuke
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.11667
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915736720506880
author Xia, Xiaojie
Zhang, Huigang
Zhong, Chaoliang
Sun, Jun
Oishi, Yusuke
author_facet Xia, Xiaojie
Zhang, Huigang
Zhong, Chaoliang
Sun, Jun
Oishi, Yusuke
contents Transformer architectures deliver state-of-the-art accuracy via dense full-attention, but their quadratic time and memory complexity with respect to sequence length limits practical deployment. Linear attention mechanisms offer linear or near-linear scaling yet often incur performance degradation. Hybrid models that integrate full and linear attention layers promise a balance between efficiency and expressiveness, but face two major challenges: training such hybrid models from scratch is computationally expensive, and manually designing the optimal placement of attention types is highly nontrivial. We address both issues by first transferring weights from the pretrained full-attention modules to its linear attention counterparts through blockwise local distillation, and second, introducing a greedy layer replacement strategy that iteratively substitutes full attention blocks with linear ones while monitoring validation performance on the target task. This yields a task-specific hybrid model in a single efficient pass, without costly re-training or neural architecture search, and can be applied to any pretrained full-attention backbone for diverse downstream tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2601_11667
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Distill-then-Replace: Efficient Task-Specific Hybrid Attention Model Construction
Xia, Xiaojie
Zhang, Huigang
Zhong, Chaoliang
Sun, Jun
Oishi, Yusuke
Machine Learning
Artificial Intelligence
Transformer architectures deliver state-of-the-art accuracy via dense full-attention, but their quadratic time and memory complexity with respect to sequence length limits practical deployment. Linear attention mechanisms offer linear or near-linear scaling yet often incur performance degradation. Hybrid models that integrate full and linear attention layers promise a balance between efficiency and expressiveness, but face two major challenges: training such hybrid models from scratch is computationally expensive, and manually designing the optimal placement of attention types is highly nontrivial. We address both issues by first transferring weights from the pretrained full-attention modules to its linear attention counterparts through blockwise local distillation, and second, introducing a greedy layer replacement strategy that iteratively substitutes full attention blocks with linear ones while monitoring validation performance on the target task. This yields a task-specific hybrid model in a single efficient pass, without costly re-training or neural architecture search, and can be applied to any pretrained full-attention backbone for diverse downstream tasks.
title Distill-then-Replace: Efficient Task-Specific Hybrid Attention Model Construction
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2601.11667