Attention-Based Context Aware Reasoning for Situation Recognition

Thilini Cooray, Ngai-Man Cheung, Wei Lu

Abstract

Situation Recognition (SR) requires identifying a verb and its structured semantic roles (e.g., Agent, Tool, Target). This paper reframes SR as a query-based visual reasoning problem. By introducing a "Context Aware" architecture, specifically the Context Aware Query (CAQ) module, the model effectively handles inter-dependent roles. The proposed approach achieves new state-of-the-art results on the imSitu dataset, demonstrating that modeling role dependencies significantly improves both role and verb prediction.

Introduction: The Challenge of Situation Recognition

Standard image classification and action recognition often fall short of providing a complete understanding of a scene. Situation Recognition (SR) aims to bridge this gap by identifying not just the action (verb), but also the participants involved in specific semantic roles like Agent, Tool, Target, and Place.

A primary challenge in SR is that these roles are highly inter-dependent. For instance, in a "brushing" situation, the "tool" (a toothbrush vs. a hairbrush) is determined by the "target" (teeth vs. hair). Previous attempts using RNNs or GNNs often struggled with data sparsity or imposed an arbitrary order on roles. This paper addresses these limitations by proposing a flexible, query-based reasoning framework that accounts for "neighboring" roles.

Figure 2: Situation Recognition involves identifying a verb and its specific semantic roles, which are often inter-dependent based on the context of the scene.

Methodology: Context Aware Reasoning

The authors propose a framework built upon Top-Down Attention (TDA), treating each semantic role as a specific query (e.g., "What is the tool for brushing?"). To capture the dependencies between roles, they introduce three "Context Aware" modules, with the Context Aware Query (CAQ) being the central innovation.

Context Aware Query (CAQ)

The CAQ module uses multi-head attention to aggregate information from the hidden representations of "neighbor" roles. This gathered "context" updates the original query before it interacts with the image features. This allows the model to use information from one role (e.g., "hair") to guide the search for another (e.g., "brush").

Figure 6: The Context Aware Query (CAQ) architecture and its Context Generator, which uses multi-head attention to gather information from neighboring roles.

Additional Modules

  • Context Aware Image (CAI): This module uses context from other roles to "highlight" relevant image regions for the current query.
  • Context Aware Image Reconstruction (CAIR): An auxiliary training task where the model reconstructs original image features from predicted role representations, ensuring global consistency.
  • RE-VGG: A "Reasoning Enhanced" verb classifier that integrates role predictions to improve initial action identification.

Datasets and Evaluation

The model was evaluated on the imSitu dataset, the standard benchmark for Situation Recognition. It contains 75,000 images across 504 verbs and 190 semantic roles. Each image includes three "realized frames" to account for different valid descriptions of the same scene.

Key Results and Insights

The proposed CAQ model established new state-of-the-art benchmarks on imSitu:

  • Role Accuracy: Achieved 30.15% Top-1 value accuracy, outperforming previous GNN-based models (28.31%).
  • Frame Accuracy: Value-all accuracy reached 18.58%, a significant improvement over the CNN+CRF baseline (14.28%).
  • Verb Prediction: The RE-VGG model improved Top-1 verb accuracy to 37.96%, proving that understanding participants helps identify the action itself.

A key insight from the study is the balance between independence and dependency. The authors found that combining too many context modules (CAQ + CAI) could actually degrade performance, suggesting that models need some degree of independent reasoning to avoid over-relying on dataset biases.

Conclusion

This research demonstrates the power of treating Situation Recognition as a context-aware visual reasoning task. By leveraging inter-dependent queries, the model can more accurately resolve complex scenes. Future work may explore applying this framework to even more complex domains, such as Embodied Question Answering, where multi-agent information sharing is critical.

Summary updated

BibTeX
@inproceedings{cooray2020attention,
  author = {Thilini Cooray and Ngai-Man Cheung and Wei Lu},
  title = {{Attention-Based Context Aware Reasoning for Situation Recognition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00479},
}
Figure