Procedural Refinement by LLM-driven Algorithmic Debugging for ARC-AGI-2
Organizations: Nanjing University, Nanjing, China
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. 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 SLD goal--subgoal resolution into compact proof-tree-style derivations, following Shapiro's algorithmic program debugging (APD). In this view, refinement is not merely code-level debugging, but semantic re-checking of the model's hypothesised rule. We evaluate ABPR primarily on ARC-AGI-2, a challenging few-shot abstract rule induction benchmark over grid transformations. ABPR with Gemini-3-Flash achieves 56.67% Pass@2, while GPT-5.5 xHigh with ABPR reaches 98.33% Pass@2 on the public evaluation set. Supplementary experiments on fill-in-the-blank I-RAVEN-X and A-I-RAVEN adaptations provide evidence that the same trace-guided framework extends beyond ARC-specific grid tasks to RAVEN-style relational and analogical abstraction. Repeated-run and sensitivity analyses show that parallel trace-guided search reduces stochastic variance as search breadth and total search depth increase.
Figures & tables
| Experiment setting | Initial model | Repair model | Iter. repair | ABPR trace | Pass@2 |
| Full same-model comparison: first pass execution-feedback repair ABPR repair | |||||
| Gemini-3-Flash: first pass | Gemini-3-Flash | – | 34.03% | ||
| Gemini-3-Flash: execution-feedback repair | Gemini-3-Flash | Gemini-3-Flash | 49.17% | ||
| Gemini-3-Flash: ABPR repair | Gemini-3-Flash | Gemini-3-Flash | 56.67% | ||
| Gemini-3-Pro: first pass | Gemini-3-Pro | – | 31.11% | ||
| Gemini-3-Pro: execution-feedback repair | Gemini-3-Pro | Gemini-3-Pro | 43.33% | ||
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Mean | Std. |
|---|---|---|
| Gemini-3-Flash ABPR | 56.25 | 0.59 |
| Gemini-3-Pro ABPR | 52.29 | 1.05 |
| GPT-5.2 low-reasoning ABPR | 29.93 | 0.98 |
| Claude-Sonnet-4.5 ABPR | 4.08 | 0.37 |
| Qwen3-Max ABPR | 2.77 | 0.78 |
| GPT-5.5 xHigh ABPR | 98.05 | 0.48 |
| Method | I-RAVEN-X interactive | A-I-RAVEN-style | ||
|---|---|---|---|---|
| Solved | Acc. | Solved | Acc. | |
| Prolog direct | 170/500 | 34.00% | 141/500 | 28.20% |
| Prolog execution-feedback repair | 198/500 | 39.60% | 170/500 | 34.00% |
| Prolog ABPR repair | 443/500 | 88.60% | 468/500 | 93.60% |
| Python direct | 320/500 | 64.00% | 370/500 | 74.00% |
| Python execution-feedback repair | 408/500 | 81.60% | 443/500 | 88.60% |