# 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.

- Category: Agents
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-12-04
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/meta-s-phone-sized-mobilellm-r2-fixes-code-bugs-twice-as-often-as-small-rivals

## The study

MobileLLM-R2: Advancing On-Device Language Models from Reasoning to Agents (preprint, not peer reviewed). arXiv 2611.39870. https://arxiv.org/abs/2611.39870

## At a glance

- What it shows: A small AI model from Meta, about the size that could fit in a phone's memory, solved about 31% of real software bug-fixing tasks. The best similar small model solved about 16%. It also led on a hard maths test and a coding test, while using far less training data than rivals.
- What it does not show: It was never run on a phone, only on a laptop. The paper documents no use in any product. It also relied on a much larger Meta model as a teacher, which most teams cannot use.
- Why it matters: Assistants that act inside apps on a phone need small models that can plan and use tools reliably. This work gives a detailed, mostly public recipe for building one from scratch.

## What 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 the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/meta-s-phone-sized-mobilellm-r2-fixes-code-bugs-twice-as-often-as-small-rivals

## 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.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
