Skip to content

About

LFM3 Mobile Agent: post-training LiquidAI LFM3-VL-2B into a small, screenshot-only Android agent that runs on the phone. Training code, data builders, benchmark harnesses (AndroidWorld, MobileWorld, AndroidControl), results, model cards and audits.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

339 Commits

Folders and files

Repository files navigation

LFM3 Mobile Agent

A small, screenshot-only Android agent: LiquidAI LFM3-VL-2B post-trained to operate a phone from one screenshot per step, small enough to run on the phone itself (4-bit GGUF, llama.cpp), and compared fairly with GUI-Owl-1.5-2B and MAI-UI-2B.

This repository is the whole project: training code, dataset builders, benchmark harnesses, every result with its raw files, the preregistrations, the audits and the model cards.

Main model LFM3-VL-2B-MobileAgent-v4 (weights, phone GGUF): LoRA fine-tune, 4-bit GGUF of 1.30 GB with its image projector
All models and data LFM3 Mobile Agent collection on Hugging Face: every version v1–v4.3, the comparison fine-tunes and the training datasets, public (list)
Main benchmark AndroidWorld, 3 held-out seeds × 116 tasks, preregistered (docs/PREREG_v4.md)
Other benchmarks MobileWorld (105 tasks), AndroidControl (offline), speed on CPU, Apple M5 and a phone
Status Complete (2026-11-19). The headline results were independently re-checked by Codex (docs/audits.md)
Follow-up v4.1–v4.4 (2026-11-21 to 24, development benchmarks only): no reliable gain over v4, so v4 stays the evaluated model (below)
License Code: Apache-2.0 (LICENSE). Models: their base model's license. Datasets: their sources' licenses

Use the model

# llama.cpp (https://github.com/ggml-org/llama.cpp); the same flags as in our evaluations
hf download experimentalmachines/LFM3-VL-2B-MobileAgent-v4-GGUF --local-dir lfm3-mobile-agent-v4
llama-server -m lfm3-mobile-agent-v4/LFM3-VL-2B-MobileAgent-v4-Q4_K_M.gguf \
  --mmproj lfm3-mobile-agent-v4/mmproj-LFM3-VL-2B-Q8_0.gguf \
  -c 8192 --image-max-tokens 1024 --reasoning-format deepseek
Piece Where
Prompt and action format train/agent_format.py (build_messages(..., prompt_version="v4", apps=[...]), parse_action); also on the model card
Agent loop on an emulator or phone (AndroidWorld) eval/androidworld/lfm_agent.py, run by eval/androidworld/run_aw.py
Agent for MobileWorld eval/mobileworld/lfm3_mw_agent.py
On the phone's GPU (LiteRT-LM) LFM3-VL-2B-MobileAgent-v4-LiteRT (one int8 file, about 3.5 s per model call on a Snapdragon reference phone) and the Android app ExperimentalMachines/mobile-agent
Limits Research model: do not let it act unattended on a phone with real accounts, messages or payments

Results at a glance

AndroidWorld, held-out seeds (primary, preregistered)

Same harness for every model: 1 screenshot per step, 4-bit model via llama.cpp, same step budget, temperature 0.

Model Seed 7 Seed 1234 Seed 2026 Total / 348
LFM3-VL-2B v4 (ours) 18 17 19 54 (15.5%)
GUI-Owl-1.5-2B 16 13 18 47 (13.5%)
LFM3-VL-2B v1 (our first model) 11 10 11 32 (9.2%)
  • v4 vs GUI-Owl: +2.0 points, 95% CI [−4.5, +8.6], p = 0.60. Non-inferior at the preregistered −6.9-point margin. Superiority is not shown.
  • v4 vs v1: +6.3 points, 95% CI [+1.1, +11.5], p = 0.02.
  • The non-inferiority result depends on the preregistered rule that re-runs an episode once if the emulator crashed before step 1. 113 of v4's seed-1234 episodes needed it after one emulator hung overnight. Counting them as failures instead gives −2.9 points (not non-inferior).
  • v4's lead comes from templates whose goal text cannot change with the seed. Seed 30 was used to pick v4. On the 78 templates whose goal text does change, v4 and GUI-Owl are level: 32 vs 33, CI [−8.2, +7.3], so non-inferiority is not shown on that subset.
  • Codex audit: valid with caveats. The caveats:
    • device state carries over between episodes (all models);
    • two disputed checker successes, one v4 and one v1 (counting both as failures leaves the conclusion unchanged);
    • limited power: about 57% to show non-inferiority if the models are truly equal.

MobileWorld (secondary, descriptive; one run per model)

Model Successes / 105
GUI-Owl-1.5-2B 22 (21.0%)
MAI-UI-2B 11 (10.5%)
LFM3-VL-2B v4 6 (5.7%)
  • GUI-Owl is clearly better here: v4 − GUI-Owl = −15.2 points, exact McNemar p = 3.05 × 10⁻⁵.
  • MAI-UI − v4 = +4.8 points (p = 0.18). MAI-UI's run had more environment failures; see docs/results.md.

Speed (median seconds per step; small pilot measurements)

Hardware v4 GUI-Owl-1.5-2B MAI-UI-2B
CPU, 8 threads (Intel Xeon, idle VM); 4-bit; calls kept 14 / 4 / 4 6.4 58.0 58.2
Apple M5 GPU, every step of the seed-30 runs (1,706–2,228 steps each) 2.96 7.00 9.35 (8-bit)
Phone CPU (Snapdragon 8 Elite Extreme Gen 6), as evaluated; calls 10 / 2 / 2 ~39 ~1,100 ~1,063 (8-bit)
  • In the CPU test v4 used about a third as many prompt tokens per step (a smaller image) and showed about 3× the prompt throughput. The tests compare whole pipelines and do not isolate the cause.
  • At an equal 1,024-token image ceiling on the phone, GUI-Owl and MAI-UI take ~198 s and ~183 s; their accuracy at that ceiling was not measured.

Development seed 30 (used to pick versions, so not evidence)

v4 MAI-UI-2B GUI-Owl-1.5-2B Qwen3.5-2B v1 LFM3 v1 LFM3 v3 LFM3 v2
18 32 23 16 15 13 3

MAI-UI-2B (8-bit, 1 screenshot) scored highest on the development seed but was not run on the held-out seeds.

Follow-up rounds (development only)

Rules fixed in advance in docs/PREREG_v41.md. No follow-up version was run on the held-out seeds.

Version What changed Seed 30 / 116 MobileWorld / 105 Outcome
v4 Reference 18 6 —
v4.1 wait labels fixed + recovery-history augmentation 12 — Worse (+2 / −8 vs v4)
v4.2 v4.1 + the model's own replayed history (DAgger-style, offline) 18 8 (p 0.63 vs v4) Loops halved, success level; reference for round 5
v4.3-dpo v4.2 + DPO on all 4,163 of its own mistakes not run — Failed offline (action types collapsed)
v4.3-dpo2 v4.2 + DPO on 851 balanced stop / copied-intent mistakes 21 — Failed online (+3 vs v4.2)
v4.3-sft v4.2 + 500 more SFT steps on the same mix 24 — Failed online (+6 vs v4.2; false complete 25 → 37)
v4.4-A / B / C Long, self-correcting MemGUI trajectories (B: + "no visible change" notes; C: continued from v4) (round 6) not run — Failed the offline gate on late early-stops; long-task accuracy and end-of-task stopping up
  • Two passes of the same model (v4.2) differ on 9 tasks, so one seed-30 pass cannot detect gains smaller than about 9 tasks. That was the pass bar.
  • Details: docs/results.md, docs/models.md. Every version is public on Hugging Face, with its status on its card.

Read next

Document Read it for
docs/results.md All results, each with its source file
docs/evaluation.md How each benchmark was run and kept fair
docs/models.md Model versions v1–v4.3, training recipe, released artifacts
docs/datasets.md Training data, splits, contamination rule
docs/PREREG_v4.md The preregistration and every dated deviation (kept unedited)
docs/PREREG_v41.md Follow-up rounds v4.1–v4.3: plans, gates and dated log (append-only)
docs/audits.md Every Codex audit and follow-up review, with its verdict
docs/infrastructure.md Where things ran, incidents and fixes
docs/reproduce.md How to regenerate the result summaries, and what that covers
docs/repository.md Repository layout, what moved, history notes
docs/research/ Literature reviews that shaped the plan

Repository layout

Path What it holds
analysis/ Scripts that compute the result summaries from results/
train/ Training code: SFT, GRPO, prompt/action format
data/ Dataset builders and fixed split files
eval/ Benchmark harnesses: AndroidControl, AndroidWorld, MobileWorld, general knowledge
scripts/ Run orchestration, by purpose (AndroidWorld, MobileWorld, training, speed, publishing)
results/ Raw results (episode files, predictions) and the summaries computed from them
logs/ Run logs kept as evidence (model servers, emulators, runs, Codex sessions)
docs/ Documentation

Rules this project kept

  • No AndroidWorld data in training: no AndroidWorld tasks, variants, trajectories or checkers in any training set.
  • Matched primary comparison: v4 and GUI-Owl get one screenshot, the same tasks and step budget, 4-bit weights and the installed-app list. Image size and prompts differ (details). MAI-UI runs at 8-bit; v1 gets no app list.
  • Sealed held-out seeds: results of seeds 7/1234/2026 were not read until every model had finished that seed.
  • Every deviation is dated in docs/PREREG_v4.md, with what had and had not been seen at the time.
  • Exceptions count as failures, unlike AndroidWorld's default.

License

Part License
Code and documentation in this repository Apache-2.0 (LICENSE)
LFM3-VL-2B and LFM2.5-VL-450M fine-tunes LFM Open License v1.0, inherited from the LiquidAI base models
Qwen3.5 fine-tunes Apache-2.0, inherited from the Qwen base models
Training datasets Per source: AndroidControl Apache-2.0; GUI-Odyssey, AMEX, ScreenQA CC BY 4.0 (see each dataset card)
Third-party code kept in the repo eval/androidworld/maiui_ref/ (MAI-UI reference agent) and the patches in eval/androidworld/*.patch (AndroidWorld, android_env): Apache-2.0, as their sources; file headers kept

About

LFM3 Mobile Agent: post-training LiquidAI LFM3-VL-2B into a small, screenshot-only Android agent that runs on the phone. Training code, data builders, benchmark harnesses (AndroidWorld, MobileWorld, AndroidControl), results, model cards and audits.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages