paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Ouroboros: Wafer-Scale SRAM CIM with Token-Grained Pipelining for Large Language Model Inference

Ouroboros:面向大语言模型推理的晶圆级 SRAM 存内计算与 Token 粒度流水线
ASPLOS Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22026匹配度 1/10 · 该论文属于硬件体系结构方向,研究晶圆级 SRAM 存内计算架构与流水线调度以加速 LLM 推理,与用户关注的静态程序分析、形式化验证、浮点程序分析及贝叶斯程序分析均无交集;LLM 在此只是被加速的负载,而非被分析或被 LLM 改进的程序分析对象。引用 3 inbox
Yiqi Liu, Yudong Pan, Mengdi Wang, Shixin Zhao, Haonan Zhu, Yinhe Han, Lei Zhang, Ying Wang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出晶圆级 SRAM 存内计算架构与 Token 粒度流水线,实现 LLM 推理原位执行并显著提升吞吐与能效。

大语言模型推理受限于深层存储间的数据迁移,能耗与延迟高。本文提出 Ouroboros:一种晶圆级 SRAM 存内计算架构,将全部 LLM 运算原位执行于一级 SRAM,避免片外迁移。针对一级容量有限,提出 Token 粒度流水线,缓解序列长度变化并提升 CIM 核心利用率;分布式动态 KV Cache 管理,解耦存储与计算分配,利用已分配核心的碎片化 SRAM 存储 KV;通信感知且容错的核映射,就近放置流水阶段并分散大层,同时容忍核心缺陷。实验表明,平均吞吐提升 4.1×、能效提升 4.2×,13B 模型峰值达 9.1× 吞吐和 17× 能效。

问题
传统 LLM 推理架构因跨层级存储的数据迁移导致能耗和延迟过高;晶圆级 SRAM CIM 又受一级存储容量限制,需要高效的计算-存储资源分配。
方法
提出晶圆级 SRAM 存内计算架构,将 LLM 运算原位执行于一级 SRAM;并设计 Token 粒度流水线、分布式动态 KV Cache 管理和通信感知容错核映射三项技术。
评估
与当前先进系统对比,平均吞吐提升 4.1×、能效提升 4.2×;13B 模型峰值吞吐提升 9.1×,能效提升 17×。
原文摘要(Abstract)

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

BibTeX
@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}
}