cs.CLNov 18, 2026

On-Policy Morphing into Hybrid Attention Models

Authors: Disen Lan, Xuanda Wang, Jianbin Zheng, Huafeng Kuang, Wei Tang, Yu Cheng

Organizations: Fudan University · ByteDance Seed · Nanyang Technological University

Abstract

Hybrid attention models combine full and linear attention to achieve a better quality--efficiency trade-off. Converting pretrained Transformers into such models requires identifying which layers should retain full attention under a prescribed budget. We identify two off-policy mismatches in FlashMorph's layer selection: (i) continuous branch interpolation and teacher-forced hidden states differ from discrete hybrid computation; and (ii) frozen model weights fail to account for parameter adaptation during subsequent recovery. We introduce FlashMorph2, an on-policy layer-selection method that (I) evaluates sampled discrete hybrid architectures end to end using their own hidden states, and (II) jointly optimizes layer-selection scores and model weights under the recovery objective to reflect post-adaptation performance. Experiments across Qwen3 model scales and linear-attention variants show that FlashMorph2 consistently outperforms existing layer-selection methods, improving average scores over FlashMorph by +2.42+2.42 points on RULER, +1.08+1.08 on LongBench, and +0.76+0.76 on recall-intensive tasks, while completing layer selection in only 0.720.72--3.573.57 GPU hours across 0.6B--8B models, demonstrating high efficiency and scalability.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Morphing into Hybrid Attention Models

    Jun 29, 2026Disen Lan, Jianbin Zheng, Yuxi Ren +5Efficient AttentionNeural Architecture Search

  2. Switch Attention: Towards Dynamic and Fine-grained Hybrid Transformers

    Mar 27, 2026Yusheng Zhao, Hourun Li, Bohan Wu +5Hybrid Transformer ArchitecturesHybrid Attention

  3. Where Should LoRA Go? Component-Type Placement in Hybrid Language Models

    Apr 24, 2026Hector Borobia, Elies Seguí-Mas, Guillermina Tormo-CarbóLow-Rank AdaptationRecurrent Transformers