TL;DR
Automated Machine Learning (AutoML) frameworks traditionally run ensemble models sequentially while allocating all available CPU cores to each model—a naive strategy that wastes massive amounts of time and energy. By framing ensemble inference as a multi-objective "moldable task scheduling" problem, this paper introduces NSGA-P, an optimization strategy that cuts both inference latency and energy consumption by up to 74%.
What Problem Does This Paper Address?
Ensembling—combining predictions from multiple independent machine learning models—is a cornerstone of modern AutoML because it reliably boosts predictive accuracy. However, when these systems are deployed in production, especially on edge or energy-constrained devices without dedicated GPUs, the computational cost of CPU-based inference becomes a major bottleneck.
Current frameworks like Auto-sklearn and AutoGluon implicitly adopt a naive approach: they run ensemble members one after another, giving the maximum available CPU core count to each model. This ignores two fundamental hardware realities:
- Sublinear Parallel Scaling: Doubling the core count does not halve inference time. Beyond a few cores, additional cores yield diminishing speedups, while energy draw continues to grow linearly.
- Model Heterogeneity: Ensemble members vary drastically in size and complexity. Allocating resources homogeneously causes faster cores to sit idle waiting for a single long-running "bottleneck" model to finish execution.
Methods
The authors address these inefficiencies by treating ensemble inference as a moldable task scheduling problem, where a model's core allocation (allotment) can be chosen prior to execution.
The framework consists of two main stages:
- Offline Profiling: Before making scheduling decisions, the system measures the inference time and energy consumption of each ensemble member across all admissible core counts on training data just once. This data acts as a lookup table, allowing subsequent optimization to happen entirely in simulation with zero runtime overhead.
- NSGA-P Allotment: They introduce NSGA-P, a multi-objective allotment strategy based on the popular NSGA-II genetic algorithm. NSGA-P searches the space of per-member core allocations to find Pareto-optimal trade-offs that jointly minimize total simulated inference time and energy consumption.
Once core counts are assigned, the models are ordered using standard list scheduling with a Longest Processing Time First (LPT) priority criterion to minimize idle core gaps.
Datasets
The approach was rigorously evaluated on 104 datasets (71 classification and 33 regression tasks) from the standardized Automated Machine Learning Benchmark (AMLB) suite. The ensembles were built using three state-of-the-art tabular model families with diverse resource characteristics: XGBoost, RealMLP, and TabM.
Key Insights and Ideas
- The Latency-Energy Trade-Off is Real: As shown in the profiling data, moving from one to two cores yields the largest marginal speedup. Scaling up to 8 or more cores barely improves latency but dramatically spikes energy costs, proving that the "maximum cores" default is highly inefficient.
- Training Profiles Transfer to Test Data: A foundational assumption of this work is that resource footprints measured on training data remain stable during deployment. The authors validated this, finding an incredibly high consistency ($R^2 > 0.91$) between ensembling (training) and final prediction (test) phases.
- Smart Allocation Smooths Bottlenecks: Rather than giving every model 1 core or all cores, NSGA-P dynamically allocates more cores to complex, slow models and fewer cores to fast models. This balances out execution times and prevents cores from sitting idle.
Key Results
- Widespread Dominance: NSGA-P identified resource allotments that strictly outperformed the naive maximum-cores baseline in over 96% of the ensembles evaluated.
- Massive Efficiency Gains: On an 8-core setup, NSGA-P halved inference time (56% reduction) while reducing energy consumption by 27%. On a 64-core setup, it achieved a staggering 74% reduction in both inference time and energy consumption.
- Stability Over Simple Baselines: While a simple "Minimum Cores" (1 core per model) strategy can save energy, it suffers from massive variance and catastrophic delays when a long-running model stalls the queue. NSGA-P maintains tight, stable, and predictable execution windows.
Limitations and Future Work
While the results are highly promising, the authors note several limitations:
- Simulation-Based Evaluation: The current framework relies on offline simulation and does not yet model real-world hardware dynamics such as memory-bandwidth contention between concurrent models, I/O bottlenecks, or dynamic voltage and frequency scaling (DVFS).
- Lower Bound Energy Metrics: Energy consumption was tracked via per-core CPU counters, which exclude system-wide draws like RAM and storage.
- Future Directions: The authors plan to validate the framework under live parallel execution, extend the scheduling algorithms to hybrid CPU+GPU architectures, and explore how these resource-allocation strategies interact with multi-layer stacking ensembles.
Summary updated