LSTM Co-Inventor's NXAI Releases KronLSTM to Beat Long-Context Memory Limits
A new xLSTM variant corrects one scalar instead of a whole vector per memory update, cutting interference and improving long context performance.
Takeaways
- NXAI released KronLSTM, a linear attention model built on a new Kronecker Delta update rule.
- Updates revise a single scalar key-value binding instead of a full vector, cutting memory interference.
- Memory dynamics are provably bounded, removing the need for extra normalizers and stabilizers.
- Beats Gated DeltaNet on NIAH at 32k context in both pure and SWA-hybrid configurations.
- Four 1.5B checkpoints released on Hugging Face, pretrained on 100B tokens.
- Code is open source at github.com/NX-AI/KronLSTM, co-authored by LSTM creator Sepp Hochreiter.
NXAI researchers, including LSTM co-inventor Sepp Hochreiter, have introduced the KronLSTM paper, which proposes a narrower way to revise matrix memory in recurrent linear-attention models. KronLSTM adjusts the scalar coupling between a key and a value, limiting interference with other stored associations. The reported gains are strongest on long-context retrieval and state-tracking benchmarks.
- Core change: The Kronecker Delta Rule constrains each memory correction to one direction in matrix space.
- Practical goal: Preserve earlier associations when overlapping keys receive new values.
- Reported evidence: Higher 32K retrieval scores than Gated DeltaNet-2, plus competitive state-tracking results and comparable training throughput.
- Current limit: Published checkpoints reach 1.5 billion parameters and 100 billion training tokens.
Why matrix memories collide
Standard self-attention forms pairwise interactions between tokens, giving it quadratic cost as sequence length grows. Linear attention compresses prior tokens into a fixed-size recurrent state, allowing sequence processing to scale linearly with length. That efficiency makes the quality of each memory update especially important.
Hebbian and delta updates expose the trade-off between accumulation and revision. A Hebbian update adds a key-value contribution to memory at every token, so old values can be buried by later writes but cannot be directly corrected. A delta update reads the value associated with a key, subtracts that full d-dimensional vector, and writes a replacement, where d is the model’s hidden width. Overlapping key directions can spread that correction to other associations.
xLSTM controls its matrix memory with forget gates, normalizer state, and stabilizer state. DeltaNet and Gated DeltaNet retain delta-style corrections and add gating. These mechanisms improve control over memory, though each write can still affect several associations when keys overlap.
A scalar correction for each association
The Kronecker Delta Rule restricts a memory correction to one direction in matrix space. The paper describes this as a rank-one update, meaning the matrix change is formed from a single pair of vector directions. In operational terms, KronLSTM corrects the scalar strength binding a particular key to a particular value. This constraint reduces the scope of each write and limits disruption to nearby associations.
Under the assumptions analyzed in the paper, KronLSTM’s memory dynamics form a Markov chain that converges to a steady-state distribution. The expected norm of the memory matrix remains uniformly bounded across sequence length. That bound allows the architecture to remove the separate normalizer and stabilizer states used by xLSTM. End-to-end training behavior still depends on optimization, data, precision, and implementation.
Three gates control the block
NXAI configures KronLSTM as an xLSTM-family block with three gating mechanisms around the Kronecker Delta Rule. Each gate has a distinct role in deciding what the model retains and how strongly it revises an association.
| Component | Role |
|---|---|
| Vector forget gate | Applies coordinate-level decay to existing recurrent memory. |
| Beta gate | Controls the strength of the scalar memory correction. |
| Target gate | Shapes the value that the current key should retrieve. |
The released pure-linear model uses recurrent linear-attention blocks throughout. Its hybrid counterpart interleaves sliding-window attention, which handles interactions within a local token window, with recurrent state that carries information across the full sequence.
Where the gains appear
Needle-in-a-Haystack tasks place a target fact among long stretches of distractor text and test whether a model can retrieve it later. On the RULER version extended to 32,768 tokens, the authors report that KronLSTM exceeds corresponding Gated DeltaNet-2 baselines in both pure-linear and sliding-window hybrid configurations.
| Evaluation | Comparison | Reported result |
|---|---|---|
| RULER Needle-in-a-Haystack at 32K | KronLSTM versus Gated DeltaNet-2 | Higher scores for pure-linear and hybrid variants |
| State tracking | KronLSTM versus Gated DeltaNet and Mamba-3 | Competitive or higher scores across reported tasks |
| Training throughput | Linear-attention baselines on one H100 80GB GPU | Throughput in a comparable range |
The reported advantage is concentrated in tests that stress persistent memory. Short-context quality, application latency, and production efficiency require workload-specific measurements. Kernel support, batch shape, numerical precision, and context length can all change the throughput profile.
A practical fit for long-context stacks
- Long-context language models: KronLSTM targets teams seeking recurrent, subquadratic processing with stronger retrieval over tens of thousands of tokens.
- Architecture research: The block provides a comparison point for DeltaNet, Gated DeltaNet, Mamba-3, and xLSTM memory updates.
- Existing xLSTM projects: The integration surface is the recurrent block, which should keep implementation changes localized.
- Short-context workloads: Models operating below a few thousand tokens should be benchmarked against standard attention, where memory interference may have less effect.
- Large-scale training: Evidence currently stops at 1.5 billion parameters and 100 billion tokens, leaving behavior at tens of billions of parameters untested.
Code and four released checkpoints
NXAI publishes the reference implementation in its GitHub repository and hosts four 1.5-billion-parameter checkpoints in a Hugging Face collection. Each model was trained on 100 billion tokens.
- Pure-linear base model
- Pure-linear 32K context model
- Sliding-window hybrid base model
- Sliding-window hybrid 32K context model
Teams already using the xLSTM repository can evaluate KronLSTM by replacing the recurrent block and comparing memory quality, throughput, and training stability under the same data and hardware settings.