SADL: An Effective In-Context Learning Method for Compositional Visual QA

Long Hoang Dang, Thao Minh Le, Vuong Le, Tu Minh Phuong, Truyen TranarXiv 2024 · DOI

Introduction

Large Vision-Language Models (LVLMs) have demonstrated remarkable in-context learning (ICL) capabilities, enabling them to perform tasks using only a few demonstrations. However, these models frequently struggle with compositional questions—queries that require multi-step reasoning and spatial or relational grounding (e.g., "Is the person to the left of the man holding the umbrella wearing a hat?").

The primary challenge lies in the "visual-linguistic semantic gap": symbolic concepts within a question must be accurately mapped to visual content that lacks a corresponding syntactic structure. While standard natural language processing techniques like Chain-of-Thought (CoT) provide some benefit, they often fail to help models maintain focus on specific visual regions throughout a complex reasoning chain.

Methodology: The SADL Framework

To address these limitations, we propose SADL (Sampling, Deliberation, and Labeling), a training-free, inference-only prompting framework designed to bridge the semantic gap through structured reasoning.

The SADL architecture illustrating the flow from proximal sampling and question decomposition to pseudo-labeling and final query answering.

SADL is built upon three core pillars:

  1. Proximal Sampling: Unlike random few-shot selection, SADL utilizes "query-specific" examples. By retrieving image-question pairs from training data that are semantically similar to the current query, the model is better equipped to recognize relevant reasoning patterns.
  2. Deliberation (Question Decomposition): Complex queries are decomposed into a sequence of simpler sub-questions using an external LLM (e.g., Vicuna-13B). This transforms a single difficult task into a manageable roadmap of atomic visual checks.
  3. Pseudo-Labeling: The LVLM itself progressively answers these sub-questions. This creates a structured, "pseudo-labeled" reasoning chain that guides the model toward the final answer, ensuring each step is grounded in the visual evidence.

Experimental Evaluation

SADL was evaluated across four major compositional VQA benchmarks: GQA (spatial/relational reasoning), GQA-OOD (out-of-distribution robustness), CLEVR (synthetic relational logic), and CRIC (visually grounded commonsense knowledge).

Key Results

SADL consistently outperformed vanilla few-shot prompting and standard language-based techniques such as CoT and Least-to-Most (L2M) prompting:

  • GQA: Achieved 40.67% accuracy, representing an 8-point absolute improvement over CoT and L2M.
  • GQA-OOD: Demonstrated a 28% relative performance increase, suggesting that SADL helps models mitigate dataset biases by focusing on local, step-by-step reasoning.
  • CRIC: On highly complex questions requiring five or more reasoning steps, SADL provided a 45% relative gain over baseline methods.
Accuracy comparison on the CRIC dataset, showing SADL's significant performance lead over Vanilla, CoT, and Least-to-most methods.

An ablation study on the CRIC dataset further highlighted the importance of the deliberation step; removing question decomposition caused accuracy to drop from approximately 39% to 26%.

Insights and Discussion

Our findings suggest that in multimodal reasoning, the accuracy and relevance of examples are more critical than they are in pure text-based ICL. Explicit decomposition (Deliberation) is significantly more effective than generic "step-by-step" instructions for grounding linguistic concepts in visual pixels.

Limitations and Future Work

While effective, SADL increases computational overhead due to its multi-step nature (decomposition and sequential answering). Furthermore, the framework's success is dependent on the base LVLM's ability to avoid hallucinations during sub-question answering. Future research will explore scaling these techniques with more powerful underlying models and optimizing the inference speed for real-time applications.

Summary updated

BibTeX
@misc{dang2024sadl,
  author = {Long Hoang Dang and Thao Minh Le and Vuong Le and Tu Minh Phuong and Truyen Tran},
  title = {{SADL: An Effective In-Context Learning Method for Compositional Visual QA}},
  year = {2024},
  eprint = {2407.01983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.01983},
}
Figure