🤖 AI Summary
This work addresses the inefficiency of solving combinatorial problems in Answer Set Programming (ASP) by introducing, for the first time, a large language model (LLM)-based streamlining approach adapted from constraint programming. By designing targeted prompts, the method guides the LLM to automatically generate semantically diverse and non-redundant structured constraints. These candidate constraints are dynamically filtered through ASP encoding analysis and validity verification, enabling the construction of virtually optimal encoding variants across multiple benchmarks. Evaluated on three ASP competition benchmarks, the approach achieves up to a 4–5× speedup in solving time, significantly enhancing computational efficiency and demonstrating the effectiveness and generalizability of LLM-driven streamlining in ASP.
📝 Abstract
Streamliner constraints reduce the search space of combinatorial problems by ruling out portions of the solution space. We adapt the StreamLLM approach, which uses Large Language Models (LLMs) to generate streamliners for Constraint Programming, to Answer Set Programming (ASP). Given an ASP encoding and a few small training instances, we prompt multiple LLMs to propose candidate constraints. Candidates that cause syntax errors, render satisfiable instances unsatisfiable, or degrade performance on all training instances are discarded. The surviving streamliners are evaluated together with the original encoding, and we report results for a virtual best encoding (VBE) that, for each instance, selects the fastest among the original encoding and its streamlined variants. On three ASP Competition benchmarks (Partner Units Problem, Sokoban, Towers of Hanoi), the VBE achieves speedups of up to 4--5x over the original encoding. Different LLMs produce semantically diverse constraints, not mere syntactic variations, indicating that the approach captures genuine problem structure.