arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.09044cs.CLcs.AIcs.LG
收藏

KCTS:基于知识约束的树搜索解码与词元级幻觉检测

KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detection

HKUST(香港科技大学)

Sehyun Choi, Tianqing Fang, Zhaowei Wang, Yangqiu Song

AI总结:

提出KCTS解码方法,结合知识分类器评分和MCTS,并引入词元级幻觉检测RIPA,在对话和摘要任务中有效减少幻觉,无需微调。

摘要:

大型语言模型(LLMs)已展现出卓越的人类级自然语言生成能力。然而,它们可能生成错误信息(通常称为幻觉问题)的潜力对其部署构成了重大风险。解决此问题的一种常见方法是检索相关知识,并在输入中将该知识微调至LLM。不幸的是,此方法导致高昂的训练成本,并可能对多任务模型造成灾难性遗忘。为克服这些限制,我们提出了一种知识约束解码方法,称为KCTS(知识约束树搜索),该方法通过知识分类器评分和MCTS(蒙特卡洛树搜索),在每个解码步骤引导冻结的语言模型生成与参考知识对齐的文本。为了将序列级知识分类器适应于词元级引导,我们还提出了一种新颖的词元级幻觉检测方法,称为RIPA(奖励拐点近似)。我们在基于知识的对话和抽象摘要上的实证结果证明了KCTS作为一种即插即用、模型无关的解码方法的优势,能够有效减少自然语言生成中的幻觉。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable human-level natural language generation capabilities. However, their potential to generate misinformation, often called the hallucination problem, poses a significant risk to their deployment. A common approach to address this issue is to retrieve relevant knowledge and fine-tune the LLM with the knowledge in its input. Unfortunately, this method incurs high training costs and may cause catastrophic forgetting for multi-tasking models. To overcome these limitations, we propose a knowledge-constrained decoding method called KCTS (Knowledge-Constrained Tree Search), which guides a frozen LM to generate text aligned with the reference knowledge at each decoding step using a knowledge classifier score and MCTS (Monte-Carlo Tree Search). To adapt the sequence-level knowledge classifier to token-level guidance, we also propose a novel token-level hallucination detection method called RIPA (Reward Inflection Point Approximation). Our empirical results on knowledge-grounded dialogue and abstractive summarization demonstrate the strength of KCTS as a plug-and-play, model-agnostic decoding method that can effectively reduce hallucinations in natural language generation.

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

↑