arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2505.09663cs.LG
收藏

模拟基础模型

Analog Foundation Models

IBM Research – Zurich(IBM瑞士研究实验室);ETH Zürich(苏黎世联邦理工学院);IBM Research – Almaden(IBM加州阿尔玛登研究实验室);IBM Thomas J. Watson Research Center(IBM托马斯·J·沃森研究中心)

Julian Büchel, Iason Chalas, Giovanni Acampa, An Chen, Omobayode Fagbohungbe, Sidney Tsai, Kaoutar El Maghraoui, Manuel Le Gallo, Abbas Rahimi, Abu Sebastian

AI总结:

本文提出一种通用可扩展方法,使LLM适应噪声低精度模拟硬件,保持4位性能,并支持数字量化与测试时扩展,弥合高容量模型与高效硬件的差距。

摘要:

模拟内存计算(AIMC)是一种有前景的计算范式,旨在超越传统冯·诺依曼架构的限制,提高神经网络推理的速度和能效。然而,AIMC引入了根本性挑战,如噪声计算以及对输入和输出量化的严格约束。由于这些约束和不精确性,现成的LLM在基于AIMC的硬件上部署时无法达到4位级别的性能。虽然研究人员此前研究了在小型、主要基于视觉的模型上恢复这种精度差距的方法,但适用于在数万亿令牌上预训练的LLM的通用方法尚不存在。在这项工作中,我们提出了一种通用且可扩展的方法,以稳健地使LLM适应在噪声、低精度模拟硬件上执行。我们的方法使最先进的模型——包括Phi-3-mini-4k-instruct和Llama-3.2-1B-Instruct——在存在模拟噪声和量化约束的情况下,仍能保持与4位权重、8位激活基线相当的性能。此外,我们表明,作为我们训练方法的副产品,模拟基础模型可以量化用于低精度数字硬件上的推理。最后,我们表明我们的模型还受益于测试时计算扩展,显示出比使用4位权重和8位静态输入量化训练的模型更好的扩展行为。我们的工作弥合了高容量LLM与高效模拟硬件之间的差距,为节能基础模型提供了一条路径。代码可在https://github.com/IBM/analog-foundation-models获取。

英文摘要:

Analog in-memory computing (AIMC) is a promising compute paradigm to improve speed and power efficiency of neural network inference beyond the limits of conventional von Neumann-based architectures. However, AIMC introduces fundamental challenges such as noisy computations and strict constraints on input and output quantization. Because of these constraints and imprecisions, off-the-shelf LLMs are not able to achieve 4-bit-level performance when deployed on AIMC-based hardware. While researchers previously investigated recovering this accuracy gap on small, mostly vision-based models, a generic method applicable to LLMs pre-trained on trillions of tokens does not yet exist. In this work, we introduce a general and scalable method to robustly adapt LLMs for execution on noisy, low-precision analog hardware. Our approach enables state-of-the-art models $\unicode{x2013}$ including Phi-3-mini-4k-instruct and Llama-3.2-1B-Instruct $\unicode{x2013}$ to retain performance comparable to 4-bit weight, 8-bit activation baselines, despite the presence of analog noise and quantization constraints. Additionally, we show that as a byproduct of our training methodology, analog foundation models can be quantized for inference on low-precision digital hardware. Finally, we show that our models also benefit from test-time compute scaling, showing better scaling behavior than models trained with 4-bit weight and 8-bit static input quantization. Our work bridges the gap between high-capacity LLMs and efficient analog hardware, offering a path toward energy-efficient foundation models. Code is available at https://github.com/IBM/analog-foundation-models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑