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

基于辅助预测任务的句子嵌入细粒度分析

Fine-grained Analysis of Sentence Embeddings Using Auxiliary Prediction Tasks

Bar-Ilan University(巴伊兰大学);IBM Haifa Research Lab(IBM海法研究实验室);MIT Computer Science and Artificial Intelligence Laboratory(麻省理工学院计算机科学与人工智能实验室)

Yossi Adi, Einat Kermany, Yonatan Belinkov, Ofer Lavi, Yoav Goldberg

摘要:

有很多研究兴趣将可变长度的句子编码成固定长度的向量,以保持句子的含义。两种常见的方法包括基于平均词向量的表示,以及基于递归神经网络(如LSTM)的隐藏状态的表示。句子向量被用作后续机器学习任务或深度学习背景下的预训练的特征。然而,人们对这些句子表征中编码的属性以及它们捕获的语言信息知之甚少。我们提出了一个框架,有利于更好地理解编码表示。我们围绕句子结构的孤立方面(即句子长度,单词内容和词序)定义预测任务,并通过训练分类器的能力来对表示进行评分,以在使用表示作为输入时解决每个预测任务。我们通过分析不同的句子表示机制来展示这种方法的潜在贡献。分析揭示了不同的句子嵌入方法相对于这些低级别的预测任务的相对优势,以及编码向量的维数对结果表示的影响。

英文摘要:

There is a lot of research interest in encoding variable length sentences into fixed length vectors, in a way that preserves the sentence meanings. Two common methods include representations based on averaging word vectors, and representations based on the hidden states of recurrent neural networks such as LSTMs. The sentence vectors are used as features for subsequent machine learning tasks or for pre-training in the context of deep learning. However, not much is known about the properties that are encoded in these sentence representations and about the language information they capture. We propose a framework that facilitates better understanding of the encoded representations. We define prediction tasks around isolated aspects of sentence structure (namely sentence length, word content, and word order), and score representations by the ability to train a classifier to solve each prediction task when using the representation as input. We demonstrate the potential contribution of the approach by analyzing different sentence representation mechanisms. The analysis sheds light on the relative strengths of different sentence embedding methods with respect to these low level prediction tasks, and on the effect of the encoded vector's dimensionality on the resulting representations.

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

↑