UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learning

Zihao Huang, Yu Bao, Qiyang Min, Siyan Chen, Ran Guo, Hongzhi Huang, Defa Zhu, Yutao Zeng, Banggu Wu, Xun Zhou, Siyuan Qiao

Abstract

While Mixture of Experts (MoE) models achieve remarkable efficiency by activating only subsets of parameters, they suffer from high memory access costs during inference. Memory-layer architectures offer an appealing alternative with very few memory access, but previous attempts like UltraMem have only matched the performance of 2-expert MoE models, falling significantly short of state-of-the-art 8-expert configurations. We present UltraMemV2, a redesigned memory-layer architecture that closes this performance gap. Our approach introduces five key improvements: integrating memory layers into every transformer block, simplifying value expansion with single linear projections, adopting FFN-based value processing from PEER, implementing principled parameter initialization, and rebalancing memory-to-FFN computation ratios. Through extensive evaluation, we demonstrate that UltraMemV2 achieves performance parity with 8-expert MoE models under same computation and parameters but significantly low memory access. Notably, UltraMemV2 shows superior performance on memory-intensive tasks, with improvements of +1.6 points on long-context memorization, +6.2 points on multi-round memorization, and +7.9 points on in-context learning. We validate our approach at scale with models up to 2.5B activated parameters from 120B total parameters, and establish that activation density has greater impact on performance than total sparse parameter count. Our work brings memory-layer architectures to performance parity with state-of-the-art MoE models, presenting a compelling alternative for efficient sparse computation.

Introduction

In the quest for efficient Large Language Models (LLMs), Mixture of Experts (MoE) has become the dominant paradigm. By activating only a small subset of parameters (experts) for each token, MoEs decouple computational cost from total parameter count. However, MoEs have a "memory tax": the routing process involves high memory access overhead, which becomes a bottleneck during inference.

Memory-layer architectures (like the original UltraMem or Product Key Memory) offer a promising alternative. Instead of activating entire FFN "experts," they retrieve specific embeddings from a massive parameter table. This approach is much more memory-efficient. Until now, memory-layer models could only match the performance of weak 2-expert MoEs. UltraMemV2 aims to bridge this "performance gap" without losing the efficiency advantage.

Architectural Innovations

UltraMemV2 introduces five structural innovations to transform memory layers into a heavyweight contender:

  1. Deep Integration: Unlike previous versions that used memory layers sparingly, UltraMemV2 embeds a memory layer into every transformer block.
  2. Simplified Value Expansion: The "Implicit Value Expansion" (IVE) process is streamlined using single linear projections, reducing complexity.
  3. PEER-style Processing: Borrowing from the PEER architecture, simple value embeddings are replaced with tiny FFNs (one inner dimension), allowing more flexible information processing.
  4. Principled Initialization: A specific initialization formula based on the Central Limit Theorem ensures stable variance across hundreds of layers, preventing training divergence.
  5. Computational Rebalancing: The ratio of memory work to standard FFN work is optimized to allocate capacity where it is most effective.
Architectural comparison of MoE, PKM, and UltraMemV2 layers.

The core retrieval mechanism uses Tucker Decomposed Query-Key Retrieval (TDQKR), allowing the model to index into a massive parameter space using a fraction of the computation required for a flat search.

Evaluation and Scaling

The researchers evaluated UltraMemV2 using a 3.9 trillion token pre-training corpus and a 500 billion token continued training (CT) set focused on long-context capabilities. Comparisons were made against state-of-the-art MoE models like SeedMoE.

Performance Parity and Scaling

UltraMemV2 successfully hit the "performance parity" milestone. At the 2.5B activated / 120B total parameter scale, UltraMemV2 matched the performance of state-of-the-art MoE models across standard benchmarks like Openbench and Hardbench.

Performance comparison across Openbench and Hardbench benchmarks.

Superior Long-Context Learning

Beyond general benchmarks, UltraMemV2 outperformed MoE on memory-intensive tasks. It showed gains of +1.6 points on long-context memorization, +6.2 points on multi-round dialogue memorization, and +7.9 points on in-context learning. These results validate that memory-layer architectures are particularly well-suited for tasks requiring extensive information retrieval.

Key Insights

  • Activation Density > Total Parameters: A major finding is that activation density (how many values are retrieved per layer) has a much greater impact on performance than the total number of sparse parameters.
  • The "Slow Start" Phenomenon: UltraMemV2 tends to underperform MoE models in early training stages but is more sensitive to high-quality data, catching up rapidly during later stages and learning rate decay.
  • Memory Efficiency at Scale: Because memory layers scale memory access linearly with sequence length, UltraMemV2 remains efficient even as context windows grow.

Conclusion

UltraMemV2 brings memory-layer architectures to performance parity with state-of-the-art MoE models while maintaining superior memory efficiency. Its success at the 120B parameter scale demonstrates that memory networks are a viable and compelling alternative for efficient sparse computation in the next generation of LLMs.

Summary updated

Abstract

While Mixture of Experts (MoE) models achieve remarkable efficiency by activating only subsets of parameters, they suffer from high memory access costs during inference. Memory-layer architectures offer an appealing alternative with very few memory access, but previous attempts like UltraMem have only matched the performance of 2-expert MoE models, falling significantly short of state-of-the-art 8-expert configurations. We present UltraMemV2, a redesigned memory-layer architecture that closes this performance gap. Our approach introduces five key improvements: integrating memory layers into every transformer block, simplifying value expansion with single linear projections, adopting FFN-based value processing from PEER, implementing principled parameter initialization, and rebalancing memory-to-FFN computation ratios. Through extensive evaluation, we demonstrate that UltraMemV2 achieves performance parity with 8-expert MoE models under same computation and parameters but significantly low memory access. Notably, UltraMemV2 shows superior performance on memory-intensive tasks, with improvements of +1.6 points on long-context memorization, +6.2 points on multi-round memorization, and +7.9 points on in-context learning. We validate our approach at scale with models up to 2.5B activated parameters from 120B total parameters, and establish that activation density has greater impact on performance than total sparse parameter count. Our work brings memory-layer architectures to performance parity with state-of-the-art MoE models, presenting a compelling alternative for efficient sparse computation.
BibTeX
@inproceedings{huang2026ultramemv,
  author = {Zihao Huang and Yu Bao and Qiyang Min and Siyan Chen and Ran Guo and Hongzhi Huang and Defa Zhu and Yutao Zeng and Banggu Wu and Xun Zhou and Siyuan Qiao},
  title = {{UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=QWuXU0qNX0},
}
Figure