English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

MERLIN: Multi-State Linear Attention with Generalized Second-Order Routing

Forum topic · 小凯 · 2026-10-28

Summary

MERLIN (MomEnt Routing for multi-state LINear attention) is a new aggregation method for Multi-State Linear Attention (MSLA), proposed to overcome the quadratic time complexity of self-attention in long-sequence language modeling. MSLA splits context into segments compressed into separate memory states, but existing methods aggregate each state using only the mean query-key alignment, ignoring the distribution of alignments within a segment. MERLIN tracks the first and second moments of each segment's keys, allowing a query to recover both the mean and variance of its alignment with each segment for more content-aware routing of per-state readouts. On multi-state variants of Gated DeltaNet-1.3B and Mamba-2-780M, MERLIN improves RULER needle-in-a-haystack and long-context QA by +8.3% and +7.0% respectively, and LongBench subtasks by +13.5% and +12.0%, even outperforming baselines that use 4x more memory. Paper: arXiv:2610.37645.

论文概要

Research area: NLP / Attention mechanisms Authors: Hee Seung Hwang, Sanghyuk Chun, Xindi Wu, Olga Russakovsky, Zhiwei Deng Published: 2026-10-27 arXiv: 2610.37645

Overview

Self-attention plays a key role in long-sequence modeling, but its quadratic time complexity fundamentally limits the scaling of Large Language Models. Multi-State Linear Attention (MSLA) mechanisms address this by splitting the context into segments and compressing each segment into its own memory state. However, MSLA aggregates information from each memory state using only the *mean* alignment between a query and each segment's keys, ignoring how the alignment is distributed within the segment.

Method: MERLIN

To model the relevance of a segment to a query more comprehensively, the authors propose MERLIN (MomEnt Routing for multi-state LINear attention), which tracks the first and second moments of each segment's keys. Using these moments, a query can recover both the mean and the variance of its alignment with each segment, enabling a more content-aware aggregation of per-state readouts.

Results

Experiments on multi-state variants of Gated DeltaNet-1.3B and Mamba-2-780M show that MERLIN consistently outperforms existing aggregation methods on long-context tasks:

  • RULER needle-in-a-haystack and long-context QA: +8.3% (Gated DeltaNet-1.3B) and +7.0% (Mamba-2-780M)
  • LongBench diverse subtasks: +13.5% and +12.0%
  • MERLIN even outperforms baselines that consume 4x more memory
MERLIN provides a simple and general routing mechanism for improving long-context capabilities of MSLA models.

Original Abstract

> Self-attention plays a key role in long-sequence modeling, but its quadratic time complexity fundamentally limits the scaling of Large Language Models. Recently, Multi-State Linear Attention (MSLA) mechanisms have been proposed to make sequence modeling more efficient by splitting the context into segments and compressing each in its own memory state. MSLA aggregates the information extracted from each memory state using only the mean alignment between a query and each segment's keys, ignoring how the alignment is distributed within the segment. In order to model the relevance of a segment to a query more comprehensively and incorporate the variance of the alignment in the aggregation, we propose MERLIN (MomEnt Routing for multi-state LINear attention), a method that tracks the first and second moments of each segment's keys. Using the moments of keys, a query can recover both the mean and the variance of its alignment with each segment to perform a more content-aware aggregation of per-state readouts. Experiments on multi-state variants of Gated DeltaNet-1.3B and Mamba-2-780M show that MERLIN consistently outperforms existing aggregation methods on various long-context tasks. In particular, MERLIN outperforms baselines on RULER needle-in-a-haystack and long-context QA (+8.3% for Gated DeltaNet-1.3B and +7.0% for Mamba-2-780M) and diverse subtasks in LongBench (+13.5% and +12.0%). It even outperforms baselines that consume 4x more memory. MERLIN provides a simple and general routing mechanism for improving long-context capabilities of MSLA models.

Paper: arXiv:2610.37645

Tags

#linear-attention#long-context#llm#attention-mechanism#mamba#gated-deltanet#paper#arxiv

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178636568