SURGE: On the Potential of Large Language Models as General-Purpose Surrogate Code Executors
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 46 of its 95 references that are in the map. First posted on arXiv 16 Feb 2025.
Builds on
46 of 95 references.
References · 46
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2021Measuring Coding Challenge Competence With APPScited by 902
34 more
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 367
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
- 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 122
- 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
- 2024EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositoriescited by 72
- 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
- 2025CodeI/O: Condensing Reasoning Patterns via Code Input-Output Predictioncited by 55
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
- 2017Code Completion with Neural Attention and Pointer Networkscited by 49
- 2020On Learning Meaningful Assert Statements for Unit Test Casescited by 42
- 2018CODIT: Code Editing with Tree-Based Neural Modelscited by 40
- 2020Neural Execution Engines: Learning to Execute Subroutinescited by 36
- 2022Execution-based Evaluation for Data Science Code Generation Modelscited by 32
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2023Leveraging Vision-Language Models for Granular Market Change Predictioncited by 22
- 2019Tree-Transformer: A Transformer-Based Method for Correction of Tree-Structured Datacited by 20
- 2024Large Language Models as Surrogate Models in Evolutionary Algorithms: A Preliminary Studycited by 20
- 2018Building Language Models for Text with Named Entitiescited by 15
- 2024Large Language Models as Code Executors: An Exploratory Studycited by 12
- 2019Efficient surrogate modeling methods for large-scale Earth system models based on machine learning techniquescited by 8
- 2024Adapting While Learning: Grounding LLMs for Scientific Problems with Intelligent Tool Usage Adaptationcited by 7
- 2024Learning to Compile Programs to Neural Networkscited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2026Conditional Transfer from Controlled Pretraining Mixtures to Code8 Oct 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2025LLMs Lean on Priors, Not Programming Language Semantics3 Oct 2025