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

语言模型嵌入空间中词汇风格特征的表示

Representation Of Lexical Stylistic Features In Language Models' Embedding Space

University of Pennsylvania(宾夕法尼亚大学)

Qing Lyu, Marianna Apidianaki, Chris Callison-Burch

AI总结:

本文提出利用少量种子对在语言模型嵌入空间中构建词汇风格(复杂性、正式性、比喻性)的向量表示,并发现静态嵌入在词级更优、上下文模型在句级更优,且各向异性可经标准化部分修正。

摘要:

预训练语言模型(LMs)的表示空间编码了关于词语及其关系(如相似性、上下位关系、多义性)以及抽象语义概念(如强度)的丰富信息。本文证明,词汇风格概念如复杂性、正式性和比喻性也可以在该空间中被识别。我们展示仅从少量种子对中即可为每个风格概念推导出向量表示。利用这些向量,我们可以通过在相应的嵌入空间中执行简单计算,从这些维度刻画新文本。我们在五个数据集上进行了实验,发现静态嵌入在词语和短语层面更准确地编码这些特征,而上下文语言模型在句子层面表现更好。上下文表示在词语层面性能较低,部分原因在于其向量空间的各向异性,这可以通过标准化等技术在一定程度上加以纠正。

英文摘要:

The representation space of pretrained Language Models (LMs) encodes rich information about words and their relationships (e.g., similarity, hypernymy, polysemy) as well as abstract semantic notions (e.g., intensity). In this paper, we demonstrate that lexical stylistic notions such as complexity, formality, and figurativeness, can also be identified in this space. We show that it is possible to derive a vector representation for each of these stylistic notions from only a small number of seed pairs. Using these vectors, we can characterize new texts in terms of these dimensions by performing simple calculations in the corresponding embedding space. We conduct experiments on five datasets and find that static embeddings encode these features more accurately at the level of words and phrases, whereas contextualized LMs perform better on sentences. The lower performance of contextualized representations at the word level is partially attributable to the anisotropy of their vector space, which can be corrected to some extent using techniques like standardization.

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

↑