NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

claspfolio 2: Advances in Algorithm Selection for Answer Set Programming

Holger H. Hoos, Marius Lindauer, Torsten Schaub

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.

The modular architecture of claspfolio 2, illustrating the flow from feature extraction to algorithm selection and solving.
  1. Feature Generation: The system utilizes claspre, a lightweight version of the clasp solver, 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.
  2. Pre-Solving Schedules: To handle "easy" instances quickly, the framework integrates aspeed to compute timeout-minimal schedules. These schedules run multiple solvers in short bursts before full feature extraction is even attempted.
  3. 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.
  4. Portfolio Construction: Users can employ manually curated "expert" portfolios or leverage automated tools like Hydra or ISAC to 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 2 demonstrated a 19–51% speedup over the best static configuration of clasp and was 14–37% faster than the original claspfolio 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-like and Hydra-like portfolios achieved the lowest number of timeouts (#TOs) and best penalized average runtimes (PAR10).
Comparison of different portfolio construction strategies across the Comp-13-Set and Potassco-Set benchmarks, highlighting the superiority of automated selection.
  • 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

BibTeX
@inproceedings{hoos2014claspfolio,
  author = {Holger H. Hoos and Marius Lindauer and Torsten Schaub},
  title = {{claspfolio 2: Advances in Algorithm Selection for Answer Set Programming}},
  booktitle = {Theory Pract. Log. Program},
  year = {2014},
  url = {https://openreview.net/forum?id=Abhg0FsXykl},
}
Figure