[論文レビュー] Llama: A Heterogeneous & Serverless Framework for Auto-Tuning Video Analytics Pipelines
Llama は、エンドツーエンドの遅延目標に基づき、各操作の実行ごとに動的に構成を割り当てることで、最適な遅延とコストを達成するための、異種でサーバーレスなフレームワークである。Llama はスラックベース最適化、早期予測、CPU と GPU 間での動的リソース割り当てを通じて、最先端のシステムと比較して 7.8倍の遅延低減と 16倍のコスト削減を達成した。
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.
研究の動機と目的
- 多様なハードウェアと遅延目標の下で、手動によるビデオパイプライン構成のチューニングという課題に対処すること。
- 異種のサーバーレスバックエンド上で、複雑で入力依存のビデオパイプラインを、コスト効率よく低遅延で実行することを可能にすること。
- 各パイプラインや入力の変更に対して繰り返しプロファイリングを実施しなくてもよいように、構成チューニングを自動化すること。
- エンドツーエンドの遅延保証を維持しながら、ビデオ分析 DAG における動的で条件付きの実行フローを扱えるようにすること。
- 手動でのノブ設定やリソースの適正化を排除することで、ユーザーの負担を軽減すること。
提案手法
- Llama はパイプライン実行をオフライン仕様フェーズとオンライン最適化フェーズに分割する。
- 各操作ごとの一回限りのプロファイリングを実施し、構成予測のためのパフォーマンスモデルを構築する。
- オンライン実行中、Llama はエンドツーエンドの遅延目標と操作の依存関係に基づき、呼び出し単位のスラックを計算する。
- 早期予測と遅延コミットを用いて、バッチ処理の遅延を安全に遅らせる。
- 優先度ベースのコミットにより、スラック制約が厳しい操作を優先的にスケジューリングすることで、効率的なスケジューリングを実現する。
- コストベースの最適化アルゴリズムにより、各呼び出しに対して、ハードウェアと構成(例:バッチサイズ、GPU/CPU)を選択し、スラック目標を満たす。
実験結果
リサーチクエスチョン
- RQ1エンドツーエンドの遅延とコストの目標を満たすために、異種のサーバーレスバックエンド上でビデオ分析パイプラインを自動チューニングする方法は何か?
- RQ2自動チューニングの過程で、入力依存の動的実行フローと条件分岐を効率的に処理するにはどうすればよいか?
- RQ3繰り返しプロファイリングや手動設定なしに、サーバーレスフレームワークが低遅延かつコスト効率の良いビデオ処理を実現できるか?
- RQ4変動する入力ワークロードとハードウェアの異種性の下で、効率的な構成選択を実現する最適化技術は何か?
- RQ5動的スラック計算と予測実行は、複雑な DAG におけるパイプライン性能をどのように向上させるか?
主な発見
- Llama は、最先端のクラスタおよびサーバーレスビデオ分析システムと比較して、平均で 7.8 倍の遅延低減を達成した。
- Llama は、同じ遅延目標下で、既存のシステムと比較して平均で 16 倍のコスト削減を達成した。
- Llama は 1 回の呼び出しあたりわずか 483 マイクロ秒のオーバーヘッドしか発生せず、1 秒間に 2000 回以上の呼び出しを処理可能である。
- 予測処理にはたった 5 マイクロ秒しかかからず、構成決定が極めて効率的である。
- Llama のオンラインフェーズは良好にスケーリング可能である:CPU 6 個 / GPU 1 基から CPU 15 個 / GPU 3 基にリソースを増加させると、性能が 25% 向上した。
- 1 回の操作ごとのプロファイリング(平均 257 秒)を実施することで、入力やパイプラインが変更された場合でも再プロファイリングの必要がなくなった。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。