Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

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…

Published Read the original
FlashMorph2: on-policy layer selection for converting Transformers to hybrid attention

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 read

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 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.

inscraper analysis

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.

More in Research