Learning Multilingual Word Embeddings Using Image-Text Data

Karan Singhal, Karthik Raman, Balder ten Cate

TL;DR

This paper proposes a novel method for learning multilingual word embeddings by leveraging weakly-supervised image-text data, overcoming the reliance on expensive parallel corpora. Their approach, which jointly trains embeddings using image-text pairs, achieves competitive performance on crosslingual semantic similarity tasks, demonstrating the power of visual information for cross-lingual understanding.

What Problem Does This Paper Address?

Learning word embeddings that capture semantic similarity across different languages (multilingual word embeddings) is crucial for many NLP applications, especially for low-resource languages where parallel text data is scarce. Traditional methods for creating these embeddings often rely on expensive, human-annotated resources like bilingual lexicons or sentence-aligned parallel corpora. These resources are difficult and costly to obtain for many languages, and even when available, their coverage can be limited, restricting the semantic space that can be aligned. This paper addresses the challenge of learning effective multilingual word embeddings without requiring such expensive, labeled data, by exploring the use of readily available, weakly-supervised image-text data.

Methods

The core idea of the proposed method is to enforce similarity between the representations of a query (text) and its corresponding image. This is achieved by jointly training multilingual word embeddings and image representations.

  • Joint Training: Instead of aligning pre-trained monolingual embeddings (post-hoc alignment), this paper advocates for a joint training approach. This allows the embeddings to be optimized simultaneously for both monolingual and multilingual objectives, potentially leading to better results.
  • Image-Text Similarity Loss: The model is trained using a loss function that maximizes the cosine similarity between the query representation (Q) and the image representation (I). This loss is formulated as a softmax objective, where the model learns to predict the correct image for a given query.
  • Image Representation: Generic image features extracted from Convolutional Neural Networks (CNNs) are used as input. These features are then passed through two fully-connected layers to produce the final image representation.
  • Query Representation: The query representation is computed by averaging the multilingual embeddings of the words in the query. Crucially, words are prefixed with their language tags (e.g., "en:cat") to ensure distinct embeddings for the same surface form in different languages.
  • Language Unaware Approach: A variation is proposed where language tags are not used, allowing words with shared surface forms across languages (like "pain" in English and French) to share an embedding. This can be beneficial for cognates but potentially detrimental for false cognates.
  • Co-occurrence Only Baseline: A baseline method is also presented that uses only co-occurrence statistics between queries and images, without leveraging pixel data, to understand the contribution of visual information.

Datasets

  • Training Data: The primary dataset used is a proprietary dataset derived from Google Images search results. It consists of approximately 3 billion (query, image, weight) triples, with 900 million unique images and 220 million unique queries across about 130 languages. Queries are language-tagged based on the user's home language.
  • Evaluation Datasets:
    • Crosslingual Semantic Similarity: Six subtasks from the Rubenstein-Goodenough dataset, aggregated into one task.
  • Multilingual Document Classification: The RCV corpus of newswire text in seven languages.
  • Monolingual Semantic Similarity: 13 English subtasks from Faruqui and Dyer (2014a).

Key Insights and Ideas

  • Visual Information Bridges Languages: The most significant insight is that images, as a language-agnostic medium, can effectively bridge semantic gaps between languages. By learning to associate text queries with images, the model implicitly learns crosslingual semantic relationships.
  • Weak Supervision is Sufficient: The paper demonstrates that even with weakly-supervised image-text data (where the "supervision" comes from the natural pairing of queries and images, not explicit human labels), competitive multilingual embeddings can be learned. This is a major step towards utilizing readily available web data.
  • Joint Training Advantage: Jointly training image and word embeddings, rather than aligning pre-trained embeddings, leads to better performance, suggesting that the embeddings benefit from being optimized together from the start.
  • Image Understanding is Crucial: Comparing their image-based method with a co-occurrence-only baseline reveals a significant performance drop when pixel data is ignored, highlighting the importance of visual features for their approach.
  • Language Unaware Embeddings Offer Trade-offs: The language-unaware approach shows promise, especially in scenarios where language tags are unavailable. However, it also highlights the potential pitfalls of false cognates, where shared surface forms can lead to confusion.

Key Results

  • Crosslingual Semantic Similarity: The proposed ImageVec method (both 100-dim and 300-dim) significantly outperforms the multiSkip baseline on all crosslingual semantic similarity subtasks. The 300-dim version also slightly outperforms the state-of-the-art MUSE approach.
  • Multilingual Document Classification: MUSE achieves the best scores, but the 300-dim ImageVec experiment performs competitively, outperforming the multiSkip baseline.
  • Monolingual Performance: The paper acknowledges that their method's monolingual performance is weaker than state-of-the-art methods that leverage large monolingual text corpora. This is reflected in the lower scores on the English monolingual semantic similarity tasks compared to MUSE.
  • Embedding Size: Higher dimensionality (300-dim vs. 100-dim) generally leads to better performance across both evaluation tasks.

Limitations and Future Work

  • Monolingual Performance: The authors acknowledge that their method's within-language embedding quality is not as strong as methods that heavily rely on large monolingual text corpora. This is attributed to the reliance on images as a bridge rather than direct text context.
  • Abstract Concepts: For abstract concepts without clear visual associations (e.g., "democracy"), learning embeddings via images might be less effective.
  • Future Work:
    • Multi-task Joint Training: The authors suggest extending their approach to multi-task learning, simultaneously constraining query-image similarity, word embedding prediction from context in monolingual corpora, and parallel text alignment.
  • Improving Monolingual Quality: Incorporating advances in monolingual embedding techniques (like subword information) into their multi-task framework could boost overall performance.
  • Shared Embedding Space Applications: The shared embedding space created by their method opens up possibilities for better image features, improved text representations, nearest-neighbor search across modalities, and joint prediction tasks.

Summary updated

BibTeX
@inproceedings{singhal2019learning,
  author = {Karan Singhal and Karthik Raman and Balder ten Cate},
  title = {{Learning Multilingual Word Embeddings Using Image-Text Data}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
}
Figure