Scaling Engram Inference with Tiered CXL Memory and Cross-Block Execution
Haojia Zhang, Hanzhi Xun, Yang Ou, Jiaqing Xu, Fangxu Lv, Zicong Wang, Wei Chen, Lizhou Wu, Mingche Lai
Abstract
Engram replaces part of knowledge retrieval in large language models with sparse lookup, reserving more Transformer blocks for compositional reasoning. However, scaling its embeddings poses two challenges: balancing memory capacity, cost, and access latency across Engram blocks, and hiding hidden-state-dependent Gate and Conv execution while limiting hidden-state differences. We present FlexEngram, a decode-focused framework with three mechanisms. First, block-wise disaggregated placement uses HBM for backbone state, host DRAM for Embedding outputs, CXL-DRAM for early Engram blocks' embeddings, and CXL-PCM for the rest. Sharing, batched reads, and reusable pinned buffers reduce delivery costs. Second, dependency-aware heterogeneous execution uses earlier hidden states to overlap Gate and Conv with backbone computation through CPU, GPU, or ASIC acceleration. The target block adds the resulting delta to its hidden state, while CUDA fusion reduces residual GPU overhead. Third, an adaptive scheduler predicts the minimum CPU-accelerated lookahead distance from Gate-Conv and transfer costs and observed block times. GPU and ASIC acceleration use one-block lookahead. On Qwen3-4B and Llama-3.1-8B-Instruct, FlexEngram improves average decode throughput by 3.15% over VanillaEngram and 3.23% over PoolingEngram. The scheduler achieves a 100% match between predicted and measured minimum lookahead distances across multiple workloads. Eight Engrams outperform two-module VanillaEngram in throughput. Across the three paths, each added Engram incurs 0.24% mean throughput loss, an 83.46% smaller decline than VanillaEngram, supporting larger conditional memory with minimal overhead.
Create a lesson
Metadata
- Comments
- 13 pages, 12 figures, 6 tables
Related papers
PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching
Shared title terminologycs.ARGeraldo F. Oliveira, Ahmet Caner Yüzügüler, Renzo Andri et al.
Let2Gain: Efficient LLM Inference on 2.5D Chiplet Architecture using 2T Gain-Cell Memory
Shared title terminologycs.ARArkapravo Ghosh, XinXin Wang, Shuhan Liu et al.
Tetris: Accelerating Composable Test-Time Scaling on GPU-PIM Systems via Adaptive Mapping, Control, and Memory Management
Shared title terminologycs.ARShengxuan Qiu, Haochen Huang, Tenghao Zhao et al.
Upright DRAM on Logic: Edge-Connected Memory Cubes for Bandwidth-Bound LLM Inference
Shared title terminologycs.ARYichen Long, Xiaoyu Hao, Hongyang Pan et al.
MixMoMo: Accelerating Extra--Large MoE Inference with Mixed--Precision GPU--NPU Execution on Mobile Devices
Shared title terminologycs.ARHailong Zou, Maoliang Li, Taohong Han et al.
L2C2: Enhancing Large-scale Chiplets for Agent Long-Context LLM Inference with Sparse and Distributed Attention
Shared title terminologycs.ARKangbo Bai, Zhonghua Mu, Hongze Zhou et al.