paper-with-me

홈 › Papers

ProgCo: Program Helps Self-Correction of Large Language Models

2025-01-02 · Xiaoshuai Song, Yanan Wu, Weixun Wang, Jiaheng Liu, Wenbo Su, Bo Zheng

Self-Correction aims to enable large language models (LLMs) to self-verify and self-refine their initial responses without external feedback. However, LLMs often fail to effectively self-verify and generate correct feedback, further misleading refinement and leading to the failure of self-correction, especially in complex reasoning tasks. In this paper, we propose Program-driven Self-Correction (ProgCo). First, program-driven verification (ProgVe) achieves complex verification logic and extensive validation through self-generated, self-executing verification pseudo-programs. Then, program-driven refinement (ProgRe) receives feedback from ProgVe, conducts dual reflection and refinement on both responses and verification programs to mitigate misleading of incorrect feedback in complex reasoning tasks. Experiments on three instruction-following and mathematical benchmarks indicate that ProgCo achieves effective self-correction, and can be further enhance performance when combined with real program tools.

📄 PDF Abstract BibTeX arXiv:2501.01264

Code (1)

songxiaoshuai/progco 공식 구현

Tasks

Instruction Following

Similar Papers 제목 키워드 기반

S$^3$c-Math: Spontaneous Step-level Self-correction Makes Large Language Models Better Mathematical Reasoners

2024-09-03 · Yuchen Yan, Jin Jiang, Yang Liu, Yixin Cao 외

Self-correction is a novel method that can stimulate the potential reasoning abilities of large language models (LLMs). It involves detecting and correcting errors during the inference process when LLMs solve reasoning p…

GSM8KMathMathematical Reasoning

Embedding Self-Correction as an Inherent Ability in Large Language Models for Enhanced Mathematical Reasoning

2024-10-14 · Kuofeng Gao, Huanqia Cai, Qingyao Shuai, Dihong Gong 외

Accurate mathematical reasoning with Large Language Models (LLMs) is crucial in revolutionizing domains that heavily rely on such reasoning. However, LLMs often encounter difficulties in certain aspects of mathematical r…

MathMathematical Reasoning

Deep Reinforcement Learning for Programming Language Correction

2018-01-31 · Rahul Gupta, Aditya Kanade, Shirish Shevade

Novice programmers often struggle with the formal syntax of programming languages. To assist them, we design a novel programming language correction framework amenable to reinforcement learning. The framework allows an a…

Deep Reinforcement LearningMachine TranslationProgram Repairreinforcement-learning+3

RELIC: Investigating Large Language Model Responses using Self-Consistency

2023-11-28 · Furui Cheng, Vilém Zouhar, Simran Arora, Mrinmaya Sachan 외

Large Language Models (LLMs) are notorious for blending fact with fiction and generating non-factual content, known as hallucinations. To address this challenge, we propose an interactive system that helps users gain ins…

Language ModelingLanguage ModellingLarge Language Model

Logic Error Localization in Student Programming Assignments Using Pseudocode and Graph Neural Networks

2024-10-11 · Zhenyu Xu, Kun Zhang, Victor S. Sheng

Pseudocode is extensively used in introductory programming courses to instruct computer science students in algorithm design, utilizing natural language to define algorithmic behaviors. This learning approach enables stu…

DiagnosticGraph Neural Network