arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.03785cs.DB
收藏

Zelda:使用视觉-语言模型的视频分析

Zelda: Video Analytics using Vision-Language Models

Francisco Romero, Caleb Winston, Johann Hauswald, Matei Zaharia, Christos Kozyrakis

AI总结:

针对现有视频分析系统表达能力有限、结果冗余低质等问题,提出基于视觉-语言模型的Zelda系统,通过自动优化提示、语义剪枝提升结果相关性与多样性,在精度、多样性和速度上均优于现有方案。

摘要:

机器学习的发展推动了可对视频数据集执行结构化查询的视频分析系统的设计。然而,现有系统存在查询表达能力受限、要求用户为每个谓词指定一个机器学习模型、依赖以准确性换取性能的复杂优化、返回大量冗余且低质量结果的问题。本文聚焦于近期开发的视觉-语言模型(Vision-Language Models,VLMs),这类模型支持用户使用类似“白天交通路口的汽车”的自然语言查询图像。通过深入分析,我们证明VLM解决了当前视频分析系统的三大局限:通用表达能力、可查询多种谓词的单一通用模型,同时兼具简洁性与高效性。但VLM仍会返回大量冗余、低质量的结果,可能让用户应接不暇、负担沉重。此外,VLM通常需要人工进行提示工程以提升结果相关性。\n我们提出Zelda:一个利用VLM为大型视频数据集上的Top-K查询返回兼具相关性与语义多样性结果的视频分析系统。Zelda将用户的自然语言查询作为提示输入VLM,随后自动添加判别词与同义词以提升准确性,并添加用于识别低质量帧的术语。为提升结果多样性,Zelda在一种剪枝相似帧的算法中使用语义丰富的VLM嵌入,同时兼顾帧与查询的相关性以及所需Top-K结果的数量。我们在5个数据集、19个查询上对Zelda进行评估,量化结果显示,与直接使用开箱即用的VLM相比,Zelda取得了更高的平均精度均值(最高提升1.15倍),且平均成对相似度提升最高达1.16倍。我们还将Zelda与当前最先进的视频分析引擎进行对比,结果表明,在准确性与帧多样性相同的情况下,Zelda检索结果的速度快7.5倍(最高可达10.4倍)。

英文摘要:

Advances in ML have motivated the design of video analytics systems that allow for structured queries over video datasets. However, existing systems limit query expressivity, require users to specify an ML model per predicate, rely on complex optimizations that trade off accuracy for performance, and return large amounts of redundant and low-quality results. This paper focuses on the recently developed Vision-Language Models (VLMs) that allow users to query images using natural language like "cars during daytime at traffic intersections." Through an in-depth analysis, we show VLMs address three limitations of current video analytics systems: general expressivity, a single general purpose model to query many predicates, and are both simple and fast. However, VLMs still return large numbers of redundant and low-quality results that can overwhelm and burden users. In addition, VLMs often require manual prompt engineering to improve result relevance. We present Zelda: a video analytics system that uses VLMs to return both relevant and semantically diverse results for top-K queries on large video datasets. Zelda prompts the VLM with the user's query in natural language. Zelda then automatically adds discriminator and synonym terms to boost accuracy, and terms to identify low-quality frames. To improve result diversity, Zelda uses semantic-rich VLM embeddings in an algorithm that prunes similar frames while considering their relevance to the query and the number of top-K results requested. We evaluate Zelda across five datasets and 19 queries and quantitatively show it achieves higher mean average precision (up to 1.15x) and improves average pairwise similarity (up to 1.16x) compared to using VLMs out-of-the-box. We also compare Zelda to a state-of-the-art video analytics engine and show that Zelda retrieves results 7.5x (up to 10.4x) faster for the same accuracy and frame diversity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑