Abstract
Answer Set Programming (ASP) is a powerful paradigm for solving complex combinatorial problems, yet its efficiency is highly sensitive to solver configurations. claspfolio 2 addresses this through a modular framework that automatically selects the optimal solver configuration for a given instance. By integrating advanced feature extraction, machine learning-based selection, and automated pre-solving schedules, the system achieves performance gains of up to 51% over the best static solver configurations and significantly outperforms its predecessor.
Introduction
Answer Set Programming (ASP) has become a cornerstone for modeling and solving difficult search problems. However, the performance of ASP solvers like clasp depends heavily on search heuristics, restart policies, and other configuration parameters. A configuration optimized for one problem class often performs poorly on another, a challenge known as the "Algorithm Selection Problem."
While the original claspfolio provided a successful proof-of-concept for automated selection, it operated as a rigid "black box." claspfolio 2 introduces a modular architecture designed to unify various state-of-the-art selection techniques, allowing researchers to mix and match components from different domains, such as SAT solving, to achieve superior performance.
Modular Architecture and Methodology
The core innovation of claspfolio 2 is its transition from a monolithic design to a flexible, four-stage pipeline. This modularity allows for the systematic comparison of different selection strategies and feature sets.
- Feature Generation: The system utilizes
claspre, a lightweight version of theclaspsolver, to extract two types of features: static features (e.g., rule counts, constraints) and dynamic features. Dynamic features are gathered during a brief initial search "probe," providing a behavioral "fingerprint" of the solver on a specific instance. - Pre-Solving Schedules: To handle "easy" instances quickly, the framework integrates
aspeedto compute timeout-minimal schedules. These schedules run multiple solvers in short bursts before full feature extraction is even attempted. - Algorithm Selection: The framework supports diverse machine learning models, including Support Vector Regression, Random Forests, and k-Nearest Neighbors, to predict the best solver for the remaining "hard" instances.
- Portfolio Construction: Users can employ manually curated "expert" portfolios or leverage automated tools like
HydraorISACto generate complementary solver configurations.
Experimental Evaluation
The system was evaluated on two extensive benchmarks: the Comp-13-Set (2,214 instances from the 2013 ASP Competition) and the Potassco-Set (2,589 heterogeneous instances from 105 real-world application classes).
Key Results and Insights
- Performance Gains:
claspfolio 2demonstrated a 19–51% speedup over the best static configuration ofclaspand was 14–37% faster than the originalclaspfolio 1.0. - Automated Portfolios: A significant finding was that automatically generated portfolios consistently outperformed those designed by human experts. As shown in the table below, approaches like
ISAC-likeandHydra-likeportfolios achieved the lowest number of timeouts (#TOs) and best penalized average runtimes (PAR10).
- The Role of Dynamic Features: While static features are computationally inexpensive, dynamic features proved essential for the diverse
Potassco-Set, where the search behavior is more indicative of problem difficulty than the initial program structure.
Conclusion
claspfolio 2 represents a significant leap in automated algorithm selection for ASP. By providing a modular research tool, the authors have shown that there is no "one size fits all" selection mechanism; rather, the best approach depends on the specific characteristics of the problem set. The system's robustness brings it within 15-20% of the theoretical "Oracle" performance. Future work will focus on "Auto-ML" approaches to automatically select the most appropriate selection mechanism for a given domain.
Summary updated