A Neural Divide-and-Conquer Reasoning Framework for Image Retrieval from Linguistically Complex Text

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

Introduction

While Vision-Language Models (VLMs) like CLIP have demonstrated remarkable success in aligning images with simple textual descriptions, they frequently falter when faced with linguistically complex queries. A standard model can easily retrieve an image of "a dog in a park," but its performance degrades significantly when the prompt involves multiple conditions, such as: "A dog with a red collar is running toward a blue ball on the grass, but there is no person in the frame."

In such scenarios, models often fail to verify every specific attribute simultaneously or ignore logical constraints like negation. This paper introduces NDCR (Neural Divide-and-Conquer Reasoning), a framework designed to bridge the gap between intuitive perceptual matching and deliberate logical reasoning. By decomposing complex descriptions into manageable propositions and processing them through a dual-system architecture, NDCR achieves state-of-the-art results in complex image retrieval.

The Problem: The "System 2" Gap in VLMs

Most current VLMs are trained on short, descriptive captions that lack logical depth. Consequently, they lack what cognitive scientists call "System 2" thinking—the slow, deliberate reasoning required to handle compound propositions. This deficiency is particularly evident in "minimally contrastive" datasets, where candidate images are visually similar and differ only by subtle details mentioned in the text. Without the ability to logically compose information, standard models struggle to distinguish between images that satisfy some, but not all, of a query's conditions.

The NDCR Framework

Inspired by the classic divide-and-conquer algorithm and dual-process theory, the NDCR framework operates in three distinct stages:

1. Divide: The Proposition Generator

Using a BART-based sequence-to-sequence model, the framework decomposes a complex "compound proposition" into several "simple proposition" sentences. For instance, a long, multi-condition paragraph is split into distinct, manageable facts. This stage is pretrained on the MinWikiSplit dataset to ensure robust sentence simplification.

2. Conquer: System 1 (Visual-Linguistic Interactor)

This component represents the "fast, intuitive" brain. It utilizes pretrained VLMs to calculate the initial alignment between each simple proposition and the candidate images. To prevent the loss of nuance during decomposition, a "modifier" module uses the context of the original compound text to refine these individual match scores.

3. Combine: System 2 (Neural-Symbolic Reasoner)

This stage represents the "slow, logical" brain. Rather than simply averaging the scores from System 1, it employs a neural-symbolic approach to aggregate information:

  • Negation Executors: Specifically designed to handle what should not be present in the image.
  • Conjunction Operations: Ensuring that all conditions of the compound text are satisfied.
  • Neural Logic: A learnable module that integrates intuitive scores with logical inferences to reach a final retrieval decision.

Experimental Evaluation

The authors evaluated NDCR on IMAGECODE, a challenging benchmark for image retrieval from contextual descriptions. The dataset consists of 94,020 images organized into sets where images are highly similar (e.g., frames from the same video sequence), forcing the model to rely on fine-grained textual details.

Key Results

NDCR established a new state-of-the-art (SOTA) on the IMAGECODE leaderboard:

  • Overall Accuracy: NDCR reached 34.1%, significantly outperforming the previous best baseline, CLIP (29.9%), as well as other models like UNITER and ViLBERT.
  • Static Image Performance: The model showed particularly strong results on static images, achieving 64.3% accuracy.
  • Ablation Studies: Removing the System 2 logical reasoning component or the Negation module led to a measurable drop in performance, confirming that the neural-symbolic approach is essential for handling complex queries.

Insights and Future Directions

The success of NDCR highlights that perceptual matching and logical reasoning are complementary. While System 1 provides the raw belief that a sentence matches an image, System 2 acts as a necessary filter to ensure logical consistency. The research specifically identifies negation as a primary bottleneck for standard VLMs; by dedicating a specific module to identifying absent conditions, NDCR effectively navigates contrastive image sets.

Despite these gains, challenges remain. NDCR still struggles with extreme visual similarity in video frames, where the differences between images are limited to a few pixels. Future work will likely focus on better image difference modeling and tighter integration between the text-splitting and image-matching latent spaces to further close the gap in complex visual reasoning.

Summary updated

BibTeX
@inproceedings{li2023neural,
  author = {Yunxin Li and Baotian Hu and Yuxin Ding and Lin Ma and Min Zhang},
  title = {{A Neural Divide-and-Conquer Reasoning Framework for Image Retrieval from Linguistically Complex Text}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.909},
}
Figure