Abstract
Answer Set Optimization (ASO) is a framework that decouples the generation of possible solutions from the expression of user preferences in logic programming. By separating "hard constraints" (what is possible) from "soft constraints" (what is preferred), ASO provides a modular and highly expressive way to solve complex configuration and planning problems where the "best" solution depends on context-specific qualitative criteria.
Introduction
In traditional Answer Set Programming (ASP), logic programs are used to find sets of literals (answer sets) that satisfy a collection of rules. While ASP is excellent for modeling "hard" constraints—rules that must be followed—it historically struggled with "soft" constraints or qualitative preferences (e.g., "I prefer red wine with beef, but white wine is okay if red isn't available").
Existing approaches often mixed these preferences directly into the main logic program. This makes the programs hard to maintain, difficult to reuse, and sensitive to the specific syntax of the underlying ASP solver. The authors address this lack of modularity by proposing a system where you can change your preferences without ever touching the core logic that defines the search space.
Methodology
The authors define an ASO program as a pair $(P_{gen}, P_{pref})$:
- The Generating Program ($P_{gen}$): A standard logic program (of any type, e.g., disjunctive, with cardinality constraints) that defines the space of all "acceptable" solutions.
- The Preference Program ($P_{pref}$): A set of rules of the form $C_1 > C_2 > \dots > C_k \leftarrow \text{body}$, where $C_i$ are boolean combinations of literals.
Satisfaction Degrees and Vectors
For every answer set $S$ and every preference rule, the system calculates a "satisfaction degree." If the rule's body isn't met, or none of the $C_i$ are met, it's considered "irrelevant" (assigned value $I$). If $C_1$ is met, it gets degree 1 (the best), $C_2$ gets degree 2, and so on.
Each answer set is assigned a vector of these degrees. One answer set is preferred over another if its vector is "better" according to a defined preorder (where $I$ and $1$ are considered equally good). The authors also introduce Ranked ASO, allowing users to rank the preference rules themselves (e.g., "The main course preference is more important than the dessert preference").
Key Insights and Ideas
- The Power of Irrelevance: A crucial design choice was treating "irrelevant" rules (where the condition for the preference doesn't apply) as being as good as perfectly satisfied rules. This prevents "punishing" a solution for not addressing a preference that wasn't applicable in its specific context.
- Syntactic Independence: Because $P_{pref}$ is decoupled, $P_{gen}$ can be any type of logic program. You could use a simple normal program or a complex disjunctive program with weight constraints; the preference logic remains the same.
- Relationship to CP-networks: The authors prove that ASO is more expressive than Conditional Preference (CP) networks, a popular graphical model for preferences. ASO can simulate CP-networks but is more robust because it can handle inconsistent preferences that CP-networks cannot model.
- Complexity Trade-off: Adding preferences increases the computational cost. While finding an answer set is typically NP-complete, deciding if an answer set is optimal is coNP-complete, and finding an optimal one is $\Delta^P_2$-complete.
Key Results
- Formal Semantics: The paper provides a rigorous mathematical definition for how to compare answer sets based on qualitative rules.
- Complexity Proofs: It establishes the theoretical bounds for optimization tasks within the ASO framework.
- Generalization of LPODs: The authors show that Logic Programs with Ordered Disjunction (LPODs) are a special case of ASO, proving that their new framework is a significant generalization of prior work.
- Mapping to CP-networks: They provide a constructive method to translate any acyclic CP-network into an ASO program, showing that the ASO ordering is a "weaker" (more flexible) approximation of the CP-ordering.
Limitations and Future Work
While ASO offers a powerful framework, the jump to the second level of the polynomial hierarchy ($\Sigma^P_2$) for some tasks means that large-scale optimization might require very sophisticated heuristics or specialized solvers. Additionally, while the paper touches on acyclic preference programs, the behavior and optimization of programs with cyclic dependencies in $P_{pref}$ require more study. Future work is suggested for incorporating quantitative weights (e.g., "this rule is 5x more important than that one") alongside the qualitative rankings.
Summary updated