AutoTW-ASP: Automatic Low-Treewidth Encoding Synthesis and Backend Routing for Neurosymbolic ASP
Current neurosymbolic ASP pipelines require manual encoding redesign (for example carry-based formulations) to unlock treewidth-aware compilation gains. This project extends the dual-backend framework by automatically rewriting ASP constraints into semantically equivalent, lower-treewidth forms and dynamically routing each training instance to enumeration or compilation. The core idea is to combine static graph analysis of grounded programs with a semantics-preserving rewrite library and a learned crossover predictor based on treewidth, model-count proxies, and circuit reuse ratio. The expected impact is to remove expert-dependent encoding effort, broaden exact inference to more tasks, and improve training efficiency without sacrificing correctness.