Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios

Shantanu Jaiswal, Debaditya Roy, Basura Fernando, Cheston Tan
11/20/2024
cs.LGcs.AIcs.CV

No official code found. Best implementation: shantanuj/IPRM_Iterative_and_Parallel_Reasoning_Mechanism (0 stars, MIT, last commit 2025-12-08).

Abstract

Complex visual reasoning and question answering (VQA) is a challenging task that requires compositional multi-step processing and higher-level reasoning capabilities beyond the immediate recognition and localization of objects and events. Here, we introduce a fully neural Iterative and Parallel Reasoning Mechanism (IPRM) that combines two distinct forms of computation -- iterative and parallel -- to better address complex VQA scenarios. Specifically, IPRM's "iterative" computation facilitates compositional step-by-step reasoning for scenarios wherein individual operations need to be computed, stored, and recalled dynamically (e.g. when computing the query "determine the color of pen to the left of the child in red t-shirt sitting at the white table"). Meanwhile, its "parallel" computation allows for the simultaneous exploration of different reasoning paths and benefits more robust and efficient execution of operations that are mutually independent (e.g. when counting individual colors for the query: "determine the maximum occurring color amongst all t-shirts"). We design IPRM as a lightweight and fully-differentiable neural module that can be conveniently applied to both transformer and non-transformer vision-language backbones. It notably outperforms prior task-specific methods and transformer-based attention modules across various image and video VQA benchmarks testing distinct complex reasoning capabilities such as compositional spatiotemporal reasoning (AGQA), situational reasoning (STAR), multi-hop reasoning generalization (CLEVR-Humans) and causal event linking (CLEVRER-Humans). Further, IPRM's internal computations can be visualized across reasoning steps, aiding interpretability and diagnosis of its errors.

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch implementation of IPRM (Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios)

00Shell, PythonOct 29, 202410 months agoMIT

Cite this paper

@article{jaiswal2024learning,
  title  = {Learning to Reason Iteratively and Parallelly for Complex Visual Reasoning Scenarios},
  author = {Shantanu Jaiswal and Debaditya Roy and Basura Fernando and Cheston Tan},
  year   = {2024},
  eprint = {2411.13754},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.13754},
  url    = {http://arxiv.org/abs/2411.13754v1},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.13754.svg)](https://codeofpaper.com/paper/2411.13754)

Discussion