隐式模式网络
Hidden Schema Networks
AI总结:
本文提出隐式模式网络,通过潜在图上的随机游走将预训练语言模型的输出显式符号化,以增强组合性与推理能力,并验证其在主题情感编码及常识推理任务中的有效性。
摘要:
大型预训练语言模型能够推断出强大的表征,这些表征隐式地编码了丰富的语义和句法内容。在本工作中,我们引入了一种新颖的神经语言模型,该模型通过归纳偏置强制建立显式的关系结构,从而在预训练语言模型的输出表征之上实现组合性。具体而言,该模型将句子编码为符号序列(组合表征),这些符号对应于有偏随机游走者在全局潜在图上访问的节点,并推断该潜在图的后验分布。我们首先证明该模型能够从人工生成的随机token序列数据集中发现真实图结构。接着,我们分别利用预训练的BERT和GPT-2语言模型作为编码器和解码器,从自然语言数据集中推断符号网络(模式)。实验表明:(i)推断出的符号可以被解释为编码语言的不同方面,例如主题或情感;(ii)类似GPT的模型可以有效地以符号表征为条件进行生成。最后,我们探索在从常识知识库推断出的模式网络上训练自回归的随机游走“推理”模型,并利用采样得到的路径来提升预训练语言模型在常识If-Then推理任务上的性能。
英文摘要:
Large, pretrained language models infer powerful representations that encode rich semantic and syntactic content, albeit implicitly. In this work we introduce a novel neural language model that enforces, via inductive biases, explicit relational structures which allow for compositionality onto the output representations of pretrained language models. Specifically, the model encodes sentences into sequences of symbols (composed representations), which correspond to the nodes visited by biased random walkers on a global latent graph, and infers the posterior distribution of the latter. We first demonstrate that the model is able to uncover ground-truth graphs from artificially generated datasets of random token sequences. Next, we leverage pretrained BERT and GPT-2 language models as encoder and decoder, respectively, to infer networks of symbols (schemata) from natural language datasets. Our experiments show that (i) the inferred symbols can be interpreted as encoding different aspects of language, as e.g. topics or sentiments, and that (ii) GPT-like models can effectively be conditioned on symbolic representations. Finally, we explore training autoregressive, random walk ``reasoning" models on schema networks inferred from commonsense knowledge databases, and using the sampled paths to enhance the performance of pretrained language models on commonsense If-Then reasoning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。