[论文解读] Mention Memory: incorporating textual knowledge into Transformers through entity mention attention
本文提出 tome,一种通过将 15000 万个维基百科实体提及的半参数化提及记忆——即密集向量表示——整合到注意力机制中的 Transformer 模型,以增强事实推理能力。该模型在无需微调的情况下,仅通过更新记忆中的新实体,即可在开放域陈述验证和基于实体的问题回答任务上实现最先进性能。
Natural language understanding tasks such as open-domain question answering often require retrieving and assimilating factual information from multiple sources. We propose to address this problem by integrating a semi-parametric representation of a large text corpus into a Transformer model as a source of factual knowledge. Specifically, our method represents knowledge with `mention memory', a table of dense vector representations of every entity mention in a corpus. The proposed model - TOME - is a Transformer that accesses the information through internal memory layers in which each entity mention in the input passage attends to the mention memory. This approach enables synthesis of and reasoning over many disparate sources of information within a single Transformer model. In experiments using a memory of 150 million Wikipedia mentions, TOME achieves strong performance on several open-domain knowledge-intensive tasks, including the claim verification benchmarks HoVer and FEVER and several entity-based QA benchmarks. We also show that the model learns to attend to informative mentions without any direct supervision. Finally we demonstrate that the model can generalize to new unseen entities by updating the memory without retraining.
研究动机与目标
- 解决如何可靠地将大规模文本语料中的事实知识整合到神经语言模型中的挑战。
- 在无需监督检索信号的情况下,实现对多样化事实信息的细粒度、多源推理。
- 设计一种可扩展且通用的外部知识集成方法,用于 Transformer 模型,支持对未见实体的零样本泛化。
- 证明注意力机制对密集的、半参数化的记忆进行注意力操作,可在知识密集型自然语言处理任务上超越现有的检索-阅读和聚合实体基线模型。
提出的方法
- 该方法通过使用预训练的提及编码器,将英文维基百科中所有实体提及(共 15000 万个)编码为密集向量,构建提及记忆。
- tome 模型使用记忆注意力层,使输入段落中的每个提及能够关注提及记忆中相关的条目,从而实现对特定实体属性或关系的检索。
- 在微调过程中,提及记忆保持冻结状态,使模型能够在不重新训练记忆组件的情况下进行事实信息推理。
- 该模型采用 TOMEBlocks——由记忆注意力和标准 Transformer 块组合而成的堆叠模块——实现在单次前向传播中进行多跳和多源推理。
- 通过在不重新训练主模型的前提下更新记忆中的新实体提及,该方法支持零样本泛化。
- 该模型仅使用验证或问答准确率作为监督信号进行端到端训练,而无需对检索到的记忆条目施加直接监督。
实验结果
研究问题
- RQ1Transformer 模型能否通过使用实体提及的半参数化记忆,有效从大规模语料中检索并推理细粒度的事实信息?
- RQ2对密集且预先编码的提及记忆进行注意力操作,是否能在知识密集型任务上优于聚合实体检索或检索-阅读基线模型?
- RQ3该模型能否在未对检索质量施加任何显式监督的情况下,学会关注信息丰富且相关的提及?
- RQ4通过仅更新记忆而不重新训练主网络,该模型在多大程度上能泛化到未见过的实体?
- RQ5记忆大小如何影响性能?模型是否从更大、更全面的记忆中获益?
主要发现
- 在 HoVer 和 FEVER 陈述验证基准上,tome 实现了最先进性能,显著优于实体聚合基线和检索-阅读模型。
- 该模型无需对检索质量施加直接监督,即可学会关注高度具体且信息丰富的提及,如专辑排名和制作细节。
- 消融实验证实提及记忆对性能至关重要:当移除记忆或替换为较小的记忆时,准确率显著下降。
- 该模型对未见实体具有良好的泛化能力:在使用完整记忆进行评估时,零样本模型(tome-unseen)在 TriviaQA 和 ComplexWebQuestions 上的性能与完整模型相当。
- 性能随记忆大小平滑提升,但收益递减,表明大规模语料中存在重叠或冗余的提及。
- 该模型在基于实体的问答基准上取得了强劲结果,包括在 TriviaQA 开发集上达到 17.4% 的准确率,在 ComplexWebQuestions 开发集上达到 16.4%,优于可比基线模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。