arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.05406cs.CL
收藏

用于上下文常识推理的对抗性Transformer语言模型

Adversarial Transformer Language Models for Contextual Commonsense Inference

Massachusetts Institute of Technology(麻省理工学院);Boston University(波士顿大学);Dartmouth College(达特茅斯学院)

Pedro Colon-Hernandez, Henry Lieberman, Yida Xin, Claire Yin, Cynthia Breazeal, Peter Chin

摘要:

语境化或话语感知常识推断是生成连贯常识断言(即,一个故事,一个故事,一个故事。该任务的一些问题是:对推断事实的主题缺乏可控性;在训练期间缺乏常识知识;以及可能的幻觉或虚假事实。在这项工作中,我们利用一个Transformer模型为这项任务,并开发技术,以解决上述问题的任务。我们通过引入一种我们称之为“暗示”的新技术来控制推理。提示是一种语言模型提示,它利用硬提示(特定单词)和软提示(虚拟可学习模板)。这作为一个控制信号来建议语言模型“谈论什么”。接下来,我们建立了一个方法,执行联合推理与多个常识知识库。常识的联合推理需要小心,因为它是不精确的,一般性的水平更灵活。您希望确保结果对于上下文“仍然有意义”。为此,我们将来自三个知识图谱(ConceptNet,ATOMIC 2020和GLUCOSE)的断言的文本版本与故事和目标句子对齐。这种组合使我们能够训练单个模型来执行与多个知识图谱的联合推理。我们展示了三个知识图谱联合推理的实验结果。我们的最后一个贡献是探索一个GAN架构,生成上下文的常识断言,并通过一个可扩展性来对它们进行评分。其结果是一个集成系统的上下文常识推理的故事,可以可控地生成似是而非的常识断言,并利用多个常识知识库之间的联合推理。

英文摘要:

Contextualized or discourse aware commonsense inference is the task of generating coherent commonsense assertions (i.e., facts) from a given story, and a particular sentence from that story. Some problems with the task are: lack of controllability for topics of the inferred facts; lack of commonsense knowledge during training; and, possibly, hallucinated or false facts. In this work, we utilize a transformer model for this task and develop techniques to address the aforementioned problems in the task. We control the inference by introducing a new technique we call "hinting". Hinting is a kind of language model prompting, that utilizes both hard prompts (specific words) and soft prompts (virtual learnable templates). This serves as a control signal to advise the language model "what to talk about". Next, we establish a methodology for performing joint inference with multiple commonsense knowledge bases. Joint inference of commonsense requires care, because it is imprecise and the level of generality is more flexible. You want to be sure that the results "still make sense" for the context. To this end, we align the textual version of assertions from three knowledge graphs (ConceptNet, ATOMIC2020, and GLUCOSE) with a story and a target sentence. This combination allows us to train a single model to perform joint inference with multiple knowledge graphs. We show experimental results for the three knowledge graphs on joint inference. Our final contribution is exploring a GAN architecture that generates the contextualized commonsense assertions and scores them as to their plausibility through a discriminator. The result is an integrated system for contextual commonsense inference in stories, that can controllably generate plausible commonsense assertions, and takes advantage of joint inference between multiple commonsense knowledge bases.

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

↑