arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.11506cs.LGcs.AIcs.ARcs.PF
收藏

RooflineBench:通过 Roofline 分析为设备端 LLMs 提供的基准测试框架

RooflineBench: A Benchmarking Framework for On-Device LLMs via Roofline Analysis

Zhen Bi, Xueshu Chen, Luoyang Sun, Yuhang Yao, Qing Shen, Jungang Lou, Cheng Deng

AI总结:

本文提出基于 Roofline 模型的统一框架,通过操作强度(OI)统一架构原语和硬件约束,引入相对推理潜力作为新指标,分析不同 LLMs 在相同硬件上的效率差异,并揭示序列长度和模型深度对性能和 OI 的影响。

摘要:

通过小型语言模型(SLMs)实现本地智能的转变,加剧了在资源受限边缘硬件上进行严格性能表征的需求。然而,客观测量不同架构在异构平台上的理论性能上限仍是一个严峻挑战。本文提出基于 Roofline 模型的系统框架,通过操作强度(OI)统一架构原语和硬件约束。通过定义推理潜力区域,引入相对推理潜力作为新指标,比较大型语言模型(LLMs)在相同硬件上的效率差异。广泛的经验分析揭示性能和 OI 受序列长度显著影响。此外,发现随着模型深度增加,OI 出现关键回归。研究还指出由硬件异构性引起的效率陷阱,并展示结构改进如多头潜在注意力(M LA)如何在不同硬件上释放潜在推理潜力。这些见解为硬件软件协同设计提供了可行方向,以使神经结构与物理约束对齐。代码已发布在附录 C。

英文摘要:

The transition toward localized intelligence through Small Language Models (SLMs) has intensified the need for rigorous performance characterization on resource-constrained edge hardware. However, objectively measuring the theoretical performance ceilings of diverse architectures across heterogeneous platforms remains a formidable challenge. In this work, we propose a systematic framework based on the Roofline model that unifies architectural primitives and hardware constraints through the lens of operational intensity (OI). By defining an inference-potential region, we introduce the Relative Inference Potential as a novel metric to compare efficiency differences between Large Language Models (LLMs) on the same hardware substrate. Extensive empirical analysis across diverse compute tiers reveals that variations in performance and OI are significantly influenced by sequence length. We further identify a critical regression in OI as model depth increases. Additionally, our findings highlight an efficiency trap induced by hardware heterogeneity and demonstrate how structural refinements, such as Multi-head Latent Attention (MLA), can effectively unlock latent inference potential across various hardware substrates. These insights provide actionable directions for hardware-software co-design to align neural structures with physical constraints in on-device intelligence. The released code is available in the Appendix C.

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

↑