Abstract
We propose an algorithm that constructs sparse decision Directed Acyclic Graphs (DAGs) from a pool of base classifiers, such as those generated by AdaBoost. By framing the classification process as a Markov Decision Process (MDP), our method enables each data instance to dynamically decide whether to evaluate or skip specific base classifiers. This approach introduces a single hyperparameter, $\beta$, to control the trade-off between accuracy and computational speed. Our method, MDDAG, is competitive with state-of-the-art cascade detectors on binary object-detection benchmarks and naturally extends to multi-class classification, demonstrating significant speedups in web page ranking tasks without compromising performance.
Introduction
In high-throughput applications like real-time face detection or large-scale web ranking, the computational cost of inference is a primary bottleneck. Traditional solutions often rely on cascade classifiers, which use a sequence of stages to quickly reject negative samples. However, cascades are often rigid, difficult to tune, and primarily limited to binary classification. Furthermore, they frequently discard useful information between stages and force even simple positive samples through the entire pipeline.
The MDDAG Framework
The Markov Decision Direct Acyclic Graph (MDDAG) addresses these limitations by treating classification as a sequential decision-making problem. Given a sequence of pre-trained base classifiers, a "controller" policy determines the optimal action for each instance at each step: EVALUATE the classifier, SKIP it, or QUIT and return a final prediction.
The policy is trained using Reinforcement Learning (specifically SARSA($\lambda$)) with a reward function that balances classification accuracy against the computational cost of evaluation. This cost is governed by the hyperparameter $\beta$. The resulting structure is a sparse DAG where instances follow data-dependent paths, allowing "easy" samples to exit early while "hard" samples undergo more rigorous evaluation.
Experimental Evaluation
The authors evaluated MDDAG on synthetic data, binary object detection (VJ, CBCL, and DPED datasets), and multi-class web ranking (LETOR 4.0).
Key Results
In binary detection tasks, MDDAG consistently outperforms or matches state-of-the-art methods like SoftCascade and FCBoost. It is particularly effective in low-complexity regimes where the computational budget is strictly limited.
For multi-class web ranking, MDDAG achieved the same accuracy as a full AdaBoost ensemble while evaluating approximately 50% fewer base classifiers. This demonstrates the algorithm's versatility beyond simple binary detection.
Key Insights
- Data-Dependent Sparsity: MDDAG learns to skip redundant features for specific instances, creating "highways" for common data patterns.
- Seamless Multi-class Support: Unlike cascades, MDDAG's score-based MDP formulation handles multi-class labels naturally.
- Intuitive Tuning: The $\beta$ parameter provides a clear mechanism for users to navigate the speed-accuracy Pareto front.
Conclusion
MDDAG offers a robust, "turn-key" alternative to hand-tuned cascade architectures. By leveraging reinforcement learning to optimize the inference path, it achieves significant computational savings across diverse classification tasks while maintaining high predictive accuracy. Future work includes exploring non-fixed classifier orderings and incorporating variable feature costs into the MDP reward structure.
Summary updated