Skip to main content
QUICK REVIEW

[Paper Review] Llama: A Heterogeneous & Serverless Framework for Auto-Tuning Video Analytics Pipelines

Francisco Romero, Mark Zhao|arXiv (Cornell University)|Feb 3, 2021
Advanced Neural Network ApplicationsComputer Science50 references17 citations
TL;DR

Llama is a heterogeneous, serverless framework that automatically tunes video analytics pipelines for optimal latency and cost by dynamically assigning configurations per operation invocation based on end-to-end latency targets. It achieves 7.8× lower latency and 16× cost reduction compared to state-of-the-art systems through slack-based optimization, early speculation, and dynamic resource allocation across CPUs and GPUs.

ABSTRACT

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.

Motivation & Objective

  • To address the challenge of manually tuning video pipeline configurations across diverse hardware and latency targets.
  • To enable cost-efficient, low-latency execution of complex, input-dependent video pipelines on heterogeneous serverless backends.
  • To automate configuration tuning without repeated profiling for each pipeline or input variation.
  • To support dynamic, conditional execution flows in video analytics DAGs while maintaining end-to-end latency guarantees.
  • To reduce user burden by eliminating manual knob configuration and resource right-sizing.

Proposed method

  • Llama divides pipeline execution into an offline specification phase and an online optimization phase.
  • It performs one-time per-operation profiling to build performance models for configuration prediction.
  • During online execution, Llama computes invocation-level slack based on end-to-end latency targets and operation dependencies.
  • It uses early speculation and late commit to safely delay batching and reduce resource waste.
  • Priority-based commit ensures efficient scheduling by prioritizing operations with tighter slack constraints.
  • A cost-based optimizer selects hardware and configuration (e.g., batch size, GPU/CPU) per invocation to meet its slack target.

Experimental results

Research questions

  • RQ1How can video analytics pipelines be auto-tuned across heterogeneous serverless backends to meet end-to-end latency and cost targets?
  • RQ2How can dynamic, input-dependent execution flows and conditional branches in video pipelines be efficiently handled during auto-tuning?
  • RQ3Can a serverless framework achieve low-latency and cost-efficient video processing without manual configuration or repeated profiling?
  • RQ4What optimization techniques enable efficient configuration selection under variable input workloads and hardware heterogeneity?
  • RQ5How does dynamic slack computation and speculative execution improve pipeline performance in complex DAGs?

Key findings

  • Llama reduces average latency by 7.8× compared to state-of-the-art cluster and serverless video analytics systems.
  • Llama achieves an average 16× reduction in cost compared to existing systems under the same latency targets.
  • The framework incurs only 483 microseconds of overhead per invocation, enabling over 2000 invocations per second.
  • Speculation requires just 5 microseconds, making configuration decisions highly efficient.
  • Llama’s online phase scales well: increasing resources from 6 CPU/1 GPU to 15 CPU/3 GPU instances improves performance by 25%.
  • One-time per-operation profiling (257 seconds on average) eliminates the need for re-profiling when inputs or pipelines change.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.