Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios

Shantanu Jaiswal, Debaditya Roy, Basura Fernando, Cheston Tan

TL;DR

Researchers have developed the Iterative and Parallel Reasoning Mechanism (IPRM), a lightweight neural module that combines step-by-step logical deduction with the ability to process multiple independent operations simultaneously. By blending these two computational "priors," IPRM achieves state-of-the-art performance on complex image and video question-answering benchmarks while remaining highly interpretable and parameter-efficient.

The Challenge of Complex Visual Reasoning

Visual Question Answering (VQA) has evolved from simple object recognition ("Is there a cat?") to complex, multi-step reasoning ("What is the color of the object to the left of the person wearing a red shirt?").

Examples of complex visual reasoning tasks across various image and video datasets.

Current models generally fall into two camps:

  1. Iterative Models: These process information sequentially. They are great for compositional logic but can be inefficient and struggle to track multiple independent events or stimuli at once.
  2. Parallel Models (like standard Transformers): These use broad attention to look at everything at once. While efficient, they often lack the explicit structure needed for deep, multi-hop reasoning where one step must logically follow another.

The authors argue that human-like reasoning requires both. We need to execute independent tasks in parallel (e.g., counting different types of objects) and then compose those results iteratively to reach a final conclusion.

Introducing IPRM: A Hybrid Approach

IPRM is designed as a fully differentiable module that can be "plugged in" on top of existing vision-language backbones (like CLIP or MDETR). It maintains a latent memory of "operation states" and "result states."

The architecture of the Iterative and Parallel Reasoning Mechanism (IPRM), showing the three-stage cycle of operation formation, execution, and composition.

The mechanism follows a three-stage cycle at each reasoning step:

  1. Operation Formation: Based on what it has learned so far, the model queries the language input to decide which parallel operations to perform next.
  2. Operation Execution: The model "executes" these operations in parallel by attending to visual features, guided by the current operation and prior results.
  3. Operation Composition: A specialized unit integrates the new results into memory. Crucially, it uses "inter-operation attention" to let parallel paths talk to each other and a "lookback window" to maintain temporal context.

The module is weight-tied, meaning the number of parameters doesn't explode even if you increase the number of reasoning steps or parallel operations.

Key Insights and Performance

The core "aha" moment of this research is that iterative and parallel computations are synergistic. Parallelism handles the "breadth" of independent stimuli, while iteration handles the "depth" of logical dependency.

  • Efficiency Matters: Despite its complexity, the IPRM module is remarkably small (~4.4M parameters). It outperformed standard transformer blocks that have roughly 4x more parameters.
  • Interpretability by Design: Because the model explicitly forms and executes operations, researchers can visualize its "thought process." You can see exactly which words the model attended to for a specific operation and where it looked in the image/video at each step.
  • Length Generalization: IPRM maintains high accuracy on questions requiring many reasoning steps, where purely iterative or purely parallel models typically see a sharp performance drop.

State-of-the-Art Results

The authors evaluated IPRM across a massive battery of benchmarks covering video reasoning (STAR, AGQA, CLEVRER-Humans), image reasoning (GQA, CLEVR-Humans, CLEVR-CoGenT), and linguistic grounding (NLVRv1).

  • Video VQA: IPRM set new state-of-the-art scores on STAR (69.9% avg acc) and AGQA (60.4% avg acc), outperforming prior video-specific methods by roughly 5%.
  • Zero-Shot Prowess: On the CLEVRER-Humans benchmark, it improved zero-shot per-question accuracy by 7% over the previous best model.
  • Sample Efficiency: On CLEVR-Humans, IPRM achieved better results with only 50% of the training data compared to a fully-trained baseline model.
  • Out-of-Distribution: On CLEVR-CoGenT (testing novel combinations of colors and shapes), IPRM outperformed baselines by 3.6% in out-of-domain settings.

Limitations and Future Work

While IPRM is a powerful reasoner, it is still limited by the quality of the visual and linguistic features provided by its backbone. If the underlying model can't "see" a small object, IPRM can't reason about it. Additionally, like all VQA models, IPRM can inherit biases present in the training data, potentially leading to "shortcut" answers.

Scaling this architecture to even larger foundational video-language models is a promising next step. The authors also hope to use the model's interpretability to better diagnose and fix reasoning errors in real-time.

Summary updated

BibTeX
@inproceedings{jaiswal2024learning,
  author = {Shantanu Jaiswal and Debaditya Roy and Basura Fernando and Cheston Tan},
  title = {{Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=uoJQ9qadjY},
}
Figure