Abstract
This technical report details the architecture and training of the Apple Intelligence Foundation Models (AFM), the generative engines powering Apple’s AI ecosystem. We introduce a two-tier strategy: a highly optimized ~3B parameter on-device model and a larger, novel "Parallel-Track" Mixture-of-Experts (PT-MoE) server model. Both models match or exceed the performance of similarly sized open-source baselines while maintaining strict privacy through Apple’s Private Cloud Compute.
1. Introduction
Deploying state-of-the-art Large Language Models (LLMs) across a massive device ecosystem presents a "trilemma" of performance, privacy, and efficiency. Users require generative features that are low-latency and high-performance, yet privacy-preserving and battery-efficient. Apple addresses these challenges by tailoring architectures specifically for Apple Silicon and Private Cloud Compute (PCC), moving away from generic transformer designs.
2. Training and Optimization Pipeline
The development of AFM follows a comprehensive pipeline from data curation to hardware-specific optimization, all informed by responsible AI principles. This process ensures that models are not only performant but also aligned with safety and privacy standards.
2.1 On-Device Optimization
To enable high-quality inference on mobile hardware, several innovations were implemented:
- KV Cache Sharing: The model is split into two blocks where the second block shares the cache generated by the first. This reduces memory usage and Time-to-First-Token (TTFT) by ~37.5%.
- 2-bit Quantization-Aware Training (QAT): Instead of post-training quantization, Apple simulates 2-bit effects during training using learnable scaling factors and Newton-Raphson-inspired clipping to maintain quality at extreme compression.
- Sparse-to-Dense Distillation: A dense model was "upcycled" into a 64-expert MoE and then distilled back into a dense 3B model, capturing the performance of a large teacher in an efficient student model.
2.2 Server-Side: Parallel-Track MoE (PT-MoE)
For complex reasoning tasks, Apple introduced the PT-MoE architecture. This design minimizes the synchronization overhead typically found in tensor-parallel models.
- Track Parallelism: The model is partitioned into "tracks" that only synchronize at the boundaries of "track blocks." This reduces synchronization overhead by up to 87.5%.
- Interleaved Attention: The models alternate between local sliding-window attention (size 4096) and global attention to handle contexts up to 65k tokens efficiently.
3. Datasets and Multimodality
The server model was trained on 13.4 trillion tokens, including web crawls, licensed corpora, and high-quality code/math data. Multimodal capabilities are supported by over 10 billion image-text pairs and 5 billion synthetic image-caption pairs. Support for 16 languages was achieved by increasing the multilingual data mixture to 30% during continued pre-training.
4. Hardware-Software Co-design
Apple demonstrates that 2-bit weights are production-viable when paired with QAT and LoRA recovery adapters. Furthermore, by using hardware formats like Adaptive Scalable Texture Compression (ASTC)—typically used for GPU textures—to compress model weights, the server model achieves near-zero decompression cost on Apple GPUs.
5. Key Results
In benchmarks, the AFM On-Device model (67.85 MMLU) outperforms Qwen-2.5-3B (66.37) and Gemma-3-4B (62.81). Human evaluations show that AFM models are often preferred over or tied with LLaMA 4 Scout and GPT-4o across various categories like brainstorming and coding, particularly in non-US English locales.
6. Conclusion and Future Work
While highly capable, the on-device model is specialized for tool-use rather than general world knowledge. Future work will focus on extending context lengths and deepening the integration of tool-calling within the Swift ecosystem via the new Foundation Models framework and Swift macros like @Generable.
Summary updated