Skip to main content
QUICK REVIEW

[论文解读] Probing Pretrained Language Models for Lexical Semantics

Ivan Vulić, Edoardo Maria Ponti|arXiv (Cornell University)|Oct 12, 2020
Topic ModelingComputer Science被引用 2
一句话总结

本文系统地探究了预训练语言模型(如 BERT、RoBERTa)在六种类型学上各不相同的语言中的表现,以提取用于词汇语义任务的静态、类型级词嵌入。研究发现,单语模型、上下文内编码、排除特殊标记以及对较低 Transformer 层进行平均,能获得更优的性能;基于 BERT 的嵌入优于传统的 fastText 向量,而词汇知识分布在多个层中,而非集中于少数参数。

ABSTRACT

The success of large pretrained language models (LMs) such as BERT and RoBERTa has sparked interest in probing their representations, in order to unveil what types of knowledge they implicitly capture. While prior research focused on morphosyntactic, semantic, and world knowledge, it remains unclear to which extent LMs also derive lexical type-level knowledge from words in context. In this work, we present a systematic empirical analysis across six typologically diverse languages and five different lexical tasks, addressing the following questions: 1) How do different lexical knowledge extraction strategies (monolingual versus multilingual source LM, out-of-context versus in-context encoding, inclusion of special tokens, and layer-wise averaging) impact performance? How consistent are the observed effects across tasks and languages? 2) Is lexical knowledge stored in few parameters, or is it scattered throughout the network? 3) How do these representations fare against traditional static word vectors in lexical tasks? 4) Does the lexical information emerging from independently trained monolingual LMs display latent similarities? Our main results indicate patterns and best practices that hold universally, but also point to prominent variations across languages and tasks. Moreover, we validate the claim that lower Transformer layers carry more type-level lexical knowledge, but also show that this knowledge is distributed across multiple layers.

研究动机与目标

  • 探究不同的词汇表示提取策略在多种语言和任务中的表现影响。
  • 确定预训练语言模型中的词汇知识是否集中于少数参数,还是分布于多个层中。
  • 将基于 BERT 的静态词嵌入与传统的静态词向量(如 fastText)进行基准对比。
  • 检验独立训练的单语模型是否为翻译对学习到结构相似的表示。

提出的方法

  • 系统评估五项词汇任务:词汇语义相似度(LSIM)、词类比(WA)、双语词典归纳(BLI)、跨语言信息检索(CLIR)以及词汇关系预测(RELP)。
  • 通过平均单语和多语语言模型特定 Transformer 层的上下文感知标记表示,提取静态词嵌入。
  • 测试多种配置选择:单语与多语源模型、上下文内与上下文外编码、[CLS] 和 [SEP] 标记的包含与否,以及分层平均策略。
  • 使用 CKA(中心化核对齐)相似度比较不同语言和模型层之间的表示,验证翻译对的结构相似性。
  • 采用斯皮尔曼等级相关系数将 CKA 相似度分数与 BLI 性能关联,评估近似同构性。
  • 进行消融研究,以隔离每个配置组件对任务性能的影响。

实验结果

研究问题

  • RQ1词汇提取策略是否在不同语言和任务间具有泛化能力,还是需要针对语言和任务进行特定调优?
  • RQ2词汇知识是否集中于 Transformer 编码器的少数参数中,还是分散于多个层中?
  • RQ3基于 BERT 的静态词嵌入在词汇任务中与传统的静态词嵌入(如 fastText)相比表现如何?
  • RQ4独立在不同语言中训练的单语语言模型是否为翻译对学习到相似的表示?这种相似性在多大程度上取决于语言的类型学距离?

主要发现

  • 单语语言模型在词汇任务中始终优于多语模型(如 mBERT),其中 BERT-Base 和 BERT-Large 在 LSIM 任务上的峰值分数分别为 0.518 和 0.531。
  • 排除特殊标记([CLS]、[SEP])并使用上下文内编码,在所有语言和任务中均显著提升性能。
  • 较低的 Transformer 层(L≤8)包含大部分类型级词汇知识,且对这些层进行分层平均相比单层提取能获得更优结果。
  • 基于 BERT 的静态词嵌入在 LSIM、WA 和 RELP 任务中优于 fastText,证明其在词汇语义任务中的竞争力与优越性。
  • 真实翻译对的 CKA 相似度显著高于随机词对,且对于类型学上更相似的语言对(如 EN–DE 与 EN–TR),相似度更高。
  • CKA 相似度与 BLI 性能之间存在强斯皮尔曼等级相关性(ρ = 1.0, 0.83, 0.99),证实单语表示中更高的结构相似性有助于跨语言对齐。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。