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

置信度感知子结构束搜索(CABS):缓解大型语言模型结构化数据生成中的幻觉

Confidence-Aware Sub-Structure Beam Search (CABS): Mitigating Hallucination in Structured Data Generation with Large Language Models

University of Southern California(南加州大学);Amazon(亚马逊)

Chengwei Wei, Kee Kiat Koo, Amir Tavanaei, Karim Bouyarmane

AI总结:

针对LLM结构化数据生成中的幻觉问题,提出基于Confidence Network的子结构级置信度估计方法及CABS解码算法,通过迭代优化提示显著提升生成忠实度,在产品属性生成任务上Recall较传统方法提升16.7%。

摘要:

大型语言模型(LLMs)促进了结构化数据生成,在表格数据、文档数据库、产品目录等领域有广泛应用。然而,由于错误的引用或幻觉,对生成真实性的担忧依然存在,因此需要引入某种形式的模型置信度来缓解这一问题。现有的LLM生成置信度估计方法主要关注单个token级别或整个输出序列级别的置信度,这限制了它们在结构化数据生成中的适用性,因为结构化数据在子结构级别包含了独立和相关条目的复杂混合。在本文中,我们首先研究生成的子结构级数据的置信度估计方法。我们引入了Confidence Network(置信度网络)的概念,它应用于LLM transformer的隐藏状态上,比传统的token条件概率提供了更具针对性的估计。我们进一步提出了Confidence-Aware sub-structure Beam Search(CABS,置信度感知子结构束搜索),这是一种在结构化数据生成中于子结构级别运行的新型解码方法。CABS通过考虑来自Confidence Network的每个子结构级数据的置信度分数并迭代优化提示,增强了结构化数据生成的忠实度。结果显示,在产品属性生成问题上,CABS在90%精度下平均比传统的token级束搜索高出16.7%的Recall。

英文摘要:

Large Language Models (LLMs) have facilitated structured data generation, with applications in domains like tabular data, document databases, product catalogs, etc. However, concerns persist about generation veracity due to incorrect references or hallucinations, necessitating the incorporation of some form of model confidence for mitigation. Existing confidence estimation methods on LLM generations primarily focus on the confidence at the individual token level or the entire output sequence level, limiting their applicability to structured data generation, which consists of an intricate mix of both independent and correlated entries at the sub-structure level. In this paper, we first investigate confidence estimation methods for generated sub-structure-level data. We introduce the concept of Confidence Network that applies on the hidden state of the LLM transformer, as a more targeted estimate than the traditional token conditional probability. We further propose Confidence-Aware sub-structure Beam Search (CABS), a novel decoding method operating at the sub-structure level in structured data generation. CABS enhances the faithfulness of structured data generation by considering confidence scores from the Confidence Network for each sub-structure-level data and iteratively refining the prompts. Results show that CABS outperforms traditional token-level beam search for structured data generation by 16.7% Recall at 90% precision averagely on the problem of product attribute generation.

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

↑