COSMOS: Catching Out-of-Context Misinformation with Self-Supervised Learning

Shivangi Aneja, Christoph Bregler, Matthias Nießner · OpenReview

TL;DR

This paper introduces COSMOS, a novel self-supervised method for detecting "out-of-context" image-text pairs, a prevalent form of misinformation. By learning to ground textual descriptions to specific objects within an image, COSMOS can identify when an image is used with a misleading caption, achieving 85% accuracy and introducing a large-scale dataset for future research.

What Problem Does This Paper Address?

Misinformation is a growing problem, and while much attention is given to manipulated images like DeepFakes, a more insidious form is the use of unaltered images in a false context. This "out-of-context" usage can be highly misleading, as it leverages the perceived authenticity of a real image to support a fabricated narrative. Traditional methods often struggle with this because the image itself isn't altered, making it difficult to detect solely through visual analysis or language-only approaches. The challenge lies in understanding the semantic relationship between an image and its accompanying text, especially when multiple, potentially contradictory, captions are associated with the same image across different online sources.

Methods

The core of COSMOS is a self-supervised learning strategy that focuses on visual grounding. Instead of relying on explicit "out-of-context" labels, the model learns to align objects within an image with their corresponding textual descriptions.

Here's a breakdown of the key components:

  • Object Detection and Embedding: A pre-trained Mask R-CNN is used to detect objects in an image. The visual features of these detected objects are then embedded into a 300-dimensional vector space using an "Object Encoder."
  • Text Pre-processing: To improve robustness, named entities in captions (like names of people, places, or organizations) are replaced with their hypernyms (e.g., "Robert Grizz Maguire" becomes "Person").
  • Text Encoding: Captions are encoded into 300-dimensional vectors using a pre-trained Universal Sentence Encoder (USE) followed by a custom Text Encoder.
  • Image-Text Matching (Self-Supervised Training): The model is trained to distinguish between a "matching caption" (one that originally appeared with the image) and a "non-matching caption" (a random caption from a different image). The similarity between object embeddings and caption embeddings is calculated using dot products. A max-margin loss function encourages higher scores for matching pairs than non-matching pairs. This phase focuses on learning accurate image-caption alignments, not directly on out-of-context detection.
  • Out-of-Context Detection (Test Time): At test time, the model takes an image and two captions. It first identifies the highest-scoring object for each caption. If these objects overlap visually (measured by IoU) and the two captions are semantically dissimilar (measured by SBERT similarity), the image-text pair is classified as out-of-context.

Datasets

  • Training Data: A large-scale dataset of 200,000 images with 450,000 textual captions was collected from news websites, blogs, and social media posts. This dataset is designed to be diverse and cover various topics where misinformation is prevalent.
  • Test Data: A subset of 1,700 image-caption pairs was manually annotated for evaluation. This test set includes an equal split of out-of-context and not-out-of-context examples.
  • Evaluation on RefCOCO: For evaluating the visual grounding component specifically, the RefCOCO dataset was used.

Key Insights and Ideas

  • Grounding is Crucial: The paper strongly emphasizes that language-only analysis is insufficient for detecting out-of-context images. The key insight is that grounding textual claims to specific visual elements (objects) within an image is essential for disambiguating misleading contexts.
  • Self-Supervision for Alignment: The success of the method hinges on a clever self-supervised approach. By training the model to distinguish between genuine image-caption pairs and random pairings, it learns robust object-caption alignments without needing explicit out-of-context annotations, which are difficult to obtain at scale.
  • Object-Level Features Matter: The experiments show that using object-level features (detected bounding boxes) provides a richer representation for grounding compared to using the entire image. This suggests that focusing on specific entities within an image is more effective for understanding the context of a caption.
  • Semantic Dissimilarity + Visual Overlap = Out-of-Context: The core hypothesis for detection is that when two captions refer to visually overlapping elements in an image but convey semantically different meanings, it's a strong indicator of out-of-context usage.

Key Results

  • Out-of-Context Detection Accuracy: The proposed COSMOS method achieves 85% out-of-context detection accuracy.
  • Dataset Contribution: The paper introduces a large-scale dataset of 200K images and 450K captions, which is publicly available to facilitate research in this area.
  • Text Embedding Performance: Using sentence embeddings (like from USE) significantly boosts out-of-context detection accuracy compared to word-level embeddings.
  • Backbone Performance: The Mask R-CNN backbone, pre-trained for object detection, performs better than an ImageNet pre-trained backbone for visual grounding tasks.
  • Data Augmentation Benefits: Applying augmentations like color jitter, random rotation, and named entity replacement during training improves performance.

Limitations and Future Work

  • Language Specificity: The current work focuses on English language captions. Future work could extend this to other languages.
  • Veracity of Captions: The method identifies out-of-context usage but does not determine which of the two captions is false or true. This is left as future work.
  • Dataset Size for Training: The paper shows that a larger training dataset significantly improves performance, suggesting that even larger datasets could yield further gains.
  • Generalization: While the dataset is large, further research could explore the model's generalization capabilities to unseen domains or types of misinformation.

Summary updated

BibTeX
@misc{aneja2021cosmos,
  author = {Shivangi Aneja and Christoph Bregler and Matthias Nießner},
  title = {{COSMOS: Catching Out-of-Context Misinformation with Self-Supervised Learning}},
  year = {2021},
  eprint = {2101.06278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.06278},
}
Figure