Fine-grained Multi-lingual Disentangled Autoencoder for Language-agnostic Representation Learning

Zetian Wu, Zhongkai Sun, Zhengyang Zhao, Sixing Lu, Chengyuan Ma, Chenlei Guo2022

Abstract

Encoding both language-specific and language-agnostic information into a single high-dimensional space is a common practice of pre-trained Multi-lingual Language Models (pMLM). Such encoding has been shown to perform effectively on natural language tasks requiring semantics of the whole sentence. However, its effectiveness appears to be limited on tasks requiring partial information of the utterance. In this work, a novel Fine-grained Multilingual Disentangled Autoencoder (FMDA) is proposed to disentangle fine-grained semantic information from language-specific information in a multi-lingual setting. FMDA is capable of successfully extracting the disentangled template semantic and residual semantic representations. Experiments conducted on the MASSIVE dataset demonstrate that the disentangled encoding can boost each other during the training, consistently outperforming the original pMLM and strong baselines on retrieval tasks across multiple languages.

Introduction

Modern NLP relies heavily on pre-trained Multilingual Language Models (pMLMs) like XLM-R to map diverse languages into a unified vector space. While successful for global semantic tasks like translation, these models often entangle language-specific features (e.g., syntax, grammar) with language-agnostic meaning. This "smoothie problem" makes it difficult to isolate specific components of an utterance, such as its structural template or its specific entities. For virtual assistants, this entanglement hinders tasks like template retrieval—finding sentences with identical structures but different slot values (e.g., "Play [Artist]" vs. "Play [Song]").

Methodology

We introduce the Fine-grained Multilingual Disentangled Autoencoder (FMDA), a lightweight module that operates on top of frozen pMLM embeddings. FMDA aims to decompose an utterance embedding ($emb_{utt}$) into three specialized components:

  1. Language-Specific ($emb_{lang}$): Captures the linguistic "wrapper" (grammar, syntax) while remaining agnostic to the core message.
  2. Template Semantic ($emb_{tp}$): Represents the structural "backbone" of the sentence.
  3. Residual Semantic ($emb_{rs}$): Encodes the specific "fillers" or entities within the template.
Overview of the FMDA architecture and its multi-objective training framework.

The disentanglement process is driven by an attention-based mechanism that learns to partition information between the template and residual components. To supervise this learning, we employ a multi-objective training strategy including language identification, a reconstruction loss to ensure the three components can recreate the original embedding, and contrastive learning to align semantic embeddings for parallel sentences across different languages.

Illustration of the masking strategy used to define fine-grained template and residual semantic targets.

Results and Discussion

Evaluations were performed using the MASSIVE dataset across 51 languages, focusing on English (EN), German (DE), Spanish (ES), and Japanese (JA). FMDA demonstrated significant improvements in cross-lingual retrieval. For English-to-German tasks, FMDA achieved a 59.4% accuracy, vastly outperforming the raw XLM-R baseline of 18.2% and a strong language-disentanglement baseline of 55%.

A key finding is the "mutual boosting" effect: training the three components jointly under a reconstruction constraint improves the performance of each individual embedding. However, performance gaps remain for typologically distant languages. For example, English-Japanese retrieval scores were lower than English-German, likely due to the underlying pMLM's difficulty in bridging disparate scripts and linguistic families.

Conclusion

FMDA effectively addresses the entanglement problem in pMLMs by decomposing embeddings into fine-grained, interpretable components. By separating the language "wrapper" from the structural "template" and specific "residual" semantics, FMDA enables superior performance on tasks requiring nuanced, language-agnostic representations.

Summary updated

BibTeX
@misc{wu2022fine,
  author = {Zetian Wu and Zhongkai Sun and Zhengyang Zhao and Sixing Lu and Chengyuan Ma and Chenlei Guo},
  title = {{Fine-grained Multi-lingual Disentangled Autoencoder for Language-agnostic Representation Learning}},
  year = {2022},
  doi = {10.18653/v1/2022.mmnlu-1.2},
}
Figure