Llama: A Heterogeneous & Serverless Framework for Auto-Tuning Video Analytics Pipelines
Not on the map. Why?
Abstract (arXiv)
The proliferation of camera-enabled devices and large video repositories has led to a diverse set of video analytics applications. These applications rely on video pipelines, represented as DAGs of operations, to transform videos, process extracted metadata, and answer questions like, "Is this intersection congested?" The latency and resource efficiency of pipelines can be optimized using configurable knobs for each operation (e.g., sampling rate, batch size, or type of hardware used). However, determining efficient configurations is challenging because (a) the configuration search space is exponentially large, and (b) the optimal configuration depends on users' desired latency and cost targets, (c) input video contents may exercise different paths in the DAG and produce a variable amount intermediate results. Existing video analytics and processing systems leave it to the users to manually configure operations and select hardware resources. We present Llama: a heterogeneous and serverless framework for auto-tuning video pipelines. Given an end-to-end latency target, Llama optimizes for cost efficiency by (a) calculating a latency target for each operation invocation, and (b) dynamically running a cost-based optimizer to assign configurations across heterogeneous hardware that best meet the calculated per-invocation latency target. This makes the problem of auto-tuning large video pipelines tractable and allows us to handle input-dependent behavior, conditional branches in the DAG, and execution variability. We describe the algorithms in Llama and evaluate it on a cloud platform using serverless CPU and GPU resources. We show that compared to state-of-the-art cluster and serverless video analytics and processing systems, Llama achieves 7.8x lower latency and 16x cost reduction on average.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Feb 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 3; 2023: 4; 2024: 1; 2025: 4; 2026: 4.
16 papers.
Sort:
By area:
- 2024Teola: Towards End-to-End Optimization of LLM-based Applicationscited by 32
- 2025Murakkab: Resource-Efficient Agentic Workflow Orchestration in Cloud Platformscited by 18
- 2022Serving and Optimizing Machine Learning Workflows on Heterogeneous Infrastructurescited by 12
- 2022Edge Video Analytics: A Survey on Applications, Systems and Enabling Techniquescited by 7
- 2023Extract-Transform-Load for Video Streamscited by 7
- 2022KAIROS: Building Cost-Efficient Machine Learning Inference Systems with Heterogeneous Cloud Resourcescited by 3
- 2023Symphony: Optimized DNN Model Serving using Deferred Batch Schedulingcited by 2
- 2023IPA: Inference Pipeline Adaptation to Achieve High Accuracy and Cost-Efficiencycited by 2
- 2025A Survey on Video Analytics in Cloud-Edge-Terminal Collaborative Systemscited by 2
- 2023VQPy: An Object-Oriented Approach to Modern Video Analyticscited by 1
- 2026RLHFless: Serverless Computing for Efficient RLHFcited by 1
- 2025Rethinking Inference Placement for Deep Learning across Edge and Cloud Platforms: A Multi-Objective Optimization Perspective and Future Directionscited by 0
4 more
- 2025Optimizing video analytics inference pipelines: a case studycited by 0
- 2026StreamWise: Serving Multi-Modal Generation in Real-Time at Scalecited by 0
- 2026VineLM: Trie-Based Fine-Grained Control for Agentic Workflowscited by 0
- 2026Atlas: Optimizing Deployment of Compound AI Workflows on Heterogeneous Clusterscited by 0
- 2026Atlas: Optimizing Deployment of Compound AI Workflows on Heterogeneous Clusters3 Sep 2026
- 2026VineLM: Trie-Based Fine-Grained Control for Agentic Workflows9 Apr 2026
- 2026StreamWise: Serving Multi-Modal Generation in Real-Time at Scale6 Mar 2026
- 2026RLHFless: Serverless Computing for Efficient RLHF26 Feb 2026
- 2025Optimizing video analytics inference pipelines: a case study7 Dec 2025
- 2025Rethinking Inference Placement for Deep Learning across Edge and Cloud Platforms: A Multi-Objective Optimization Perspective and Future Directions27 Oct 2025
- 2025Murakkab: Resource-Efficient Agentic Workflow Orchestration in Cloud Platforms22 Aug 2025
- 2025A Survey on Video Analytics in Cloud-Edge-Terminal Collaborative Systems10 Feb 2025
- 2024Teola: Towards End-to-End Optimization of LLM-based Applications29 Jun 2024
- 2023VQPy: An Object-Oriented Approach to Modern Video Analytics3 Nov 2023
- 2023Extract-Transform-Load for Video Streams7 Oct 2023
- 2023IPA: Inference Pipeline Adaptation to Achieve High Accuracy and Cost-Efficiency24 Aug 2023
4 more
- 2023Symphony: Optimized DNN Model Serving using Deferred Batch Scheduling14 Aug 2023
- 2022Edge Video Analytics: A Survey on Applications, Systems and Enabling Techniques28 Nov 2022
- 2022KAIROS: Building Cost-Efficient Machine Learning Inference Systems with Heterogeneous Cloud Resources12 Oct 2022
- 2022Serving and Optimizing Machine Learning Workflows on Heterogeneous Infrastructures10 May 2022
- 2026RLHFless: Serverless Computing for Efficient RLHFcited by 1
- 2026RLHFless: Serverless Computing for Efficient RLHF26 Feb 2026
- 2024Teola: Towards End-to-End Optimization of LLM-based Applicationscited by 32
- 2022Serving and Optimizing Machine Learning Workflows on Heterogeneous Infrastructurescited by 12
- 2022Edge Video Analytics: A Survey on Applications, Systems and Enabling Techniquescited by 7
- 2023Extract-Transform-Load for Video Streamscited by 7
- 2022KAIROS: Building Cost-Efficient Machine Learning Inference Systems with Heterogeneous Cloud Resourcescited by 3
- 2023Symphony: Optimized DNN Model Serving using Deferred Batch Schedulingcited by 2
- 2023IPA: Inference Pipeline Adaptation to Achieve High Accuracy and Cost-Efficiencycited by 2
- 2025A Survey on Video Analytics in Cloud-Edge-Terminal Collaborative Systemscited by 2
- 2023VQPy: An Object-Oriented Approach to Modern Video Analyticscited by 1
- 2025Optimizing video analytics inference pipelines: a case studycited by 0
- 2026StreamWise: Serving Multi-Modal Generation in Real-Time at Scalecited by 0
- 2026Atlas: Optimizing Deployment of Compound AI Workflows on Heterogeneous Clusterscited by 0
- 2026Atlas: Optimizing Deployment of Compound AI Workflows on Heterogeneous Clusters3 Sep 2026
- 2026StreamWise: Serving Multi-Modal Generation in Real-Time at Scale6 Mar 2026
- 2025Optimizing video analytics inference pipelines: a case study7 Dec 2025
- 2025A Survey on Video Analytics in Cloud-Edge-Terminal Collaborative Systems10 Feb 2025
- 2024Teola: Towards End-to-End Optimization of LLM-based Applications29 Jun 2024
- 2023VQPy: An Object-Oriented Approach to Modern Video Analytics3 Nov 2023
- 2023Extract-Transform-Load for Video Streams7 Oct 2023
- 2023IPA: Inference Pipeline Adaptation to Achieve High Accuracy and Cost-Efficiency24 Aug 2023
- 2023Symphony: Optimized DNN Model Serving using Deferred Batch Scheduling14 Aug 2023
- 2022Edge Video Analytics: A Survey on Applications, Systems and Enabling Techniques28 Nov 2022
- 2022KAIROS: Building Cost-Efficient Machine Learning Inference Systems with Heterogeneous Cloud Resources12 Oct 2022
- 2022Serving and Optimizing Machine Learning Workflows on Heterogeneous Infrastructures10 May 2022