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

旋转King到Queen:嵌入空间中作为正交变换的单词关系

Rotate King to get Queen: Word Relationships as Orthogonal Transformations in Embedding Space

Stanford University(斯坦福大学);University of Toronto(多伦多大学)

Kawin Ethayarajh

摘要:

词嵌入的一个显著特性是词关系可以作为线性子结构存在于嵌入空间中。例如,$\textit{gender}$对应于$\vec{\textit{woman}} - \vec{\textit{man}}$和$\vec{\textit{queen}} - \vec{\textit{king}}$。这反过来又允许用算术来解决单词类比:$\vec{\textit{king}} - \vec{\textit{man}} + \vec{\textit{woman}} \approx \vec{\textit{queen}}$。这个属性值得注意,因为它表明在词嵌入上训练的模型可以很容易地学习几何翻译等关系。然而,没有证据表明模型$\textit{exclusively}$以这种方式表示关系。我们记录了下游模型可能学习这些关系的另一种方式:正交和线性变换。例如,给定$\textit{gender}$的平移向量,我们可以找到表示旋转和反射的正交矩阵$R$,使得$R(\vec{\textit{king}}) \approx \vec{\textit{queen}}$和$R(\vec{\textit{man}}) \approx \vec{\textit{woman}}$。使用正交变换的类比推理几乎与使用向量算术一样精确;使用线性变换比两者都精确。我们的研究结果表明,这些转换可以很好地表示词的关系作为翻译向量。

英文摘要:

A notable property of word embeddings is that word relationships can exist as linear substructures in the embedding space. For example, $\textit{gender}$ corresponds to $\vec{\textit{woman}} - \vec{\textit{man}}$ and $\vec{\textit{queen}} - \vec{\textit{king}}$. This, in turn, allows word analogies to be solved arithmetically: $\vec{\textit{king}} - \vec{\textit{man}} + \vec{\textit{woman}} \approx \vec{\textit{queen}}$. This property is notable because it suggests that models trained on word embeddings can easily learn such relationships as geometric translations. However, there is no evidence that models $\textit{exclusively}$ represent relationships in this manner. We document an alternative way in which downstream models might learn these relationships: orthogonal and linear transformations. For example, given a translation vector for $\textit{gender}$, we can find an orthogonal matrix $R$, representing a rotation and reflection, such that $R(\vec{\textit{king}}) \approx \vec{\textit{queen}}$ and $R(\vec{\textit{man}}) \approx \vec{\textit{woman}}$. Analogical reasoning using orthogonal transformations is almost as accurate as using vector arithmetic; using linear transformations is more accurate than both. Our findings suggest that these transformations can be as good a representation of word relationships as translation vectors.

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

↑