Reproduce “MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yuhong Chou, Man Yao, Kexin Wang, Yuqi Pan, Ruijie Zhu, Yiran Zhong, Yu Qiao, Jibin Wu and 2 more

MetaLA unifies existing linear complexity models under a common theoretical framework, deriving necessary conditions for optimal linear approximation to softmax attention. The resulting architecture consistently outperforms previous linear models on memory, language modeling, and long sequence tasks, sometimes matching or exceeding Transformer performance while maintaining linear complexity.

Key insights

  • All linear complexity models, despite disparate origins, can be abstracted into a generic form involving Query, Value, dynamic decay, and output gates.
  • Optimal linear approximation to softmax attention requires dynamic memory ability (dynamic decay), static approximation ability (Query and dynamic decay), and least parameter approximation (Key matrix is redundant).
  • Existing linear models like RetNet, Mamba, and GLA do not simultaneously satisfy all three necessary conditions for optimal linear approximation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.