Skip to main content
QUICK REVIEW

[Paper Review] Regularizing Attention Networks for Anomaly Detection in Visual Question Answering

Doyup Lee, Yeongjae Cheon|arXiv (Cornell University)|Sep 21, 2020
Multimodal Machine Learning ApplicationsComputer Science33 references5 citations
TL;DR

This paper proposes an attention-based anomaly detection method for Visual Question Answering (VQA) models that leverages cross-modal attention confidence to detect out-of-distribution (OOD) images, OOD questions, and irrelevant image-question pairs—outperforming traditional methods like maximum softmax probability (MSP) and outlier exposure (OE). It further introduces maximum entropy regularization of attention distributions, significantly improving robustness without degrading VQA accuracy, establishing cross-modal attention as critical for multimodal anomaly detection.

ABSTRACT

For stability and reliability of real-world applications, the robustness of DNNs in unimodal tasks has been evaluated. However, few studies consider abnormal situations that a visual question answering (VQA) model might encounter at test time after deployment in the real-world. In this study, we evaluate the robustness of state-of-the-art VQA models to five different anomalies, including worst-case scenarios, the most frequent scenarios, and the current limitation of VQA models. Different from the results in unimodal tasks, the maximum confidence of answers in VQA models cannot detect anomalous inputs, and post-training of the outputs, such as outlier exposure, is ineffective for VQA models. Thus, we propose an attention-based method, which uses confidence of reasoning between input images and questions and shows much more promising results than the previous methods in unimodal tasks. In addition, we show that a maximum entropy regularization of attention networks can significantly improve the attention-based anomaly detection of the VQA models. Thanks to the simplicity, attention-based anomaly detection and the regularization are model-agnostic methods, which can be used for various cross-modal attentions in the state-of-the-art VQA models. The results imply that cross-modal attention in VQA is important to improve not only VQA accuracy, but also the robustness to various anomalies.

Motivation & Objective

  • To define and evaluate five distinct anomaly types in VQA based on OOD status and answerability, addressing real-world robustness gaps.
  • To identify limitations of unimodal anomaly detection methods (e.g., MSP, OE) when applied to multimodal VQA tasks.
  • To develop a model-agnostic, attention-based method that detects anomalies using cross-modal attention confidence.
  • To improve VQA model robustness via maximum entropy regularization of attention distributions, preserving accuracy.
  • To demonstrate that cross-modal attention is not only key for accuracy but also essential for detecting diverse anomalies in multimodal inputs.

Proposed method

  • Categorizes VQA anomalies into five types based on OOD status of images/questions and answerability, creating a complete, disjoint partition of failure modes.
  • Proposes maximum attention probability (MAP) as a detector: low attention confidence between image and question indicates anomaly.
  • Introduces maximum entropy regularization of cross-modal attention distributions during training to enhance anomaly detection robustness.
  • Applies regularization during post-training to improve attention distribution uniformity on anomalies, avoiding accuracy degradation seen in outlier exposure (OE).
  • Uses attention modules from state-of-the-art VQA models (e.g., BUTD, VQA-Transformer) without architectural changes, ensuring model-agnostic applicability.
  • Employs a simple, confidence-based detection mechanism that does not require additional models or fine-tuning beyond attention regularization.

Experimental results

Research questions

  • RQ1Can maximum softmax probability (MSP) effectively detect OOD images, OOD questions, or irrelevant image-question pairs in VQA?
  • RQ2Why do standard unimodal anomaly detection techniques like outlier exposure (OE) fail to improve robustness in multimodal VQA tasks?
  • RQ3Can cross-modal attention confidence serve as a reliable proxy for anomaly detection in VQA, and how does it compare to output-based methods?
  • RQ4Does maximum entropy regularization of attention distributions improve anomaly detection while preserving VQA accuracy?
  • RQ5How should anomalies be selected for post-training to maximize robustness in multimodal models with bimodal inputs?

Key findings

  • MSP fails to detect OOD images, OOD questions, or irrelevant image-question pairs in VQA, despite its success in unimodal tasks.
  • Outlier exposure (OE) severely degrades VQA accuracy, especially when updating attention modules, rendering it ineffective for VQA robustness.
  • Maximum attention probability (MAP) using cross-modal attention achieves state-of-the-art performance in detecting irrelevant questions and OOD inputs.
  • Maximum entropy regularization of attention distributions significantly improves anomaly detection performance without degrading VQA accuracy.
  • The proposed attention-based method is model-agnostic and applicable to various state-of-the-art VQA models with different attention mechanisms.
  • Cross-modal attention is not only crucial for VQA accuracy but also essential for detecting diverse real-world anomalies in multimodal inputs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.