Introduction
Program synthesis remains a frontier in artificial intelligence, representing the ability of a system to generate functional code from high-level specifications or examples. The Abstraction and Reasoning Corpus (ARC-AGI) serves as a rigorous benchmark for this capability, challenging models to infer complex grid-transformation rules from minimal data. Traditional approaches, ranging from one-shot LLM generation to fixed evolutionary searches, often encounter performance plateaus. This paper introduces SOAR (Self-improving Operators for Automated program Refinements), a framework that enables LLMs to bootstrap their reasoning capabilities by iteratively improving their own search operators.
The Challenge of ARC-AGI
ARC-AGI tasks require a model to identify patterns in grid-based input-output pairs and apply them to a test input. While large language models (LLMs) show promise, they often fail on complex tasks in a zero-shot setting. Search-based methods improve results but are constrained by the static nature of the underlying model used for program mutation. SOAR addresses this by asking: can we improve the search process itself through experience?
The SOAR Framework
SOAR integrates LLMs into a self-improving evolutionary loop consisting of two primary phases: Evolutionary Search and Learning.
1. Evolutionary Search (Sample & Refine)
In this phase, the LLM generates an initial pool of candidate Python programs. These candidates are then iteratively refined using execution feedback—such as error messages or incorrect outputs—through an algorithm called REx (Refinement through EM-based sampling).
2. Learning and Hindsight Relabeling
The system collects "search traces" from the search phase. A key innovation is the use of hindsight relabeling. If a program fails to solve the target task but successfully produces a different output grid, that program is relabeled as a correct solution for a new synthetic task defined by that output. This technique transforms failures into valuable training data, overcoming the sparse reward problem inherent in complex synthesis tasks.
The model is fine-tuned on these relabeled traces, enhancing its ability to sample and refine programs in subsequent iterations. This creates a "virtuous cycle" where improved models generate better search data, which further improves the models.
Key Results
SOAR achieves state-of-the-art results on the ARC-AGI benchmark using open-weight models:
- Benchmark Performance: SOAR solves 52% of the ARC-AGI public test set.
- Iterative Improvement: A 7B parameter model improved from 14% to over 36% accuracy through self-improvement iterations.
- Scaling Efficiency: Smaller models (e.g., Qwen-2.5-Coder-7B) using SOAR can outperform significantly larger closed-source models like GPT-4 and Claude 3.5 Sonnet.
- Synergy: Training a single model for both sampling and refinement tasks proved more effective than using specialized models, suggesting shared underlying logic.
Discussion and Future Work
While SOAR significantly advances the state of the art, it is computationally intensive, requiring thousands of synthesis attempts per task. Future research may explore "Quality-Diversity" algorithms to increase solution variety and investigate the framework's applicability to broader software engineering and mathematical discovery tasks. Despite eventual diminishing returns, SOAR demonstrates that self-improvement through search traces is a powerful mechanism for overcoming the limitations of static LLMs in program synthesis.
Summary updated