NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Combating the Memory Walls: Optimization Pathways for Long-Context Agentic LLM Inference

Haoran Wu, Can Xiao, Jiayi Nie, Xuan Guo, Binglei Lou, Jeffrey T. H. Wong, Zhiwen Mo, Cheng Zhang, Przemyslaw Forys, Wayne Luk, Hongxiang Fan, Jianyi Cheng, Timothy M. Jones, Rika Antonova, Robert D. Mullins, Aaron Zhao · OpenReview

Abstract

LLMs now form the backbone of AI agents for a diverse array of applications, including tool use, command-line agents, and web or computer use agents. These agentic LLM inference tasks are fundamentally different from chatbot-focused inference -- they often have much larger context lengths to capture complex, prolonged inputs, such as entire webpage DOMs or complicated tool call trajectories. This, in turn, generates significant off-chip memory traffic for the underlying hardware at the inference stage and causes the workload to be constrained by two memory walls, namely the bandwidth and capacity memory walls, preventing the on-chip compute units from achieving high utilization. In this paper, we introduce PLENA, a hardware-software co-designed system that applies three core optimization pathways to tackle these challenges. PLENA includes an efficient hardware implementation of compute and memory units supporting an asymmetric quantization scheme. PLENA also features a novel flattened systolic array architecture that has native support for FlashAttention to tackle these memory walls in the scenario of inference serving for long-context LLMs. Additionally, PLENA is developed with a complete stack, including a custom ISA, a compiler, a cycle-emulated simulator, and an automated design space exploration flow. The simulated results show that PLENA achieves up to 8.5x higher utilization than existing accelerators, and delivers 2.24x higher throughput than the A100 GPU and 3.85x higher throughput than the TPU v6e, under the same multiplier count and memory settings. The full PLENA system will also be open-sourced.

The Rise of Agentic LLMs and the Memory Wall

Large Language Models (LLMs) have transitioned from simple conversational interfaces to the core of "agentic" systems. These agents perform complex tasks like web browsing, software engineering, and tool orchestration. Unlike standard chatbots that process relatively short prompts, agentic workloads require massive context windows—often exceeding 100k tokens—to ingest entire webpage DOMs or long code repositories.

This shift in workload characteristics exposes two critical bottlenecks in traditional hardware:

  1. The Bandwidth Wall: The constant movement of massive model weights and growing Key-Value (KV) caches between off-chip High Bandwidth Memory (HBM) and on-chip compute units creates a bottleneck, leaving processors underutilized.
  2. The Capacity Wall: Long context sequences generate enormous KV caches that quickly saturate available memory, severely limiting the batch sizes that hardware can process.

Traditional accelerators like GPUs and TPUs utilize square systolic arrays optimized for "square" matrix multiplications. However, long-context inference typically involves "fat" General Matrix-Matrix Multiplications (GEMMs), where the batch size is small but the sequence or hidden dimensions are extremely large. This structural mismatch leads to significant hardware idling.

PLENA: A Hardware-Software Co-Design Approach

To address these challenges, we introduce PLENA (Programmable Long-context Efficient Neural Accelerator). PLENA employs three core optimization pathways:

1. Flattened Systolic Array

The central architectural innovation of PLENA is the "flattened" systolic array. While a standard array might be a 64x64 grid, PLENA reshapes this into a lopsided configuration (e.g., 8x512). This geometry natively aligns with the dimensions of long-context inference tasks, ensuring high multiplier utilization even at small batch sizes.

Comparison of standard square systolic arrays versus the PLENA flattened architecture, highlighting the reduction in unused processing elements.

2. Asymmetric Quantization and Microscaling

PLENA uses an asymmetric quantization strategy to minimize memory traffic without sacrificing accuracy. While activations are kept in higher precision, weights and KV caches are compressed to 4-bit using Microscaling (MX) formats. To mitigate the impact of "outliers" that typically degrade low-bit quantization, PLENA implements Selective Online Rotation (Hadamard transform) directly in the hardware.

3. Native FlashAttention and Custom ISA

The system features a custom Instruction Set Architecture (ISA) with native support for FlashAttention. This allows the hardware to fuse Attention, Softmax, and subsequent Attention steps on-chip. By performing these operations in a single fused pass, PLENA drastically reduces the need for expensive round-trips to off-chip memory.

Performance and Analysis

The effectiveness of PLENA's design is most evident when analyzing its performance against the "Memory Walls." By flattening the array and applying aggressive quantization, PLENA pushes the boundaries of attainable performance.

Comparison of attainable FLOPs across different batch sizes, showing how PLENA's flattened array and quantization help overcome memory bandwidth and capacity walls.

Evaluations across models like LLaMA-3.3 70B show that PLENA delivers 2.24× higher throughput than an NVIDIA A100 GPU and 3.85× higher than a Google TPU v6e, when normalized for the same multiplier count and memory settings. Furthermore, it achieves up to 8.5× higher hardware utilization than existing state-of-the-art accelerators.

Conclusion

PLENA demonstrates that the path to efficient long-context agentic inference lies in hardware-software co-design. By rethinking the fundamental geometry of the systolic array and integrating specialized quantization and attention support, PLENA overcomes the memory walls that constrain general-purpose hardware. The full PLENA system, including the hardware RTL and software stack, will be open-sourced to support the development of next-generation AI agents.

Summary updated

BibTeX
@inproceedings{wu2026combating,
  author = {Haoran Wu and Can Xiao and Jiayi Nie and Xuan Guo and Binglei Lou and Jeffrey T. H. Wong and Zhiwen Mo and Cheng Zhang and Przemyslaw Forys and Wayne Luk and Hongxiang Fan and Jianyi Cheng and Timothy M. Jones and Rika Antonova and Robert D. Mullins and Aaron Zhao},
  title = {{Combating the Memory Walls: Optimization Pathways for Long-Context Agentic LLM Inference}},
  booktitle = {ISCA},
  year = {2026},
  doi = {10.1109/isca66397.2026.00023},
}
Figure