Navigation menu
Mobile AI Factory: Building Specialized Language Models for Your Mobile Device
Mobile AI Factory: Building Specialized Language Models for Your Mobile Device
Evan Li, Krishna Deshpande, Wen Cheng, Shyamnath Gollakota
2026-11-16▲ 19arXiv 2611.13509v1Hugging FaceCode
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
Mobile AI Factory is an agentic system that searches fine-tuning interventions and quantized model sizes, using fixed rollback and escalation rules and measured phone profiles, to build a task-specific SLM for a target phone.
Problem
Each mobile application needs a small language model that is fine-tuned for its task and small enough for the target phone, but developers must manually fine-tune, iterate on accuracy, choose model size and quantization, and test on the phone. The process must be repeated for every phone model, and a configuration that works on one phone may fail or perform poorly on another. New phones and open foundation models keep arriving, making expert tuning impractical for all but large companies. The paper asks whether a task specification and target phone can automatically yield a fine-tuned, quantized SLM meeting accuracy and resource requirements.
Method
Mobile AI Factory has a setup stage and a search loop. The setup stage looks up the phone profile, removes configurations that exceed latency, memory, or energy budgets, picks the fastest engine and backend per surviving variant, and groups variants into five size tiers. The loop fine-tunes a candidate, merges and exports 4- and 8-bit artifacts, scores them in the target engine, and returns evaluator reports without held-out rows. An orchestrator LLM chooses one intervention per iteration: hyperparameters, real-data mining, or teacher-generated synthetic rows targeted at failure categories. Deterministic rules handle rollback, budgets, watchdog stops, escalation to larger tiers, and raising the accuracy goal. A local teacher writes synthetic data, a held-out-data agent freezes the evaluation set, and a phone profiler measures configurations once per phone for reuse across tasks.
Results
- On an unseen test set, the factory models outperform two five-shot frontier models on five tasks by up to 0.34 and match them on three more. §Abstract
- The factory search comes within 0.03 of exhaustively training all 27 model variants on an entity extraction task while using 19 times less GPU time. §Abstract
- Without phone measurements, Claude Opus 5.5 misses the app requirements in 25% of easy and moderate cases and in 60% of hard cases. §5.3
- The factory most accurate model meets 16 of 20 easy requirements, 6 moderate requirements, and 3 hard requirements. §5.3
- Of 18 deployments tested on multiple phones, 15 require different configurations on different phones. §5.3
- The tiered search reached 0.830 in 8.6 hours for $2.62, while the exhaustive sweep took 165 GPU-hours and $31.81 and its best model scored 0.859. §5.2.3
Limitations
- A developer still provides the task specification, metric, and verifier; the paper calls building this harness the most hand-engineered part of the pipeline.
- The factory is restricted to a predefined set of decoder models from 135M to 4B and uses LoRA fine-tuning only.
- Phone profiles cover CPUs and GPUs, not NPUs, and measure each configuration alone from a cool start at one prompt length with four threads and an otherwise idle phone.
- The held-out set guides every search decision, so its scores can read slightly high; Appendix A measures this on unseen test sets.
Key points
- Running models on device keeps sensitive data on the phone and supports limited or intermittent connectivity. §1
- The orchestrator LLM decides the next intervention, but deterministic rules decide rollback, stopping, escalation, and budgets; in the run with most iterations, 88% of interventions made the model worse and were rolled back. §4.1
- The setup stage groups feasible variants into five size tiers with boundaries at 300 MB, 750 MB, 1.5 GB and 2.5 GB; a phone profile only removes variants and does not change tier boundaries. §4.2.1
- The factory draws up to 1,000 held-out rows, checks overlap at four firewalls, and sets the goal to the teacher five-shot score with a floor of 0.80 and a cap of 0.99. §4.2.3
- The factory escalates when the score has not risen by more than 0.02 over the last 15 evaluations or after 30 evaluations in one tier without reaching the goal. §4.3.1
- Each iteration scores the quantized artifact in the target engine: 4- and 8-bit models are exported to deployment format and scored there, 16-bit models are scored in Transformers, and a failed evaluation is recorded as missing, not zero. §4.3.3
- The profiler attempted 364 configurations, 104 on each phone with a GPU and 52 on the Redmi 9A, and 288 ran to completion. §3
- Across all tiers, hyperparameter changes carry 41% of search gains, synthesis 40%, and mining 19%. §5.2.2
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

