Code Generation with Small Language Models: A Deep Evaluation on Codeforces
Débora Souza 3 , Rohit Gheyi 3 , Lucas Albuquerque 3 , Gustavo Soares 4 , Márcio Ribeiro 2 · 2025
Read Code Generation with Small Language Models: A Deep Evaluation on Codeforces by Débora Souza 3 , Rohit Gheyi 3 , Lucas Albuquerque 3 , Gustavo Soares 4 , Márcio Ribeiro 2 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-07343.txt.
Description
Debora Souza and colleagues benchmark small language models on competitive programming tasks. Their 2025 arXiv paper notes the high cost of large models for code generation. Small models offer a lighter path for developer tools. Most past tests focused on large models and plain pass rates. Failure patterns in small models were rarely examined in depth.
Three open small models were tested on 280 Codeforces problems. Problems spanned a wide difficulty range and dozens of topics. All models wrote solutions in Python. The largest small model scored best by a clear margin. Mixing Python and C++ outputs lifted its score further. Close reading showed many failures were minor coding slips. Reasoning was often sound even when final code failed.
Catalog record
| CREATOR | Débora Souza 3 , Rohit Gheyi 3 , Lucas Albuquerque 3 , Gustavo Soares 4 , Márcio Ribeiro 2 |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 27 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2504-07343