Scope: Build an automated optimization layer on top of a NeurASP-style training loop with two exact backends (stable-model enumeration and d-DNNF compilation). The system will (1) analyze grounded ASP programs and observations, (2) generate candidate rewrites that preserve stable-model semantics, (3) estimate post-rewrite treewidth and reuse potential, and (4) select the backend per observation or program family using a calibrated crossover policy. Constraints: Rewrites must be semantics-preserving under stable-model semantics and must not change task labels or supervision signals. The method must support programs with default negation, integrity constraints, and common arithmetic/relational patterns used in neurosymbolic datasets. Compilation overhead must be controlled through caching and amortization; when reuse is low or structure varies heavily, the system should fall back to enumeration. Success criteria: Compared with a strong manual baseline (naive…Read more
Read less
Scope: Build an automated optimization layer on top of a NeurASP-style training loop with two exact backends (stable-model enumeration and d-DNNF compilation). The system will (1) analyze grounded ASP programs and observations, (2) generate candidate rewrites that preserve stable-model semantics, (3) estimate post-rewrite treewidth and reuse potential, and (4) select the backend per observation or program family using a calibrated crossover policy. Constraints: Rewrites must be semantics-preserving under stable-model semantics and must not change task labels or supervision signals. The method must support programs with default negation, integrity constraints, and common arithmetic/relational patterns used in neurosymbolic datasets. Compilation overhead must be controlled through caching and amortization; when reuse is low or structure varies heavily, the system should fall back to enumeration. Success criteria: Compared with a strong manual baseline (naive encoding + fixed backend, and hand-crafted carry-style encoding where available), the method should reduce end-to-end training time while maintaining exact inference and task accuracy. The project should also show that automatic rewrites recover a substantial fraction of the gains previously achieved only through manual encoding design. Deliverables: (1) a rewrite engine with formally specified transformation rules, (2) a backend router with explicit decision features and thresholds, (3) a benchmark suite across addition, formula evaluation, Sudoku, ordering, counting, and shortest-path variants, (4) an ablation report on rewrite quality vs. runtime/accuracy, and (5) reproducible code, configs, and logs.