In one of the most consequential pieces of bare-metal reverse engineering this year, hardware researcher Eileen Yoon has published a forensic investigation into the Apple Neural Engine (ANE)—uncovering an RTL performance erratum in Apple Silicon that has silently choked on-device LLM inference speeds, and providing an ingenious kernel bypass to fix it.

For years, Apple has touted its Neural Engine as a premier coprocessor for on-device machine learning, delivering up to 38 trillion operations per second while sipping minimal battery power. However, developers attempting to run large language models on the ANE consistently hit an unexpected performance cliff: while the GPU could stream weights at near-theoretical memory bandwidth, the Neural Engine frequently stalled at an abysmal 17 to 19 Gigabytes per second.

Profiling matrix multiplications during single-token autoregressive decoding (X[1,D] x W[D,N] = Y[1,N]), Yoon made a startling discovery: when hidden dimension D was set to 1536, the engine ran nearly three times faster than when D was 2048 (the standard dimension used in Meta's Llama 3.2).

Diving into the kernel-level DMA engine that feeds weights from Unified Memory into the Neural Engine’s SRAM, Yoon pinpointed the flaw: an RTL hardware erratum in the chip's speculative prefetch ring. Whenever the total tensor weight buffer equals an exact integer multiple of 1 Megabyte, the prefetch logic experiences pipeline thrashing, dropping bandwidth by over 65%.

Because Llama 3.2, Qwen, and Gemma models use power-of-two dimensions that frequently align to 1 MiB boundaries, 7 out of 15 standard local open models were severely penalized. Yoon engineered a low-overhead kernel patch that alters the DMA buffer descriptor chain, avoiding the problematic prefetch path.

The results are staggering: Llama 3.2 1B generation speed leaped from 10.0 to 24.3 tokens per second, with DRAM streaming hitting a blistering 60.0 GB/s. For the local AI community, the fix doubles the practical usability of billions of Apple Silicon laptops worldwide.