ERNIE-UniX2: A Unified Cross-lingual Cross-modal Framework for Understanding and Generation

Bin Shan, Yaqian Han, Weichong Yin, Shuohuan Wang, Yu Sun, Hao Tian, Hua Wu, Haifeng WangarXiv 2022

Abstract

Recent cross-lingual cross-modal works attempt to extend Vision-Language Pre-training (VLP) models to non-English inputs and achieve impressive performance. However, these models focus only on understanding tasks utilizing encoder-only architecture. In this paper, we propose ERNIE-UniX2, a unified cross-lingual cross-modal pre-training framework for both generation and understanding tasks. ERNIE-UniX2 integrates multiple pre-training paradigms (e.g., contrastive learning and language modeling) based on encoder-decoder architecture and attempts to learn a better joint representation across languages and modalities. Furthermore, ERNIE-UniX2 can be seamlessly fine-tuned for varieties of generation and understanding downstream tasks. Pre-trained on both multilingual text-only and image-text datasets, ERNIE-UniX2 achieves SOTA results on various cross-lingual cross-modal generation and understanding tasks such as multimodal machine translation and multilingual visual question answering.

Introduction

Vision-Language Pre-training (VLP) has seen significant advancements, yet two major hurdles remain. First, most models are English-centric, failing to generalize to the diverse linguistic landscape of global users. Second, existing cross-lingual models, such as M3P or UC2, predominantly utilize encoder-only architectures. While effective for understanding tasks like classification or retrieval, these architectures are fundamentally limited when applied to generative tasks, such as Multimodal Machine Translation (MMT) or image captioning in non-English languages.

ERNIE-UniX2 addresses these gaps by introducing a unified framework capable of both understanding and generating content across multiple languages.

Comparison of ERNIE-UniX2 with previous cross-modal and cross-lingual frameworks.

Methodology

The ERNIE-UniX2 framework introduces three critical shifts in cross-lingual multimodal modeling:

1. Unified Encoder-Decoder Architecture

Moving beyond the limitations of encoder-only models, ERNIE-UniX2 adopts a full encoder-decoder setup. This allows the model to maintain high-quality representations for understanding while enabling the sequential generation required for captioning and translation.

2. Patch-level Visual Representation

To improve efficiency and alignment, the model bypasses traditional, computationally expensive object detectors. Instead, it utilizes a Vision Transformer (ViT) to extract patch-level features directly from images. This end-to-end approach facilitates better fine-grained alignment between visual elements and multilingual text.

3. Multi-Paradigm Pre-training

The model is trained using a combination of objectives designed to align modalities and languages:

  • Understanding Objectives: Cross-lingual and Cross-modal Contrastive Learning (CLCL and CMCL) align images and diverse languages into a shared semantic space.
  • Generative Objectives: Prefix Language Modeling (PrefixLM) and Multimodal Machine Translation (mMMT) train the model to generate text based on visual and linguistic context.
The architecture of ERNIE-UniX2 and its multi-stage pre-training tasks.

Experimental Setup and Results

ERNIE-UniX2 was pre-trained on a large-scale corpus including 29 million image-text pairs (CC3M, CC12M, WIT) across over 100 languages, supplemented by massive text-only datasets (CC100, OPUS).

Performance Highlights

  • Visual Reasoning: On the XVNLI benchmark, ERNIE-UniX2 achieved an average accuracy of 77.42%, outperforming the previous state-of-the-art (UC2) by 15.37%.
  • Grounded Question Answering: The model showed exceptional zero-shot capabilities on the xGQA benchmark, improving average accuracy by over 11% compared to prior models.
  • Multimodal Translation: On the Multi30k English-to-German task, the model achieved a BLEU score of 49.3, surpassing SimVLM.

The results indicate that understanding and generation tasks are mutually reinforcing; joint training improves performance across both categories. Furthermore, images serve as a "universal pivot," facilitating cross-lingual alignment even in the absence of direct parallel text.

Conclusion

ERNIE-UniX2 represents a significant step toward truly global, multi-functional AI. By unifying understanding and generation within a single cross-lingual framework, it achieves state-of-the-art performance across a wide array of benchmarks. Future work will explore expanding the framework to include additional modalities like audio and video, as well as scaling the multilingual datasets to further enhance performance.

Summary updated

BibTeX
@misc{shan2022ernie,
  author = {Bin Shan and Yaqian Han and Weichong Yin and Shuohuan Wang and Yu Sun and Hao Tian and Hua Wu and Haifeng Wang},
  title = {{ERNIE-UniX2: A Unified Cross-lingual Cross-modal Framework for Understanding and Generation}},
  year = {2022},
  eprint = {2211.04861},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.04861},
}
Figure