arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.16653cs.AI
收藏

大型语言模型的内化自我纠错

Internalized Self-Correction for Large Language Models

Freshworks;Indian Institute of Science(印度科学学院)

Nishanth Upadhyaya, Raghavendra Sridharamurthy

AI总结:

本文提出内化自我纠错(InSeC)方法,结合负采样与训练时自我反思,通过在训练中引入错误及纠正将其转化为监督学习任务,从而提升LLMs的指令遵循能力并纠正幻觉。

摘要:

在本文中,我们为大型语言模型(LLMs)引入了“内化自我纠错”(InSeC)。尽管在推理时存在许多自我反思的方法,我们提出了一种结合负采样、训练期间自我反思和推理时间思想的新颖方法。InSeC允许LLMs通过在训练期间引入错误及其相应的纠正来纠正自身,从而将学习过程转化为具有正例和负例的真正监督学习任务。这种方法可以扩展以改善指令遵循,并纠正LLMs产生的幻觉或错误句子。

英文摘要:

In this article, we introduce 'Internalized Self-Correction' (InSeC) for large language models (LLMs). While many approaches exist for self-reflection at inference time, we propose a novel method that combines ideas from negative sampling, self-reflection during training, and inference time. InSeC allows LLMs to correct themselves by introducing mistakes and their corresponding corrections during training, thereby converting the learning process into a true supervised learning task with both positive and negative examples. This approach can be extended to improve instruction following and correct hallucinations or incorrect sentences generated by LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑