一句话:提出晶圆级 SRAM 存内计算架构与 Token 粒度流水线,实现 LLM 推理原位执行并显著提升吞吐与能效。
大语言模型推理受限于深层存储间的数据迁移,能耗与延迟高。本文提出 Ouroboros:一种晶圆级 SRAM 存内计算架构,将全部 LLM 运算原位执行于一级 SRAM,避免片外迁移。针对一级容量有限,提出 Token 粒度流水线,缓解序列长度变化并提升 CIM 核心利用率;分布式动态 KV Cache 管理,解耦存储与计算分配,利用已分配核心的碎片化 SRAM 存储 KV;通信感知且容错的核映射,就近放置流水阶段并分散大层,同时容忍核心缺陷。实验表明,平均吞吐提升 4.1×、能效提升 4.2×,13B 模型峰值达 9.1× 吞吐和 17× 能效。
Large language model (LLM) inference demands vast memory capacity and hierarchical memory structures, but conventional architectures suffer from excessive energy and latency costs due to frequent data movement across deep memory tiers. To address this, we propose a wafer-scale SRAM-based Computing-in-Memory (CIM) architecture that performs all LLM operations in situ within the first-level SRAM, eliminating off-chip data migration and achieving unprecedented energy efficiency. However, wafer-scale SRAM CIM presents multiple challenges due to the limited first-level memory capacity, which requires efficient compute-memory resource allocation. To enable efficient LLM execution on this architecture, we propose three key innovations: Token-Grained Pipelining – Conventional sequence-level pipelining suffers from underutilization due to varying input sequence lengths and batching policies. We introduce a fine-grained token-level pipeline that mitigates sequence length variations, enhancing the utilization of CIM cores while minimizing the storage capacity required for activation. Distributed Dynamic KV Cache Management – KV cache storage occupies significant memory in LLM inference. We optimize on-chip KV caching by decoupling CIM memory from compute assignment, leveraging fragmented SRAM CIM memory within already-allocated cores for efficient KV storage, and reducing dedicated memory overhead. Communication-Aware and Fault-Tolerant Core Mapping – Efficient execution on wafer-scale CIM requires optimal mapping from transformer blocks to CIM cores to minimize inter-(pipeline) stage communication while ensuring intra-stage compute locality. We design a network-on-wafer-aware mapping strategy that places pipeline stages in close proximity while also distributing large layers efficiently across multiple cores. This mapping accounts for core-level defects, improving fault tolerance in wafer-scale deployment. Experimental results demonstrate that Ouroboros achieves 4.1× average throughput improvement and 4.2× average energy efficiency gain over state-of-the-art systems, peaking at 9.1× throughput and 17× energy efficiency for the 13B model.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{LiuP0ZZ00026,
title = {Ouroboros: Wafer-Scale SRAM CIM with Token-Grained Pipelining for Large Language Model Inference},
author = {Yiqi Liu and Yudong Pan and Mengdi Wang and Shixin Zhao and Haonan Zhu and Yinhe Han and Lei Zhang and Ying Wang},
booktitle = {ASPLOS},
year = {2026},
doi = {10.1145/3779212.3790197}
}