[Paper Review] Loss re-scaling VQA: Revisiting the LanguagePrior Problem from a Class-imbalance View
This paper proposes a novel loss re-scaling approach to address the language prior problem in Visual Question Answering (VQA) by interpreting it as a class-imbalance issue. By assigning dynamic loss weights based on answer frequency per question type, the method reduces model bias toward frequent, incorrect answers, significantly improving performance on VQA-CP benchmarks across six strong baselines, with gains up to 14.6% on VQA-CP v2.
Recent studies have pointed out that many well-developed Visual Question Answering (VQA) models are heavily affected by the language prior problem, which refers to making predictions based on the co-occurrence pattern between textual questions and answers instead of reasoning visual contents. To tackle it, most existing methods focus on enhancing visual feature learning to reduce this superficial textual shortcut influence on VQA model decisions. However, limited effort has been devoted to providing an explicit interpretation for its inherent cause. It thus lacks a good guidance for the research community to move forward in a purposeful way, resulting in model construction perplexity in overcoming this non-trivial problem. In this paper, we propose to interpret the language prior problem in VQA from a class-imbalance view. Concretely, we design a novel interpretation scheme whereby the loss of mis-predicted frequent and sparse answers of the same question type is distinctly exhibited during the late training phase. It explicitly reveals why the VQA model tends to produce a frequent yet obviously wrong answer, to a given question whose right answer is sparse in the training set. Based upon this observation, we further develop a novel loss re-scaling approach to assign different weights to each answer based on the training data statistics for computing the final loss. We apply our approach into three baselines and the experimental results on two VQA-CP benchmark datasets evidently demonstrate its effectiveness. In addition, we also justify the validity of the class imbalance interpretation scheme on other computer vision tasks, such as face recognition and image classification.
Motivation & Objective
- To investigate the root cause of the language prior problem in VQA, which leads models to rely on statistical shortcuts instead of visual reasoning.
- To provide a new interpretation of the language prior problem as a class-imbalance issue, where frequent answers dominate model predictions.
- To develop a loss re-scaling mechanism that assigns higher weights to rare, correct answers to counteract training data bias.
- To validate the effectiveness of this approach across multiple strong VQA baselines and on standard VQA-CP benchmarks.
- To generalize the class-imbalance interpretation to other vision-and-language tasks such as image classification and face recognition.
Proposed method
- Proposes a class-imbalance interpretation of the language prior problem, where models overfit to frequent answers due to skewed label distribution per question type.
- Introduces a loss re-scaling mechanism that computes dynamic loss weights for each answer based on its frequency in the training set for a given question type.
- Applies the re-weighted loss during training using either Sigmoid-BCE or Softmax-Cross-Entropy, with derived gradients that preserve backpropagation efficiency.
- Incorporates an answer mask module to suppress prediction of out-of-type answers (e.g., 'yes' for 'how many' questions), improving generalization.
- Uses question-type-specific statistics to compute loss weights, ensuring that rare but correct answers receive higher gradient signals.
- Employs softplus-G activation in the loss weighting function to stabilize training and improve convergence.
Experimental results
Research questions
- RQ1Why do VQA models consistently predict frequent, incorrect answers (e.g., '2' for 'how many' questions) even when the correct answer is visually evident?
- RQ2Can the language prior problem be formally interpreted as a class-imbalance issue in the context of VQA?
- RQ3Does re-weighting the loss based on answer frequency per question type effectively reduce model bias toward frequent answers?
- RQ4How does the proposed loss re-scaling method compare to existing approaches like Focal Loss in mitigating language priors?
- RQ5Can the class-imbalance interpretation and loss re-scaling be generalized to other vision-and-language tasks beyond VQA?
Key findings
- The language prior problem arises because models overfit to frequent answers in the training data, especially for question types with skewed answer distributions.
- The proposed loss re-scaling method improves accuracy by up to 14.6% on VQA-CP v2 compared to baseline models, with consistent gains across all six evaluated baselines.
- On the UpDn model, the method achieves a 14.6% absolute improvement on VQA-CP v2 (from 38.80% to 53.26%) when combining both answer masking and loss re-scaling.
- The method outperforms Focal Loss by providing more explicit, question-type-specific guidance through frequency-based loss weighting.
- Visualization results show that the model with re-scaling focuses more accurately on relevant visual regions, such as the correct child or animal, rather than being misled by language cues.
- The class-imbalance interpretation is validated on face recognition and image classification tasks, confirming its broader applicability beyond VQA.
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.