English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

MobileLLM-Flash Explained: Meta Puts the Smartphone at the Center of LLM Architecture Search

Forum topic · 小凯 · 2026-05-10

Summary

Meta AI's MobileLLM-Flash (arXiv 2603.15954, ACL Industry Track 2026) redesigns on-device LLMs by optimizing for real measured latency on a Samsung Galaxy S25 instead of proxy metrics like parameter count or FLOPs, which correlate only weakly (Kendall Tau ~0.40-0.55) with actual prefill/decode speed. Using ~800 on-device latency measurements to train a Gaussian process surrogate (R²=0.97) and Bayesian optimization (NEHVI), the search favors shallow-and-wide architectures (12-16 layers) over deep-and-thin ones, since mobile CPUs are memory-bandwidth bound. Notably, ExecuTorch-native skip attention outperforms sliding window attention, provided no more than two consecutive layers skip attention. The resulting Flash-350M/650M/1.4B models, trained via pruning from a 1.8B parent, achieve 1.8x prefill and 1.6x decode speedups over LFM2 with equal or better accuracy, at a cost of ~1.1% average accuracy for Flash-1.4B versus its parent. All models use only standard operators, enabling deployment across CPU, GPU, and Apple Neural Engine backends, and latency rankings transfer across devices such as the iPhone 17.

MobileLLM-Flash: Latency-Guided On-Device LLM Design

> Paper: *MobileLLM-Flash: Latency-Guided On-Device LLM Design for Industry Scale Deployment* > Authors: Hanxian Huang, Igor Fedorov, Andrey Gromov, et al. (Meta AI) > arXiv: 2603.15954, Accepted to ACL Industry Track 2026

Key Points

The real problem is Time-To-First-Token (TTFT)

  • For on-device AI, the core question is not "can it run" but "can it deliver the first token within ~4 seconds" — the threshold beyond which users perceive the app as broken.
  • The industry has long optimized the wrong proxy metrics. Measured Kendall Tau correlation with real prefill latency: parameters ≈ 0.40, FLOPs ≈ 0.46 (prefill) / 0.55 (decode). The real bottleneck on phones is memory bandwidth and operator scheduling, not compute.
  • Hardware-in-the-loop architecture search

  • Meta measured real latency for ~800 candidate architectures on a Samsung Galaxy S25, then trained a Gaussian process surrogate model with cross-validation R² = 0.97.
  • A second stage uses Bayesian optimization (NEHVI acquisition function, reference point loss=0.6, TTFT=4s) to explore the Pareto frontier of quality vs. latency.
  • Candidates are not trained from scratch: weights are inherited by pruning from a 1.8B pretrained model. Total search cost was 200 × 2.6B = 520B tokens — far cheaper than MobileLLM-Pro (1.6T) or LFM2 (10-12T).
  • Why "shallow and wide" beats "deep and thin"

  • Pareto-optimal designs use 12-16 layers with wider hidden dimensions, versus the 30-layer/1280-dim "deep and thin" style of MobileLLM-Pro.
  • On mobile CPUs, deep models cause repeated memory round-trips per layer; the CPU spends most of its time waiting for data. Fewer, wider layers improve memory bandwidth utilization — the win comes from relieving the memory bottleneck, not from less compute.
  • Skip attention beats sliding window attention

  • The search space was restricted to three ExecuTorch-native operators: full attention, sliding window attention (SWA), and skip attention (no attention at all).
  • Counterintuitively, skip attention was preferred over SWA. On ExecuTorch, SWA's window must be ≥ the prefill chunk size (1024), and its ring-buffer implementation computes the full attention matrix, so SWA can actually be slower than standard attention on-device.
  • Caveat: skipping 3+ consecutive layers destroys quality (TQA drops from 33.2% to 8.8%). The optimal pattern is interleaved: alternate full attention and skip layers.
  • Results on Galaxy S25 (Snapdragon 8 Elite, 4-bit, 4 CPU threads)

    | Model | TTFT 1K | TTFT 2K | Decode (tok/s) | |-------|---------|---------|----------------| | Flash-350M | 0.91s | 2.78s | 165.56 | | Flash-650M | 1.62s | 3.34s | 96.64 | | Flash-1.4B | 3.40s | 9.08s | 60.52 |

  • vs. LFM2: 1.8x prefill and 1.6x decode speedup, with equal or better accuracy.
  • Flash-350M's 165 tok/s decode far exceeds human reading speed, making output feel stream-like.
  • Latency rankings transfer across devices (validated on iPhone 17), so architecture-level optimizations are industrially reusable.
  • Deployment is the weapon

  • Models use only standard operators natively supported by ExecuTorch v1.1.0 (matmul, LayerNorm, QK-Norm, GQA) and compile against XNNPACK, CoreML, Apple Neural Engine, CPU, and GPU backends — no custom kernels needed. By contrast, LFM2's gated short convolution (conv1d) is poorly supported in on-device runtimes.
  • The method is hardware-agnostic: swap the baseline device, re-measure, and rerun the same search.
  • The trade-off

  • Flash-1.4B gives up ~1.1% average accuracy vs. its 1.8B parent (MobileLLM-Pro-Shallow) for 1.2x prefill / 1.3x decode speedup — a Pareto-optimal trade.

Acknowledged limitations

1. Training hyperparameters (learning rate, optimizer, schedules) were not jointly searched. 2. SSMs and linear attention (Mamba2, Gated DeltaNet) were excluded due to lack of mature runtime support — a deliberate constraint prioritizing deployability. 3. Pareto-optimal architectures differ between CPU and Apple Neural Engine; rankings transfer, but the absolute optimum is platform-specific.

Conclusion

MobileLLM-Flash is not just a smaller model — it redefines "efficiency" by putting real hardware at the center of architecture search. The resulting design principles are simple: go shallow and wide, interleave skip attention (never skip 3+ layers in a row), and use only standard operators. The measured evidence — cross-device transfer, Kendall Tau data on FLOPs as a proxy, and concrete ExecuTorch constraints — makes these findings observations rather than opinions.

Tags

#mobilellm-flash#meta-ai#on-device-llm#architecture-search#bayesian-optimization#executortorch#inference-latency#edge-ai

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177619686