Reproduce “Language Modeling With Factorization Memory” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Lee Xiong, Maksim Tkachenko, Johanes Effendi, Ting Cai

Factorization Memory, developed by Rakuten Group, Inc., is a recurrent neural network architecture that introduces a sparse memory update mechanism to efficiently handle ultra-long contexts. It demonstrates superior performance extrapolation on sequences significantly longer than training data and achieves a 35-40% faster inference speed compared to Mamba-2.

Key insights

  • The sparse memory update mechanism allows for scaling memory capacity (large 'm') without incurring proportional computational overhead, reconciling efficiency with representational power.
  • A dynamically re-normalized selection of 'k' active memory states enables Factorization Memory to match the performance of dense memory updates while significantly reducing compute.
  • The architecture inherently supports superior generalization and performance extrapolation on contexts much longer than the training window, addressing a critical limitation of previous models.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.