Skip to main content
QUICK REVIEW

[Paper Review] Locating Language-Specific Information in Contextualized Embeddings

Sheng Liang, Philipp Dufter|arXiv (Cornell University)|Sep 16, 2021
Topic ModelingComputer Science15 references4 citations
TL;DR

This paper identifies and analyzes language-specific information in multilingual contextualized embeddings, showing it is distributed across multiple dimensions and can be projected into a linear subspace of dimensionality approximately equal to the number of languages. Using DensRay and LDA for linear projection, the authors find language-specific information is most separable in lower layers and propose an activity regularization (L-DAR) that improves zero-shot cross-lingual transfer performance on NER and POS tagging tasks.

ABSTRACT

Multilingual pretrained language models (MPLMs) exhibit multilinguality and are well suited for transfer across languages. Most MPLMs are trained in an unsupervised fashion and the relationship between their objective and multilinguality is unclear. More specifically, the question whether MPLM representations are language-agnostic or they simply interleave well with learned task prediction heads arises. In this work, we locate language-specific information in MPLMs and identify its dimensionality and the layers where this information occurs. We show that language-specific information is scattered across many dimensions, which can be projected into a linear subspace. Our study contributes to a better understanding of MPLM representations, going beyond treating them as unanalyzable blobs of information.

Motivation & Objective

  • To investigate where and how language-specific information is encoded in multilingual pretrained language models (MPLMs), particularly whether it is language-agnostic or scattered across dimensions.
  • To determine the dimensionality of the language-specific subspace in MPLMs and identify the layers where this information is most prominent.
  • To evaluate whether preserving language-specific information during fine-tuning improves zero-shot cross-lingual transfer performance.
  • To propose and validate an activity regularization method (L-DAR) that encourages retention of language-specific information during fine-tuning.

Proposed method

  • The authors use two linear projection methods—DensRay and Linear Discriminant Analysis (LDA)—to locate language-specific subspaces in multilingual BERT (mBERT) representations.
  • DensRay performs orthogonal transformation to maximize inter-language and minimize intra-language distances in the embedding space.
  • LDA identifies discriminative directions between language classes using class centroids and overall mean, with non-orthogonal transformation.
  • The dimensionality of the language-specific subspace is bounded by the matrix rank in the objective functions of both methods, with an upper bound near the number of languages.
  • An activity regularization (L-DAR) is proposed, applying the learned projection to hidden representations during fine-tuning to preserve language-specific information.
  • Experiments are conducted on probing tasks (language identification, linguistic typology, language similarity) and downstream NLP tasks (POS tagging, NER) with zero-shot cross-lingual transfer.

Experimental results

Research questions

  • RQ1Where in the model architecture is language-specific information most concentrated—across dimensions and layers?
  • RQ2What is the intrinsic dimensionality of the language-specific subspace in multilingual contextualized embeddings?
  • RQ3Can preserving language-specific information during fine-tuning improve zero-shot cross-lingual transfer performance?
  • RQ4How do different linear projection methods (DensRay vs. LDA) compare in identifying language-specific subspaces?

Key findings

  • Language-specific information in mBERT is scattered across many dimensions but can be projected into a linear subspace with dimensionality approximately equal to the number of languages.
  • Language-specific information is most separable in lower layers of the network, with better language discrimination in early layers.
  • The proposed L-DAR regularization method achieves small but consistent improvements in zero-shot cross-lingual transfer, with a 0.3% F1 gain on POS tagging and 0.5% on multisource POS, and a 0.6% drop on NER, suggesting task-dependent effects.
  • L-DAR outperforms baseline mBERT on upper layers in zero-shot POS tagging, indicating better preservation of language-specific features in deeper layers.
  • The upper bound of the language-specific subspace dimensionality is determined by the number of languages, not by model size or architecture.
  • DensRay and LDA both identify meaningful language-specific subspaces, but LDA shows slightly better performance on downstream tasks due to its use of global mean in class separation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.