Scaling Laws for Code: Every Programming Language Matters
Not on the map. Why?
Abstract (arXiv)
Code large language models (Code LLMs) are powerful but costly to train, with scaling laws predicting performance from model size, data, and compute. However, different programming languages (PLs) have varying impacts during pre-training that significantly affect base model performance, leading to inaccurate performance prediction. Besides, existing works focus on language-agnostic settings, neglecting the inherently multilingual nature of modern software development. Therefore, it is first necessary to investigate the scaling laws of different PLs, and then consider their mutual influences to arrive at the final multilingual scaling law. In this paper, we present the first systematic exploration of scaling laws for multilingual code pre-training, conducting over 1000+ experiments (Equivalent to 336,000+ H800 hours) across multiple PLs, model sizes (0.2B to 14B parameters), and dataset sizes (1T tokens). We establish comprehensive scaling laws for code LLMs across multiple PLs, revealing that interpreted languages (e.g., Python) benefit more from increased model size and data than compiled languages (e.g., Rust). The study demonstrates that multilingual pre-training provides synergistic benefits, particularly between syntactically similar PLs. Further, the pre-training strategy of the parallel pairing (concatenating code snippets with their translations) significantly enhances cross-lingual abilities with favorable scaling properties. Finally, a proportion-dependent multilingual scaling law is proposed to optimally allocate training tokens by prioritizing high-utility PLs (e.g., Python), balancing high-synergy pairs (e.g., JavaScript-TypeScript), and reducing allocation to fast-saturating languages (Rust), achieving superior average performance across all PLs compared to uniform distribution under the same compute budget.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 23 of its 28 references that are in the map. First posted on arXiv 15 Dec 2025.
Builds on
23 of 28 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2024GPT-4o System Cardcited by 4,467
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024Qwen2.5-Coder Technical Reportcited by 1,151
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
11 more
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2017Deep Learning Scaling is Predictable, Empiricallycited by 556
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 190
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2024GUI Agents with Foundation Models: A Comprehensive Surveycited by 110
- 2025OS Agents: A Survey on MLLM-based Agents for General Computing Devices Usecited by 35
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Scaling Laws for Code: A More Data-Hungry Regimecited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 7.
8 papers.
- 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?cited by 20
- 2026IQuest-Coder-V1 Technical Reportcited by 6
- 2025CodeSimpleQA: Scaling Factuality in Code Large Language Modelscited by 3
- 2026Compute Optimal Tokenizationcited by 2
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026Holistic Scaling Laws for Optimal Mixture-of-Experts Architecture Optimizationcited by 1
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
- 2026Parallel-SFT: Improving Zero-Shot Cross-Programming-Language Transfer for Code RLcited by 1
- 2026Compute Optimal Tokenization2 May 2026
- 2026Parallel-SFT: Improving Zero-Shot Cross-Programming-Language Transfer for Code RL22 Apr 2026
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora20 Apr 2026
- 2026Holistic Scaling Laws for Optimal Mixture-of-Experts Architecture Optimization23 Mar 2026
- 2026IQuest-Coder-V1 Technical Report17 Mar 2026
- 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?3 Mar 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2025CodeSimpleQA: Scaling Factuality in Code Large Language Models22 Dec 2025