cs.AIOct 19, 2026

From Outcomes to Components: A Counterfactual Evaluation Framework for LLM-Proposed Repairs

Authors: Hengyu Ye, Songhua Hu

Organizations: ShanghaiTech University · City University of Hong Kong

Abstract

An LLM-generated repair action specifies which records to change and by how much. A failed action may still contain a useful target set or numerical update, depending on how the two are paired. We evaluate this problem in traffic networks and databases, where aggregate observations obscure the records that need correction. We examine the pairings by executing each combination from the same initial state, using a reference action that restores the affected records. In 76 of 114 traffic actions, the gain from correcting both parts exceeds the sum of the gains from correcting each part alone. Six of these actions become worse after either correction alone, but improve when both parts are corrected. In database repair, replacing only the proposed update with the reference update worsens 17 of 108 model actions, all of which select unaffected records. We also test whether parts of two proposals can be reused. On held-out observations, selecting among the proposals and their recombined target-update pairs recovers 61.6% of the reference action's loss reduction, compared with 58.0% from selecting between the proposals alone.

Figures & tables

Appendix figures & tables15 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Causal Episodic Memory for Feedback-Driven Agent Repair

    Aug 6, 2026Khang Nhat Hoang Vo, Tam Minh Chu, Anh Trac Duc Dinh +2LLM Self-CorrectionLLM Agent Memory

  2. Make Every Expansion Count: Learning to Search Efficiently in LLM Code Repair

    Oct 11, 2026Elad Sharony, Ido Greenberg, Jialin Song +3Automated Program Repair

  3. LLM-Only PDDL Domain Repair with Open-Weight Models

    Aug 18, 2026Nader Karimi Bavandpour, Pascal BercherAutomated Program RepairSymbolic Planning