mlsanityData to 14 Oct 2026

Memory by Design: Bayesian Layers for Sequence Modeling

arXiv 2605.31163 ↗First posted 29 May 2026stat.ML cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We introduce the design-model framework: a way to derive efficient recurrent sequence maps from explicit assumptions about memory. A design model writes evidence into memory by exact Bayesian filtering; a query- dependent readout produces a predictive distribution whose mean is the layer output. In our linear-Gaussian instantiation, the Bayesian Layer propagates both a mean and a covariance: the covariance tracks uncertainty over stored associations, steering writes toward uncertain directions, attenuating gains as evidence accumulates, and preserving confident memories. The same framework unifies several sub-quadratic recurrences: linear attention, GLA, and Mamba-2/SSD are exact filters under a latent-input design model, whereas DeltaNet and related Delta-rule models are covariance-reset reductions of the Bayesian Layer's design model. Restoring covariance propagation yields closed-form predictions for retrieval dynamics, which we verify empirically, and improves robustness beyond the training regime in controlled collision studies, learned associative recall, and the Zoology MQAR benchmark. Training from scratch on WikiText-103 under matched state budgets lowers perplexity on associative-recall hits. Distilling Bayesian Layers into a pretrained 340M Gated DeltaNet improves RULER long-context retrieval over a matched-compute control, at a 2.5--2.7% held-out perplexity cost.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 42 references that are in the map. First posted on arXiv 29 May 2026.

Builds on

33 of 42 references.

References · 33

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  4. 2016Pointer Sentinel Mixture Modelscited by 3,096
  5. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  6. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  7. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  8. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  9. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  10. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  11. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  12. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
21 more
  1. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  2. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
  3. 2024xLSTM: Extended Long Short-Term Memorycited by 327
  4. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  5. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  6. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  7. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
  8. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
  9. 2025RWKV-7 "Goose" with Expressive Dynamic State Evolutioncited by 141
  10. 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
  11. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
  12. 2021The Bayesian Learning Rulecited by 99
  13. 2025DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Productscited by 75
  14. 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 66
  15. 2024Longhorn: State Space Models are Amortized Online Learnerscited by 59
  16. 2025MoM: Linear Sequence Modeling with Mixture-of-Memoriescited by 47
  17. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 47
  18. 2025Liger: Linearizing Large Language Models to Gated Recurrent Structurescited by 33
  19. 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attentioncited by 33
  20. 2026Kalman Linear Attention: Parallel Bayesian Filtering For Efficient Language Modelling and State Trackingcited by 8
  21. 2026Learning to Remember, Learn, and Forget in Attention-Based Modelscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Recall What Is Missing: Composing Evidence from Long-Term Agent Memory
  2. 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing
  3. 2026Voltic: Distinguishing Volatility from Stochasticity in Recurrent Memory
  4. 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors
  5. 2026The Impossibility Triangle of Long-Context Modeling
  6. 2025Test-time regression: a unifying framework for designing sequence models with associative memory
  7. 2026Remembering Distinct Items, Not Tokens: A Learnable Dirichlet-Process Cache Between State-Space Models and Attention
  8. 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions