Code Simulation as a Proxy for High-order Tasks in Large Language Models
Not on the map. Why?
Abstract (arXiv)
Many reasoning, planning, and problem-solving tasks share an intrinsic algorithmic nature: correctly simulating each step is a sufficient condition to solve them correctly. We collect pairs of naturalistic and synthetic reasoning tasks to assess the capabilities of Large Language Models (LLM). While naturalistic tasks often require careful human handcrafting, we show that synthetic data is, in many cases, a good proxy that is much easier to collect at scale. We leverage common constructs in programming as the counterpart of the building blocks of naturalistic reasoning tasks, such as straight-line programs, code that contains critical paths, and approximate and redundant instructions. We further assess the capabilities of LLMs on sorting problems and repeated operations via sorting algorithms and nested loops. Our synthetic datasets further reveal that while the most powerful LLMs exhibit relatively strong execution capabilities, the process is fragile: it is negatively affected by memorisation and seems to rely heavily on pattern recognition. Our contribution builds upon synthetically testing the reasoning capabilities of LLMs as a scalable complement to handcrafted human-annotated problems.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 40 of its 53 references that are in the map. First posted on arXiv 5 Feb 2025.
Builds on
40 of 53 references.
References · 40
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
- 2022In-context Learning and Induction Headscited by 930
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2023Reasoning with Language Model is Planning with World Modelcited by 846
28 more
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2023Who's Harry Potter? Approximate Unlearning in LLMscited by 366
- 2023Mathematical Capabilities of ChatGPTcited by 263
- 2023Looped Transformers as Programmable Computerscited by 224
- 2018Machine Theory of Mindcited by 222
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2021Thinking Like Transformerscited by 182
- 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 175
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 147
- 2022Large Language Models Meet NL2Code: A Surveycited by 135
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
- 2021Position Information in Transformers: An Overviewcited by 103
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 101
- 2023The Generative AI Paradox: "What It Can Create, It May Not Understand"cited by 97
- 2023Memory Augmented Large Language Models are Computationally Universalcited by 45
- 2023Code Execution with Pre-trained Language Modelscited by 33
- 2023Can Transformers Learn to Solve Problems Recursively?cited by 17
- 2023GPT is becoming a Turing machine: Here are some ways to program itcited by 16
- 2024A Notion of Complexity for Theory of Mind via Discrete World Modelscited by 16
- 2024Code Simulation Challenges for Large Language Modelscited by 15
- 2024Transformer-Based Models Are Not Yet Perfect At Learning to Emulate Structural Recursioncited by 14
- 2024Large Language Models as Code Executors: An Exploratory Studycited by 12
- 2023Predicting Code Coverage without Executioncited by 9
- 2023Addressing Compiler Errors: Stack Overflow or Large Language Models?cited by 5
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 195
- 2025Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structurescited by 5
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settingscited by 3
- 2025LogicIF: Towards Complex Logic Instruction Followingcited by 1
- 2026Can Large Language Models Generalize Procedures Across Representations?cited by 1
- 2026Loom: A Scalable Analytical Neural Computer Architecturecited by 0
- 2026Loom: A Scalable Analytical Neural Computer Architecture9 Apr 2026
- 2026Can Large Language Models Generalize Procedures Across Representations?3 Feb 2026
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings16 Dec 2025
- 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Survey2 Sep 2025
- 2025LogicIF: Towards Complex Logic Instruction Following12 Aug 2025
- 2025Can LLMs Reason Structurally? Benchmarking via the Lens of Data Structures29 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
- 2025On the Limits of Innate Planning in Large Language Models
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
- 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
- 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoning
- 2026Opening the Black Box: A Survey on the Mechanisms of Multi-Step Reasoning in Large Language Models
- 2026EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages
- 2026ORACLE: Optimizing Reasoning Abilities of Large Language Models via Constraint-Led Synthetic Data Elicitation