We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Law/Scaling Laws for Code: Every Programming Language Matters
Conference ProceedingsLaw

Scaling Laws for Code: Every Programming Language Matters

Checking your access to this record.

Abstract & Overview

Large language models (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. 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 scaling laws for code LLMs across multiple programming languages, showing that interpreted languages benefit more from increased scale than compiled ones. Multilingual pre-training provides synergistic benefits, especially between syntactically similar languages, with parallel pairing (concatenating code with translations) significantly enhancing cross-lingual abilities. We propose a proportion-dependent multilingual scaling law that optimally allocates training tokens by prioritizing high-utility languages (e.g., Python), balancing high-synergy pairs (e.g., JavaScript-TypeScript), and reducing allocation to fast-saturating languages (e.g., Rust), achieving superior performance across all languages compared to uniform distribution.

Cite this record

Jian Yang, Shawn Guo, Linzheng Chai, Wei Zhang, Aishan Liu, Chuan Hao, et al. (2026). Scaling Laws for Code: Every Programming Language Matters. Findings of the Association for Computational Linguistics: ACL (Findings of ACL). https://doi.org/10.18653/v1/2026.findings-acl.487

Copy in another style

Yang, J., Guo, S., Chai, L., Zhang, W., Liu, A., Hao, C., Li, Z., Zhao, W. X., Liu, X., & Lv, W. (2026). Scaling Laws for Code: Every Programming Language Matters. Findings of the Association for Computational Linguistics: ACL (Findings of ACL). https://doi.org/10.18653/v1/2026.findings-acl.487
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.