Abstract
As machine learning moves from high-performance servers to resource-constrained Internet of Things (IoT) devices and wearables, the traditional "accuracy at all costs" paradigm becomes unsustainable. This paper introduces a framework for "frugal machine learning," which evaluates algorithms based on a novel frugality score that balances predictive performance with resource consumption (CPU, battery, memory). Through an extensive evaluation of 103 algorithms across 517 datasets, the authors demonstrate that the optimal algorithm choice shifts dramatically as hardware constraints increase, often favoring simple, efficient models over complex ensembles.
Introduction
In the "Big Data" era, machine learning research has been dominated by a quest for maximum accuracy, often requiring massive computational power. However, this mindset fails in the burgeoning world of IoT and wearables. For instance, an activity recognition model for a smartwatch faces two major hurdles: limited CPU and battery life, and the need for on-device processing to ensure user privacy. To address these challenges, we need a "frugal lens" to identify which algorithms provide the most value when resources are scarce.
The Frugality Framework
The core contribution of this work is the Frugality Score, a metric designed to balance predictive performance ($P$) and resource consumption ($R$):
$$Frug = P - \frac{w}{1 + \frac{1}{R}}$$
In this formula, $w$ represents a user-defined "frugality weight." When $w=0$, the focus is entirely on accuracy; as $w$ approaches 1, efficiency becomes the priority. The authors primarily utilized Area Under the ROC Curve (AUC) for performance and CPU time (encompassing both training and prediction) for resource consumption.
To visualize these trade-offs, the researchers developed Frugality Curves, plotting algorithm scores across varying values of $w$. They also employed Pareto Front analysis to identify "non-dominated" algorithms—those offering the best possible accuracy for a given computational budget.
Experimental Methodology
The study leveraged the OpenML platform to conduct a broad evaluation:
- 517 classification datasets ranging from 10 to nearly 100,000 observations.
- 103 algorithms from the WEKA library, including variants of Random Forests, Boosting, and Naive Bayes.
- 10 representative "medoid" datasets (e.g., optdigits, breastTumor) were selected via clustering to analyze how data characteristics like dimensionality affect frugality.
Key Findings: The Ranking Flip
The most striking insight is that algorithm rankings are not static. An algorithm that is the "gold standard" for accuracy, such as a large Rotation Forest, quickly becomes the least desirable choice as soon as battery life or CPU time is factored in.
The "Frugal Sweet Spot"
For moderate resource constraints ($w=0.2$ to $0.7$), Naive Bayes-like models—specifically A1DE (Aggregating One-Dependence Estimators)—and Logistic Boosting with few iterations emerged as the most robust choices. These models offer high accuracy with only a fraction of the computational cost of larger ensembles.
Extreme Constraints
Under extreme constraints ($w > 0.9$), extremely simple models like HyperPipes or Decision Stumps win out. While their accuracy is lower, they are nearly instantaneous, making them the only viable options for the most limited hardware.
Real-World Validation
The theoretical framework was validated using an LG URBANE smartwatch. The testing confirmed that while Random Forests achieved high accuracy, they drained the battery significantly faster than simpler alternatives like HyperPipes. This highlights the "Aha" moment of the study: many high-performing ensembles "fall off a cliff" in frugality rankings because their marginal gains in accuracy do not justify their exponential increase in runtime.
Conclusion and Future Work
Frugal machine learning shifts the focus from pure accuracy to practical utility in constrained environments. While this study focused primarily on CPU time using default parameters, future research will explore:
- Hyperparameter Tuning: Investigating if tuning can make complex models more frugal.
- Expanded Costs: Integrating memory usage and the energy cost of data acquisition (e.g., GPS sensors).
- Stream Mining: Applying the frugal lens to real-time learning on devices handling "concept drift."
- Feature Selection: Using automated selection as a pre-processing step to enhance the frugality of existing models.
Summary updated