Surge: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors

Bohan Lyu, Siqiao Huang, Zichen Liang, Qian Sun, Jiaming Zhang


Abstract
Neural surrogate models are powerful and efficient tools in data mining. Meanwhile, large language models (LLMs) have demonstrated remarkable capabilities in code-related tasks, such as generation and understanding. However, an equally important yet underexplored question is whether LLMs can serve as surrogate models for code execution prediction. To systematically investigate it, we introduce SURGE, a comprehensive benchmark with 1160 problems covering 8 key aspects: multi-language programming tasks, competition-level programming problems, repository-level code analysis, high-cost scientific computing, time-complexity-intensive algorithms, buggy code analysis, programs dependent on specific compilers or execution environments, and formal mathematical proof verification. Through extensive analysis of 21 open-source and proprietary LLMs, we examine scaling laws, data efficiency, and predictive accuracy. Our findings reveal important insights about the feasibility of LLMs as efficient surrogates for computational processes. The benchmark and evaluation framework are available at https://github.com/Imbernoulli/SURGE.
Anthology ID:
2025.emnlp-main.162
Volume:
Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing
Month:
November
Year:
2025
Address:
Suzhou, China
Editors:
Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, Violet Peng
Venue:
EMNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
3268–3308
Language:
URL:
https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.162/
DOI:
Bibkey:
Cite (ACL):
Bohan Lyu, Siqiao Huang, Zichen Liang, Qian Sun, and Jiaming Zhang. 2025. Surge: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 3268–3308, Suzhou, China. Association for Computational Linguistics.
Cite (Informal):
Surge: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors (Lyu et al., EMNLP 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.162.pdf
Checklist:
 2025.emnlp-main.162.checklist.pdf