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. 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. 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.
What Problem Does This Paper Address?
Visual Question Answering (VQA) has evolved from simple object recognition ("Is there a cat?") to complex reasoning ("What is the color of the object to the left of the person who just sat down?"). These tasks require models to navigate intricate spatial, temporal, and causal relationships.
Current AI models generally fall into two camps:
- Iterative Models: These process information step-by-step. While effective for multi-hop logic, they struggle with efficiency and "forgetting" when tracking many independent items simultaneously (e.g., counting multiple different colors).
- Parallel Models (like Transformers): These process everything at once. While efficient, they often struggle to explicitly compose sequential operations, making it difficult to follow long chains of dependency where one operation's output is the next one's input.
The authors argue that complex reasoning requires a hybrid approach: parallelizing independent tasks while iterating through dependent ones.
Methods: The IPRM Architecture
The authors introduce the Iterative and Parallel Reasoning Mechanism (IPRM), a lightweight, fully differentiable neural module that can be integrated into existing vision-language backbones like CLIP or LSTMs. IPRM maintains a latent memory of "operation states" and "result states," mimicking human working memory.
At each reasoning step $t$, the model performs a three-stage loop:
- Operation Formation: Based on previous steps, it queries the language input to decide which new parallel operations to perform.
- Operation Execution: It executes these operations by attending to visual features, conditioned on both the new operations and previous results.
- Operation Composition: An Operation Composition Unit uses inter-operation attention to merge new results with existing memory, allowing the model to resolve dependencies and mitigate redundancy.
This loop typically repeats for a fixed number of steps (typically 9), allowing the model to "think" through the problem over time.
Datasets and Evaluation
IPRM was evaluated on a diverse set of benchmarks designed to test specific reasoning capabilities:
- STAR: Situational reasoning in real-world videos.
- AGQAv2: Compositional spatiotemporal reasoning in videos.
- CLEVRER-Humans: Causal event linking and "what if" scenarios.
- CLEVR-Humans & CLEVR-CoGenT: Multi-hop reasoning and generalization to unseen attribute combinations.
- GQA: Real-world image scene reasoning.
- CLOSURE: Systematic generalization for different question compositions.
Key Results and Insights
- State-of-the-Art Performance: IPRM achieved 69.9% average accuracy on STAR and 60.4% on AGQAv2, outperforming prior task-specific methods by approximately 5%.
- Zero-Shot Generalization: On the CLEVRER-Humans causal reasoning task, it improved zero-shot per-question accuracy by 7% over previous leaders.
- Efficiency and Interpretability: IPRM is remarkably sample-efficient. On CLEVR-Humans, it outperformed the much larger MDETR model while using 4x fewer parameters and half the training data. Furthermore, its discrete steps allow researchers to visualize exactly what the model attends to at each stage, aiding in error diagnosis.
- Co-dependency: Ablation studies showed that the number of parallel operations ($N_{op}$) and iterative steps ($T$) are co-dependent; the model requires both "width" to see all relevant features and "depth" to process the logic.
Limitations and Future Work
Despite its strengths, IPRM is limited by the quality of its visual and language backbones and can inherit their biases. Visualizations also show that intermediate reasoning steps can sometimes be "fuzzy," even when the final answer is correct. Future work includes scaling IPRM to foundational video-language models and exploring its application in embodied reasoning for robotics.
Summary updated