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

在知识图谱上训练语言模型:关于幻觉及其可检测性的洞见

Training Language Models on the Knowledge Graph: Insights on Hallucinations and Their Detectability

Google DeepMind(谷歌DeepMind)
Jiri Hron, Laura Culp, Gamaleldin Elsayed, Rosanne Liu, Ben Adlam, Maxwell Bileschi, Bernd Bohnet, JD Co-Reyes, Noah Fiedel, C. Daniel Freeman, Izzeddin Gur, Ka… 展开作者

Jiri Hron, Laura Culp, Gamaleldin Elsayed, Rosanne Liu, Ben Adlam, Maxwell Bileschi, Bernd Bohnet, JD Co-Reyes, Noah Fiedel, C. Daniel Freeman, Izzeddin Gur, Kathleen Kenealy, Jaehoon Lee, Peter J. Liu, Gaurav Mishra, Igor Mordatch, Azade Nova, Roman Novak, Aaron Parisi, Jeffrey Pennington, Alex Rizkowsky, Isabelle Simpson, Hanie Sedghi, Jascha Sohl-dickstein, Kevin Swersky, Sharad Vikram, Tris Warkentin, Lechao Xiao, Kelvin Xu, Jasper Snoek, Simon Kornblith

AI总结:

该研究构建基于知识图谱的数据集训练不同规模语言模型,发现大模型幻觉更少但控制低幻觉率成本极高,且模型规模越大幻觉越难被检测。

摘要:

尽管语言模型(LMs)的诸多能力会随着训练预算的提升而增强,但模型规模对幻觉的影响尚未被完全理解。幻觉存在多种形式,且目前尚无普遍接受的定义。因此,我们仅聚焦研究那些正确答案会逐字出现在训练集中的幻觉情况。为了完全控制训练数据内容,我们构建了一个基于知识图谱(KG)的数据集,并用它训练了一系列规模逐渐增大的语言模型。我们发现,对于固定数据集,规模更大、训练时长更长的语言模型产生的幻觉更少。然而,要将训练数据上的幻觉率控制在≤5%,所需的模型规模要比Hoffmann等人(2022)报告的最优规模大一个数量级,因此计算量也要多一个数量级。考虑到这种高昂成本,我们研究了幻觉检测器与模型规模的关联。我们发现,在固定语言模型的输出上,检测器规模的提升会改善检测性能,但语言模型的规模与其幻觉的可检测性之间存在负相关关系。

英文摘要:

While many capabilities of language models (LMs) improve with increased training budget, the influence of scale on hallucinations is not yet fully understood. Hallucinations come in many forms, and there is no universally accepted definition. We thus focus on studying only those hallucinations where a correct answer appears verbatim in the training set. To fully control the training data content, we construct a knowledge graph (KG)-based dataset, and use it to train a set of increasingly large LMs. We find that for a fixed dataset, larger and longer-trained LMs hallucinate less. However, hallucinating on $\leq5$% of the training data requires an order of magnitude larger model, and thus an order of magnitude more compute, than Hoffmann et al. (2022) reported was optimal. Given this costliness, we study how hallucination detectors depend on scale. While we see detector size improves performance on fixed LM's outputs, we find an inverse relationship between the scale of the LM and the detectability of its hallucinations.

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

↑