FlashMorph2: on-policy layer selection for converting Transformers to hybrid attention
Hybrid attention models mix full and linear attention, and converting a pretrained Transformer requires choosing which layers keep full attention. FlashMorph2 evaluates sampled discrete hybrid architectures on their own hidden states and jointly optimizes…
Why it matters
It offers a cheap path to retrofit existing open models for cheaper long-context inference without pretraining from scratch.
What happened
1 min readHybrid attention models mix full and linear attention, and converting a pretrained Transformer requires choosing which layers keep full attention. FlashMorph2 evaluates sampled discrete hybrid architectures on their own hidden states and jointly optimizes layer scores and weights under the recovery objective. On Qwen3 models from 0.6B to 8B it beats FlashMorph by +2.42 on RULER and +1.08 on LongBench, with layer selection taking 0.72 to 3.57 GPU hours.
Our analysis
This is an incremental improvement on FlashMorph; fixing the train/inference mismatch in layer selection is a sensible idea. A few GPU hours for selection is cheap, but the abstract does not give the cost of the recovery fine-tune that follows. Experiments stop at 8B, so behavior at larger scales is open. Useful for teams optimizing open models for cheaper long-context serving.