TensorX
返回文献探索

Paper · arXiv 2501.01264

ProgCo: Program Helps Self-Correction of Large Language Models

Xiaoshuai Song, Yanan Wu, Weixun Wang, Jiaheng Liu, Wenbo Su, Bo Zheng

26 upvotesJanuary 2, 2025arXiv 预印本
AI 摘要

Program-driven Self-Correction (ProgCo) improves large language models' self-verification and refinement by using self-generated and self-executing verification pseudo-programs, particularly in complex reasoning tasks.

Large language models (LLMs)self-verificationself-refinementProgram-driven Self-Correction (ProgCo)program-driven verification (ProgVe)program-driven refinement (ProgRe)dual reflection

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
ProgCo: Program Helps Self-Correction of Large Language Models | TensorX