MobileLLM-R2: Advancing On-Device Language Models from Reasoning to Agents
Recent advances in agentic models are expanding the role of language models from reasoning and responding to interacting with applications and acting on behalf of users. Bringing this transition to on-device intelligence requires developing reliable agentic capabilities within stringent memory and computational budgets. Existing work, however, either develops proprietary construction recipes for large-scale models or optimizes post-training in isolation, leaving the end-to-end training of small agentic models poorly understood. We show that downstream agentic performance is strongly conditioned on the capabilities and behavioral support established during pre-training; post-training sharpens what the base model can already express, but does not reliably recover what it cannot. We recursively optimize pre-training and mid-training data mixtures through influence-based selection and performance feedback, introducing synthetic cross-domain bridge data to mitigate capability competition. We identify sampling lift as an early indicator of post-training potential and develop a readiness predictor to anticipate diminishing returns from pre-training. During post-training, joint supervision accommodates the distinct reasoning patterns of single-turn deliberation and multi-turn agentic interaction. We further identify structural and trajectory distribution alignment during SFT as critical to effective on-policy distillation, motivating chat protocol adaptation and teacher rewriting from both initial prompts and student-induced intermediate states. Together, these findings establish an end-to-end training recipe for compact agentic models. Trained from scratch with only 1.2T pre-training tokens, our 2.5B model achieves the best performance on AIME'24, LiveCodeBench, and other tasks among evaluated models up to 7.3B parameters, with a substantial 15.3-percentage-point lead on SWE-Bench Verified.
