CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wei, Anjiang, Suresh, Tarun, Cao, Jiannan, Kannan, Naveen, Wu, Yuheng, Yan, Kai, Teixeira, Thiago S. F. X., Wang, Ke, Aiken, Alex
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916885976580096
author Wei, Anjiang
Suresh, Tarun
Cao, Jiannan
Kannan, Naveen
Wu, Yuheng
Yan, Kai
Teixeira, Thiago S. F. X.
Wang, Ke
Aiken, Alex
author_facet Wei, Anjiang
Suresh, Tarun
Cao, Jiannan
Kannan, Naveen
Wu, Yuheng
Yan, Kai
Teixeira, Thiago S. F. X.
Wang, Ke
Aiken, Alex
contents Inductive program synthesis, or programming by example, requires synthesizing functions from input-output examples that generalize to unseen inputs. While large language model agents have shown promise in programming tasks guided by natural language, their ability to perform inductive program synthesis is underexplored. Existing evaluation protocols rely on static sets of examples and held-out tests, offering no feedback when synthesized functions are incorrect and failing to reflect real-world scenarios such as reverse engineering. We propose CodeARC, the Code Abstraction and Reasoning Challenge, a new evaluation framework where agents interact with a hidden target function by querying it with new inputs, synthesizing candidate functions, and iteratively refining their solutions using a differential testing oracle. This interactive setting encourages agents to perform function calls and self-correction based on feedback. We construct the first large-scale benchmark for general-purpose inductive program synthesis, featuring 1114 functions. Among 18 models evaluated, o3-mini performs best with a success rate of 52.7%, highlighting the difficulty of this task. Fine-tuning LLaMA-3.1-8B-Instruct on curated synthesis traces yields up to a 31% relative performance gain. CodeARC provides a more realistic and challenging testbed for evaluating LLM-based program synthesis and inductive reasoning. Our code, data, and models are publicly available at https://github.com/Anjiang-Wei/CodeARC
format Preprint
id arxiv_https___arxiv_org_abs_2503_23145
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis
Wei, Anjiang
Suresh, Tarun
Cao, Jiannan
Kannan, Naveen
Wu, Yuheng
Yan, Kai
Teixeira, Thiago S. F. X.
Wang, Ke
Aiken, Alex
Programming Languages
Artificial Intelligence
Computation and Language
Machine Learning
Inductive program synthesis, or programming by example, requires synthesizing functions from input-output examples that generalize to unseen inputs. While large language model agents have shown promise in programming tasks guided by natural language, their ability to perform inductive program synthesis is underexplored. Existing evaluation protocols rely on static sets of examples and held-out tests, offering no feedback when synthesized functions are incorrect and failing to reflect real-world scenarios such as reverse engineering. We propose CodeARC, the Code Abstraction and Reasoning Challenge, a new evaluation framework where agents interact with a hidden target function by querying it with new inputs, synthesizing candidate functions, and iteratively refining their solutions using a differential testing oracle. This interactive setting encourages agents to perform function calls and self-correction based on feedback. We construct the first large-scale benchmark for general-purpose inductive program synthesis, featuring 1114 functions. Among 18 models evaluated, o3-mini performs best with a success rate of 52.7%, highlighting the difficulty of this task. Fine-tuning LLaMA-3.1-8B-Instruct on curated synthesis traces yields up to a 31% relative performance gain. CodeARC provides a more realistic and challenging testbed for evaluating LLM-based program synthesis and inductive reasoning. Our code, data, and models are publicly available at https://github.com/Anjiang-Wei/CodeARC
title CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis
topic Programming Languages
Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2503.23145