[Paper Review] Ekya: Continuous Learning of Video Analytics Models on Edge Compute Servers
Ekya is a system that enables continuous learning of video analytics models on edge servers by jointly optimizing inference and retraining workloads. It uses a micro-profiler and performance estimator to prioritize retraining tasks and allocate GPU resources, achieving 29% higher average inference accuracy than a baseline while using 4× fewer GPU resources.
Video analytics applications use edge compute servers for the analytics of the videos (for bandwidth and privacy). Compressed models that are deployed on the edge servers for inference suffer from data drift, where the live video data diverges from the training data. Continuous learning handles data drift by periodically retraining the models on new data. Our work addresses the challenge of jointly supporting inference and retraining tasks on edge servers, which requires navigating the fundamental tradeoff between the retrained model's accuracy and the inference accuracy. Our solution Ekya balances this tradeoff across multiple models and uses a micro-profiler to identify the models that will benefit the most by retraining. Ekya's accuracy gain compared to a baseline scheduler is 29% higher, and the baseline requires 4x more GPU resources to achieve the same accuracy as Ekya.
Motivation & Objective
- Address the challenge of maintaining high inference accuracy in edge video analytics systems affected by data drift due to changing video characteristics.
- Balance the tradeoff between retraining model accuracy and inference accuracy in resource-constrained edge servers.
- Jointly optimize retraining and inference scheduling, including model selection, resource allocation, and hyperparameter configuration.
- Ensure inference accuracy remains above a minimum threshold at all times, even during retraining.
- Maximize the average inference accuracy over the retraining window across multiple video streams.
Proposed method
- Introduces a micro-profiler to identify which models will benefit most from retraining based on data drift and performance trends.
- Employs a performance estimator to predict the accuracy and resource usage of different retraining and inference configurations with low overhead.
- Uses a resource scheduler that prunes the large decision space of configurations and allocations, focusing on high-impact retraining tasks.
- Applies continuous learning techniques such as transfer learning and incremental training to adapt models to new data without catastrophic forgetting.
- Optimizes scheduling across multiple models by prioritizing retraining jobs that yield the highest accuracy gain per resource unit.
- Enforces a minimum inference accuracy constraint to ensure system reliability during retraining.
Experimental results
Research questions
- RQ1How can edge video analytics systems maintain high inference accuracy when live video data diverges from training data due to data drift?
- RQ2What is the optimal tradeoff between retraining accuracy and inference accuracy in resource-constrained edge servers?
- RQ3How can the system efficiently select which models to retrain and which configurations to use, given the high-dimensional decision space?
- RQ4Can a lightweight performance estimator and micro-profiler reduce the overhead of retraining while improving overall system accuracy?
- RQ5To what extent can a joint scheduling approach outperform baseline schedulers in terms of accuracy and resource efficiency?
Key findings
- Ekya achieves 29% higher average inference accuracy compared to a baseline scheduler that does not use intelligent prioritization.
- The baseline scheduler requires 4× more GPU resources to achieve the same inference accuracy as Ekya, demonstrating Ekya’s superior resource efficiency.
- The micro-profiler successfully identifies models most likely to benefit from retraining, reducing wasted computation on low-impact models.
- The performance estimator enables accurate prediction of retraining outcomes with minimal runtime overhead, making real-time scheduling feasible.
- Ekya maintains inference accuracy above the minimum threshold throughout the retraining window, ensuring application reliability.
- The system effectively handles data drift across diverse video streams, including urban traffic and smart car scenarios, where object appearances and environmental conditions vary significantly.
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.