Pyramid Coder: Hierarchical Code Generator for Compositional Visual Question Answering
Not on the map. Why?
Abstract (arXiv)
Visual question answering (VQA) is the task of providing accurate answers to natural language questions based on visual input. Programmatic VQA (PVQA) models have been gaining attention recently. These use large language models (LLMs) to formulate executable programs that address questions requiring complex visual reasoning. However, there are challenges in enabling LLMs to comprehend the usage of image processing modules and generate relevant code. To overcome these challenges, this paper introduces PyramidCoder, a novel prompting framework for PVQA models. PyramidCoder consists of three hierarchical levels, each serving a distinct purpose: query rephrasing, code generation, and answer aggregation. Notably, PyramidCoder utilizes a single frozen LLM and pre-defined prompts at each level, eliminating the need for additional training and ensuring flexibility across various LLM architectures. Compared to the state-of-the-art PVQA model, our approach improves accuracy by at least 0.5% on the GQA dataset, 1.4% on the VQAv2 dataset, and 2.9% on the NLVR2 dataset.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 23 of its 32 references that are in the map. First posted on arXiv 30 Jul 2024.
Builds on
23 of 32 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,322
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,332
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2016Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answeringcited by 2,516
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2017Bottom-Up and Top-Down Attention for Image Captioning and Visual Question Answeringcited by 1,312
11 more
- 2021Grounded Language-Image Pre-trainingcited by 1,156
- 2023StarCoder: may the source be with you!cited by 799
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 603
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 516
- 2018A Corpus for Reasoning About Natural Language Grounded in Photographscited by 459
- 2015Stacked Attention Networks for Image Question Answeringcited by 273
- 2017Inferring and Executing Programs for Visual Reasoningcited by 130
- 2022Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Trainingcited by 88
- 2015Ask Your Neurons: A Neural-based Approach to Answering Questions about Imagescited by 51
- 2023Modular Visual Question Answering via Code Generationcited by 48
Built on by
Citing papers per year: 2025: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025The Quest for Visual Understanding: A Journey Through the Evolution of Visual Question Answering
- 2025Visual question answering: from early developments to recent advances -- a survey
- 2022Co-VQA : Answering by Interactive Sub Question Sequence
- 2023Improving Zero-shot Visual Question Answering via Large Language Models with Reasoning Question Prompts
- 2024Natural Language Understanding and Inference with MLLM in Visual Question Answering: A Survey
- 2024II-MMR: Identifying and Improving Multi-modal Multi-hop Reasoning in Visual Question Answering
- 2024A Comprehensive Survey on Visual Question Answering Datasets and Algorithms
- 2023Prompting Vision Language Model with Knowledge from Large Language Model for Knowledge-Based VQA