Abstract
Visual Question Answering (VQA) systems often struggle with "long-tail" scenarios where certain answer categories appear infrequently in training data. This paper presents a two-stage framework designed to improve few-shot VQA performance by exploiting the compositional nature of language. By decomposing complex answers into simpler, more frequent attributes, the model learns to recognize novel combinations (e.g., "riding elephant") through the synthesis of known concepts. Experimental results on the VQA v2.0 dataset demonstrate significant improvements over baseline models in few-shot settings.
Introduction
State-of-the-art VQA systems typically require thousands of examples per answer category to achieve high accuracy. Consequently, they often fail to generalize to rare or novel answers—a phenomenon known as the "long-tail" problem. For example, while a model might easily identify "riding a bike" due to its prevalence in training sets, it may struggle with "riding an elephant" if only a few instances are provided.
Humans, conversely, possess an innate ability for compositional reasoning. We understand that "riding an elephant" is a combination of the action "riding" and the object "elephant," both of which are familiar from other contexts. This research aims to bridge the gap between human and machine reasoning by teaching AI to perform similar compositional synthesis, enabling effective adaptation to new categories with minimal data.
Methodology
The proposed framework operates in two distinct stages:
1. Base Stage
During the base stage, the model is trained on a "base set" of frequent answers. The architecture utilizes a Bilinear Graph Network (BGN) as its backbone to model the intricate relationships between words in the question and objects within the image. A critical component introduced here is the Attribute Network (AN). Unlike standard approaches that rely on global image features, the AN learns to identify specific attributes—such as colors, actions, or objects—by scoring them against individual nodes in the image-graph. This localized scoring ensures that representations for different concepts are grounded in relevant image regions.
2. Novel Stage
In the novel (few-shot) stage, the backbone and attribute representations are frozen. The model learns embeddings for new, rare answers by applying a compositional constraint: the embedding of a novel answer must be close to the sum of the embeddings of its constituent attributes. This regularization prevents the model from overfitting to the limited examples available for novel categories.
Experimental Setup
The method was evaluated using a custom split of the VQA v2.0 dataset:
- Base Set: 2,584 answers with at least 40 training instances.
- Novel Set: 1,859 answers with between 10 and 40 instances.
- Attributes: 2,108 unique tokens automatically extracted from answer text using natural language processing tools (e.g., spaCy).
Results and Discussion
The BGN + AN model consistently outperformed the baseline BGN and other state-of-the-art few-shot methods. In 5-shot tests on the VQA v2.0 validation set, the proposed method improved top-1 accuracy by nearly 2% and top-5 accuracy by 3% over the backbone. In 10-shot scenarios, the model achieved a top-1 accuracy of 15.46%, compared to the baseline's 14.31%.
A key insight is that using compositionality as a form of regularization effectively constrains the learning space for rare answers. Furthermore, by scoring attributes against image parts rather than the whole, the model achieves superior feature disentanglement, allowing it to correctly identify complex combinations (e.g., "cutting cake") where baselines might default to more frequent but incorrect associations.
Conclusion
While the proposed compositional approach significantly improves few-shot VQA performance, a substantial gap remains between accuracy on frequent base categories (61.18%) and rare novel categories (15.46%). Future research will explore more sophisticated attribute relationship modeling and the integration of large-scale pre-trained language models to further enhance attribute extraction and reasoning. This work underscores the power of compositionality as a tool for addressing the long-tail challenges in visual-linguistic tasks.
Summary updated