# A predictive, per-engine energy roofline of the Apple Neural Engine

Apple Neural Engineの予測型エンジン別エネルギールーフライン

Spencer H. Bryngelson · arXiv · 2026年11月14日

- **課題** 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の演算上限は、サイズが大きくなると平坦にならず低下します。そのため、大きなオペランドを避けるよりも、演算融合を高速な経路に保つことが重要です。

![Figure 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](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-cb063b91c3607bbd1b66e89507b04e1d.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/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](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-4c1f337c22abdab413fa706bd68fe503.png?thumb=512)

**Table 2** . Bandwidth ceilings (M5 Pro), GPU and ANE in fp16.

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

![Figure 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𝐾= 2…](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-c453a27b888600078f1b996ce39e219e.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Spencer H. Bryngelson · A predictive, per-engine energy roofline of the Apple Neural Engine · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

![Figure 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 sho…](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-58eb3ff8398c53726c69135c478d232e.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/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 ri…](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-24fb48580bec850de9757ab46217aeef.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/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に配置するのが規則です。

![Figure 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…](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-c0c691c67aab2fb691d9926b1c11e5d1.png?thumb=512)

**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𝑇 .

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/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…](https://refivu.com/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249/figures/figure-1d17cb1629a3b9725a760e7020269480.png?thumb=512)

**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.

[出典](https://arxiv.org/abs/2611.19101v1) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/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](https://creativecommons.org/publicdomain/zero/1.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.19101v1) · [PDF ↗](https://arxiv.org/pdf/2611.19101v1)

この解説は、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}
}
```

## この論文の用語

- [GEMM](https://refivu.com/ja/terms/2ab461ff0bcb-gemm)

## ほかの論文解説

- [Instructor-designed AI improves learning in a randomized trial across 19 universities](https://refivu.com/ja/papers/ff326c36-4b69-42d2-b4ff-ab7febe76bb4-instructor-designed-ai-improves-learning-in-a-randomized.md)
- [On numerical issues of divergences between nearly equal distributions](https://refivu.com/ja/papers/773d1588-c8f1-4b62-bd60-761e8d81008b-on-numerical-issues-of-divergences-between-nearly-equal.md)
- [Probabilities of Causation in Nondeterministic Causal Models](https://refivu.com/ja/papers/4a41c475-9406-46f0-81a1-d08a8eb59ede-probabilities-of-causation-in-nondeterministic-causal-models.md)
- [Training-point consistency of kernel ridge regression with varying correlation scales](https://refivu.com/ja/papers/cf42114d-78fb-47c0-aadb-1b56a39f01ce-training-point-consistency-of-kernel-ridge-regression-with.md)
- [On the Limits of Sufficient Explanations](https://refivu.com/ja/papers/5d229b65-8e92-4bdb-a2c0-ba1f553e51c1-on-the-limits-of-sufficient-explanations.md)
- [Small Is Not Dead: Distance-Aware Cluster Revival for e-means](https://refivu.com/ja/papers/f2b6f05d-7401-4871-be99-b749f117115c-small-is-not-dead-distance-aware-cluster-revival.md)
- [Ask Precisely, Assume Wisely: Interactive Evaluation of Ambiguity Resolution in Large Language Models](https://refivu.com/ja/papers/0528086c-4384-4c1a-a1a0-7ad245fb8b63-ask-precisely-assume-wisely-interactive-evaluation-of.md)
- [We Have All the Cards: Securing Agent Cards at the Operational Trust Boundary of the Agent2Agent Protocol](https://refivu.com/ja/papers/cd6a0a5f-90c9-460a-83d6-55b002515aa1-we-have-all-the-cards-securing-agent-cards.md)
- [Understanding the Role of Reasoning Data in Pretraining](https://refivu.com/ja/papers/c130a474-a6eb-4156-877e-f96974963a74-understanding-the-role-of-reasoning-data-in-pretraining.md)
- [Generalization Testing of Grid Foundation Models for Power Flow and Optimal Power Flow](https://refivu.com/ja/papers/8253b14f-42d9-4b98-8337-ac9301c9801c-generalization-testing-of-grid-foundation-models-for-power.md)
- [RAVEN-Bench: A Paired EO-IR Video QA Benchmark for Aerial Multimodal Understanding](https://refivu.com/ja/papers/192f68a0-d93b-4d57-bedc-70db55672de4-raven-bench-a-paired-eo-ir-video-qa.md)
- [From Retouched Images to Paired Videos: A Synthetic Benchmark for Face Video Retouching](https://refivu.com/ja/papers/461f3481-f3e1-41e8-b20f-1dac918dda3d-from-retouched-images-to-paired-videos-a-synthetic.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/c70f76ca-99fd-4b11-8a8f-176ceae3f249-a-predictive-per-engine-energy-roofline-of-the)
