Meta's phone-sized MobileLLM-R2 fixes code bugs twice as often as small rivals
Meta researchers trained a phone-sized language model from scratch that fixes real code bugs about twice as often as similar small open models. They argue the gains come from what happens before fine-tuning, not only after it.
scienceunderway.com/articles/meta-s-phone-sized-mobilellm-r2-fixes-code-bugs-twice-as-often-as-small-rivals

AI illustrationWhat the study shows
Researchers at Meta AI built MobileLLM-R2, a language model with 2.5 billion parameters. Parameters are the internal values a model learns; 2.5 billion is small by current standards. The paper is a preprint and has not been peer reviewed.
The headline result is on SWE-bench Verified, a test where a model must fix real issues from GitHub code projects using tools over many steps. MobileLLM-R2 solved 30.9% of tasks. The next best of six compared open models, Qwen3.5-2B, solved 15.6%. The others, including the larger OLMo-3-7B, scored 7.3% or less.
The model also topped the comparison on AIME'24, a competition maths test, and on LiveCodeBench, a coding test. It did not lead everywhere. It trailed on general knowledge (MMLU), on graduate science questions (GPQA) and narrowly on the BFCL tool-calling test.
The authors report reaching these results with 1.2 trillion pre-training tokens, the text a model reads before fine-tuning. They say this is about 30 times fewer than Qwen3-1.7B. All rival models were re-run by the authors in their own test setup.
The authors' central claim is that agent skills depend heavily on pre-training. In their tests, the same fine-tuning gave better results when applied to later, stronger base checkpoints. They also report that a simple predictor built from early benchmark scores could forecast later tool-use performance, with coding scores carrying the most weight.
Two post-training findings stand out. Training on long maths and code reasoning together with multi-turn agent tasks kept both skills, rather than trading one for the other. And a final step called on-policy distillation, where the small model learns from a larger teacher's corrections on its own outputs, only worked well when earlier fine-tuning data used the teacher's chat format and some teacher-written solutions.
Our reading
In our reading, the SWE-bench Verified gap is the result worth attention. Doubling the best small rival on a multi-step bug-fixing task is a large margin. Most of its other leads in the comparison table are narrow, a point or two.
The most useful lesson may be the least glamorous one: formatting. With the original chat format, the model's maths score collapsed after distillation. Switching to the teacher's format, then adding 25% teacher-rewritten solutions, more than tripled the post-distillation score. Small mismatches in how conversations are written down can quietly wreck a training run.
The cost claim needs a caveat. Pre-training and mid-training both learned from Muse-Glimmer-30B, a much larger Meta model, acting as a teacher. So the token count understates how much knowledge went in. Teams without a strong teacher should not expect the same result from the same token budget.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/meta-s-phone-sized-mobilellm-r2-fixes-code-bugs-twice-as-often-as-small-rivals
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | Controlled experiments on data mixing, bridge data, joint fine-tuning, chat-format alignment and teacher intervention, with full training details given. |
| II Benchmarked | Met | Public benchmark results on SWE-Bench Verified, AIME'24/25, LiveCodeBench, BFCL V4, Terminal-Bench, Aider Polyglot, MMLU and GPQA. These are compared with six open models up to 7.3B parameters. |
| III Open source | Met | The paper states that model checkpoints are released at https://huggingface.co/facebook/MobileLLM-R2-2.5B, with a project page. We have not checked the licence or availability. |
| IV In production | Not yet | No documented production use by any named organisation. Even on-device testing is limited to a laptop. |
What would move it up
Documented use in a shipped product or service by a named organisation. Measured on-phone deployment results with latency, memory and reliability on real agent tasks would strengthen the case.
The study
Changsheng Zhao, Ernie Chang, Zechun Liu et al. MobileLLM-R2: Advancing On-Device Language Models from Reasoning to Agents. arXiv, 29 November 2026. arXiv:2611.39870
Notes
- Zhao, Chang, Liu et al., 'MobileLLM-R2: Advancing On-Device Language Models from Reasoning to Agents', arXiv preprint, November 2026. Not peer reviewed. Source
- Model checkpoint as stated in the paper (licence not checked). Source
- Project page as stated in the paper. Source
- Exact headline figures (Table 9): SWE-bench Verified 30.9% against 15.6% for Qwen3.5-2B; AIME'24 59.4% against 58.5% for Nemotron-3-Nano-4B; LiveCodeBench 47.3% against 45.3%; MMLU 56.5% against 65.9%; GPQA 45.2% against 61.1%; BFCL V4 50.6% against 53.8%.
- Chat-format ablation (Table 6): mean AIME'24/25 accuracy after distillation was 17.1 with the original template, 36.8 with the Muse-Glimmer template and 54.9 with 25% teacher-written solutions added.
- Memory test (Table 13): llama.cpp on an Apple M4 Max laptop, Q4_K_M weights, 8-bit KV cache; MobileLLM-R2 used 3.0 GiB at 32K context and decoded 137 tokens per second at 4K context, against 2.0 GiB and 190 tokens per second for Qwen3.5-2B.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.244 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
No corrections to this article. Found an error? Report it.


