2026-11-26 15:40 UTC

Apple reports two-stage Transformer-to-Mamba distillation recipe

state: significantheat: lowuncertainty: mediumrelevance: highcross-architecture-distillation mamba model-trainingAppleAbhinav MoudgilNingyuan Huang

What is this?

Apple Machine Learning Research describes a method for transferring a pretrained Transformer’s learned behavior to an attention-free Mamba-style state-space model. The authors—Abhinav Moudgil and Ningyuan Huang, who the page says did the work while at Apple, alongside four coauthors—use a two-stage process: distill the Transformer into a linearized-attention model using a kernel-trick adaptation, then distill that intermediate model into Mamba. Apple’s page, marked published November 2026, reports a Pythia-1B student with perplexity 14.01 versus 13.86 for its teacher, and says most downstream performance carries over, with weaknesses on some in-context-recall tasks. The supplied evidence is inconsistent on timing and the student score: the linked arXiv result dates the paper to April 1, 2026, and secondary results report 14.11 rather than 14.01. The supplied sources do not resolve these discrepancies.

Why it matters

The official research result is a concrete route for reusing pretrained Transformer knowledge in an attention-free architecture, potentially broadening options for model memory and inference. Its demonstrated scope is limited, and it does not establish real-world cost or latency gains.

Current assessment

Apple Machine Learning Research presents a two-stage cross-architecture distillation recipe: Transformer to linearized attention, then to an adapted Mamba model without attention blocks. The page reports a Pythia-1B student with perplexity 14.01 versus 13.86 for its teacher, largely retained downstream performance, and weaknesses on some in-context-recall tasks. This is a consequential research result, but the evidence here is not independent validation or deployment evidence, and does not establish practical efficiency gains or scaling beyond the reported settings. The linked arXiv artifact is dated 1 April 2026, whereas Apple’s page says published November 2026; secondary results report 14.11 rather than Apple’s 14.01. These discrepancies remain unresolved. HN engagement increased, but adds no technical corroboration.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 5762h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

03-31 13:00⭐ origin echo-reconstructedThe earliest primary artifact is the authors’ arXiv v1, submitted 1 April 2026. Its abstract says: “we propose a principled two-stage approa
Abhinav Moudgil, Ningyuan Huang, Eeshan Gunesh Dhekane, Pau Rodríguez, Luca Zappella, and Federico Danieli on paper (echo) · attributed from hn.story.50453171
—
11-11 13:29first on hacker news · published · +5400.5hAttention to Mamba: A Recipe for Cross-Architecture Distillation
zerop
—
11-11 13:29amplified on hacker news 👑hn.story.50453171
zerop
peak 78 · 5 comments · 100% of case engagement
11-11 16:21our radar first saw it · +5403.4hdiscovery anchor: hn.story.50453171—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnAttention to Mamba: A Recipe for Cross-Architecture Distillation
Retrieved article excerpt

Open article · Retrieved 2026-11-11T16:22:21.348133+00:00

[research area Methods and Algorithms](https://machinelearning.apple.com/research/?domain=Methods%20and%20Algorithms), [research area Speech and Natural Language Processing](https://machinelearning.apple.com/research/?domain=Speech%20and%20Natural%20Language%20Processing)[Transactions on Machine Learning Research (TMLR)](https://machinelearning.apple.com/research/?event=Transactions%20on%20Machine%20Learning%20Research%20(TMLR))

[content type paper](https://machinelearning.apple.com/research/)published November 2026

# Attention to Mamba: A Recipe for Cross-Architecture Distillation

AuthorsAbhinav Moudgil†\*\*, Ningyuan Huang‡\*\*, Eeshan Gunesh Dhekane, Pau Rodríguez Lopez, Luca Zappella, Federico Danieli

[View publication](https://arxiv.org/abs/2604.14191)

Copy Bibtex

State Space Models (SSMs) such as Mamba have become a popular alternative to Transformer models, due to their reduced memory consumption and higher throughput at generation compared to their Attention-based counterparts. On the other hand, the community has built up a considerable body of knowledge on how to train Transformers, and many pretrained Transformer models are readily available. To facilitate the adoption of SSMs while leveraging existing pretrained Transformers, we aim to identify an effective recipe to distill an Attention-based model into a Mamba-like architecture. In prior work on cross-architecture distillation, however, it has been shown that a naïve distillation procedure from Transformers to Mamba fails to preserve the original teacher performance, a limitation often overcome with hybrid solutions combining Attention and SSM blocks. The key argument from our work is that, by equipping Mamba with a principled initialization, we can recover an overall better recipe for cross-architectural distillation. To this end, we propose a principled two-stage approach: first, we distill knowledge from a traditional Transformer into a linearized version of Attention, using an adaptation of the *kernel trick*. Then, we distill the linearized version into an adapted Mamba model that does not use any Attention block. Overall, the distilled Mamba model retains most of the original Pythia-1B Transformer performance, reaching a perplexity of 14.01 close to the teacher’s 13.86. This largely carries over to downstream tasks, although some gaps appear on tasks relying more on in-context recall. To show the efficacy of our recipe, we conduct thorough ablations at 1B scale with 10B tokens varying sequence mixer architecture, scaling analysis on model sizes and total distillation tokens, and a sensitivity analysis on tokens allocation between stages.

- † Concordia University and MILA Research Institute
- ‡ Johns Hopkins University and Flatiron Institute
- \*\* Work done while at Apple

## Related readings and updates.

[### Understanding Input Selectivity in Mamba](https://machinelearning.apple.com/research/understanding-input)

July 4, 2025[research area Methods and Algorithms](https://machinelearning.apple.com/research/?domain=Methods%20and%20Algorithms), [research area Speech and Natural Language Processing](https://machinelearning.apple.com/research/?domain=Speech%20and%20Natural%20Language%20Processing)[conference ICML](https://machinelearning.apple.com/research/?event=ICML)

State-Space Models (SSMs), and particularly Mamba, have recently emerged as a promising alternative to Transformers.
Mamba introduces input selectivity to its SSM layer (S6) and
incorporates convolution and gating into its block definition.
While these modifications do improve Mamba’s performance over its SSM predecessors, it remains largely unclear how Mamba leverages the additional functionalities provided by input selectivity, and how these…

[Read more](https://machinelearning.apple.com/research/understanding-input)

[### Distillation Scaling Laws](https://machinelearning.apple.com/research/distillation-scaling-laws)

July 1, 2025[research area Methods and Algorithms](https://machinelearning.apple.com/research/?domain=Methods%20and%20Algorithms), [research area Speech and Natural Language Processing](https://machinelearning.apple.com/research/?domain=Speech%20and%20Natural%20Language%20Processing)[conference ICML](https://machinelearning.apple.com/research/?event=ICML)

We propose a distillation scaling law that estimates distilled model performance based on a compute budget and its allocation between the student and teacher. Our findings mitigate the risks associated with large-scale distillation by enabling compute-optimal allocation for both the teacher and student to maximize student performance. We provide compute-optimal distillation recipes for two key scenarios: when a teacher already exists, and when a…

[Read more](https://machinelearning.apple.com/research/distillation-scaling-laws)

Bottom banner

## Discover opportunities in Machine Learning.

Our research in machine learning breaks new ground every day.

[Work with us](https://machinelearning.apple.com/work-with-us)
zerop785
🟧 echo.paper ⭐The earliest primary artifact is the authors’ arXiv v1, submitted 1 April 2026. Its abstract says: “we propose a principled two-stage approaAbhinav Moudgil, Ningyuan Huang, Eeshan Gunesh Dhekane, Pau Rodríguez, Luca Zappella, and Federico Danieli——

Interpretation history

Decision trace