LPF: A Language-Prior Feedback Objective Function for De-biased Visual Question Answering

Zujie Liang, Haifeng Hu, Jiaying Zhu · DOI

Abstract

Visual Question Answering (VQA) models frequently rely on language priors—statistical correlations in training data—rather than visual evidence, leading to poor generalization on out-of-distribution data. We present Language-Prior Feedback (LPF), a model-agnostic objective function that dynamically down-weights samples easily predictable from the question alone. By reshaping the loss function, LPF forces the model to prioritize visual reasoning. Our method achieves significant performance gains on the VQA-CP v2 benchmark, improving baseline accuracy by over 15% without requiring additional human annotations.

Introduction: The Challenge of Language Priors

A persistent issue in VQA is the tendency of models to "cheat" by memorizing language patterns. For example, if a dataset predominantly features yellow bananas, a model may learn to answer "yellow" to any color-related question about bananas without inspecting the image. This reliance on language priors causes performance to collapse when the model encounters test sets with different answer distributions, such as the VQA-CP benchmark.

Existing de-biasing techniques often involve complex adversarial training or expensive human-annotated attention maps. There is a clear need for a simpler, more stable, and model-agnostic approach to ensure models truly ground their answers in visual evidence.

Methodology: Language-Prior Feedback (LPF)

The proposed LPF framework introduces a feedback mechanism to the training process, consisting of three primary components: a base VQA model, a question-only branch, and the LPF objective function.

The LPF framework architecture, featuring a base VQA model, a question-only branch for bias detection, and the LPF objective function.
  1. Base VQA Model: Any standard architecture (e.g., UpDn, BAN) that processes both image and question inputs.
  2. Question-Only Branch: A simple MLP that predicts answers using only the question text. This branch serves as a "bias detector" to identify samples that are too easy to guess.
  3. LPF Objective Function: During training, the question-only branch calculates the probability ($\alpha_i$) of the correct answer. If $\alpha_i$ is high, the sample is considered highly biased. LPF applies a modulating factor $\beta_i = (1 - \alpha_i)^\gamma$ to the main VQA loss, effectively reducing the weight of these biased samples. This forces the model to extract visual cues that the question-only branch cannot see.

To maintain the integrity of the question representation, gradients from the question-only branch are not backpropagated to the shared question encoder.

Experimental Setup

The method was evaluated on two key benchmarks:

  • VQA-CP v2: Designed to test de-biasing by ensuring training and test sets have different answer distributions for the same question types.
  • VQA v2: The standard dataset used to verify that de-biasing does not significantly degrade general performance.

LPF was integrated into several baseline models, including UpDn, BAN, and S-MRL, to demonstrate its model-agnostic nature.

Key Results and Discussion

LPF achieved state-of-the-art results on VQA-CP v2. Notably, applying LPF to the UpDn baseline increased accuracy from 39.49% to 55.34%, a 15.85% absolute improvement. The most significant gains were observed in "Yes/No" questions (+43.40%), which typically suffer most from language bias.

Qualitative comparison between the baseline UpDn model and the LPF-enhanced model, showing improved visual grounding and correct predictions.

Qualitative analysis via attention maps confirms that LPF-trained models exhibit better visual grounding. While baseline models often attend to irrelevant background features, LPF-enhanced models focus on the specific objects mentioned in the question, such as a flag or a piece of clothing.

Insights

  • Loss Reshaping: Unlike simple reweighting, LPF reshapes the global loss so that "hard" samples—those requiring visual evidence—become the primary drivers of learning.
  • Simplicity and Stability: LPF is end-to-end trainable and avoids the instability common in adversarial methods. It repurposes the concept of "Focal Loss" to address modality bias rather than class imbalance.

Conclusion and Future Work

LPF provides a simple yet powerful tool for de-biasing VQA models. By dynamically adjusting the training focus based on language-only guessability, it encourages genuine multi-modal reasoning. Future research could explore extending this feedback mechanism to address uni-modal biases in other domains, such as vision-only biases in video understanding tasks.

Summary updated

BibTeX
@inproceedings{liang2021lpf,
  author = {Zujie Liang and Haifeng Hu and Jiaying Zhu},
  title = {{LPF: A Language-Prior Feedback Objective Function for De-biased Visual Question Answering}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2021},
  doi = {10.1145/3404835.3462981},
}
Figure