In industrial machine learning applications like web search engines or spam filters, algorithms are executed millions of times per day. In these high-stakes settings, "accuracy at any cost" is a myth. If a new feature improves accuracy by 3% but adds one second to processing time, a company might need to buy thousands of additional servers just to keep up.
The Greedy Miser is a novel machine learning algorithm that explicitly accounts for the cost of feature extraction during training. By incorporating a "buy once, use forever" penalty into a gradient boosting framework, it achieves up to a 10x reduction in test-time computational costs while maintaining the accuracy of unconstrained, state-of-the-art models.
The Challenge of Feature Acquisition Costs
The core challenge in test-time budget constraints is that different features have vastly different "acquisition costs." A simple word count is nearly free, but a complex semantic analysis or a deep image descriptor is expensive. Most traditional algorithms assume all features are pre-extracted and "free" at test-time.
Previous attempts to solve this usually involved "cascades" (early-exit models), but these can be complex to train and often fail to scale. The authors seek a simpler, more integrated way to trade off accuracy for CPU time.
The Greedy Miser Approach
The authors introduce the Greedy Miser as an evolution of stage-wise regression (specifically Gradient Boosted Regression Trees). Standard boosting adds trees one by one to minimize a loss function. The Greedy Miser modifies this process in two clever ways:
- The Cost-Aware Impurity Function: When building a decision tree, the algorithm doesn't just look for the split that reduces error the most. It looks for a split that balances error reduction against the cost of the feature being used.
- Feature Amortization (The "Miser" Logic): The algorithm tracks which features have already been "paid for" in previous trees. If a feature was used in Tree 1, it is considered "free" for Tree 2 through Tree $N$.
To make this mathematically tractable, they use a relaxation of the $l_0$-norm called an amputated $l_1$-norm. This penalty function behaves like a standard penalty for new features but "caps out" once a feature is used, reflecting the reality that once you've computed a feature for a specific data point, re-using it costs nothing.
Key Results and Performance
The algorithm was evaluated on two real-world benchmarks: the Yahoo Learning to Rank Challenge (over 470k training pairs) and the Scene-15 image classification dataset.
Web Search Ranking (Yahoo Dataset)
On the Yahoo ranking dataset, the Greedy Miser matched the accuracy of the unconstrained baseline while using only 1/10th of the test-time cost. It significantly outperformed "Cronus" and "Early Exit" strategies, providing better accuracy at lower costs. As the budget (controlled by a hyperparameter $\lambda$) tightens, the model's accuracy drops very gradually, allowing engineers to precisely dial in the desired balance between server costs and model performance.
Image Classification (Scene-15 Dataset)
For Scene-15, the "features" are the outputs of various expensive visual descriptors like GIST, HOG, and Object Bank detectors. The Greedy Miser achieved the same accuracy as a complex Multiple Kernel Learning (MKL) SVM but at half the computational cost.
Insights and Future Directions
- The "Buy Once" Principle: By treating feature cost as a one-time "acquisition fee" per instance, the model naturally learns to "clump" its reliance on a small set of expensive but highly informative features, rather than scattering its dependencies across many different expensive ones.
- Strategic Extravagance: Interestingly, the "Miser" isn't just cheap—it's smart. It will still use very expensive features if they provide a massive accuracy boost, but it will do so early in the ensemble to maximize their utility across all subsequent trees.
- Complementary to Cascades: The authors note that their approach is actually complementary to "Early Exit" strategies. A future "Hybrid Miser" that uses cost-aware features and exits early on easy examples could potentially push efficiency even further.
While the paper focuses on CPU time, the framework could be adapted for other budgets, such as memory usage or battery consumption in mobile devices, making it a highly versatile tool for resource-constrained machine learning.
Summary updated