TL;DR
Vision-Language Models (VLMs) excel at perception but often stumble on systematic, inductive logic. This paper introduces Vision-Language Programs (VLP), a neuro-symbolic framework that uses VLMs to extract visual concepts and then synthesizes explicit, executable symbolic programs to handle the reasoning. This approach significantly boosts inductive reasoning performance, reduces token usage compared to "chain-of-thought" models, and enables human-in-the-loop debugging.
What Problem Does This Paper Address?
While modern VLMs achieve impressive results on multimodal tasks, they frequently fail at systematic visual reasoning—especially inductive visual reasoning. In these tasks, a model must look at a set of positive and negative image examples and infer the underlying rule that distinguishes them.
When prompted directly, VLMs often generate rules that violate basic task constraints because they attempt to handle perception and complex logic simultaneously in natural language. For instance, a VLM might look at images of birthday parties and mistakenly conclude the rule is "contains a candle or candles," failing to realize that a negative example also contains candles but lacks a birthday cake.
Prior neuro-symbolic methods tried to fix this by using symbolic rule-learners, but they relied on rigid, domain-specific object detectors. The authors bridge this gap by combining the open-world perceptual flexibility of VLMs with the logical rigor of symbolic program synthesis.
Methods
VLP operates in three distinct stages to decouple perception from reasoning:
- Symbol Grounding: The framework queries a pretrained VLM to discover relevant objects, properties, and actions across the provided images, dynamically building a task-specific vocabulary.
- Grammar Construction (DSL to PCFG): VLP uses a domain-independent Domain-Specific Language (DSL). This DSL contains syntactic primitives, VLM perception functions (like
get_objectsandget_actions), and symbolic operators (likeexists_object,count_object,AND,OR). This DSL is automatically converted into a Probabilistic Context-Free Grammar (PCFG), where terminal symbols are weighted based on how frequently and precisely they appear in the positive image set. - Program Synthesis: VLP performs a top-down enumerative search over the PCFG to find an executable program that perfectly distinguishes positive examples from negative ones.
The final synthesized program executes directly on images by using the VLM as a callable feature extractor, ensuring strict logical consistency.
Datasets
The authors evaluated VLP across several challenging visual puzzle and logical benchmarks:
- Bongard-HOI, Bongard-OpenWorld, and Bongard-RWR: Real-world image datasets featuring 6-shot visual reasoning tasks focused on human-object interactions and abstract concepts.
- COCOLogic: A dataset consisting of 10 complex logical reasoning tasks derived from MS-COCO images.
- CLEVR-Hans3: A synthetic dataset containing complex, multi-object logical rules designed to test compositional reasoning and shortcut learning.
Key Insights and Ideas
- Decoupling Prevents Hallucination: Forcing the VLM to act purely as a "see-er" (perceptual front-end) and leaving the "thinking" to a symbolic search engine prevents the model from generating plausible-sounding but logically flawed rules.
- VLP Scales with More Data: Standard VLMs often suffer from attention dilution when forced to process many images at once in their context window. In contrast, VLP's performance steadily improves as more support images are provided because more data helps the program synthesizer narrow down the correct logical rule.
- Human-in-the-Loop Debugging: Because the output is an explicit symbolic program, humans can easily inspect it to detect if the model is relying on "shortcuts" (e.g., classifying based on a background color rather than the actual object). Users can interactively edit the DSL—such as removing shortcut features or adding missing primitives—to dramatically improve accuracy.
Key Results
The authors integrated VLP with five different open-source VLMs (including InternVL3 and Qwen2.5/3 variants) and demonstrated substantial improvements:
- Accuracy Boosts: VLP improved balanced accuracy across all models and datasets, yielding an average boost of up to 13.5%. The most dramatic gains occurred on the highly complex CLEVR-Hans3 dataset, where Qwen2.5-VL-7B saw a 40% accuracy jump.
- Outperforming "Thinking" Models: VLP was compared against dedicated test-time scaling models (like Kimi-VL-Thinking and Qwen3-VL-Thinking). VLP achieved comparable or superior accuracy while using a fraction of the tokens (e.g., on CLEVR-Hans3, Kimi w/ VLP used 6,584 tokens compared to Kimi w/ Think's 46,941 tokens).
Limitations and Future Work
Despite its success, VLP is still bounded by the perceptual capabilities of the underlying VLM. If the VLM fails to log an object property during the symbol grounding phase (e.g., missing a subtle color or texture), the program synthesizer cannot reason about it. Additionally, the current DSL lacks explicit spatial relation operators (like "left of" or "inside"), limiting its performance on positional puzzles.
Future work aims to explore automated DSL expansion, allowing the framework to dynamically generate new primitive functions tailored to downstream tasks, and optimizing the symbol querying process to reduce prompt overhead.
Summary updated