potentialpaper

Procedural Refinement by LLM-driven Algorithmic Debugging for ARC-AGI-2

Yuning Qiu, Linfeng Zou, Jiong-Da Wang, Xue-Rong Yuan, Wang-Zhou Dai

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Abduction-Based Procedural Refinement couples a large language model with Prolog derivations to diagnose and revise executable hypotheses for abstract rule induction.

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.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Overall, the idea and novelty is at a decent level. But there are certain shortcomings that would affect the paper quality. Some comparisons are not appropriate, e.g. comparison to the ARC-AGI-2 Leaderboard in Figure 4 as the leaderboard is reported on the semi-private test set in ARC-AGI-2. In addition, reporting Python-based program synthesis methods for ARC seems to be necessary as most previous work on ARC-AGI-2 in this line, used Python. Furthermore, other execution-feedback-based agent approaches such as Poetiq-ARC-AGI-Solver, should be reported and compared against. Finally, computational budgets should be taken into account for ARC as this is an important factor influencing the results.
Some ablations seem to be necessary to shed light into the improvement mechanisms: e.g. it is not clear for instance in Qwen3-Max, the issue is attributed to the initial program or the repair task.

Final justification

The authors did a good job in addressing all the major concerns and all reviewers seems to suggest paper acceptance. Therefore, I would also suggest so.

Area Chair Hzob · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Overall, the idea and novelty is at a decent level. But there are certain shortcomings that would affect the paper quality. Some comparisons are not appropriate, e.g. comparison to the ARC-AGI-2 Leaderboard in Figure 4 as the leaderboard is reported on the semi-private test set in ARC-AGI-2. In addition, reporting Python-based program synthesis methods for ARC seems to be necessary as most previous work on ARC-AGI-2 in this line, used Python. Furthermore, other execution-feedback-based agent approaches such as Poetiq-ARC-AGI-Solver, should be reported and compared against. Finally, computational budgets should be taken into account for ARC as this is an important factor influencing the results.
Some ablations seem to be necessary to shed light into the improvement mechanisms: e.g. it is not clear for instance in Qwen3-Max, the issue is attributed to the initial program or the repair task.

Final justification

The authors did a good job in addressing all the major concerns and all reviewers seems to suggest paper acceptance. Therefore, I would also suggest so.

Reviewer qUoGOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a neuro-symbolic method called Abduction-Based Procedural Refinement (ABPR) for inductive reasoning that combines LLM-based program synthesis with algorithmic program debugging (APD) on execution traces. Thereby, each program node gets evaluated on its correctness and following, program parts get targeted that are not producing correct results. To assess the correctness of program subfunctions, the authors also propose using an LLM as an oracle-checker. With ABPR, the programs can be revised in a more focused and informed way, than updating the whole program. By employing this method, the authors show that they can consistently improve the performance of a variety of LLMs, even reaching 98.33% on the public evaluation set of ARC-AGI-2.

Strengths and weaknesses

Strengths

  • The paper proposes an interesting and timely neuro-symbolic method for combining LLMs with traditional program debugging techniques to improve LLM reasoning abilities.
  • ABPR proves effective across all models, showing that it always provides improvements
  • It is interesting to see that strong models can be combined with weaker models and still yield good performance. This opens avenues for training more specialized smaller program repair models.
  • It's good that the method is evaluated on an additional dataset domain to test its general applicability.

Weaknesses

  • ABPR relies on LLM's abilities to induce hypotheses that are already decent enough to refine them towards a correct program. If that is not the case, the method can have only a little effect (e.g. Claude Sonnet and Qwen3) and can also not recover from this. This limitation, especially the reliance on proprietary methods should be discussed in more detail.
  • While the evaluation covers many proprietary models, it would be interesting to see if the improvements could translate to open-source models as well, e.g. the cross-model experiment with Qwen3 or include other models like DeepSeek or Kimi in the main experiment.
  • The comparison to the ARC-AGI-2 Leaderboard in Figure 4 is misleading; the ARC-AGI-2 Leaderboard is on the private test set, and your results are on the public eval. Also, the reference to the source of the other results is missing. It's nice to have the cost vs accuracy comparison, but I would recommend not mixing it with the other results.

Overall, I think the paper proposes an interesting approach that effectively combines neural and symbolic methods, and I would recommend acceptance.

Questions

Questions

  1. For weaker models like Qwen3-Max, do you think the issue stems from initial programs, the repair task or both? What do you think is missing there? Is the model maybe even not familiar with Prolog?
  2. The RAVEN datasets are considered without images, correct? If I understand it correctly, I-RAVEN-X has simple symbolic abstractions of the grids. Is that the case for A-I-RAVEN as well?
  3. Could you state how many LLM calls you, on average, have to make with ABPR per task (e.g. in ARC-AGI-2)?

Suggestions

  • Figure 1 is a bit overwhelming, and the text is quite small. Reducing complexity would be good. In addition, the text could be referencing the different steps in the figure more explicitly.
    • Note to Algorithmic Debugging Repair: Shouldn't there be a change from "wrong" to "fixed"?
  • For additional domains, you could consider evaluating on [1] and [2].
  • Related work could include Vision-Language Programs [3], which uses a neuro-symbolic program synthesis method as well to induce logical rules (from images).

[1] Naik, Atharva, et al. "Pbebench: A multi-step programming by examples reasoning benchmark inspired by historical linguistics." arXiv, 2025.

[2] Helff, Lukas, et al. "Slr: Automated synthesis for scalable logical reasoning." ACL, 2026

[3] Wüst, Antonia, et al. "Synthesizing visual concepts as vision-language programs." CVPR, 2026

Limitations

As mentioned in the weaknesses, I think the reliance on large and expensive LMs could be discussed in more detail.

Final justification

The authors have addressed my concerns during the rebuttal. I am still in favour of the paper and therefore keep my positive score.

Formatting concerns

no concerns

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the positive assessment and the detailed suggestions. We address each point below.

1. Initial-program quality and the Qwen3-Max result

To distinguish initial-program quality from repair ability, we ran the following cross-model experiment:

Initializer Refiner Initial-program Pass@2 Pass@2 after repair Change (pp)
Gemini-3-Pro Qwen3-Max 30.83 48.33 +17.50

With stronger initial programs, Qwen3-Max improves the pass rate from 30.83% to 48.33% (+17.50 percentage points). This result shows that Qwen3-Max can repair Prolog programs effectively and indicates that initial-program quality is a major bottleneck in its lower same-model result. We will add this result and clarify the distinct roles of the initializer and refiner.

2. Evaluation on open-weight models

Thank you for this suggestion. The new Qwen3-Max experiment tests whether the repair stage transfers across model families and shows that a non-Gemini model can perform effective cross-model repair. We will include this result in the revised paper and state the scope precisely: the current evidence establishes cross-family repair, while evaluation with fully open-weight models remains future work. We're experimenting with newer open-weight models, too, and will update the results when they're ready.

3. Figure 4 and leaderboard comparability

We agree that Figure 4 currently mixes results obtained under different evaluation protocols. Its purpose was to provide contextual cost–accuracy references, not a head-to-head ranking, but the current presentation does not make this distinction sufficiently clear. We will replace it with a proper table that reports the evaluation split, model, Pass@kk, calls, token/cost budget, and source for each result. Results from different splits will be presented separately, and the cost analysis will no longer be mixed with the accuracy comparison.

4. RAVEN input modality

Yes. No images are provided to the model in our RAVEN experiments. The inputs are symbolic descriptions of objects, attributes, and relations. I-RAVEN-X uses symbolic representations adapted from official instances, with the multiple-choice candidates hidden and the answer generated directly. A-I-RAVEN is evaluated in the same symbolic program-induction format and is a custom RAVEN-style suite. We will make these settings explicit in the revised paper.

5. Average calls, tokens, and cost

Based on Gemini-3-Pro pricing of $2\$2/M input tokens and $12\$12/M output tokens, the measured resource usage is shown below:

Method Avg. generation/repair calls per task Avg. input tokens per task Avg. output tokens per task Avg. cost per task
Prolog Direct 8.00 59,277 144,276 $1.85\$1.85
Prolog Plain Execution Feedback 61.34 1,020,000 1,050,000 $14.64\$14.64
Prolog ABPR 57.58 1,579,291 1,233,105 $17.96\$17.96
Python method Avg. generation/repair calls per task Avg. input tokens per task Avg. output tokens per task Avg. cost per task
Python Direct (standard prompt) 8.00 108,353 209,667 $2.73\$2.73
Python Plain Execution Feedback 62.80 655,168 1,255,560 $16.38\$16.38
Python AST-Checkpoint Feedback 65.02 1,503,745 1,326,625 $18.93\$18.93

In our implementation, the LLM-based semantic judgment used for fault localisation and the resulting repair are produced within the same model call, so no separate oracle API request is made. We will add these call, token, and cost statistics to the revised paper.

6. Figure 1, related work, and additional domains

Thank you for these suggestions.

  1. We have simplified Figure 1, enlarged the key steps, and will reference these steps explicitly in the main text. The duplicated “Wrong” and “Fixed” programs were a figure error. The intended Wrong version uses C \= Old, whereas the Fixed version uses C =:= Old. The revised figure corrects this error and highlights the changed condition.
  2. We will add Vision-Language Programs to the related-work discussion and clarify their relationship to our derivation-level localisation and repair setting.
  3. We will cite PBEBench and SLR as promising extension domains and clarify that the current generalisation evidence comes from ARC-AGI-2 and the symbolic RAVEN adaptations.
  4. We will briefly discuss the use of proprietary LLMs together with the measured computational cost and the initializer/refiner analysis above.
Reviewer qUoG · CommentOpenReview ↗

I thank the authors for the clarifications and updates on experiments and usage. I keep my positive assessment of the paper.

Authors · CommentOpenReview ↗

Thank you very much for your positive assessment and for your constructive suggestions.

We sincerely appreciate your recognition of the motivation and potential of ABPR. Your comments helped us further clarify several important aspects of the work, including the limitation of relying on initial program quality, the role of cross-model refinement, computational cost reporting, and the scope of our generalization experiments.

We are glad that our additional experiments and clarifications addressed these concerns. We will carefully incorporate these improvements into the final version and further discuss the current limitations and future directions of neuro-symbolic procedural refinement.

Thank you again for your thoughtful review and encouragement.

Reviewer J3xgOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Abduction-Based Procedural Refinement (ABPR), a neuro-symbolic framework for complex abstract reasoning that combines large language models (LLMs) with a Prolog meta-interpreter. Building on Shapiro's Algorithmic Program Debugging (APD), ABPR treats LLM-generated programs as declarative hypotheses and performs semantic-level refinement when execution fails. Instead of relying solely on outcome-level feedback, it constructs proof-tree-style goal–subgoal traces to localize faulty reasoning and guide abductive revisions of the underlying rules. Experiments on ARC-AGI-2 show that ABPR achieves 98.33% Pass@2 with GPT-5.5 xHigh and 56.67% with Gemini-3-Flash. Additional results on I-RAVEN-X and A-I-RAVEN demonstrate that the trace-guided refinement mechanism generalizes beyond grid transformation tasks to relational and analogical reasoning problems.

Strengths and weaknesses

Positive points:

  1. The paper presents a novel neuro-symbolic framework that combines LLMs, a Prolog meta-interpreter, and APD to enable proof-tree-guided semantic program refinement.
  2. ABPR achieves substantial performance improvements over both direct generation and execution-feedback repair on ARC-AGI-2. The method also performs well on I-RAVEN-X and A-I-RAVEN, indicating promising generalization beyond ARC-style tasks.

Negative points

  1. I have some concerns regarding Table 1. In principle, all models could have been evaluated under the full pipeline of first pass → execution-feedback repair → ABPR repair, yet experiments for GPT-5.2 low, GPT-5.5 xHigh, Claude-Sonnet-4.5, and Qwen3-Max were not reported. It is therefore unclear whether the observed gains are specific to the Gemini models or can generalize across different model families. In addition, the cross-model initialization/refinement study provides only a single effective data point, which makes it difficult to draw convincing conclusions about the benefits of cross-model collaboration.
  2. I noticed that several open-source agentic looping systems have also achieved competitive performance. For example, Poetiq-ARC-AGI-Solver reaches 54% on ARC-AGI-2 with Gemini-3-Pro. I am wondering whether there are other execution-feedback-based agent approaches that would be appropriate to include as additional baselines for comparison.
  3. From the RAVEN-style experiments, it appears that Python-based methods achieve considerably stronger baseline performance than Prolog-based methods. I am curious how a Python execution-feedback repair framework would perform on ARC-AGI-2. More generally, could a Python-based approach leveraging program structures such as ASTs lead to a more general and potentially more effective refinement framework than ABPR?
Questions

Please refer to the Weakness.

Limitations

yes

Final justification

The authors have addressed all of my concerns, and thus I would keep my positive score.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the constructive review. We appreciate your positive assessment of the method and address each of your concerns below.

1. Full-pipeline and cross-model evidence

We agree that the original Table 1 did not provide a complete Direct–Plain Execution Feedback–ABPR comparison beyond the two Gemini models. We have now completed the Plain Execution Feedback control for GPT-5.2 low:

Model Prolog Direct Prolog Plain Execution Feedback Prolog ABPR
Gemini-3-Flash 34.17 49.17 56.67
Gemini-3-Pro 31.11 43.33 53.33
GPT-5.2 low 8.33 19.17 30.00

For GPT-5.2 low, Plain Execution Feedback improves the Direct condition by 10.83 percentage points, and ABPR adds another 10.83 points over Plain Execution Feedback. We will add this complete non-Gemini control to the revised table.

We also completed the following cross-model experiment:

Initializer Refiner Initial-program Pass@2 Pass@2 after repair Change (pp)
Gemini-3-Pro Qwen3-Max 30.83 48.33 +17.50

The result shows that Qwen3-Max can repair stronger initial programs effectively. This suggests that the lower same-model result of Qwen3-Max is substantially affected by the quality of its initial programs. We will use this experiment to clarify the initializer/refiner distinction rather than claim a general advantage for cross-model collaboration.

2. Poetiq and other execution-feedback agents

Poetiq is directly relevant to this work and will be reported as an externally verified engineering baseline. ARC Prize verified a score of 54% on the ARC-AGI-2 semi-private set using Gemini-3-Pro, at a reported cost of $30.57\$30.57 per task. Our results use the 120-task public evaluation set with different models, call structures, and budgets; therefore, a direct numerical ranking would not be methodologically valid.

The public reproduction status is less settled. The available documentation consists primarily of the public repository and a company launch post; at the time of writing, we did not locate a Poetiq-authored peer-reviewed paper or arXiv/OpenReview technical report describing the full method. Moreover, the repository's still-open Issue #17 reports 19.58% for the version-a configuration, compared with the reported 38.47%. We will therefore report Poetiq's ARC Prize-verified result while separately marking the evaluation split, model, cost, source, and public reproduction status.

Other execution-feedback systems will be compared directly only when their evaluation split, interaction protocol, and computational budget can be aligned; otherwise, they will be discussed as related work.

3. Python Plain Execution Feedback and AST-Checkpoint Feedback

We're glad you pointed out this issue. After the submission deadline, we had implemented and tested Python program-synthesis baselines, both with and without AST checkpoints, on the same 120-task ARC-AGI-2 public evaluation set. The detailed results are as follows. Where "Direct" denotes the N=8N=8 first-pass pool evaluated before any repair; numbers in all entries are Pass@2 (%); values in parentheses are relative gains over the corresponding Direct baseline.

Model Py Direct Py Plain Feedback Py Direct (AST prompt) Py AST Feedback Prolog Direct Prolog ABPR
GPT-5.2 low 22.50 33.33 (+48.13%) 16.67 31.67 (+89.98%) 8.33 30.00 (+260.14%)
Gemini-3-Flash 51.67 58.33 (+12.89%) 47.50 59.17 (+24.57%) 34.17 56.67 (+65.85%)
GPT-5.5 xHigh 92.50 93.33 (+0.90%) 93.33 95.00 (+1.79%) 85.00 98.33 (+15.68%)

The Python plain execution-feedback baseline allows iterative repair from final-output mismatches, verifier results, and runtime errors, but provides no intermediate localisation signal. For Py AST, we use a decorator and AST transformation to let the generated program output intermediate checkpoints. This is analogous to breakpoint debugging for an agent, but it could not expose the tree-like native goal-subgoal hierarchy as Prolog SLD derivations.

As we can see in the table, Python already performs strongly even without any feedback, even comparable to Prolog + ABPR in absolute score for GPT-5.2 and Gemini-3. Adding AST checkpoints during debug does not make significant changes compared to the plain execution feedback. However, due to the lack of an external meta-interpreter, the Python's AST feedback can only be implemented by changing its prompt to ask LLMs to generate code with checkpoints, which apparently affects the first-pass (direct) success rate. Prolog, which is a homoiconic declarative programming language, could easily avoid this caveat by using a simple meta-interpreter.

Considering the relative improvement from first-pass results, we could see, across all models, that Prolog+ABPR > Python+AST > Python+outcome feedback even when Prolog variant has much lower starting points. And Prolog+ABPR still achieves the highest absolute score (98.33) among all the compared methods.

Two factors may contribute to the strong Python results. First, Python is much more extensively pre-trained and provides convenient array and matrix operations for ARC's 2D grid transformations; while Prolog training data is much more sparse, and only has list operators with indexing predicates like nth, which is not as comprehensive as Python's [] indexing. Second, the ARC-AGI-2 public evaluation setting carries a high contamination risk. The ARC Prize 2025 results analysis likewise reports evidence that frontier models have learned ARC-specific conventions from public-domain data and warns that such exposure can inflate public-set performance, and this phenomenon could be more serious in the Python variants since most of the existing methods use it.

In summary, we agree with the reviewer and believe that for this work---and for LLMs that continues to scale---the gain over the base model is a more meaningful measure than absolute performance on any published benchmark, particularly for weaker foundation models and for programming languages or task domains where training data is sparse. We also conjecture that a declarative programming language such as Prolog offers advantages over procedural programming languages like Python in expressing high-level logic of programs, branching and searches in formal reasoning, and concept abstraction/formation in general AI tasks, which would explain why trace-guided debugging remains effective even when the base model has been exposed to little Prolog code during pre-training (compared to Python). We therefore view the ARC-AGI-2 results as a proof of concept, and plan to extend this idea to a broader range of neuro-symbolic AI systems in our future work.

Reviewer J3xg · CommentOpenReview ↗

Thanks for your detailed rebuttal. I would keep my positive score.

Authors · CommentOpenReview ↗

Thank you very much for your continued support and for maintaining your positive assessment of our work.

We sincerely appreciate your insightful comments on the generality of ABPR, including the importance of cross-model evaluation, execution-feedback baselines, and Python-based refinement comparisons.

Your suggestions encouraged us to conduct additional experiments and clarify the scope of our claims. We will incorporate these results and discussions into the final version, especially regarding the distinction between initialization quality and refinement capability, as well as the comparison between procedural debugging and outcome-level feedback.

Thank you again for your valuable feedback and for recognizing the potential of our neuro-symbolic procedural refinement framework.

Reviewer VoRzOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Abduction-Based Procedural Refinement (ABPR), a neuro-symbolic approach that couples an LLM with a Prolog meta-interpreter, to infer a rule from a few examples and apply it to unseen instances. The approach is tested on ARC-AGI-2, reporting strong gains. It is also tested on I-RAVEN-X and A-I-RAVEN adaptations, suggesting that the approach extends from grid tasks to relational and analogically abstractions.

Strengths and weaknesses

Quality

  • The authors deliberately report Python baselines only for RAVEN, not for ARC. This means the main benchmark never gets tested against that stronger baseline.
  • Table 1 could be extended. Execution-feedback repair (same model) is only shown for the two Gemini models, not for GPT-5.2, GPT-5.5, Claude Sonnet 4.5, or Qwen. This means the RQ2 claim rests on just two models.
  • It’s unclear to me whether the direct and execution-feedback baselines use the same 8-way parallel search budget. Ideally, the authors would report also a single-trajectory number which would clarify how much performance depends on the ensemble.

Clarity

  • The wrong and buggy program in Figure 1 appear to be the same?
  • The refinement closure definition (line 114) looks incomplete. Is the inductive step is missing?
  • ABPR is used in the intro and Section 2.4 but only defined in Section 3. Define it on first use.
  • A figure in the main text showing a real derivation tree and the local correction it triggers would make the method easier to follow. Many readers won’t be familiar with Prolog.
  • Figure 3 is referenced in the main text but lives in the appendix; not ideal.

Significance

  • The problem is important and I like the approach. The most convincing evidence is the gain over baseline for mid-tier models (e.g., GPT-5.2 8.33%→30.00%, Gemini-3-Flash 34.03%→56.67%), which shows the method adds real value on top of the base model.
  • The paper doesn’t seem to include a comparison to other published work that targets ARC-AGI-2 under a matched budget, so it's hard to compare the work against the state of the art.
  • The method should be judged by its gain over the base model, not by absolute scores. That gain is modest for weaker models (Claude 3.75%→5.00%, Qwen 0.83%→2.50%. The headline 98.33% builds on top of an 85% first-pass baseline. Leading the abstract with strong absolute numbers, without the corresponding baselines, overstates the contributions.
  • The RAVEN evaluation uses official I-RAVEN-X test cases but reformats them from the usual multiple-choice task into a slightly different task where the candidates are hidden. So the numbers can't be compared directly to published I-RAVEN-X results. Similarly, the A-I-RAVEN tests are a custom-built RAVEN "style" suite, not the official benchmark. So RQ4 shows the method works on the authors' own versions rather than beating prior work head-to-head.

Originality

  • Combining Shapiro's algorithmic program debugging approach to Prolog proof trees is a fresh idea, as far as I can tell. Refining the derivation tree and not just the final answer is original and makes a lot of sense. To my knowledge, most ARC-AGI program synthesises approaches use Python. Using Prolog as target language instead thus is a contribution in itself.
Questions
  • Do the direct and execution-feedback baselines use the same 8-way search budget as ABPR? If not, please match compute or report single-trajectory numbers.
  • Can you add execution-feedback (same-model) rows for the non-Gemini models, and a Python no-trace baseline on ARC?
  • Please (also) report relative gains in the abstract, not just absolute scores.
Limitations

Mostly, yes. Missing: no discussion of contamination risk and no acknowledgment that absolute scores are inflated by the base model's performance.

Final justification

The authors addressed my questions during the rebuttal. I'm changing my overall score from 3 to 4.

Formatting concerns

No concerns.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for the constructive review. We are happy that you like our approach and find it original. We will address each of your concerns below and revise our paper accordingly, supporting with some new experimental results.

1. Prolog ABPR vs Python AST

We're glad you pointed out this issue. After the submission deadline, we had implemented and tested Python program-synthesis baselines, both with and without AST checkpoints, on the same 120-task ARC-AGI-2 public evaluation set. The detailed results are as follows. Where "Direct" denotes the N=8N=8 first-pass pool evaluated before any repair; numbers in all entries are Pass@2 (%); values in parentheses are relative gains over the corresponding Direct baseline.

Model Py Direct Py Plain Feedback Py Direct (AST prompt) Py AST Feedback Prolog Direct Prolog ABPR
GPT-5.2 low 22.50 33.33 (+48.13%) 16.67 31.67 (+89.98%) 8.33 30.00 (+260.14%)
Gemini-3-Flash 51.67 58.33 (+12.89%) 47.50 59.17 (+24.57%) 34.17 56.67 (+65.85%)
GPT-5.5 xHigh 92.50 93.33 (+0.90%) 93.33 95.00 (+1.79%) 85.00 98.33 (+15.68%)

The Python plain execution-feedback baseline allows iterative repair from final-output mismatches, verifier results, and runtime errors, but provides no intermediate localisation signal. For Py AST, we use a decorator and AST transformation to let the generated program output intermediate checkpoints. This is analogous to breakpoint debugging for an agent, but it could not expose the tree-like native goal-subgoal hierarchy as Prolog SLD derivations.

As we can see in the table, Python already performs strongly even without any feedback, even comparable to Prolog + ABPR in absolute score for GPT-5.2 and Gemini-3. Adding AST checkpoints during debug does not make significant changes compared to the plain execution feedback. However, due to the lack of an external meta-interpreter, the Python's AST feedback can only be implemented by changing its prompt to ask LLMs to generate code with checkpoints, which apparently affects the first-pass (direct) success rate. Prolog, which is a homoiconic declarative programming language, could easily avoid this caveat by using a simple meta-interpreter.

Considering the relative improvement from first-pass results, we could see, across all models, that Prolog+ABPR > Python+AST > Python+outcome feedback even when Prolog variant has much lower starting points. And Prolog+ABPR still achieves the highest absolute score (98.33) among all the compared methods.

Two factors may contribute to the strong Python results. First, Python is much more extensively pre-trained and provides convenient array and matrix operations for ARC's 2D grid transformations; while Prolog training data is much more sparse, and only has list operators with indexing predicates like nth, which is not as comprehensive as Python's [] indexing. Second, the ARC-AGI-2 public evaluation setting carries a high contamination risk. The ARC Prize 2025 results analysis likewise reports evidence that frontier models have learned ARC-specific conventions from public-domain data and warns that such exposure can inflate public-set performance, and this phenomenon could be more serious in the Python variants since most of the existing methods use it.

In summary, we agree with the reviewer and believe that for this work---and for LLMs that continues to scale---the gain over the base model is a more meaningful measure than absolute performance on any published benchmark, particularly for weaker foundation models and for programming languages or task domains where training data is sparse. We also conjecture that a declarative programming language such as Prolog offers advantages over procedural programming languages like Python in expressing high-level logic of programs, branching and searches in formal reasoning, and concept abstraction/formation in general AI tasks, which would explain why trace-guided debugging remains effective even when the base model has been exposed to little Prolog code during pre-training (compared to Python). We therefore view the ARC-AGI-2 results as a proof of concept, and plan to extend this idea to a broader range of neuro-symbolic AI systems in our future work.

2. Same-model Plain Execution Feedback beyond Gemini

Thank you for pointing out this issue. We agree that evidence from additional models strengthens the comparison. We have completed the Plain Execution Feedback control for GPT-5.2 low:

Model Prolog Direct Prolog Plain Feedback Prolog ABPR
Gemini-3-Flash 34.17 49.17 56.67
Gemini-3-Pro 31.11 43.33 53.33
GPT-5.2 low 8.33 19.17 30.00

For GPT-5.2 low, Plain Execution Feedback improves the Direct condition by 10.83 percentage points, and ABPR adds another 10.83 points over Plain Execution Feedback. This extends the complete Direct–Plain Execution Feedback–ABPR comparison beyond the two Gemini models. We will add this result to the revised paper.

3. Search breadth, refinement depth, and computational cost

All three conditions use the same N=8N=8 first-pass pool and top-2 selection. Direct stops after generation (Tdepth=1T_{\mathrm{depth}}=1); Plain Execution Feedback and ABPR use one generation and up to nine repairs (Tdepth=10T_{\mathrm{depth}}=10), with the same verifier and stopping rule. We will clarify that Direct also uses N=8N=8.

We do not use a single N=1N=1 trajectory as a performance claim because it is high-variance and seed-sensitive. Our main comparison fixes N=8N=8 and changes only the feedback mechanism; the appendix reports ten repeated runs under different (N,Tdepth)(N,T_{\mathrm{depth}}) settings.

Using Gemini-3-Pro prices (\$2/M input and \$12/M output tokens), the measured resource usage is:

Prolog method Calls/task Input tokens/task Output tokens/task Cost/task
Direct 8.00 59,277 144,276 $1.85\$1.85
Plain Execution Feedback 61.34 1,020,000 1,050,000 $14.64\$14.64
ABPR 57.58 1,579,291 1,233,105 $17.96\$17.96
Python method Calls/task Input tokens/task Output tokens/task Cost/task
Direct (standard prompt) 8.00 108,353 209,667 $2.73\$2.73
Plain Execution Feedback 62.80 655,168 1,255,560 $16.38\$16.38
AST-Checkpoint Feedback 65.02 1,503,745 1,326,625 $18.93\$18.93

Fault localisation and repair occur within the same model call, so no separate oracle API call is made.

4. Figure 1, the refinement closure, and missing definitions

Thank you for identifying these presentation problems.

  1. The identical “Wrong” and “Fixed” snippets in Figure 1 were indeed caused by an error in the figure. The intended Wrong version uses C \= Old, whereas Fixed uses C =:= Old. The revised figure has corrected this error, relabeled the states “before repair / after repair,” and highlighted the changed code and repair step.

  2. We will correctly introduce the acronym ABPR at its first occurrence and define the algorithm before referring to it.

  3. We will complete the inductive definition of the refinement closure:

    ρ0(Hinit)={Hinit},ρi+1(Hinit)=⋃H′∈ρi(Hinit)ρ(H′),ρ∗(Hinit)=⋃i≥0ρi(Hinit).\rho^0(H_{\mathrm{init}})=\{H_{\mathrm{init}}\},\qquad \rho^{i+1}(H_{\mathrm{init}})=\bigcup_{H'\in\rho^i(H_{\mathrm{init}})}\rho(H'),\qquad \rho^*(H_{\mathrm{init}})=\bigcup_{i\ge 0}\rho^i(H_{\mathrm{init}}).
  4. We will add a concrete goal–subgoal derivation and local-repair example from the appendix to the main text, showing how the trace identifies the failing subgoal and constrains the edit to the relevant rule.

  5. The main text accidentally refers to an appendix figure as Figure 3. We will revise the paper and make each part self-consistent.

5. Prior-work comparison and relative improvements

Thanks for pointing out this problem; we agree that the original Figure 4 did not present the public and semi-private results properly. It will be replaced by a new table reporting the evaluation split, model, Pass@(k), calls, token/cost budget, etc. Moreover, we will also shift the emphasis from absolute accuracy to relative improvement over each model's no-feedback baseline.

6. RAVEN experiment settings

Thank you for raising the comparability issue in the RAVEN evaluation. Due to the different experimental settings, our results should not be directly compared to the published results.

Since the main target of this work is to improve the procedural refinement of formal program/theories generated by LLMs, we adapted the multiple-choice RAVEN problems to program induction tasks. These results are therefore not directly comparable to published multiple-choice accuracy, nor do they imply that our task is globally harder. Their role is limited to testing whether ABPR generalises to other datasets. We will clarify this in the revised version.

7. Concerns on data contamination

Thanks for your advice, we will also add a contamination limitation in the discussion: base-model performance on ARC may be affected by public tasks, solution codes, and task-specific tooling, particularly in the Python setting.

Reviewer VoRz · CommentOpenReview ↗

I thank the authors for the clarifications. I'll raise my score.

Authors · CommentOpenReview ↗

Thank you very much for your thoughtful follow-up and for reconsidering our submission.

We sincerely appreciate your careful reading and constructive feedback throughout the review process. Your comments helped us identify several important aspects that could be improved, including the comparison protocol, computational budget reporting, and the need to emphasize relative improvements over absolute performance.

We are glad that our clarifications and additional experiments addressed your concerns. We will incorporate these improvements into the final version, including clearer evaluation protocol descriptions, more comprehensive baseline comparisons, and a more careful discussion of the limitations of ARC-AGI-2 evaluation.

Thank you again for your valuable suggestions and for helping us improve the quality and clarity of our work.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…