Code Simulation as a Proxy for High-order Tasks in Large Language Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: La Malfa, Emanuele, Weinhuber, Christoph, Torre, Orazio, Lin, Fangru, Huang, X. Angelo, Marro, Samuele, Cohn, Anthony, Shadbolt, Nigel, Wooldridge, Michael
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908433025859584
author La Malfa, Emanuele
Weinhuber, Christoph
Torre, Orazio
Lin, Fangru
Huang, X. Angelo
Marro, Samuele
Cohn, Anthony
Shadbolt, Nigel
Wooldridge, Michael
author_facet La Malfa, Emanuele
Weinhuber, Christoph
Torre, Orazio
Lin, Fangru
Huang, X. Angelo
Marro, Samuele
Cohn, Anthony
Shadbolt, Nigel
Wooldridge, Michael
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_03568
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Code Simulation as a Proxy for High-order Tasks in Large Language Models
La Malfa, Emanuele
Weinhuber, Christoph
Torre, Orazio
Lin, Fangru
Huang, X. Angelo
Marro, Samuele
Cohn, Anthony
Shadbolt, Nigel
Wooldridge, Michael
Machine Learning
Artificial Intelligence
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.
title Code Simulation as a Proxy for High-order Tasks in Large Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2502.03568