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

边写边思考:假设验证促进忠实的知识到文本生成

Think While You Write: Hypothesis Verification Promotes Faithful Knowledge-to-Text Generation

University of Edinburgh(爱丁堡大学);Apple(苹果公司)

Yifu Qiu, Varun Embar, Shay B. Cohen, Benjamin Han

AI总结:

本文提出无需重训的解码方法 TWEAK,通过 HVM 验证生成假设以减少知识到文本幻觉,并基于 FATE 训练专用 HVM,在两个生成器上显著提升忠实度且质量损失极小。

摘要:

知识到文本生成器通常难以忠实地为输入事实生成描述:它们可能产生与输入相矛盾的幻觉,或描述输入中不存在的事实。为减少幻觉,我们提出一种仅用于解码的方法 TWEAK(Think While Effectively Articulating Knowledge,即有效表达知识时同时思考),该方法可与任何生成器集成且无需重新训练。TWEAK 将每个解码步骤生成的序列及其未来序列视为假设,并使用假设验证模型(HVM),根据这些假设得到输入事实支持的程度对每个生成候选进行排序。我们首先通过使用自然语言推理(NLI)模型作为 HVM 来证明 TWEAK 的有效性,并报告其在忠实度上有所提升,同时对质量的影响极小。随后,我们用一个任务特定的 HVM 替换 NLI 模型,该 HVM 使用首创数据集 FATE(Fact-Aligned Textual Entailment,事实对齐文本蕴含)训练,该数据集将输入事实与其原始描述和扰动描述配对。我们用两个生成器测试 TWEAK,表现最佳的 TWEAK 变体在两个模型上的分布内/分布外评估中,忠实度(FactKB)平均分别提升 2.24/7.17 分,而质量(BERTScore)仅下降 0.14/0.32 分。

英文摘要:

Knowledge-to-text generators often struggle to faithfully generate descriptions for the input facts: they may produce hallucinations that contradict the input, or describe facts not present in the input. To reduce hallucinations, we propose a decoding-only method, TWEAK (Think While Effectively Articulating Knowledge), which can be integrated with any generator without retraining. TWEAK treats the generated sequences at each decoding step and its future sequences as hypotheses, and ranks each generation candidate based on the extent to which their hypotheses are supported by the input facts using a Hypothesis Verification Model (HVM). We first demonstrate the effectiveness of TWEAK by using a Natural Language Inference (NLI) model as the HVM and report improved faithfulness with a minimal impact on the quality. We then replace the NLI model with a task-specific HVM trained with a first-of-a-kind dataset, FATE (Fact-Aligned Textual Entailment), which pairs input facts with their original and perturbed descriptions. We test TWEAK with two generators, and the best TWEAK variants improve on average for the two models by 2.24/7.17 points in faithfulness (FactKB) in in/out-of-distribution evaluations, respectively, and with only a 0.14/0.32-point decline in quality (BERTScore).

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

↑