COOL: Efficient and Reliable Chain-Oriented Objective Logic with Neural Networks Feedback Control for Program Synthesis
Jipeng Han
TL;DR
The paper addresses the rigidity and unreliability of current program synthesis methods by introducing COOL, a neural-symbolic framework that combines Chain-of-Logic (CoL) with Neural Network Feedback Control (NNFC). CoL provides fine-grained, activity-level control over DSL rule application using heuristic vectors and control keywords, while NNFC leverages a Domain-Specific Neural Network (DSNN) with an inner coupling structure to dynamically adjust the synthesis process and filter mispredictions. Static experiments show large gains in accuracy and substantial reductions in tree operations and time, with NNFC offering additional improvements under challenging conditions. Dynamic results demonstrate robust reliability as task difficulty and domain complexity increase, validating the approach for multi-domain synthesis and highlighting its potential for integration with broader AI tooling and language-model workflows.
Abstract
Program synthesis methods, whether formal or neural-based, lack fine-grained control and flexible modularity, which limits their adaptation to complex software development. These limitations stem from rigid Domain-Specific Language (DSL) frameworks and neural network incorrect predictions. To this end, we propose the Chain of Logic (CoL), which organizes the synthesis process into an activity flow and provides heuristic control to guide the process. Furthermore, by integrating neural networks with libraries and introducing a Neural Network Feedback Control (NNFC) mechanism, our approach modularizes synthesis and mitigates the impact of neural network mispredictions. Experiments on relational and symbolic synthesis tasks show that CoL significantly enhances the efficiency and reliability of DSL program synthesis across multiple metrics. Specifically, CoL improves accuracy by 70% while reducing tree operations by 91% and time by 95%. Additionally, NNFC further boosts accuracy by 6%, with a 64% reduction in tree operations under challenging conditions such as insufficient training data, increased difficulty, and multidomain synthesis. These improvements confirm COOL as a highly efficient and reliable program synthesis framework.
