An Agentic Framework for Neuro-Symbolic Programming
Aliakbar Nafar, Chetan Chigurupati, Danial Kamali, Hamid Karimian, Parisa Kordjamshidi
TL;DR
ADS presents an agentic, multi-agent workflow to synthesize complete neuro-symbolic programs from natural language task descriptions, bypassing library-specific syntax and enabling optional human refinement. By integrating RAG grounding, modular knowledge and model declarations, and a lightweight sensor/LLMModel architecture, ADS reduces NeSy development time while maintaining semantic correctness through iterative self-refinement and a human-in-the-loop. Experimental results across 12 tasks show strong graph correctness for several LLMs (e.g., up to 97.22% C+R in knowledge declarations) and substantial practical gains in development time for both experts and non-users. The approach demonstrates a scalable path to rapid NeSy programming and suggests future extensions to other frameworks and automatic component extraction for open-source symbolic systems.
Abstract
Integrating symbolic constraints into deep learning models could make them more robust, interpretable, and data-efficient. Still, it remains a time-consuming and challenging task. Existing frameworks like DomiKnowS help this integration by providing a high-level declarative programming interface, but they still assume the user is proficient with the library's specific syntax. We propose AgenticDomiKnowS (ADS) to eliminate this dependency. ADS translates free-form task descriptions into a complete DomiKnowS program using an agentic workflow that creates and tests each DomiKnowS component separately. The workflow supports optional human-in-the-loop intervention, enabling users familiar with DomiKnowS to refine intermediate outputs. We show how ADS enables experienced DomiKnowS users and non-users to rapidly construct neuro-symbolic programs, reducing development time from hours to 10-15 minutes.
