苹果神经引擎的预测性逐引擎能耗屋顶线模型 A predictive, per-engine energy roofline of the Apple Neural Engine 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-14
👁️ 预览文献
💡 AI 中文简介
这项研究绕过CoreML,直接测量苹果神经引擎(ANE)的能耗和性能,并与同设备的GPU、CPU对比。发现ANE有两条内存带宽路径:慢速激活路径和快速权重流路径,导致传统屋顶线模型无法预测其实际表现。ANE的峰值算力随操作数增加而下降,int8压缩可节能,int4查表流可提升吞吐但损失2.55%的ImageNet精度。研究为优化ANE算子放置和融合提供了依据。
领域计算机体系结构/移动端AI加速器
适合谁读需要一定专业背景(体系结构、深度学习部署)
核心贡献1. 首次通过无CoreML的融合图调度路径对ANE进行逐引擎能耗测量,揭示其双内存带宽路径特性;2. 提出修正的屋顶线模型,能跨四代ANE预测性能下界,并指导算子按算术强度放置与融合。
关键数据ANE单操作数峰值算力随操作数增加而下降;int8压缩在吞吐不变下节能;int4查表流提升吞吐和效率,但ImageNet top-1下降2.55个百分点;模型在四代ANE上复现。
推荐理由如果你关心手机上的AI芯片到底怎么跑得快又省电,这篇硬核测量会颠覆你对屋顶线的认知。
关键词["苹果神经引擎", "能耗屋顶线模型", "内存带宽", "量化", "算子融合", "硬件性能建模"]

原文摘要

查看英文原文摘要

The Apple Neural Engine (ANE) is in over a billion devices, but is characterized indirectly via CoreML. Using a CoreML-free fused-graph dispatch path, we measure the ANE, along with the Apple GPU and CPU on the same device, with per-engine energy accounting. The consumer-available roofline does not predict the ANE in practice. A critical correction is that the ANE sees two effective memory bandwidths: a slow activation path and a fast weight-stream path. Two roofline ridges follow, and the weight-stream ridge is below that of the GPU. The ANE single-operand compute peak decreases instead of plateauing. Its weight stream is byte-bound in fp16 but limited by the dequantizer's element rate in int8. As a result, int8 compression saves energy at unchanged throughput and an int4 lookup-table stream raises throughput and efficiency at a cost of 2.55 points of ImageNet top-1. The corrected roofline identifies the lower-energy ANE paths and bounds it from below. A constructed device map reproduces across four unique ANE generations. Results show that operators should be placed by arithmetic intensity and fused for optimal performance.