paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MERCI: efficient embedding reduction on commodity hardware via sub-query memoization

MERCI:在商用硬件上通过子查询记忆化实现高效嵌入归约
ASPLOS Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems2021匹配度 3/10 · 论文关注DNN嵌入归约的运行时记忆化优化,属于机器学习系统性能优化,但与用户核心关注的静态分析、浮点/贝叶斯程序分析及其与LLM的交叉无直接关联。虽然标签含“机器学习与程序语言”,但未涉及静态分析或程序验证。引用 32 inbox
Yejin Lee, Seong Hoon Seo, Hyunji Choi, Hyoung Uk Sul, Soosung Kim, Jae W. Lee, Tae Jun Ham
crossref: 2026-09-12

AI 速览

一句话:提出MERCI记忆化框架,聚类并缓存相关嵌入的部分聚合,减少DNN嵌入归约内存访问,在商用硬件提升吞吐与能效。

带嵌入层的深度神经网络广泛用于建模实体间复杂关系。嵌入归约将多个嵌入向量聚合为一个,但其运行时间主要花在从内存读取嵌入上,是典型的内存带宽瓶颈。现有加速工作依赖硬件修改或新兴内存技术,难以部署在商用硬件上。本文提出 MERCI(Memoization for Embedding Reduction with ClusterIng),一种面向高效嵌入归约的记忆化框架:它通过聚类识别相关嵌入,记忆化其部分聚合结果,并以低开销检索,从而减少重复内存访问。在真实机器上,MERCI 将内存访问减少 44%(29%),吞吐提升 102%(74%),能耗降低 40.2%(28.6%),代价是额外 8×(1×)内存占用。

问题
带嵌入层的 DNN 中,嵌入归约是内存带宽受限操作,现有加速方案依赖硬件修改或新兴内存,难以在商用硬件部署。
方法
MERCI 对相关嵌入进行聚类,记忆化其部分聚合结果,并提供低成本检索机制,以减少重复的嵌入读取。
评估
在真实机器上评估:内存访问减少 44%(29%),吞吐提升 102%(74%),能耗降低 40.2%(28.6%),额外内存开销为 8×(1×)。
原文摘要(Abstract)

Deep neural networks (DNNs) with embedding layers are widely adopted to capture complex relationships among entities within a dataset. Embedding layers aggregate multiple embeddings — a dense vector used to represent the complicated nature of a data feature— into a single embedding; such operation is called embedding reduction. Embedding reduction spends a significant portion of its runtime on reading embeddings from memory and thus is known to be heavily memory-bandwidth-bound. Recent works attempt to accelerate this critical operation, but they often require either hardware modifications or emerging memory technologies, which makes it hardly deployable on commodity hardware. Thus, we propose MERCI, Memoization for Embedding Reduction with ClusterIng, a novel memoization framework for efficient embedding reduction. MERCI provides a mechanism for memoizing partial aggregation of correlated embeddings and retrieving the memoized partial result at a low cost. MERCI substantially reduces the number of memory accesses by 44% (29%), leading to 102% (74%) throughput improvement on real machines and 40.2% (28.6%) energy savings at the expense of 8×(1×) additional memory usage.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6098,
  title = {MERCI: efficient embedding reduction on commodity hardware via sub-query memoization},
  author = {Yejin Lee and Seong Hoon Seo and Hyunji Choi and Hyoung Uk Sul and Soosung Kim and Jae W. Lee and Tae Jun Ham},
  booktitle = {ASPLOS},
  year = {2021},
  doi = {10.1145/3445814.3446717}
}