Pith. sign in

REVIEW 2 cited by

The Fact Selection Problem in LLM-Based Program Repair

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2404.05520 v3 pith:H7BCIN4I submitted 2024-04-08 cs.SE

classification cs.SE
keywords factsfactbugspromptsrepaircontextmanipleproblem
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Recent research has shown that incorporating bug-related facts, such as stack traces and GitHub issues, into prompts enhances the bug-fixing capabilities of large language models (LLMs). Considering the ever-increasing context window of these models, a critical question arises: what and how many facts should be included in prompts to maximise the chance of correctly fixing bugs? To answer this question, we conducted a large-scale study, employing over 19K prompts featuring various combinations of seven diverse facts to rectify 314 bugs from open-source Python projects within the BugsInPy benchmark. Our findings revealed that each fact, ranging from simple syntactic details like code context to semantic information previously unexplored in the context of LLMs such as angelic values, is beneficial. Specifically, each fact aids in fixing some bugs that would remain unresolved or only be fixed with a low success rate without it. Importantly, we discovered that the effectiveness of program repair prompts is non-monotonic over the number of used facts; using too many facts leads to subpar outcomes. These insights led us to define the fact selection problem: determining the optimal set of facts for inclusion in a prompt to maximise LLM's performance on a given task instance. We found that there is no one-size-fits-all set of facts for bug repair. Therefore, we developed a basic statistical model, named Maniple, which selects facts specific to a given bug to include in the prompt. This model significantly surpasses the performance of the best generic fact set. To underscore the significance of the fact selection problem, we benchmarked Maniple against the state-of-the-art zero-shot, non-conversational LLM-based bug repair methods. On our testing dataset of 157 bugs, Maniple repairs 88 bugs, 17% above the best configuration.

Discussion (0). Sign in to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. DocMEdit: Towards Document-Level Model Editing

    cs.CL 2025-05 conditional novelty 7.0 of 10

    DocMEdit, a dataset of nearly 38,000 Wikipedia article updates, shows that existing model editing methods achieve low accuracy and cause large side effects on document-level editing tasks.

  2. When Specifications Conflict: A Symmetry-Based Framework for Measuring LLM Preferences

    cs.AI 2026-07 conditional novelty 6.0 of 10

    Under controlled conflicting specifications, LLMs systematically prefer formal and naturalized-formal task descriptions over pure natural language and input–output examples, with domain-specific exceptions.

Pith tools