Abstract With increasing demand for efficient image and video analysis, test-time cost of scene parsing becomes critical for many large-scale or time-sensitive vision applications. We propose a dynamic hierarchical model for anytime scene labeling that allows us to achieve flexible trade-offs between efficiency and accuracy in pixel-level prediction. In particular, our approach incorporates the cost of feature computation and model inference, and optimizes the model performance for any given test-time budget by learning a sequence of image-adaptive hierarchical models. We formulate this anytime representation learning as a Markov Decision Process with a discrete-continuous state-action space. A high-quality policy of feature and model selection is learned based on an approximate policy iteration method with action proposal mechanism. We demonstrate the advantages of our dynamic non-myopic anytime scene parsing on three semantic segmentation datasets, which achieves 90% of the state-of-the-art performances by using 15% of their overall costs.
Introduction
Semantic scene labeling—the task of assigning a category like "road," "building," or "car" to every pixel in an image—is a cornerstone of computer vision, yet it remains computationally expensive. Most modern models are "all-or-nothing," requiring a fixed, often substantial, amount of processing time before producing a result. This latency is a major hurdle for real-time applications like autonomous driving or large-scale video analysis where resources are constrained.
This paper introduces a dynamic hierarchical model (DHM) for "anytime" scene labeling. Unlike static models, an anytime system provides the best possible prediction at any point during its execution, refining its output as more computational budget becomes available. The proposed method balances accuracy and efficiency by dynamically choosing which features to compute and how to refine the model structure on the fly, tailored to the specific content of the image.
The Dynamic Hierarchical Model (DHM)
The core of the approach is a hierarchical representation that grows a "segmentation tree" for each image from coarse to fine. The process starts with a single root node representing the entire image and iteratively applies operators to improve the labeling.
The DHM utilizes two primary operators to evolve the tree:
- Split-inherit: This operator divides a segment into smaller, finer sub-segments, allowing for higher spatial resolution in complex areas.
- Local belief update: This adds new visual features (such as texture or SIFT) to refine the label predictions for current segments using a boosting-like strategy.
Sequential Decision Making via MDP
The authors frame the sequence of these updates as a Markov Decision Process (MDP). In this framework, the state is defined by the current tree structure and the current label probabilities. The action involves choosing whether to split a node or add a specific feature. The reward is calculated as the improvement in labeling accuracy relative to the computational cost (CPU time).
To find the optimal sequence of actions, the researchers use Approximate Least-Squares Policy Iteration (LSPI). Crucially, the learned policy is non-myopic; it considers how a current action might enable even better results in future steps, rather than just seeking immediate gains. Because the possible combinations of features and splits are vast, an "action proposal mechanism" is used to sample a diverse pool of high-quality candidate actions during training.
Experimental Evaluation
The model was evaluated on three widely-used semantic segmentation benchmarks: CamVid (automotive video), Stanford Background (outdoor scenes), and Siftflow (diverse outdoor scenes).
The DHM is image-adaptive, meaning it might spend more time refining a complex area (like a cluster of pedestrians) while quickly labeling a large, simple area (like the sky). By explicitly including CPU time in the reward function, the model learns to prioritize "cheap" features that provide high information gain early on, saving "expensive" features for when they are truly necessary.
Key Results
The experimental results demonstrate significant efficiency gains. On the CamVid dataset, the model achieved 90% of state-of-the-art performance using only 15% of the total cost of non-anytime models. In head-to-head comparisons, the DHM consistently outperformed "Static-Myopic" baselines and random selection strategies.
On CamVid, the model reached a pixel accuracy of 84.7%, comparable to complex, non-anytime models like the Hierarchical Inference Machine, but at roughly half the computational cost. On the Stanford Background dataset, it achieved a pixel accuracy of 83.0%, setting a strong result while maintaining anytime flexibility.
Conclusion
The Dynamic Hierarchical Model provides a robust framework for balancing accuracy and efficiency in scene labeling. While the model currently assumes an initial image segmentation overhead and relies on a fixed set of visual features, its non-myopic planning and image-adaptive nature represent a significant step forward for real-time vision applications. Future work may involve integrating deep-learning-based features and extending the framework to video sequences to leverage temporal consistency.
Summary updated