paper-with-me

Papers

Better patching using LLM prompting, via Self-Consistency

2023-05-31 · Toufique Ahmed, Premkumar Devanbu

Large Language models (LLMs) can be induced to solve non-trivial problems with "few-shot" prompts including illustrative problem-solution examples. Now if the few-shots also include "chain of thought" (CoT) explanations, which are of the form problem-explanation-solution, LLMs will generate a "explained" solution, and perform even better. Recently an exciting, substantially better technique, self-consistency [1] (S-C) has emerged, based on the intuition that there are many plausible explanations for the right solution; when the LLM is sampled repeatedly to generate a pool of explanation-solution pairs, for a given problem, the most frequently occurring solutions in the pool (ignoring the explanations) tend to be even more likely to be correct! Unfortunately, the use of this highly-performant S-C (or even CoT) approach in software engineering settings is hampered by the lack of explanations; most software datasets lack explanations. In this paper, we describe an application of the S-C approach to program repair, using the commit log on the fix as the explanation, only in the illustrative few-shots. We achieve state-of-the art results, beating previous approaches to prompting-based program repair, on the MODIT dataset; we also find evidence suggesting that the correct commit messages are helping the LLM learn to produce better patches.

📄 PDF Abstract BibTeX arXiv:2306.00108

Code (0)

등록된 구현이 없습니다.

Tasks

Program Repair

Similar Papers 제목 키워드 기반

Test-Time Training for Modality Order Consistency in Vision-Language Models

2026-07-22 · Aditi Gupta, Yossi Gandelsman arxiv

We find that vision-language models are sensitive to a specific semantically irrelevant change: the order in which the image and question are presented. Across three models and three benchmarks, image first prompting con…

Test-time Adaptation

Superscopes: Amplifying Internal Feature Representations for Language Model Interpretation

2025-03-03 · Jonathan Jacobi, Gal Niv

Understanding and interpreting the internal representations of large language models (LLMs) remains an open challenge. Patchscopes introduced a method for probing internal activations by patching them into new prompts, p…

Language ModelingLanguage Modelling

Self-Consistency Improves Chain of Thought Reasoning in Language Models

2022-03-21 · Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le 외

Chain-of-thought prompting combined with pre-trained large language models has achieved encouraging results on complex reasoning tasks. In this paper, we propose a new decoding strategy, self-consistency, to replace the …

ARCArithmetic ReasoningGSM8KLanguage Modelling+2

Batched Self-Consistency Improves LLM Relevance Assessment and Ranking

2025-05-18 · Anton Korikov, Pan Du, Scott Sanner, Navid Rekabsaz

Given some information need, Large Language Models (LLMs) are increasingly used for candidate text relevance assessment, typically using a one-by-one pointwise (PW) strategy where each LLM call evaluates one candidate at…

Passage Retrieval

Can We Afford The Perfect Prompt? Balancing Cost and Accuracy with the Economical Prompting Index

2024-12-02 · Tyler McDonald, Anthony Colosimo, Yifeng Li, Ali Emami

As prompt engineering research rapidly evolves, evaluations beyond accuracy are crucial for developing cost-effective techniques. We present the Economical Prompting Index (EPI), a novel metric that combines accuracy sco…

Prompt Engineering