Synthesizing Visual Concepts as Vision-Language Programs
Proposes VLP, combining VLM perception with program synthesis, achieving significant improvements in complex logical visual reasoning.
Key Findings
Methodology
The approach involves three stages: first, symbol grounding using pretrained VLMs to identify objects, properties, and actions; second, defining a domain-specific language (DSL) that combines symbolic and VLM functions for structured reasoning; third, employing probabilistic context-free grammar (PCFG) to search for optimal programs that explain visual concepts. Experiments on datasets like CLEVR-Hans3 and COCOLogic compare direct prompting with structured program reasoning, demonstrating VLP's superior performance in complex tasks. The method does not rely on handcrafted detectors, instead automatically inducing symbolic rules from few labeled examples, enhancing generalization.
Key Results
- Across multiple datasets, VLP outperforms direct prompting, with an average accuracy increase of 13.5%, especially excelling in high-complexity logical tasks such as CLEVR-Hans3, where accuracy improved by 26.1%. In challenging scenarios with high uncertainty, structured reasoning provided robustness and interpretability, outperforming pure neural models.
- Compared to dedicated reasoning models, VLP's symbolic approach showed better generalization and robustness, particularly in tasks with limited samples and complex logic, effectively mitigating shortcut learning issues.
- The programmatic structure enabled transparent reasoning, allowing detection and mitigation of reasoning shortcuts, thus improving model trustworthiness and explainability.
Significance
This work advances the field of multimodal AI by integrating neural perception with symbolic reasoning, overcoming the limitations of pure neural models in systematic logical tasks. It demonstrates that automatic symbol induction from few examples is feasible without domain-specific detectors, paving the way for more interpretable and robust AI systems capable of high-level reasoning, knowledge extraction, and autonomous decision-making in real-world applications.
Technical Contribution
The key innovation is the VLP framework, which decouples perception from reasoning via symbol grounding, DSL, and probabilistic program search. It leverages VLMs for flexible perception, while symbolic reasoning via PCFG ensures logical consistency. This hybrid approach improves interpretability, generalization, and robustness, especially in high-uncertainty environments, and introduces a new paradigm for integrating neural and symbolic AI for visual reasoning.
Novelty
This is the first work to directly apply program synthesis to natural images for visual concept induction without relying on pre-defined detectors. Unlike prior methods limited to synthetic scenes, VLP automatically learns symbolic rules from few examples, combining neural perception with systematic reasoning. Its use of probabilistic grammar for program search in natural images represents a significant step forward in neuro-symbolic AI.
Limitations
- The approach depends on accurate symbol grounding; noisy or mislabeled data can impair rule induction. The reliance on predefined DSL may limit flexibility for highly diverse tasks.
- Program search via PCFG can be computationally intensive, especially for complex tasks with large search spaces, affecting scalability.
- Current method requires careful design of symbols and grammar, which may need task-specific tuning, limiting out-of-the-box applicability to entirely new domains.
Future Work
Future directions include optimizing program search algorithms for efficiency, expanding the symbol set for more complex reasoning, and integrating reinforcement learning to automate symbol and rule discovery. Extending the framework to handle dynamic scenes and multi-step reasoning, as well as applying it to real-world robotics and autonomous systems, are promising avenues. Additionally, combining self-supervised learning could further reduce dependence on labeled data, making the approach more scalable.
AI Executive Summary
Visual-language models (VLMs) have revolutionized multimodal understanding, yet they struggle with systematic visual reasoning, often producing inconsistent or illogical outputs. This limitation hampers their deployment in tasks requiring complex logic, such as rule induction and compositional reasoning. To address this, the paper introduces Vision-Language Programs (VLP), a hybrid framework that combines the perceptual strengths of VLMs with the systematic rigor of program synthesis.
VLP operates in three stages: first, it uses pretrained VLMs to identify objects, properties, and actions in images, forming a symbolic foundation; second, it defines a domain-specific language (DSL) that encodes logical operations and visual functions, enabling structured reasoning; third, it employs probabilistic context-free grammar (PCFG) to search for the most probable program that explains the visual concepts, based on few labeled examples. This process allows the model to automatically induce symbolic rules without handcrafted detectors, making it adaptable across domains.
Experimental results on synthetic datasets like CLEVR-Hans3 and real-world datasets such as COCOLogic demonstrate that VLP significantly outperforms direct prompting methods, with accuracy improvements up to 26%. Notably, VLP shows robustness in high-uncertainty scenarios, effectively mitigating shortcut learning and enhancing interpretability. The structured programs provide transparent reasoning pathways, enabling better error analysis and trustworthiness.
This work marks a significant step towards interpretable, robust multimodal AI capable of high-level logical reasoning. Future efforts will focus on optimizing program search efficiency, expanding symbolic representations, and applying the framework to real-world autonomous systems, pushing AI closer to human-like reasoning capabilities.
Deep Analysis
Background
Recent advances in multimodal AI have seen the emergence of large-scale vision-language models (VLMs) like CLIP, ALIGN, and InternVL, which excel at perception and semantic understanding. However, these models lack systematic reasoning capabilities, often producing inconsistent outputs in tasks requiring logical inference, such as rule induction, compositional reasoning, and abstract concept learning. Neuro-symbolic AI offers a promising solution by integrating neural perception with symbolic inference, providing interpretability and robustness. Prior work like Wüst et al. introduced program synthesis for visual concept induction but relied on domain-specific detectors, limiting generalization. The challenge remains to develop a flexible, end-to-end framework that can automatically induce symbolic rules directly from natural images, enabling scalable and explainable reasoning across diverse visual domains.
Core Problem
Despite the success of VLMs, their inability to perform reliable systematic reasoning remains a bottleneck. Existing methods either depend heavily on handcrafted detectors, which are domain-specific and lack scalability, or on extensive chain-of-thought prompting, which is computationally expensive and prone to contradictions. The core problem is how to leverage the perceptual power of VLMs while enabling explicit, interpretable, and systematic reasoning without manual intervention. Addressing this gap requires a framework that can automatically induce symbolic representations from raw images, support complex logical operations, and remain generalizable across tasks and domains, all while maintaining computational efficiency.
Innovation
This paper introduces VLP, a neuro-symbolic framework that combines VLMs with program synthesis. Key innovations include: 1) automatic symbol grounding from images using pretrained VLMs, eliminating reliance on handcrafted detectors; 2) a flexible DSL that integrates visual perception functions with logical operators, supporting structured reasoning; 3) probabilistic program search via PCFG that guides the induction of symbolic rules based on few labeled examples; 4) a decoupling of perception and reasoning, enabling modularity and interpretability. These innovations collectively enable the induction of human-interpretable rules directly from natural images, significantly advancing the state of neuro-symbolic visual reasoning.
Methodology
- �� First, use pretrained VLMs (e.g., InternVL-8B, Qwen-2.5B) to analyze each image, extracting symbols such as objects, properties, and actions, forming a structured symbolic pool. • Second, define a DSL that encodes visual functions (get_objects, get_actions) and logical operators (and, or, exists). This language supports flexible program construction. • Third, employ a probabilistic context-free grammar (PCFG) to generate candidate programs, assigning probabilities based on symbol occurrence frequencies in positive and negative examples. • Fourth, perform program search by evaluating candidate programs on the dataset, selecting the highest accuracy and likelihood. • Fifth, execute the best program on new images to infer labels, ensuring logical consistency and interpretability.
Experiments
The framework was evaluated on synthetic datasets (CLEVR-Hans3) and real-world datasets (COCOLogic, Bongard). Baselines included direct prompting of VLMs and dedicated reasoning models. Metrics focused on balanced accuracy, with support samples ranging from 6 to 20. Ablation studies examined the impact of symbol grounding, DSL design, and program search. Results showed VLP consistently outperformed baselines, with accuracy gains of up to 26% on complex tasks. The experiments demonstrated robustness to noise, generalization across domains, and the ability to detect shortcut learning through program transparency.
Results
VLP achieved an average accuracy increase of 13.5% over direct prompting across datasets, with the highest gains on CLEVR-Hans3 (26.1%). It maintained high performance with limited samples and high logical complexity, outperforming specialized reasoning models. The programmatic approach enabled transparent reasoning, allowing detection of reasoning shortcuts and improving trustworthiness. The experiments confirmed that structured symbolic reasoning significantly enhances robustness and interpretability, especially in out-of-distribution scenarios.
Applications
This approach can be applied in automated visual reasoning systems, such as intelligent surveillance, autonomous vehicles, and robotic perception, where explainability and robustness are critical. It also benefits knowledge extraction and question answering systems, providing transparent reasoning paths. The minimal data requirement makes it suitable for low-resource settings, and its generality supports adaptation to diverse domains, including medical imaging and industrial inspection.
Limitations & Outlook
The method relies heavily on accurate symbol grounding; noisy or ambiguous images can impair rule induction. The program search process is computationally intensive, especially for complex tasks, limiting scalability. The design of DSL and symbols may require task-specific tuning, reducing out-of-the-box applicability. Handling dynamic scenes and multi-step reasoning remains challenging, necessitating further research to improve efficiency and flexibility.
Plain Language Accessible to non-experts
想象你在厨房里做饭。以前,厨师只会按照菜谱一步步做菜,但如果菜谱不详细,厨师可能会放错调料或忘记加盐。现在,有一种新工具(VLP),它可以先观察每个食材(比如番茄、鸡蛋),用一种特殊的语言把这些信息写下来,然后帮你设计出最合适的做法。这个工具会试着用不同的方法组合食材,直到找到最好的菜谱。这样一来,不仅能做出美味的菜,还能告诉你为什么这么做。这就像有个聪明的朋友帮你理解每一步,学会自己做菜,而不是盲目照着菜谱走。这让厨房变得更智能,也更容易理解每个步骤的原因。
ELI14 Explained like you're 14
想象你在学校玩拼图游戏。以前,你只知道拼图的样子,拼完后才能知道是不是正确,但有时候拼错了还不知道原因。现在,有个聪明的助手(VLP),它可以先观察每个拼图块(像对象、颜色、形状),用一种特别的语言把这些信息写下来,然后帮你找出正确的拼法。它会试着用不同的方法拼,直到找到最合适的拼法。这样,不仅能拼出正确的图,还能告诉你为什么这样拼才对。就像一个聪明的朋友,帮你理解每一步,学会自己解决问题,而不是盲目试错。这让学习变得更有趣,也更容易掌握复杂的拼图技巧。
Abstract
Vision-Language models (VLMs) achieve strong performance on multimodal tasks but often fail at systematic visual reasoning tasks, leading to inconsistent or illogical outputs. Neuro-symbolic methods promise to address this by inducing interpretable logical rules, though they exploit rigid, domain-specific perception modules. We propose Vision-Language Programs (VLP), which combine the perceptual flexibility of VLMs with systematic reasoning of program synthesis. Rather than embedding reasoning inside the VLM, VLP leverages the model to produce structured visual descriptions that are compiled into neuro-symbolic programs. The resulting programs execute directly on images, remain consistent with task constraints, and provide human-interpretable explanations that enable easy shortcut mitigation. Experiments on synthetic and real-world datasets demonstrate that VLPs outperform direct and structured prompting, particularly on tasks requiring complex logical reasoning.