[Paper Review] THIA: Accelerating Video Analytics using Early Inference and Fine-Grained Query Planning
THIA accelerates video analytics by using a single object detection model with multiple early exit points for dynamic throughput-accuracy tradeoffs, combined with fine-grained query planning and a lightweight exit point estimator. It achieves up to 6.5× speedup over state-of-the-art systems while maintaining high accuracy on hard-to-detect events.
To efficiently process visual data at scale, researchers have proposed two techniques for lowering the computational overhead associated with the underlying deep learning models. The first approach consists of leveraging a specialized, lightweight model to directly answer the query. The second approach focuses on filtering irrelevant frames using a lightweight model and processing the filtered frames using a heavyweight model. These techniques suffer from two limitations. With the first approach, the specialized model is unable to provide accurate results for hard-to-detect events. With the second approach, the system is unable to accelerate queries focusing on frequently occurring events as the filter is unable to eliminate a significant fraction of frames in the video. In this paper, we present THIA, a video analytics system for tackling these limitations. The design of THIA is centered around three techniques. First, instead of using a cascade of models, it uses a single object detection model with multiple exit points for short-circuiting the inference. This early inference technique allows it to support a range of throughput-accuracy tradeoffs. Second, it adopts a fine-grained approach to planning and processes different chunks of the video using different exit points to meet the user's requirements. Lastly, it uses a lightweight technique for directly estimating the exit point for a chunk to lower the optimization time. We empirically show that these techniques enable THIA to outperform two state-of-the-art video analytics systems by up to 6.5X, while providing accurate results even on queries focusing on hard-to-detect events.
Motivation & Objective
- To address the limitations of existing video analytics systems that use either specialized lightweight models or frame filtering with heavyweight models.
- To overcome the inefficiency of coarse-grained query planning that fails to adapt to varying event frequency and detection difficulty in videos.
- To reduce optimization time in query planning while maintaining high performance and accuracy.
- To enable dynamic, chunk-level selection of inference exit points based on content characteristics.
Proposed method
- THIA uses a single deep learning model with multiple early exit points (EPs) to enable short-circuiting inference based on confidence and complexity, offering multiple throughput-accuracy tradeoffs.
- It employs fine-grained query planning, selecting different EPs for different video chunks to optimize performance and accuracy per segment.
- A lightweight deep learning model is used to estimate the optimal EP for each video chunk, significantly reducing the time required for query optimization.
- The system avoids model switching overhead by reusing shared parameters across EPs, minimizing GPU memory footprint.
- The exit point estimator is trained to predict the best EP based on features from earlier model layers, enabling fast, real-time planning decisions.
- THIA integrates early inference with adaptive planning to balance speed and accuracy across diverse video workloads.
Experimental results
Research questions
- RQ1Can a single model with multiple exit points outperform cascaded models in terms of speed and memory efficiency for video analytics?
- RQ2How effective is fine-grained query planning—selecting different exit points per video chunk—in improving performance compared to coarse-grained planning?
- RQ3Can a lightweight estimator accurately predict the optimal exit point for each video chunk without running full inference on sampled frames?
- RQ4To what extent does early inference with dynamic exit point selection maintain accuracy on hard-to-detect events compared to traditional methods?
- RQ5What is the trade-off between optimization time and plan quality in adaptive video analytics systems?
Key findings
- THIA achieves up to 6.5× speedup over two state-of-the-art video analytics systems while maintaining high accuracy, even on queries involving hard-to-detect events.
- The fine-grained planning approach in THIA results in execution times that are only 0.3× slower than the optimal brute-force plan, demonstrating high plan quality.
- The memory footprint of THIA is 2 GB with 5 exit points, significantly lower than the 5 GB required by a model cascade with the same number of exit points.
- The exit point estimation model reduces optimization time by enabling fast, direct prediction of the best EP per chunk without full inference on sampled frames.
- THIA's early inference technique eliminates costly model switching overhead present in cascaded model systems.
- The system outperforms model cascade approaches by 2× in speed due to shared parameters and reduced switching costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.