Synthesizing Visual Concepts as Vision-Language Programs

Antonia Wüst, Wolfgang Stammer, Hikaru Shindo, Lukas Helff, Devendra Singh Dhami, Kristian Kersting

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.

Figure 1. VLMs cannot reliably perform inductive logic learn- ing from images, failing to capture visual compositions like “can- dles and birthday cake”. Vision-Language Programs (VLP) em- ploy explicit symbolic reasoning to overcome such visual reason- ing errors while maintaining perceptual flexibility.

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:

  1. 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.
  2. Grammar Construction (DSL to PCFG): VLP uses a domain-independent Domain-Specific Language (DSL). This DSL contains syntactic primitives, VLM perception functions (like get_objects and get_actions), and symbolic operators (like exists_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.
  3. 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.

Figure 2. Overview of VISION-LANGUAGE PROGRAMS synthesis. Relevant variables are first discovered from the input examples (i) and used to construct a task-specific DSL, including VLM-based functions (ii). Program synthesis (iii) then searches this space to retrieve the most probable program that also achieves the highest accuracy on the input.

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.
Figure 4. VLP performance improves as more input images are provided, in contrast to baselines, which stagnate or decline. Results are aggregated over models from Table 1.
  • 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).
Table 1. Comparison of base VLMs and VLMs with VLP (averaged over three runs). Balanced accuracy (%) on 6-shot Bongard tasks and 10-shot logical reasoning benchmarks. Improvements (green / gray) denote changes relative to the baseline. Best results per model are shown in bold; overall best results per dataset column are underlined.

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

BibTeX
@inproceedings{wust2026synthesizing,
  author = {Antonia Wüst and Wolfgang Stammer and Hikaru Shindo and Lukas Helff and Devendra Singh Dhami and Kristian Kersting},
  title = {{Synthesizing Visual Concepts as Vision-Language Programs}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ihGFGFV8in},
}
Figure