Surviving Solver Sensitivity: An ASP Practitioner's Guide

Bryan Silverthorn, Yuliya Lierler, Marius SchneiderICLP (Technical Communications) 2012 · OpenReview

TL;DR

This paper tackles the challenge of "solver sensitivity" in Answer Set Programming (ASP), where performance heavily depends on parameter tuning. It evaluates and compares portfolio solvers and automatic algorithm configuration techniques to help ASP practitioners find optimal solver settings without resorting to "black magic."

What Problem Does This Paper Address?

Answer Set Programming (ASP) is a powerful declarative programming paradigm for modeling and solving complex combinatorial search problems. However, ASP solvers, like their SAT solver counterparts, are notoriously sensitive to parameter configurations. This means that the same problem can be solved very quickly with one set of parameters and take an impractically long time with another. Traditionally, finding these optimal configurations has relied on manual "black magic" – a combination of heuristics, solver familiarity, and domain expertise. This is a significant burden for ASP practitioners, especially those new to the field, and undermines the declarative nature of ASP. This paper aims to provide a more systematic approach by evaluating existing tools that automate this tuning process.

Methods

The paper investigates six strategies for managing solver sensitivity, primarily focusing on the CLASP solver:

  • Single Best Configuration: Selecting the single best configuration from a pre-defined set of 25 representative CLASP configurations.
  • Solver Execution Schedule: Creating a sequence of solver configurations to be tried.
  • General-Purpose Portfolio (CLASPFOLIO): Using a pre-trained portfolio solver designed to work across a wide variety of instance types.
  • Domain-Specific Portfolio (MAPP/MAPP+): Training a portfolio solver specifically for each application domain. MAPP uses a fixed schedule, while MAPP+ uses instance features to tailor the schedule.
  • Automatic Algorithm Configuration (PARAMILS): Using an iterative local search approach to find a single, highly optimized CLASP configuration for a given domain.
  • Domain-Specific Portfolio Synthesis: A novel approach where PARAMILS is used to tune a configuration for each individual instance within a domain, and then these configurations are combined into a portfolio.

The core experimental infrastructure is the BORG toolkit, which handles solver execution, performance measurement, and portfolio construction.

Datasets

The study uses three real-world ASP application domains:

  • Weighted-Sequence (WSEQ): A benchmark problem inspired by database query optimization. 480 instances were used.
  • Natural Language Parsing (NLP): Formulating natural language parsing using combinatory categorical grammar in ASP. 1,861 instances were generated from the CCGbank corpus.
  • Riposte (RIP): Used in computer-aided verification to generate counterexamples for the FDL intermediate language. 3,133 instances were generated from a SPARK implementation of the Skein hash function.

For training and evaluation, the paper employs a five-fold cross-validation strategy on these domain-specific instance sets. Additionally, the CLASPFOLIO portfolio was trained on 1,901 instances from 60 different domains for the ASPCOMP competition.

Key Insights and Ideas

  • "Black Magic" is Inefficient: The paper strongly suggests that manual tuning is not a sustainable or scalable approach for ASP practitioners.
  • Domain-Specific Solutions Shine: General-purpose portfolios like CLASPFOLIO perform well on diverse benchmarks but struggle when applied to a single, specific domain without domain-specific training.
  • Automatic Configuration is Powerful: PARAMILS, an automatic algorithm configuration tool, can find single configurations that rival the performance of sophisticated portfolios, often performing nearly as well as an "oracle" (perfect knowledge).
  • Portfolio Benefits are Domain-Dependent: While portfolios are effective on heterogeneous collections of problems, their advantage on single, homogeneous problem domains is less clear. The benefit often comes from identifying a single good configuration rather than from complex scheduling.
  • Feature-Based Portfolios Don't Always Help: For single-problem domains, MAPP+ (which uses instance features) did not consistently outperform MAPP (which uses a fixed schedule), suggesting that feature computation overhead can sometimes outweigh benefits.
  • Tuning for Individual Instances is Overkill: The novel strategy of tuning a configuration for each instance and then building a portfolio did not yield further improvements over single-tuned configurations. This suggests that a single well-tuned configuration might be sufficient for many domains.

Key Results

  • Portfolio vs. Single Solver: Portfolios (MAPP, MAPP+) consistently outperformed the default CLASP configuration and even CLASPFOLIO on the individual domains when trained specifically for those domains.
  • PARAMILS Performance: Configurations tuned by PARAMILS performed very well, often matching the performance of the "oracle" portfolio and significantly outperforming the default configuration.
  • CLASPFOLIO Performance: CLASPFOLIO performed well on ASPCOMP instances but was less effective on the specific domains compared to domain-specific approaches.
  • MAPP vs. MAPP+: On the studied domains, MAPP and MAPP+ showed similar performance, indicating that feature-based prediction didn't offer a significant advantage.
  • Table 1 (ASPCOMP): CLASPFOLIO solved 85 instances with a Mean Run Time (MRT) of 97.47s, while the ORACLE solved 91 instances with an MRT of 48.84s.
  • Table 2 (Domain-Specific): For WSEQ, PARAMILS-tuned configurations (BESTSINGLE (ILS), MAPP (ILS), MAPP+ (ILS)) solved around 93-94 instances with MRTs ranging from 163.95s to 170.52s. The ORACLE (ILS) solved 94.80 instances with an MRT of 72.27s. Similar trends were observed for NLP and RIP, with PARAMILS-tuned configurations showing strong performance.

Limitations and Future Work

  • Solver Specificity: The study focuses on CLASP. While the methods are general, their effectiveness might vary for other ASP solvers.
  • "Black Magic" for Solver Authors: The paper suggests that solver authors could empower users by providing configuration files for tools like PARAMILS, making it easier to leverage automatic configuration.
  • Instance Set Homogeneity: The effectiveness of portfolio methods can depend on the homogeneity of the instance set. Further research into formal definitions of instance set homogeneity is suggested.
  • More Sophisticated Portfolio Construction: The paper mentions approaches like ISAC and Hydra as potential avenues for more advanced portfolio construction, especially for identifying subgroups of instances.
  • Defining Performance Objectives: The paper highlights the importance of the user clearly defining their performance objectives (e.g., speed vs. consistency) and how these objectives influence the choice of tuning strategy.

Summary updated

Abstract

Answer set programming (ASP) is a declarative programming formalism that allows a practitioner to specify a problem without describing an algorithm for solving it. In ASP, the tools for processing problem specifications are called answer set solvers. Because specified problems are often NP complete, these systems often require significant computational effort to succeed. Furthermore, they offer different heuristics, expose numerous parameters, and their running time is sensitive to the configuration used. Portfolio solvers and automatic algorithm configuration systems are recent attempts to automate the problem of manual parameter tuning, and to mitigate the burden of identifying the right solver configuration. The approaches taken in portfolio solvers and automatic algorithm configuration systems are orthogonal. This paper evaluates these approaches, separately and jointly, in the context of real-world ASP application development. It outlines strategies for their use in such settings, identifies their respective strengths and weaknesses, and advocates for a methodology that would make them an integral part of developing ASP applications.
BibTeX
@inproceedings{silverthorn2012surviving,
  author = {Bryan Silverthorn and Yuliya Lierler and Marius Schneider},
  title = {{Surviving Solver Sensitivity: An ASP Practitioner's Guide}},
  booktitle = {ICLP (Technical Communications)},
  year = {2012},
  url = {https://openreview.net/forum?id=-y5za5oBcDv},
}
Figure