[Paper Review] LLAMA: Leveraging Learning to Automatically Manage Algorithms
LLAMA is an R-based, modular toolkit that enables researchers to easily explore and compare algorithm selection techniques across diverse problem domains using machine learning. It supports classification, regression, clustering, and pairwise comparison models, with empirical results showing its effectiveness in improving performance over baseline solvers on SAT problem instances.
Algorithm portfolio and selection approaches have achieved remarkable improvements over single solvers. However, the implementation of such systems is often highly customised and specific to the problem domain. This makes it difficult for researchers to explore different techniques for their specific problems. We present LLAMA, a modular and extensible toolkit implemented as an R package that facilitates the exploration of a range of different portfolio techniques on any problem domain. It implements the algorithm selection approaches most commonly used in the literature and leverages the extensive library of machine learning algorithms and techniques in R. We describe the current capabilities and limitations of the toolkit and illustrate its usage on a set of example SAT problems.
Motivation & Objective
- Address the challenge of custom, problem-specific implementation of algorithm portfolios, which hinders reproducibility and cross-domain exploration.
- Provide a standardized, extensible platform for researchers to experiment with various algorithm selection techniques without reinventing infrastructure.
- Facilitate rapid prototyping and evaluation of new algorithm selection approaches using scientifically rigorous cross-validation and performance metrics.
- Support integration of diverse machine learning algorithms from R’s ecosystem to enable flexible modeling of solver performance based on problem features.
- Enable researchers to focus on algorithm selection innovation rather than low-level implementation and evaluation plumbing.
Proposed method
- Implement a modular R package that encapsulates data input, model training, and evaluation workflows for algorithm selection.
- Use cross-validation via the `cvFolds` function to partition data into training and test sets for robust performance estimation.
- Support four core model types: classification (predict best solver), regression (predict solver runtime), clustering (group instances by performance), and pairwise classification (compare solver pairs).
- Integrate R’s extensive machine learning library, allowing users to plug in any compatible algorithm (e.g., randomForest, J48, LinearRegression).
- Provide data preprocessing functions for feature selection, normalization, and censored runtime imputation to improve model quality.
- Enable parallel execution and meta-learning techniques like stacking to enhance predictive performance.
Experimental results
Research questions
- RQ1Can a unified, extensible toolkit reduce the barrier to entry for researchers exploring algorithm portfolio techniques?
- RQ2How do different machine learning models (classification, regression, clustering) compare in predicting optimal solver selection across SAT problem instances?
- RQ3To what extent can LLAMA’s modular design support rapid prototyping of novel algorithm selection approaches?
- RQ4What performance gains can be achieved by using learned models over single solvers or the virtual best solver (VBS) in real-world SAT problem sets?
- RQ5How do prediction errors in model rankings correlate with actual solver performance, and what insights can be drawn for model improvement?
Key findings
- LLAMA enables researchers to train and evaluate algorithm selection models using standard R workflows, significantly reducing implementation overhead.
- The regression model achieved a lower mean PAR10 score than other models, indicating superior overall performance prediction accuracy on the SAT data.
- Pairwise classification and standard classification models showed nearly identical performance, suggesting limited benefit from pairwise comparison in this setting.
- Visual analysis revealed systematic bias: well-performing solvers (e.g., minisat) were often predicted to be worse, while poor solvers (e.g., rsat) were overestimated, indicating room for model improvement.
- The toolkit’s data structures and functions facilitate advanced visualizations, such as PAR10 score heatmaps and rank prediction error plots, aiding in model diagnostics.
- LLAMA’s extensibility and integration with R’s ecosystem make it suitable for both benchmarking existing methods and prototyping new algorithm selection strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.