基于查找表加速器的硬件生成与探索:用于1.58位LLM推理
Hardware Generation and Exploration of Lookup Table-Based Accelerators for 1.58-bit LLM Inference
AI总结:
本文提出一种基于查找表的加速器设计框架,通过系统化分析揭示了三元权重计算的架构权衡,优化设计在面积上比乘法器基线减少了2.2倍,并通过基准测试证明了参数修正可进一步提升性能。
摘要:
三元权重量化(例如BitNet b1.58)为缓解大语言模型(LLM)推理中的内存带宽瓶颈提供了有前景的途径。然而,传统计算平台缺乏原生支持三元权重运算,通常依赖低效的去量化。基于查找表(LUT)的硬件架构通过将乘法替换为条件加法提供了一种有效替代方案,但其设计空间仍 largely unexplored。现有设计依赖启发式参数选择,缺乏对架构权衡的系统理解。本文通过形式化三元LUT加速器的设计空间并提出开源硬件生成器及分析成本模型,验证了TSMC 16nm技术的综合。通过覆盖完整架构空间,该框架不仅实现了快速设计空间探索,还建立了公平的跨设计评估基础,此前受出版加速器不一致实例的阻碍。利用该框架,我们挑战了近期文献中的几个假设和设计选择。我们证明最优架构本质上由激活数据类型决定:虽然LUT重用在高成本运算(如FP16)中提供显著增益,但在小整数类型中收益递减。此外,我们表明最大化核心尺寸相比高 tiled 方法始终提高面积密度。我们的优化设计相比乘法器基线减少了2.2倍的面积。此外,通过基准测试最先进实现与我们的模型,我们发现修正次优参数可带来高达1.2倍的面积改进。
英文摘要:
Ternary weight quantization (e.g., BitNet b1.58) offers a promising path to mitigate the memory bandwidth bottleneck in Large Language Model (LLM) inference. However, conventional compute platforms lack native support for ternary-weight arithmetic, often relying on inefficient dequantization. Lookup table (LUT)-based hardware architectures provide an effective alternative by replacing multiplications with conditional additions, but their design space remains largely unexplored. Existing designs rely on heuristic parameter selection, lacking a systematic understanding of the architectural trade-offs. This work addresses this gap by formalizing the design space of ternary LUT-based accelerators and presenting an open-source hardware generator coupled with an analytical cost model, validated against synthesis in TSMC 16nm technology. By spanning the full architectural space, this framework not only enables rapid design space exploration but also establishes a common footing for fair cross-design evaluation, which was previously hindered by inconsistent instantiations across published accelerators. Using this framework, we challenge several assumptions and design choices in recent literature. We demonstrate that the optimal architecture is fundamentally governed by the activation data type: while LUT-based reuse offers significant gains for high-cost arithmetic (e.g., FP16), it yields diminishing returns for small integer types. Furthermore, we show that maximizing core size consistently improves area density compared to highly tiled approaches. Our optimized designs achieve a 2.2x area reduction compared to multiplier-based baselines. Moreover, by benchmarking state-of-the-art implementations against our model, we reveal that correcting suboptimal parameters yields up to a 1.2x area improvement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。