Abstract
In production environments, machine learning model performance is often constrained by the time required for feature extraction rather than inference itself. This paper presents a framework for cost-sensitive real-time prediction that selects the most accurate model within a specific latency budget. We introduce POLY-DOM, an indexing approach utilizing lattice pruning and a poly-dominance index to efficiently retrieve optimal feature subsets. Experimental results demonstrate that POLY-DOM significantly outperforms traditional greedy approaches, offering up to 20% higher accuracy within the same time constraints.
Introduction
Traditional machine learning often assumes features are pre-computed and available at zero cost. However, in latency-sensitive applications like real-time ad-bidding or content moderation, the bottleneck is frequently the feature extraction time (e.g., computing complex image descriptors). When faced with a strict time budget (e.g., 50ms) and high-cost features (e.g., 200ms for full extraction), a subset must be chosen.
The challenge is that the "best" subset is dynamic, depending on both the specific time budget and the input size (e.g., image resolution). Training models for all $2^n$ possible feature subsets is computationally prohibitive. This research addresses how to intelligently precompute, index, and retrieve the optimal model for any given input size and time constraint.
Methodology
The framework treats the underlying machine learning algorithm as a "black box" and focuses on two primary strategies: POLY-DOM and GREEDY.
POLY-DOM (Optimal)
POLY-DOM aims to identify the "skyline"—the set of models providing the highest accuracy for a given cost. To make this feasible, the authors employ two key techniques:
- Lattice Pruning: Instead of exhaustive training, a bi-directional search is performed on the feature lattice. By applying a "Sandwich Property"—where a feature set is skipped if its accuracy is bounded by a smaller set and a larger set with similar performance—the search space is reduced by up to 90%.
- Poly-dominance Index: Feature costs are often polynomial functions of input size ($n$). As $n$ changes, the optimal skyline shifts. The authors developed a 2D index that enables $O(\log n + \log c)$ retrieval of the optimal model at runtime.
GREEDY (Flexible)
As an alternative, a "GREEDY" any-time algorithm adds features sequentially based on a gain function (accuracy vs. cost). While it lacks optimality guarantees, it requires minimal precomputation and adapts better to highly variable runtime environments where feature costs are unpredictable.
Experimental Evaluation
The framework was evaluated using both synthetic datasets and a real-world image classification dataset containing 17,900 images. For the real-world data, 13 standard image features (e.g., SIFT, GIST) were extracted at various scales to measure actual extraction times.
Key Results
- Accuracy: POLY-DOM consistently outperformed GREEDY methods, achieving up to 20% higher accuracy for identical time budgets.
- Efficiency: Lattice pruning was 20x faster than naive training. The resulting Poly-dominance index is two orders of magnitude smaller than a naive exhaustive index while maintaining near-zero retrieval latency.
- Robustness: While POLY-DOM assumes predictable costs, the GREEDY-COST variant proved superior in scenarios with high cost variability, demonstrating the value of adaptive "any-time" processing.
Conclusion and Future Work
This work demonstrates that indexing optimal feature subsets can significantly enhance the performance of cost-sensitive prediction systems. Future research directions include developing "hybrid" models that combine POLY-DOM's optimality with GREEDY's adaptivity, and extending the framework to handle multi-dimensional input characteristics beyond a single size parameter.
Summary updated