Abstract
This paper proposes an attention module augmented relational network called SARN (Sequential Attention Relational Network) that can carry out relational reasoning by extracting reference objects and making efficient pairing between objects. SARN greatly reduces the computational and memory requirements of the relational network, which computes all object pairs. It also shows high accuracy on the Sort-of-CLEVR dataset compared to other models, especially on relational questions.
Introduction
Relational reasoning—the ability to understand how different entities in a scene relate to one another—is a cornerstone of human intelligence. In deep learning, the standard approach, pioneered by the Relational Network (RN), involves pairing every single object in a scene with every other object. While effective, this "brute-force" pairing suffers from $O(n^2)$ computational complexity and a lack of interpretability. As scenes become more crowded, memory and processing requirements explode, and it becomes difficult to discern which relationships the model prioritized.
Methodology
SARN addresses these issues by mimicking the human cognitive process of "sequential attention." Instead of processing all possible pairs, the model follows a two-step decision process:
- Reference Object Identification: Given a question (e.g., "What is the shape of the object farthest to the blue object?"), the model uses a soft-attention module ($a_\psi$) to identify the primary reference object mentioned. This object is represented as a weighted sum of features.
- Efficient Pairing: Rather than pairing all $n$ objects with each other ($n \times n$), SARN only pairs the identified reference object with every other object in the feature map ($1 \times n$).
These pairs are processed by a relational module ($g_\theta$) and an output MLP ($f_\phi$). This strategy reduces complexity to $O(n)$, making the model significantly more efficient.
Experimental Setup
The model was evaluated on a modified version of Sort-of-CLEVR, consisting of 75x75 pixel images with six objects of varying colors and shapes. The dataset includes:
- Non-relational questions: Queries about a single object's properties.
- Relational questions: Queries requiring comparisons between objects (e.g., "What is the shape of the furthest object from the green object?").
The training set comprised 9,800 images, with 200 images for testing, each associated with 48 questions.
Results and Discussion
SARN outperformed the standard Relational Network (RN) across all metrics, particularly in relational tasks. SARN achieved 96.73% overall accuracy compared to RN's 93.56%, with the gap being most prominent in relational tasks (94.88% vs 89.83%).
Beyond accuracy, SARN offers superior interpretability. By visualizing the attention maps, researchers can confirm that the model correctly identifies the reference object and subsequently "scans" the relevant related objects to derive an answer.
The model also demonstrates robustness to image resolution and sparsity. While standard RN performance often degrades as object granularity increases, SARN maintains high performance by filtering out "relational noise"—irrelevant pairings that do not contribute to answering the specific question.
Conclusion
SARN provides a scalable and interpretable framework for relational reasoning. By reducing complexity to $O(n)$, it paves the way for processing more complex scenes. Future work will focus on extending the architecture to handle multi-hop reasoning (questions involving multiple reference objects) and evaluating performance on real-world datasets like GQA or VQA v2.
Summary updated