Apple Neural Engine: Architecture, Programming, and Performance
TL;DR Highlight
A 303-page reverse-engineering of Apple's Neural Engine, accessed below Core ML and measured on M1 and M5.
Who Should Read
App or ML engineers curious how the Apple Neural Engine actually behaves for on-device inference on iPhone and Mac
Core Mechanics
- ANE is a fixed-function matrix accelerator
- It is Apple's fixed-function accelerator for matrix operations.
- It ships in every iPhone/iPad SoC since the A11 and every Mac since the M1.
- Core ML is the only official route
- Apps can reach the ANE only through Core ML.
- Core ML documents almost nothing below its own surface.
- Direct access below Core ML
- The author reached the engine from an ordinary user process, below Core ML.
- That access opened the rest of the engine to measurement.
- Compiler, driver and firmware decoded
- The private runtime, compiler, kernel driver and firmware were decompiled and cross-checked against each other.
- It covers the datapath, the roofline bounding throughput and energy, the program format, weight compression and the command protocol.
- Per-chip tables and an op-by-device matrix
- Compiler targets for A11 to A18 and M1 to M5 were decoded into per-chip tables and an operation-by-device matrix.
- Silicon was measured only on M1 and M5.
- Every claim carries an evidence label
- Each claim is marked measured, decompile-derived, or predicted.
- The route is undocumented, unsupported and breaks across OS updates.
- Core ML remains the path for shipped software.
Community Reactions
- A comment recommending a ModernBERT write-up
- One comment points to a write-up, with code, of running ModernBERT on the ANE.
- The commenter has used ModernBERT for classification and found it impressive.
- TTS worked, diffusion did not
- One commenter accelerated text-to-speech models on iOS with the ANE and found it easier than on Android.
- They struggled to run a diffusion model on it and used mlx-swift on the iPhone GPU instead.
- Missing M5 Neural Accelerators
- A comment says the paper skips the Neural Accelerators, Apple's Tensor Core equivalent, available since M5.
- The commenter calls that the most important part.
- Skepticism about LLM use and AI authorship
- One comment says the ANE seems useless for LLMs because of its architecture.
- Another says the paper reads as AI-written.
How to Apply
- Profile where your model actually runs
- Today, run your Core ML model under Xcode Instruments and check whether it executes on ANE, GPU or CPU.
- If some ops fall off the ANE, decide whether to change them or use a GPU path.
- Keep shipped apps on Core ML only
- The direct route is undocumented and unsupported, and breaks across OS updates.
- Use it only for measurement and research, never in production code.
- Pick target devices with the per-chip table
- Open the paper's operation-by-device matrix and check that your ops are supported on your target chips (A11 to A18, M1 to M5).
- If not, change the model architecture or raise the minimum supported device.
Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls