Compressing and Debiasing Vision-Language Pre-Trained Models for Visual Question Answering

Qingyi Si · DOI

Introduction

Visual Question Answering (VQA) models often struggle with "language bias," where they learn statistical shortcuts from training data (e.g., always answering "yellow" for bananas) rather than performing true multi-modal reasoning. Furthermore, state-of-the-art Vision-Language Pre-trained models (VLPs) like LXMERT are computationally expensive and difficult to deploy. This research explores whether these two challenges—model size and bias—can be addressed simultaneously by searching for "sparse and robust subnetworks."

Methodology: Finding Robust Subnetworks

The authors propose a three-stage pipeline to identify subnetworks that are both compact and robust:

  1. Full Model Fine-tuning: The VLP is initially trained on VQA using a debiasing loss (e.g., LMH or LPF).
  2. Model Compression: The model is pruned using either One-shot Magnitude Pruning (OMP) or Mask Training (optimizing a binary mask via a straight-through estimator).
  3. Refinement: Optional further fine-tuning of the remaining sparse connections to recover performance.

A key innovation is Modality-specific Sparsity. The researchers found that language and cross-modality modules harbor more bias than visual modules. Consequently, they prune language components more aggressively while preserving visual features.

Sparsity and Robustness

Contrary to the intuition that pruning hurts performance, the study finds that pruning acts as a regularizer. By removing parameters, the model is forced to discard "weak" features—often the biased shortcuts—and rely on more robust reasoning.

Accuracy and Bias Gap across Sparsity Levels

As shown in the figure above, there is a "comfort zone" between 50% and 70% sparsity where models actually outperform their full-sized counterparts on out-of-distribution (OOD) tasks. The "Acc Gap" metrics indicate that these sparse models are significantly less reliant on training set biases compared to the baseline.

Key Results

The proposed approach sets new state-of-the-art results on benchmarks like VQA-CP v2 and VQA-VS. Notably, a pruned LXMERT subnetwork with only 10% of its parameters (24M) achieved 59.05% accuracy on VQA-CP v2, significantly outperforming the full-sized (202M) debiased baseline.

OOD Performance vs. Model Size

The "lpf+lmh" strategy, which uses one debiasing method during initial training and another during pruning, reached a peak of 66.07% accuracy at 50% sparsity. These findings were also validated on the mPLUG model, suggesting that compression-driven debiasing is a generalizable property of modern VLPs.

Conclusion

This work demonstrates that model compression is not just a tool for efficiency but also a powerful mechanism for debiasing. By strategically pruning biased modules, researchers can create VQA models that are both smaller and more intelligent. Future work may involve automating the search for optimal modality-specific sparsity ratios.

Summary updated

Abstract

Despite the excellent performance of vision-language pre-trained models (VLPs) on conventional VQA task, they still suffer from two problems: First, VLPs tend to rely on language biases in datasets and fail to generalize to out-of-distribution (OOD) data. Second, they are inefficient in terms of memory footprint and computation. Although promising progress has been made in both problems, most existing works tackle them independently. To facilitate the application of VLP to VQA tasks, it is imperative to jointly study VLP compression and OOD robustness, which, however, has not yet been explored. This paper investigates whether a VLP can be compressed and debiased simultaneously by searching sparse and robust subnetworks. To this end, we systematically study the design of a training and compression pipeline to search the subnetworks, as well as the assignment of sparsity to different modality-specific modules. Our experiments involve 3 VLPs, 2 compression methods, 4 training methods, 2 datasets and a range of sparsity levels and random seeds. Our results show that there indeed exist sparse and robust subnetworks, which are competitive with the debiased full VLP and clearly outperform the debiasing SoTAs with fewer parameters on OOD datasets VQA-CP v2 and VQA-VS. The codes can be found at https://github.com/PhoebusSi/Compress-Robust-VQA.
BibTeX
@inproceedings{si2023compressing,
  author = {Qingyi Si},
  title = {{Compressing and Debiasing Vision-Language Pre-Trained Models for Visual Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.34},
}
Figure