On-device AI agents hit a hard memory limit. Apple's new architecture routes around it.

Read full story on VentureBeat
Share
On-device AI agents hit a hard memory limit. Apple's new architecture routes around it.
AI disclosure

Summary

<p>On-device AI models have stayed small because the entire weight set has to live in DRAM, capping practical parameter counts well below what server-side deployments use. Enterprise architects evaluating agentic workloads have had to choose between capable cloud-dependent models and limited on-device ones. Apple&#x27;s third-generation foundation models, announced at WWDC26, <!-- -->break that constraint by moving the weight set off DRAM entirely<!-- -->.</p><p>The AFM 3 family was developed in collaboration with Google and spans five models: two on-device and three server-based, all running within Apple&#x27;s Private Cloud Compute boundary. The server-side models, including AFM 3 Cloud Pro for agentic tool use and complex reasoning, run on Nvidia GPUs in Google Cloud. The on-device architecture is Apple&#x27;s own. AFM 3 Core Advanced is a 20-billion-parameter model that stores weights in NAND flash rather than DRAM.</p><p>&quot;Instead of forcing the entire model into DRAM, the full model is stored in flash memory,&quot; <a href="https://machinelearning.apple.com/research/introducing-third-generation-of-apple-foundation-models">Apple&#x27;s research team wrote</a>. &quot;Because NAND-to-DRAM bandwidth is too slow to swap weights token by token, as standard MoE models require, AFM 3 Core Advanced makes routing decisions per prompt.&quot;</p><h2>How the architecture actually works</h2><p>The memory wall Apple is working around is one every local AI developer runs into. &quot;You can&#x27;t put 20B parameters in RAM at any reasonable precision,&quot;<a href="https://www.linkedin.com/in/awni-hannun-36382a17/"> Awni Hannun</a>, a researcher at Anthropic and former Apple research scientist,<a href="https://x.com/awnihannun/status/2064202168618422396"> posted on X</a>. &quot;To make it work they are using pretty exotic architecture by today&#x27;s standards. A small model predicts from the query (or prompt) which experts to load from NAND into RAM.&quot;</p><div></div><p>That prediction-and-load mechanism has three distinct components, each driven by the hardware constraints of consumer silicon.</p><p><b>The full 20B weight set lives in flash, not DRAM.</b> AFM 3 Core Advanced stores its entire parameter set in NAND flash rather than active memory. Standard on-device deployments require the full model to fit in DRAM, which is what caps their parameter counts. Apple&#x27;s approach, which it calls Instruction-Following Pruning (IFP) and developed with its own researchers, treats flash as the model&#x27;s permanent home and DRAM as a working buffer for whichever experts a given prompt requires.</p><p><b>Expert routing happens once per prompt, not per token.</b> In a conventional Mixture of Experts model, a router selects different experts for every token generated — which would require continuous weight movement between flash and DRAM at inference speed. NAND-to-DRAM bandwidth cannot support that. AFM 3 Core Advanced routes once at prompt time, selects a fixed expert set, loads it into DRAM alongside always-active shared experts, and generates all tokens from that same configuration. &quot;The key distinction from a typical MoE is that you do this once per query and then generate all the tokens with the same experts,&quot; Hannun wrote.</p><p><b>Active parameter count scales from 1B to 4B depending on task complexity.</b> Rather than running a fixed model size for every request, AFM 3 Core Advanced adjusts how many parameters it activates based on what the task requires — 1 billion for simpler operations, up to 4 billion for harder ones, all drawn from the 20-billion-parameter pool in flash. </p><h2>What Apple has and hasn&#x27;t disclosed</h2><p>The architecture paper is detailed on the memory design and sparse activation mechanism. It is less forthcoming on practical deployment constraints.</p><p>Apple&#x27;s profiling tools expose timing but not the metrics that decide production viability. &quot;Energy, memory bandwidth, thermal? Not in the docs,&quot; Marco Abis, who is building Ziraph, a profiler for local AI on Apple silicon,<a href="https://x.com/capotribu/status/2064267804476383427"> posted on X</a>. &quot;A notable gap, given those decide most of on-device performance.&quot; </p><div></div><p>Abis also did not find a statement in Apple&#x27;s documentation — across the Core AI docs, the Foundation Models docs or the Private Cloud Compute security post — of when an on-device request transparently offloads, or whether that routing is visible to the developer or the user. For enterprises that need to document where inference runs, that is a direct compliance problem.</p><p>Not all the information is currently available. Apple has indicated a full technical report with benchmarks is coming later this summer.</p><h2>What this means for enterprise architects</h2><p>Regulated industries evaluating agentic AI deployments now have a concrete architectural decision to make.</p><ul><li><p><b>The DRAM wall for on-device agents just moved. </b>Enterprises evaluating agents that need to run without a cloud round-trip now have a 20-billion-parameter local option to evaluate. The constraint shifts from model capability to device hardware.</p></li><li><p><b>The private/cloud boundary is now an architectural decision, not a default. </b>Simpler requests stay on-device; complex agentic tasks route to AFM 3 Cloud Pro on Private Cloud Compute. Apple has not publicly specified when a request offloads or whether that routing is visible to the developer — a gap that complicates policy decisions for organizations that need to document where inference runs.</p></li><li><p><b>The agentic server tier depends on Google Cloud. </b>AFM 3 Cloud Pro runs on Nvidia GPUs in Google Cloud. The Private Cloud Compute guarantee covers data privacy. It does not eliminate the Google Cloud dependency for server-side inference.</p></li></ul><p>AFM 3 Core Advanced gives enterprises a 20-billion-parameter on-device option that did not exist before WWDC26. Whether it is deployable at scale depends on answers Apple has not yet published. Those details are due in the summer technical report.</p>

Original reporting

Open original source

Related coverage

Read full article on VentureBeat

Get the AFBytes Brief

Major stories, AI-assisted analysis, and what to watch next. Free, monthly, unsubscribe anytime.