mlsanityData to 7 Oct 2026

Recursive Visual Programming

arXiv 2312.02249 ↗First posted 4 Dec 2023cs.CV cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

Visual Programming (VP) has emerged as a powerful framework for Visual Question Answering (VQA). By generating and executing bespoke code for each question, these methods demonstrate impressive compositional and reasoning capabilities, especially in few-shot and zero-shot scenarios. However, existing VP methods generate all code in a single function, resulting in code that is suboptimal in terms of both accuracy and interpretability. Inspired by human coding practices, we propose Recursive Visual Programming (RVP), which simplifies generated routines, provides more efficient problem solving, and can manage more complex data structures. RVP is inspired by human coding practices and approaches VQA tasks with an iterative recursive code generation approach, allowing decomposition of complicated problems into smaller parts. Notably, RVP is capable of dynamic type assignment, i.e., as the system recursively generates a new piece of code, it autonomously determines the appropriate return type and crafts the requisite code to generate that output. We show RVP's efficacy through extensive experiments on benchmarks including VSR, COVR, GQA, and NextQA, underscoring the value of adopting human-like recursive and modular programming techniques for solving VQA tasks through coding.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 43 of its 53 references that are in the map. First posted on arXiv 4 Dec 2023.

Builds on

43 of 53 references.

References · 43

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  7. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  8. 2015VQA: Visual Question Answeringcited by 2,489
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  10. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  11. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  12. 2019VisualBERT: A Simple and Performant Baseline for Vision and Languagecited by 1,291
31 more
  1. 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,224
  2. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
  3. 2019OK-VQA: A Visual Question Answering Benchmark Requiring External Knowledgecited by 1,114
  4. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  5. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  6. 2023Teaching Large Language Models to Self-Debugcited by 963
  7. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
  8. 2021NExT-QA:Next Phase of Question-Answering to Explaining Temporal Actionscited by 735
  9. 2022PAL: Program-aided Language Modelscited by 635
  10. 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 591
  11. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 542
  12. 2022Visual Programming: Compositional visual reasoning without trainingcited by 507
  13. 2015Neural Module Networkscited by 375
  14. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
  15. 2023Language to Rewards for Robotic Skill Synthesiscited by 307
  16. 2022Visual Spatial Reasoningcited by 288
  17. 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 244
  18. 2022Binding Language Models in Symbolic Languagescited by 224
  19. 2022Revisiting the "Video" in Video-Language Understandingcited by 167
  20. 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
  21. 2017Learning to Reason: End-to-End Module Networks for Visual Question Answeringcited by 125
  22. 2022Language Models with Image Descriptors are Strong Few-Shot Video-Language Learnerscited by 117
  23. 2019Learning by Abstraction: The Neural State Machinecited by 113
  24. 2022Capturing Failures of Large Language Models via Human Cognitive Biasescited by 97
  25. 2016Learning to Compose Neural Networks for Question Answeringcited by 85
  26. 2022HiTeA: Hierarchical Temporal-Aware Video-Language Pre-trainingcited by 72
  27. 2023Visual Programming for Text-to-Image Generation and Evaluationcited by 53
  28. 2023Modular Visual Question Answering via Code Generationcited by 47
  29. 2021COVR: A test-bed for Visually Grounded Compositional Generalization with real imagescited by 25
  30. 2020Obtaining Faithful Interpretations from Compositional Neural Networkscited by 23
  31. 2023A Static Evaluation of Code Completion by Large Language Modelscited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 2; 2026: 1.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Pyramid Coder: Hierarchical Code Generator for Compositional Visual Question Answering
  2. 2025RECODE: Reasoning Through Code Generation for Visual Question Answering
  3. 2024PropTest: Automatic Property Testing for Improved Visual Programming
  4. 2023Investigating Prompting Techniques for Zero- and Few-Shot Visual Question Answering
  5. 2024AdaCoder: Adaptive Prompt Compression for Programmatic Visual Question Answering
  6. 2025VQ-VA World: Towards High-Quality Visual Question-Visual Answering
  7. 2025The Quest for Visual Understanding: A Journey Through the Evolution of Visual Question Answering
  8. 2024Generalizing Visual Question Answering from Synthetic to Human-Written Questions via a Chain of QA with a Large Language Model