MERLIN adds second-order routing to multi-state linear attention

Paper / preprint arXiv cs.CL · Reported findings, not independently verified by us.

A new method called MERLIN aims to improve Multi-State Linear Attention (MSLA) on long-context tasks. It adds information about the spread of key alignments when routing between memory states, and the researchers report higher test results than with previous aggregation methods.

MSLA divides a context into segments and compresses each one into its own memory state. Earlier methods mainly use the average alignment between a query and a segment’s keys when combining information from those states. MERLIN tracks the first and second moments of the keys. This allows a query to use both the mean and variance of its alignment with each segment.

The researchers tested MERLIN with multi-state variants of Gated DeltaNet-1.3B and Mamba-2-780M. On RULER needle-in-a-haystack and long-context question-answering tasks, the paper reports gains of 8.3% and 7.0%, respectively. It also reports gains of 13.5% and 12.0% across diverse LongBench subtasks. According to the paper, MERLIN also outperformed baselines using four times more memory.

These results concern the model variants and tasks described in the paper. The original work provides further details on the method and experiments: original paper on arXiv.

🇬🇧 https://arxiv.org/abs/2610.37645v1

Leave a Comment

The weekly brief: selected developments, projects and videos