Efficient Object-Level Visual Context Modeling for Multimodal Machine Translation: Masking Irrelevant Objects Helps Grounding

Dexin Wang, Deyi Xiong

Abstract

Multimodal Machine Translation (MMT) aims to improve translation quality by incorporating visual information. However, existing models often ignore images due to the inherent redundancy in source text. We present the Object-Level Visual Context (OVC) framework, which addresses this by focusing on specific detected objects rather than global features. By introducing an Object-Masking Loss ($L_m$) to distinguish relevant from irrelevant visual information and a Vision-Weighted Translation Loss ($L_v$) to ensure grounding, our approach forces the model to utilize visual context effectively. Experimental results on Multi30K and WMT17 benchmarks demonstrate that OVC achieves state-of-the-art performance and exhibits superior robustness when source text is degraded.

Introduction: The Redundancy Problem in MMT

The primary goal of Multimodal Machine Translation is to use visual context to resolve linguistic ambiguities. For instance, an image can clarify whether the word "bank" refers to a riverbank or a financial institution. Despite this potential, MMT models frequently suffer from a "redundancy problem": because the source text is often descriptive enough for a standard translation, models learn to treat the image as noise and ignore it entirely.

Previous research attempted to mitigate this by masking source text tokens, forcing the model to look at the image. However, these methods failed to account for the visual side of the equation—specifically, how to help the model differentiate between objects relevant to the sentence and background clutter.

Methodology: The OVC Framework

The proposed OVC framework shifts the focus from global image features to a "bag of objects" approach. The architecture consists of four main components:

  1. Object Detection: A pre-trained ResNet101 extracts specific objects from the input image.
  2. Object-Source Attention: A multi-head attention layer aligns these visual objects with source text tokens.
  3. Object-Masking Loss ($L_m$): This core innovation uses semantic similarity (calculated via BERT) between object labels and source text. During training, objects are randomly masked. $L_m$ penalizes the model if it cannot distinguish between the loss of a relevant object (which should degrade translation) and an irrelevant one.
  4. Vision-Weighted Translation Loss ($L_v$): This loss rewards the generation of target words that are semantically consistent with the visual context, ensuring the decoder remains grounded.
The OVC framework architecture, illustrating the flow from object detection to vision-aware translation losses.

Experimental Setup and Results

The OVC model was evaluated on the Multi30K dataset, the WMT17 MMT test set, and the Ambiguous COCO dataset. To test the model's reliance on visual cues, the authors employed a "Source-degradation" setting, where specific details (e.g., gender or color) were stripped from the text.

Performance Metrics

In standard translation tasks, OVC consistently outperformed strong baselines, including the standard Transformer and GMMT. On the WMT17 English-to-German (En-De) test set, OVC achieved a BLEU score of 32.4, a significant improvement over the Transformer's 30.6.

Comparison of OVC against existing MMT models across multiple benchmarks and language pairs.

Robustness to Text Degradation

The most striking results occurred in the source-degradation setting. On the En-De development set, the inclusion of the object-masking loss ($L_m$) led to a +3.35 BLEU increase over the base OVC model. This suggests that the model successfully learned to "fill in the blanks" by extracting missing information from the image.

Discussion and Key Insights

A critical insight of this work is that irrelevant objects act as "visual noise." By explicitly training the model to ignore these objects through $L_m$, the "signal-to-noise" ratio of the visual input is improved. Furthermore, using BERT-based semantic similarity provides a "soft grounding" mechanism that bridges the gap between visual and textual domains dynamically.

Limitations and Future Work

Despite its success, the model faces challenges in "category confusion," where it struggles to distinguish between multiple objects of the same class (e.g., two different people). Future work may involve larger-scale cross-modality pre-training to achieve finer-grained grounding or extending the framework to video-guided MMT to incorporate temporal context.

Summary updated

BibTeX
@inproceedings{wang2021efficient,
  author = {Dexin Wang and Deyi Xiong},
  title = {{Efficient Object-Level Visual Context Modeling for Multimodal Machine Translation: Masking Irrelevant Objects Helps Grounding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i4.16376},
}
Figure