論文解説
A predictive, per-engine energy roofline of the Apple Neural Engine
Apple Neural Engineの予測型エンジン別エネルギールーフライン
- 課題 Apple Neural Engineは、CoreMLを経由するとどの演算がどこで実行されるのか、エンジンごとのエネルギーも分からないため、性能特性を把握しにくいです。
- 手法 CoreMLを使わずにfused-graph経路でANEを直接駆動し、GPUとCPUを同じ機器上でエンジンごとの電力とともに測定しました。2つの実効帯域幅に基づくルーフラインを立てています。
- 結果 大きな正方形GEMMではGPUの方が速いものの、ANEはより少ない電力で済みました。
CoreMLを使わずに見たANEの性能とエネルギー
Apple Neural Engine(ANE)は複数の機器に搭載されていますが、その性能とエネルギー特性は主にCoreMLを経由して間接的に知られています。CoreMLは、どの演算をANE、GPU、CPUに配置するかを不透明な方針で決め、演算ごとのディスパッチやエネルギー測定は公開しません。そのため、コミュニティのガイドや公開された数値は、スケジューラの既定値を反映しているだけで、ハードウェアの実際の限界を示しているとは言いにくいです。この論文は、CoreMLを経由しない測定経路を使い、ANE、GPU、CPUを同じ機器で比較します。
2つの帯域幅と2つのridge
論文では、従来の単一ルーフラインはANEを誤って予測すると報告されています。中心となる補正は、ANEが遅い活性化経路と速い重みストリーム経路という2つの実効帯域幅を持つ点です。これにより、ridgeも1つではなく2つになります。重みストリームのridgeは約71 FLOP/Bで、GPUの134より低いため、同じ演算でもANEではより低い算術強度で演算律速の領域に入ります。さらに、ANEの単一融合オペランドGEMMの演算上限は、サイズが大きくなると平坦にならず低下します。そのため、大きなオペランドを避けるよりも、演算融合を高速な経路に保つことが重要です。

Fig. 1 . Square-matmul throughput versus dimension 𝑁 on the M5 Pro (ANE fp16, GPU MLX fp16). The ANE roof peaks then falls; the GPU’s rises and plateaus.
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。
Table 2 . Bandwidth ceilings (M5 Pro), GPU and ANE in fp16.
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。
Fig. 2 . Weight-stream effective bandwidth versus weight dimension 𝐾=𝑁 for a decode GEMV (𝑀= 1) on the M5 Pro. The ANE’s bandwidth exceeds the GPU’s up to𝐾= 2048( 76 GB/s versus 32 GB/s) as it amortizes its dispatch floor, then plateaus near 130–143 GB/s; the GPU’s unified memory is higher from𝐾= 4096and reaches 221 GB/s.
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。
Fig. 3 . Per-device roofline on the M5 Pro: five operator archetypes on the ANE (triangles) and the GPU (circles), placed by arithmetic intensity. The ANE shows two bandwidth slopes, a24 GB/sstandalone-activation path and a faster weight-stream path used by compiled programs; per-archetype, per-device placement is in Tables 3 and 4.
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。
Table 3 . Per-device roof and ridge (recomputed from the saturation and bandwidth JSONs). The ANE has two bandwidths (Sections 3.2 and 3.3) and therefore two ridges: a standalone-activation path near 24 GB/s and a weight-stream path near 143 GB/s.
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。演算ごとのエネルギー予測と配置規則
論文では、演算ごとのエネルギーをE(AI)=e_flop+e_byte/AIとおき、2つの定数を演算上限スイープのGFLOP/s/WとGB/s/Wのプラトーから直接求めています。エネルギーの均衡点AI_Eは、エネルギーの観点からメモリ律速と演算律速を分ける地点です。適合したANE重みパスの定数は演算あたり1.16 pJ、バイトあたり16.5 pJです。活性化経路のバイトは503 pJで、その大部分はホストのディスパッチによるものです。エンジン対の交点は2つのエンジン定数から計算されます。重みストリーム経路では交点が負になるため、ANEはすべての算術強度でより低いエネルギーになります。活性化経路では交点は約933と計算されるため、それ以下の独立実行演算はGPUに配置するのが規則です。

Fig. 4 . Energy roofline (energy per FLOP versus arithmetic intensity) on the M5 Pro, fitted from the same active-package-power measurements as the perf/watt tables. Solid green is the ANE weight-stream path, dashed green the standalone-activation path; open circles mark each path’s energy balance point AI𝐸 and gray droplines the corresponding time ridge AI𝑇 .
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの11ページ目から図の部分を抽出しています。単一ストリームのデバイスマップの結果
M5 Proで、13個の合成ワークロードクラスを単一ストリームで比較しました。大きな正方形fp16 GEMM(K=4096)では、GPUが2.8倍速く、精度も高かったものの、ANEは8.71 Wで、GPUの33.05 Wより大幅に少ない電力でした。合成ワークロードでは、ANEは11クラスでperf/wattが高く、ResNet系の畳み込みスタックでは13倍の差がありました。繰り返し実験では、group_normはGPUがわずかに先行し、DFTはパリティを含めて方向を決められませんでした。実際のモデルでは、ResNet-18とMiniLMでANEにエネルギー面での利点が見られましたが、ViT-B/16ではGPUの方が速かったです。

Table 6 . Real models (latency ms; energy mJ/inference; all GPU arms fp16 unless marked). MPS is torch-MPS (.half()) and MLX-c is graph-compiled MLX (mx.compile); MiniLM and ViT-B/16 run as MLX ports loading the same weights (online supplement, formulation-fairness appendix). The ANE and MPS energies are means over𝑁=16cold starts, andadv. MPSis their geometric-mean ratio with a 95 % interval, whose width is set mostly by the GPU arm (online supplement, Table S6). The fp32 MPS column† is single-session and carries no interval. The MLX-c energies andadv. MLX-care paired repetitions interleaved with the ANE within one session (𝑁=5for ResNet-18, 𝑁=10for the others), with a 95 %𝑡 -interval on the mean ratio. Eachadv. MLX-c ratio pairs a compiled-MLX run with an ANE run from the same session, so it is not the quotient of the printed cold-start ANE energy (the in-session ANE energies are in the online supplement, formulation-fairness appendix). Latency is the device-map probe, except MLX-c, which is the sustained time of its energy window.
出典 · CC0 1.0 · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの14ページ目から図の部分を抽出しています。単一ホストと外挿の限界
測定は1つのApple M5 Proホストで行われ、絶対的な倍率はホストと熱条件に依存します。そのため、ほかのチップにそのまま当てはめるべきではありません。活性化経路のエネルギー交点AI≈933は、2つの適合定数から計算された外挿であり、測定範囲の外にあります。世代をまたぐ再現は、M2 Pro、M1 Max、M4で、単一または二重実行によって確認されています。
論文情報
- 著者
- Spencer H. Bryngelson
- 学会・ジャーナル
- arXiv · プレプリント
- 公開日
- 2026年11月14日
- 登録日
- 2026年11月17日
- 更新日
- 2026年11月14日
- バージョン
- v1
- arXiv
- 2611.19101
- カテゴリ
- cs.CE · cs.AR · cs.LG · cs.PF
- ライセンス
- CC0 1.0
- 掲載内容
- 論文情報・解説・論文の図
この解説は、Refivuの韓国語解説を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.
この論文を引用
Spencer H. Bryngelson (2026). A predictive, per-engine energy roofline of the Apple Neural Engine. arXiv:2611.19101v1. https://arxiv.org/abs/2611.19101v1
BibTeX
@misc{bryngelson2026predictive,
title = {{A predictive, per-engine energy roofline of the Apple Neural Engine}},
author = {Spencer H. Bryngelson},
year = {2026},
eprint = {2611.19101},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.19101v1}
}