Procedural Refinement by LLM-driven Algorithmic Debugging for ARC-AGI-2
Abstract
In high-complexity abstract reasoning, a system must infer a latent rule from a few examples or structured observations and apply it to unseen instances. Large language models (LLMs) can express such rules as programs, but ordinary conversation-based refinement is largely outcome-level: it observes that an answer or output is wrong without formally re-checking which abstraction, relation, or transformation justified that outcome. We propose Abduction-Based Procedural Refinement (ABPR), a neuro-symbolic refinement approach that couples an LLM with a Prolog meta-interpreter. ABPR treats each candidate program as an executable declarative hypothesis of the latent rule and reifies its selective linear definite-clause (SLD) resolution into compact goal–subgoal derivations, following Shapiro's algorithmic program debugging (APD). The resulting traces expose intermediate decisions in the model's hypothesised rule for semantic re-checking. We evaluate ABPR primarily on ARC-AGI-2, a challenging few-shot abstract rule induction benchmark over grid transformations. On the public evaluation set, ABPR improves Pass@2 over outcome-level execution-feedback repair by 7.50, 10.00, and 10.83 percentage points for Gemini-3-Flash, Gemini-3-Pro, and GPT-5.2 low, respectively. Python checkpoint controls and resource accounting clarify the language and compute boundaries of these gains. Supplementary symbolic, generative adaptations of I-RAVEN-X and A-I-RAVEN test transfer to a second program-induction setting. The evidence is limited by public-benchmark exposure, initializer quality, and additional token cost.