emnlp论文阅读笔记 2021-04-12(未允禁转)

2021-04-12  本文已影响0人  9_SooHyun

Language Generation with Multi-Hop Reasoning on Commonsense Knowledge Graph

1.研究背景

2.文章目的

基于常识知识图谱的推理,完成语言生成任务。关键词:知识图谱推理

3.文章贡献

提出基于常识知识图谱的多跳推理文本生成模型

GRF模型架构图
  1. use GCN to encode the static graph context to obtain graph-aware representations for the concepts and the relations (GCN基础见4.1、4.2)。即进行知识图谱的编码表示

节点特征更新:


GCN节点特征更新

其中,N(v) denote v's neighborhood which consist of pairs of node u and the connected relation r
(2)式提取了和节点v相接的所有周围边与节点的特征,(3)式利用(2)式得到的周围特征完成v节点特征的更新

结构特征更新:


GCN结构特征更新

比较简单,直接利用线性变换进行更新

注意,文章认为从一个庞大的知识图谱中进行推理太复杂,所以它从输入的语料抽取source concepts得到一个子知识图谱然后再推理。对应原文:The sub-graph consists of inter-connected H-hop paths starting from the source concepts Cx extracted from the input text.

  1. use GPT-2 to model the sequence。GPT-2使用「transformer 解码器模块」构建,一次输出一个token,一般用于实现文本生成

  2. devise a dynamic reasoning module。 this module utilizes both structural patterns of the knowledge graph(来自1) and contextual information (来自2) to propagate evidence along relational paths,即利用知识图谱的信息 + 文本的上下文信息进行推理。推理结果通过节点分数score来确定

    首先,初始化知识图谱G各个节点的分值——Initially, nodes correspond to the concepts in Cx are given a score of 1 while other unvisited nodes are assigned with 0.

    然后,通过 multi-hop reasoning on the relational paths on G 更新节点分值。对于知识图谱G,利用已经访问过的节点来更新未访问的邻接节点的得分,多跳直到访问完G中所有节点,实现对所有节点的得分更新。对应原文:Specifically, the module broadcasts information on G,by updating the score of outer nodes with their visited neighbours,for multiple hops until all the nodes on G are visited.

ns(v)表示节点v的score,则


更新score公式

最后,对所有节点的score做softmax归一化,得到concepts distribution

  1. final generation distribution with gate control。【知识图谱的concepts distribution】和【直接decode hidden state得到的仅基于输入语料的standard vocabulary distribution】的加权分布作为最终的输出分布,确定next token

4.相关知识基础

4.1 Graph

设图G=(V, E),则图数据的特征分为

4.2 GCN(Graph Convolutional Network)

介绍见https://zhuanlan.zhihu.com/p/37091549

5.实验

5.1三个实验
5.2 Extracting Sub-Graphs as Knowledge Grounding

从input中抽取概念形成子知识图谱,主要步骤如下

上一篇 下一篇

猜你喜欢

热点阅读