MemExplorer: Navigating the Heterogeneous Memory Design Space for Agentic Inference NPUs

Haoran Wu, Zeyu Cao, Yao Lai, Binglei Lou, Jiayi Nie, Can Xiao, Timi Adeniran, Przemyslaw Forys, Kauser Johar, Catriona Wright, Junyi Liu, Kai Shi, Nicholas D. Lane, Rika Antonova, Jianyi Cheng, Timothy W. Jones, Aaron Zhao, Robert Mullins · DOI

TL;DR

This paper introduces MemExplorer, a novel framework for designing optimal heterogeneous memory systems for next-generation AI accelerators running agentic LLM workloads. By systematically exploring the complex interplay between various memory technologies, NPU architectures, and software strategies, MemExplorer can achieve significant improvements in energy efficiency and performance compared to existing solutions.

What Problem Does This Paper Address?

The rapid growth of "agentic" AI applications, which involve dynamic and unpredictable interactions, places immense demands on memory capacity and bandwidth for Large Language Models (LLMs). These workloads have distinct phases (prefill and decode) with different memory needs. The industry is moving towards heterogeneous systems with diverse memory technologies (SRAM, HBM, LPDDR, HBF, etc.), each with its own trade-offs. However, navigating this vast and evolving design space to find the best memory architecture for these complex workloads is a significant challenge, as the interactions between workload characteristics, hardware design, and memory systems are not well understood.

Methods

The core of this work is MemExplorer, an end-to-end architecture exploration framework. It achieves systematic co-design by:

  • Unified Memory Modeling: Integrating abstractions for various memory technologies (including emerging ones like 3D-stacked SRAM and HBF) across different hierarchy levels (on-chip and off-chip).
  • Hierarchical Analytical Model: Developing a model that captures memory hierarchy latency, bandwidth, and power consumption, considering double-buffering and bandwidth limitations.
  • Data Movement Model: Defining strategies for dataflow, data placement, and bandwidth allocation across the memory hierarchy.
  • Workload Specialization: Analyzing prefill and decode stages independently to identify optimal configurations for each.
  • System Co-Design Exploration: Employing a multi-objective Bayesian optimization (MOBO) approach using Gaussian Processes (GP) and Expected Hypervolume Improvement (EHVI) to efficiently search the vast design space for Pareto-optimal solutions that balance throughput and power.
  • Emulator Validation: Using an extended PLENA emulator to validate the accuracy of the analytical models.

Datasets

The paper evaluates its approach using popular Transformer-based LLMs, including:

  • LLAMA-3.3-70B
  • Qwen3-32B
  • LLaDA-8B
  • Qwen3.5-397B-A17B (for MoE models)

For agentic workloads, they focus on:

  • BFCL (Berkeley Function Calling Leaderboard) benchmarks, specifically the "Web-Search-Base" subtask.
  • OSWorld benchmarks, specifically the "LibreOffice" task.

They also use the GSM8K benchmark for evaluating Diffusion Language Models.

Key Insights and Ideas

  • Prefill vs. Decode Divergence: Prefill stages benefit most from high bandwidth to sustain compute, while decode stages are more sensitive to capacity to improve batch sizes and utilization. This fundamental difference necessitates heterogeneous memory designs.
  • Emerging Memory Technologies are Crucial: Technologies like 3D-stacked SRAM and High Bandwidth Flash (HBF) offer unique advantages (e.g., increased on-chip capacity, bridging capacity gaps) that are essential for meeting the demands of modern LLMs.
  • Co-Design is Key: Optimizing memory hierarchy, compute architecture, and software strategies jointly is critical for achieving significant performance and energy efficiency gains. Optimizing these in isolation is insufficient.
  • Heterogeneity is the Future: The trend towards disaggregated and heterogeneous accelerator systems is inevitable, and tools like MemExplorer are needed to navigate this complexity.
  • Pareto Frontier Exploration: Efficiently exploring the design space to find the best trade-offs (e.g., performance vs. power) is crucial, and MOBO proves effective for this.

Key Results

  • Energy Efficiency Gains: Under the same power budget for agentic workloads, MemExplorer achieved up to 2.3x higher energy efficiency than a baseline NPU and 3.23x higher than NVIDIA H100 in the prefill-only setting.
  • Performance Gains: For equivalent performance targets in the decode setting, MemExplorer delivered up to 1.93x higher power efficiency over the baseline NPU and 2.72x higher than H100.
  • Memory Hierarchy Impact: Increasing on-chip SRAM capacity significantly improves prefill performance by reducing off-chip bandwidth needs. For decode, hierarchical memory systems with energy-efficient technologies like LPDDR improve power efficiency.
  • Bit-Width Optimization: Ablation studies showed that reducing bit-widths (e.g., to 8/8/8 for weights/activations/KV cache) can halve memory bandwidth and storage requirements without significant performance loss.

Limitations and Future Work

  • Multi-Device Systems: The current framework does not explicitly model multi-device systems with shared memory, nor does it capture chip-to-chip interconnects and cross-device communication overhead.
  • Mixed Precision: The precision is currently consistent and does not support mixed precision across prefill and decode stages.
  • Future Work: The authors plan to:
  • Validate the framework on real GPU and accelerator platforms.
  • Extend the framework to multi-core compute systems with shared memory hierarchies.
  • Incorporate mixed-precision execution and emerging memory technologies into the exploration.
  • Explore further optimizations for disaggregated systems and more complex workload decompositions (e.g., layer-level prefill optimization).

Summary updated

BibTeX
@misc{wu2026memexplorer,
  author = {Haoran Wu and Zeyu Cao and Yao Lai and Binglei Lou and Jiayi Nie and Can Xiao and Timi Adeniran and Przemyslaw Forys and Kauser Johar and Catriona Wright and Junyi Liu and Kai Shi and Nicholas D. Lane and Rika Antonova and Jianyi Cheng and Timothy W. Jones and Aaron Zhao and Robert Mullins},
  title = {{MemExplorer: Navigating the Heterogeneous Memory Design Space for Agentic Inference NPUs}},
  year = {2026},
  eprint = {2604.16007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.16007},
}
Figure