HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Learning Visual Question Answering by Bootstrapping Hard Attention

Mateusz Malinowski; Carl Doersch; Adam Santoro; Peter Battaglia

Learning Visual Question Answering by Bootstrapping Hard Attention

Abstract

Attention mechanisms in biological perception are thought to select subsets of perceptual information for more sophisticated processing which would be prohibitive to perform on all sensory inputs. In computer vision, however, there has been relatively little exploration of hard attention, where some information is selectively ignored, in spite of the success of soft attention, where information is re-weighted and aggregated, but never filtered out. Here, we introduce a new approach for hard attention and find it achieves very competitive performance on a recently-released visual question answering datasets, equalling and in some cases surpassing similar soft attention architectures while entirely ignoring some features. Even though the hard attention mechanism is thought to be non-differentiable, we found that the feature magnitudes correlate with semantic relevance, and provide a useful signal for our mechanism's attentional selection criterion. Because hard attention selects important features of the input information, it can also be more efficient than analogous soft attention mechanisms. This is especially important for recent approaches that use non-local pairwise operations, whereby computational and memory costs are quadratic in the size of the set of features.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
visual-question-answering-on-clevrCNN + LSTM + RN + HAN
Accuracy: 98.8
visual-question-answering-on-vqa-cpHAN
Score: 28.65

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Learning Visual Question Answering by Bootstrapping Hard Attention | Papers | HyperAI