A Multi-Modal Context Reasoning Approach for Conditional Inference on Joint Textual and Visual Clues

Yunxin Li, Baotian Hu, Xinyu Chen, Yuxin Ding, Lin Ma, Min Zhang

Abstract

While Vision-Language Models (VLMs) have achieved significant success in descriptive tasks, they often struggle with conditional inference—the ability to combine visual data with specific textual premises to reach logical conclusions. This paper introduces ModCR (Multi-modal Context Reasoning), a framework that treats images and textual premises as "pre-context" for a Pre-trained Language Model (PLM). By utilizing a novel cross-modal alignment prefix, ModCR bridges the semantic gap between visual perception and logical reasoning. Experimental results on the PMR and VCR datasets demonstrate that ModCR outperforms existing state-of-the-art models by nearly 5%, highlighting the efficacy of using PLMs as the primary reasoning engine for multi-modal tasks.

Introduction

Most contemporary Vision-Language Models (VLMs) are optimized for "looking and describing"—tasks that require matching a caption to an image. However, these models frequently stumble when faced with conditional inference. In these scenarios, a model must synthesize an image with a specific textual premise to derive a non-obvious conclusion. For instance, if an image depicts a person sitting on a couch and the accompanying text states, "Person 1 feels very tired," a human easily infers that "Person 1 will have a rest." Traditional VLMs often fail here because they prioritize surface-level alignment (e.g., identifying the "person" and the "couch") rather than using the "tired" premise as a logical anchor for reasoning.

The authors of this study argue that while VLMs excel at perception, they lack the sophisticated "in-context" reasoning capabilities inherent in large Pre-trained Language Models (PLMs) like RoBERTa or GPT. To address this, they propose ModCR, a framework that shifts the burden of reasoning from the vision model to the language model.

Methodology: The ModCR Framework

ModCR is designed to "teach" a language model to interpret visual information as a logical context. The architecture consists of three primary components:

  1. Vision Mapping Network (VMN): This component extracts image features using Faster R-CNN and projects them into a "visual prefix." These are continuous vectors that the language model can process as part of its input context.
  2. Alignment Mapping Network (AMN): The AMN is the core innovation of the framework. Rather than simply providing the image to the model, the AMN captures the specific relationship between the image and the text at both token and phrase levels. It generates a "cross-modal alignment prefix" that bridges the semantic gap between what is seen and what is written.
  3. Multi-Modal Context Reasoner: The framework utilizes RoBERTa-large as its central reasoning engine. Using an instruction-based template (e.g., "Is Answer correct or wrong based on conditions?"), the visual and alignment prefixes are integrated alongside the text. The model then performs a binary classification to validate candidate answers.

Experimental Evaluation

The researchers evaluated ModCR on two primary benchmarks designed to test deep reasoning:

  • PMR (Premise-based Multimodal Reasoning): A human-annotated dataset of approximately 12,000 samples focusing on complex relationships, personalities, and moods.
  • VCR (Visual Commonsense Reasoning): The authors adapted this dataset into a "QR→A" format (Question + Rationale → Answer) to specifically measure how effectively models utilize rationales as conditional clues.

Key Results

ModCR achieved state-of-the-art results across both benchmarks:

  • PMR Dataset: ModCR reached 84.7% accuracy, representing a 4.8% absolute improvement over the previous leading baseline, CALeC.
  • VCR Dataset: The model achieved 94.0% accuracy, outperforming powerful multi-modal models like OFA and text-only models like RoBERTa-L.

Ablation studies confirmed that the Alignment Mapping Network is critical; removing it led to a sharp decline in performance, proving that understanding the interaction between text and vision is more vital for inference than image recognition alone.

Discussion and Insights

The success of ModCR offers several key insights into the future of multi-modal AI:

  • PLMs as Superior Reasoners: The findings suggest that for complex logic, it is more effective to adapt a language model to "see" than to attempt to teach a vision model to reason. PLMs already possess the internal logic required for sophisticated inference.
  • The Importance of the Alignment Prefix: Simply providing visual data is insufficient for conditional tasks. The model requires a "bridge" (the AMN) to understand how the image relates to the specific textual premise.
  • Prefix Optimization: The researchers found a "Goldilocks zone" for prefix length. A length of 5 tokens for both visual and alignment prefixes proved optimal; longer prefixes introduced noise that degraded the model's reasoning stability.

Limitations and Future Work

While ModCR sets a new standard for conditional inference, it currently focuses on single-image and single-text clue scenarios. Future research will explore expanding the framework to handle "long-form" reasoning involving video sequences or multiple documents. Additionally, the team aims to improve the inherent context-learning capabilities of VLMs to reduce sensitivity to prefix lengths and expand the reasoning chain to include other modalities like audio.

Summary updated

BibTeX
@inproceedings{li2023multi,
  author = {Yunxin Li and Baotian Hu and Xinyu Chen and Yuxin Ding and Lin Ma and Min Zhang},
  title = {{A Multi-Modal Context Reasoning Approach for Conditional Inference on Joint Textual and Visual Clues}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.601},
}
Figure