[Paper Review] Learning Answer Embeddings for Visual Question Answering
This paper proposes a probabilistic visual question answering model that learns joint embeddings for image-question pairs and answer embeddings to capture semantic relationships among answers. By modeling answer similarity via learned embeddings, the approach improves zero-shot generalization and transfer learning across datasets with limited answer overlap, outperforming standard classification baselines in both in-domain and cross-dataset settings.
We propose a novel probabilistic model for visual question answering (Visual QA). The key idea is to infer two sets of embeddings: one for the image and the question jointly and the other for the answers. The learning objective is to learn the best parameterization of those embeddings such that the correct answer has higher likelihood among all possible answers. In contrast to several existing approaches of treating Visual QA as multi-way classification, the proposed approach takes the semantic relationships (as characterized by the embeddings) among answers into consideration, instead of viewing them as independent ordinal numbers. Thus, the learned embedded function can be used to embed unseen answers (in the training dataset). These properties make the approach particularly appealing for transfer learning for open-ended Visual QA, where the source dataset on which the model is learned has limited overlapping with the target dataset in the space of answers. We have also developed large-scale optimization techniques for applying the model to datasets with a large number of answers, where the challenge is to properly normalize the proposed probabilistic models. We validate our approach on several Visual QA datasets and investigate its utility for transferring models across datasets. The empirical results have shown that the approach performs well not only on in-domain learning but also on transfer learning.
Motivation & Objective
- To address the limitation of multi-way classification in Visual QA, which treats answers as independent categories and ignores semantic relationships.
- To enable effective transfer learning across datasets with low answer overlap, particularly in open-ended VQA settings.
- To develop a model that can embed unseen answers during inference, improving generalization beyond the training vocabulary.
- To design an efficient optimization scheme for large-scale answer spaces, enabling scalable training with millions of candidate answers.
- To demonstrate that semantic alignment between image-question pairs and answer embeddings improves robustness and performance.
Proposed method
- The model learns two embedding functions: one for joint image-question pairs and another for individual answers, mapping them into a shared embedding space.
- The model uses a probabilistic scoring function based on inner products between the image-question embedding and answer embedding to predict the most likely answer.
- A key innovation is adaptive negative sampling within mini-batches to efficiently optimize the large-scale probabilistic model with thousands of candidate answers.
- The model computes the joint image-question embedding once per sample, enabling efficient inference across many candidate answers without recomputing.
- The approach uses a margin-based contrastive loss to maximize the likelihood of the correct answer relative to negative answers, with normalization handled via adaptive sampling.
- The framework is modular and compatible with any joint image-text encoder, such as a CNN-RNN or transformer-based architecture.
Experimental results
Research questions
- RQ1Can learning answer embeddings improve performance on in-domain Visual QA by capturing semantic relationships between answers?
- RQ2Can the model generalize to unseen answers not present in the training set, enabling zero-shot inference?
- RQ3Does the use of answer embeddings improve transfer learning performance across datasets with limited answer vocabulary overlap?
- RQ4How does the model's efficiency scale with large candidate answer sets, and can it outperform standard classification baselines in inference speed?
- RQ5To what extent do answer embeddings capture syntactic and semantic similarities, as evidenced by t-SNE visualization and downstream performance?
Key findings
- The proposed method, fPMC, outperforms standard classification baselines (CLS) in transfer learning, achieving a 12.0% improvement (from 42.8% to 54.8%) when transferring from Visual7W to qaVG.
- On the VQA2 dataset, fPMC achieves a top-3000 open-ended accuracy of 43.4%, significantly outperforming CLS (31.7%) and uPMC (29.5%) in transfer settings.
- When removing Yes/No answers from VQA2, fPMC improves over CLS by a larger margin (up to 13.7 percentage points), demonstrating the advantage of embeddings on semantically rich answers.
- The fPMC model achieves inference speed comparable to standard classification (22.14ms per mini-batch), while uPMC is over 10x slower (367.62ms), showing computational efficiency.
- t-SNE visualization confirms that learned answer embeddings preserve semantic and syntactic similarities, e.g., 'running' and 'jogging' are close in embedding space.
- Only 50–65% of the top-1000 answers are shared between popular datasets like VQA2 and Visual7W, highlighting the challenge of transfer and the value of embedding-based generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.