Reliability-Aware Algorithm Selection for the 0/1 Knapsack Problem Under Distribution Shift

Predicting heuristic solution quality prior to execution is essential for automated algorithm selection in combinatorial optimization. For the 0/1 Knapsack Problem, Dantzig's density-based greedy heuristic executes in O(n log n) time but lacks an integer optimality guarantee. Evaluating an exactly solved and computationally verified 16,000-instance Zenodo benchmark across ten hardness families and dimensions n ∈ [10, 10,000], we uncover a stark generalization paradox: while tree ensembles achieve excellent predictive performance under random splits (MAE = 0.41%, R² = 0.989), their predictive performance collapses under Leave-One-Family-Out evaluation (MAE = 11.99%, pooled R² = -1.42). Failures stem from adversarial ratio traps and capacity-bottleneck misrouting. To establish risk-averse operational deployment, we formulate an empirical reliability-aware selection policy combining pre-run features, ensemble dispersion uncertainty, and feature-range outlier checks. While empirical dispersion provides no theoretical safety guarantees, at a 1.0% tolerance, the deployed 15-feature policy achieves a 0.0370% mean realized gap with 0.83% tolerance violations (133/16,000 instances), outperforming the 13-feature baseline policy (0.0463% gap, 1.20% violations). In comparison, naive point gating yields 3.02% violations with 15 features and 8.46% with 13 features. The deployed policy saves 92.21% of wall-clock time over exact solving (12.84x speedup, 275.13s total runtime). Concurrently, an O(n log n) tri-heuristic portfolio achieves a 0.24% average gap on the benchmark with zero exact invocations.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24678638
Primary Topic
Metaheuristic Optimization Algorithms Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Reliability-Aware Algorithm Selection for the 0/1 Knapsack Problem Under Distribution Shift

Akarshana S., Mithun Surya K. Y., Uma Vetri Selvi G.
Zenodo (CERN European Organization for Nuclear Research)
Metaheuristic Optimization Algorithms Research
preprint

Reliability-Aware Algorithm Selection for the 0/1 Knapsack Problem Under Distribution Shift

Akarshana S., Mithun Surya K. Y., Uma Vetri Selvi G.
preprint en

Abstract

Predicting heuristic solution quality prior to execution is essential for automated algorithm selection in combinatorial optimization. For the 0/1 Knapsack Problem, Dantzig's density-based greedy heuristic executes in O(n log n) time but lacks an integer optimality guarantee. Evaluating an exactly solved and computationally verified 16,000-instance Zenodo benchmark across ten hardness families and dimensions n ∈ [10, 10,000], we uncover a stark generalization paradox: while tree ensembles achieve excellent predictive performance under random splits (MAE = 0.41%, R² = 0.989), their predictive performance collapses under Leave-One-Family-Out evaluation (MAE = 11.99%, pooled R² = -1.42). Failures stem from adversarial ratio traps and capacity-bottleneck misrouting. To establish risk-averse operational deployment, we formulate an empirical reliability-aware selection policy combining pre-run features, ensemble dispersion uncertainty, and feature-range outlier checks. While empirical dispersion provides no theoretical safety guarantees, at a 1.0% tolerance, the deployed 15-feature policy achieves a 0.0370% mean realized gap with 0.83% tolerance violations (133/16,000 instances), outperforming the 13-feature baseline policy (0.0463% gap, 1.20% violations). In comparison, naive point gating yields 3.02% violations with 15 features and 8.46% with 13 features. The deployed policy saves 92.21% of wall-clock time over exact solving (12.84x speedup, 275.13s total runtime). Concurrently, an O(n log n) tri-heuristic portfolio achieves a 0.24% average gap on the benchmark with zero exact invocations.

Zenodo (CERN European Organization for Nuclear Research)
PSG College of Technology (IN)
Metaheuristic Optimization Algorithms Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon