← Latest papers
🤖 machine learning

On Subquadratic Architectures: From Applications to Principles

This paper evaluates leading subquadratic architectures (xLSTM, Mamba-2, and Gated DeltaNet) across code and time-series tasks, demonstrating that xLSTM achieves superior performance due to its gating scheme enabling more flexible and stable memory correction and state tracking.

Original authors: Anamaria-Roberta Hartl, Levente Zólyomi, David Stap, Pieter-Jan Hoedt, Niklas Schmidinger, Lukas Hauzenberger, Sebastian Böck, Günter Klambauer, Sepp Hochreiter

Published 2026-06-11
📖 5 min read🧠 Deep dive

Original authors: Anamaria-Roberta Hartl, Levente Zólyomi, David Stap, Pieter-Jan Hoedt, Niklas Schmidinger, Lukas Hauzenberger, Sebastian Böck, Günter Klambauer, Sepp Hochreiter

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a super-smart assistant that can read a massive book, write complex computer code, or predict the weather for next week. For years, the industry standard has been a specific type of engine called a Transformer. It's incredibly powerful, but it has a major flaw: as the amount of information (the "sequence") grows, the engine gets exponentially heavier and slower. It's like trying to carry a backpack where every new book you add makes the bag twice as heavy as the last one.

To fix this, scientists invented Subquadratic Architectures. These are new engine designs meant to be lighter and faster, growing only linearly with the amount of information. But which new engine is actually the best?

This paper puts three of the top contenders in a race: xLSTM, Mamba-2, and Gated DeltaNet. They tested them on three very difficult jobs:

  1. Writing Code: A task full of strict rules and long chains of logic.
  2. Learning from a Teacher: Taking a huge, smart AI and teaching a smaller, faster one to copy its skills.
  3. Predicting Time Series: Forecasting things like stock prices or weather, where the past influences the future in complex ways.

The Race Results

Across the board, xLSTM won. It was the most consistent and accurate engine, especially when the tasks were complex and required remembering long chains of events. Mamba-2 and Gated DeltaNet were good, but they stumbled more often on the hardest parts of the job.

Why Did xLSTM Win? (The "Memory" Analogy)

To understand why, the authors looked under the hood. They realized all these engines work by maintaining a "state" or a "memory" of what they've seen so far. They compared how each engine handles two critical memory skills:

  1. Accumulation (The "Counter"): The ability to keep a running total or count things over a long period (like counting how many times a specific word appears in a 100-page document).
  2. State Tracking (The "Tracker"): The ability to remember specific, ordered details and update them correctly without losing the thread (like remembering that "if A happens, then B must happen, unless C happened first").

Here is how the three engines handle these skills:

  • Mamba-2 is like a strict librarian with a tied hand. It has a rule that says, "If I forget something, I must also stop writing new things." Because its "forget" and "write" switches are tied together, it struggles to update its memory flexibly. It's good at some things, but it often loses the count or gets confused when the story gets too long.
  • Gated DeltaNet is like a whiteboard with an eraser. It is very good at replacing old information with new information. If a new fact comes in, it wipes the old one off the board. This is great for retrieval (finding the latest fact), but terrible for counting. If you need to remember that "A + B + C = 10," and the board keeps erasing the old numbers to make room for new ones, you lose the total.
  • xLSTM is like a smart notebook with a highlighter and a calculator. It separates its memory into two parts:
    • One part acts like a calculator that can keep a running total (Accumulation) without erasing anything.
    • The other part acts like a notebook that can track specific states and update them flexibly (State Tracking).
    • Crucially, xLSTM has a special "gate" that acts like a soft eraser. Instead of just wiping a page clean (like DeltaNet) or being unable to erase (like Mamba), it can dim old information if new information is more important, or keep old information if it's still relevant. This flexibility allows it to do both counting and tracking perfectly at the same time.

The Proof: The "Long String" Test

To prove this theory, the authors ran a simple test with made-up tasks:

  • The Counting Test: Ask the AI to count items in a list that is much longer than it was trained on.
  • The Tracking Test: Ask the AI to remember a specific pattern of "odd" and "even" switches over a long sequence.

The Results:

  • Mamba-2 failed almost immediately. As the list got longer, it forgot everything.
  • Gated DeltaNet could count a little bit, but it got confused by the tracking tasks. Even when tweaked to be better at tracking, it still struggled to count over very long distances.
  • xLSTM was the only one that could do both. It could count perfectly over long distances and track complex patterns without losing its place.

The Bottom Line

The paper concludes that xLSTM is currently the superior choice for complex tasks because it combines the best of both worlds: the ability to keep a running total (accumulation) and the ability to track specific, changing details (state tracking) without forcing the model to choose between them. While the other engines are good at one or the other, xLSTM's flexible "memory correction" mechanism allows it to handle the messy, long-term dependencies found in real-world code and data.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →