Papers › MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Cases

MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Cases

22 Feb 2024arXiv:2402.14905archive 2025-07-28

Zechun Liu, Changsheng Zhao, Forrest Iandola, Chen Lai, Yuandong Tian, Igor Fedorov, Yunyang Xiong, Ernie Chang, Yangyang Shi, Raghuraman Krishnamoorthi, Liangzhen Lai, Vikas Chandra

This paper addresses the growing need for efficient large language models (LLMs) on mobile devices, driven by increasing cloud costs and latency concerns. We focus on designing top-quality LLMs with fewer than a billion parameters, a practical choice for mobile deployment. Contrary to prevailing belief emphasizing the pivotal role of data and parameter quantity in determining model quality, our investigation underscores the significance of model architecture for sub-billion scale LLMs. Leveraging deep and thin architectures, coupled with embedding sharing and grouped-query attention mechanisms, we establish a strong baseline network denoted as MobileLLM, which attains a remarkable 2.7%/4.3% accuracy boost over preceding 125M/350M state-of-the-art models. Additionally, we propose an immediate block-wise weight-sharing approach with no increase in model size and only marginal latency overhead. The resultant models, denoted as MobileLLM-LS, demonstrate a further accuracy enhancement of 0.7%/0.8% than MobileLLM 125M/350M. Moreover, MobileLLM model family shows significant improvements compared to previous sub-billion models on chat benchmarks, and demonstrates close correctness to LLaMA-v2 7B in API calling tasks, highlighting the capability of small models for common on-device use cases.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.14905")

Code

Syntology Ran 11 of 28 code samples harvested from 4 repositories linked to this paper; 17 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · fixture could not drive it; 9 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran; community (archive-listed): 16 samples from 2 repositories, 5 ran; community: 2 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/mobilellm officialmentioned in papermentioned on GitHubpytorch report
facebookresearch/LLM-QAT mentioned on GitHubpytorch report
facebookresearch/spinquant mentioned on GitHubpytorchNOASSERTION report
jingyaogong/minimind mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

28 samples harvested; 11 ran; 1 honoured the contract we drafted; 17 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · fixture could not drive it
9ran
17unverified

Licence: 20 of the 28 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

LlamaDynamicNTKScalingRotaryEmbedding facebookresearch/mobilellm/utils/modeling_llama.py official repository ran fingerprinted licence not identified · pointer only · a70d6d3c2afe50fe · report
LlamaLinearScalingRotaryEmbedding facebookresearch/mobilellm/utils/modeling_llama.py official repository ran fingerprinted licence not identified · pointer only · 0b85db0b5fb36aa3 · report
LlamaMLP facebookresearch/mobilellm/utils/modeling_llama.py official repository ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · fd1eec3e84da40f6 · report
LlamaPreTrainedModel facebookresearch/mobilellm/utils/modeling_llama.py official repository ran · metamorphic tier: deterministic licence not identified · pointer only · c9b44d1ee2b9d567 · report
LlamaRotaryEmbedding facebookresearch/mobilellm/utils/modeling_llama.py official repository ran · metamorphic tier: deterministic fingerprinted licence not identified · pointer only · 29fb31107100b259 · report
LlamaSdpaAttention facebookresearch/mobilellm/utils/modeling_llama.py official repository ran licence not identified · pointer only · 56c331e4f0ffb350 · report
LlamaAttention facebookresearch/mobilellm/utils/modeling_llama.py official repository unverified licence not identified · pointer only · f7eec176aae368de · report
LlamaDecoderLayer facebookresearch/mobilellm/utils/modeling_llama.py official repository unverified licence not identified · pointer only · 287760d8764c9f55 · report
LlamaFlashAttention2 facebookresearch/mobilellm/utils/modeling_llama.py official repository unverified licence not identified · pointer only · 9311b50f80e60c54 · report
LlamaModel facebookresearch/mobilellm/utils/modeling_llama.py official repository unverified licence not identified · pointer only · 6586f04f76b3fad7 · report
LlamaConfig facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) ran licence not identified · pointer only · eae5ddb4e89f48a1 · report
LlamaRMSNorm facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) ran licence not identified · pointer only · b601acb1c084205e · report
RMSNorm jingyaogong/minimind/model/model_minimind.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · a8a84e7ddb0551b0 · report
precompute_freqs_cis jingyaogong/minimind/model/model_minimind.py community (archive-listed) ran · honoured contract Apache-2.0 (permissive) · 9c1c3b7f0fe82a6d · report
repeat_kv jingyaogong/minimind/model/model_minimind.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 226c2c7378c2826e · report
Attention jingyaogong/minimind/model/model_minimind.py community (archive-listed) unverified Apache-2.0 (permissive) · 21b27f7007d54dbc · report
LlamaAttention facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) unverified licence not identified · pointer only · ae14385b5684f28e · report
LlamaDecoderLayer facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) unverified licence not identified · pointer only · 4d865933cc1c7185 · report
LlamaForCausalLM facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) unverified licence not identified · pointer only · 941348872c1175c4 · report
LlamaMLP facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) unverified licence not identified · pointer only · 96f0ec4ad32ef95e · report
LlamaModel facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) unverified licence not identified · pointer only · c9a1b892ddcc160b · report
MiniMindBlock jingyaogong/minimind/model/model_minimind.py community (archive-listed) unverified Apache-2.0 (permissive) · a34a56cc2de22f8f · report
MiniMindForCausalLM jingyaogong/minimind/model/model_minimind.py community (archive-listed) unverified Apache-2.0 (permissive) · 59ce4efe16d7b6e4 · report
MiniMindModel jingyaogong/minimind/model/model_minimind.py community (archive-listed) unverified Apache-2.0 (permissive) · 6c359011117cb016 · report
QuantizeLinear facebookresearch/LLM-QAT/models/modeling_llama_quant.py community (archive-listed) unverified licence not identified · pointer only · 3013c6ea70f1983f · report
apply_rotary_pos_emb jingyaogong/minimind/model/model_minimind.py community (archive-listed) unverified Apache-2.0 (permissive) · 415c32c683875908 · report
get_folder_paths facebookresearch/MobileLLM-R1/pretrain/pretrain.py community unverified licence not identified · pointer only · 9a433eced0086de3 · report
get_logger facebookresearch/MobileLLM-R1/pretrain/pretrain.py community unverified licence not identified · pointer only · e3820b27e772b468 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionDense ConnectionsFeedforward NetworkFocusGrouped-query attentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections