[2606.22283] Apple Neural Engine: Architecture, Programming, and Performance
Abstract:The Apple Neural Engine (ANE) is the fixed-function matrix accelerator that has shipped in Apple systems-on-chip since the A11-class iPhone and iPad chips and the M1-class Mac chips, exposed to applications only through the Core ML model framework. This guide reports a reverse-engineered account of the engine, based on direct measurement on Apple silicon and static analysis of the private runtime, compiler, kernel driver, and firmware. It documents the datapath and the roofline that bound the engine's throughput and energy, the dispatch route that reaches it below Core ML, the compiler and on-disk program format, the weight-compression scheme, and the kernel driver, firmware, and command protocol beneath them. The account covers the A11 through A18 and M1 through M5 families, with per-chip target tables and an operation-by-device matrix; the direct measurements are on the M1 and M5. Claims are labeled as measured, decompile-derived, or predicted, and the methodology and open questions are recorded. The direct route is callable from ordinary user space but remains undocumented, unsupported, and version-fragile; it is intended for measurement, research, and on-device work, not for shipping software, where Core ML remains the supported path.
View PDF HTML (experimental) Abstract:The Apple Neural Engine (ANE) is the fixed-function matrix accelerator that has shipped in Apple systems-on-chip since the A11-class iPhone and iPad chips and the M1-class Mac chips, exposed to applications only through the Core ML model framework. This guide reports a reverse-engineered account of the engine, based on direct measurement on Apple silicon and static analysis of the private runtime, compiler, kernel driver, and firmware. It documents the datapath and the roofline that bound the engine's throughput and energy, the dispatch route that…
saved by
related reading
- Inside the M4 Apple Neural Engine, Part 1: Reverse Engineeringmaderix.substack.com
- AI Chip Architecturesjacobpeake.com
- GitHub - wafer-ai/gpu-perf-engineering-resources: A curated resource list for learning AI performance engineering, from GPU fundamentals to production inference.github.com
- MatX: High-throughput chips for LLMsmatx.com
- A friendly introduction to machine learning compilers and optimizershuyenchip.com
- Inside NVIDIA GPUs: Anatomy of high performance matmul kernels - Aleksa Gordićaleksagordic.com
- PiTorch: ML on Baremetal Raspberry Pis | projectsmasonjwang.com
- Meta harness makes 10 times better Kimi K3 chipluoluo.ai
- Dissecting the Apple M1 GPU, the endalyssarosenzweig.ca
- MacBook Neo Benchmarks: A18 Pro CPU vs M1 and M4jdhodges.com
- AI Chip Architecturesjepeake.com
- The Short Case for Nvidia Stock | YouTube Transcript Optimizeryoutubetranscriptoptimizer.com