Streaming Video Question-Answering with In-context Video KV-Cache Retrieval

Shangzhe Di, Zhelun Yu, Guanghao Zhang, Haoyuan Li, Tao Zhong, Hao Cheng, Bolin Li, Wanggui He, Fangxun Shu, Hao Jiang

arXiv:2503.00540 · 2026-07-27 공개 · arXiv · PDF

retrieval-augmented kv-cache in-context-learning video-llm sliding-window-attention video-processing streaming-vqa video-encoding

Abstract

We propose ReKV, a novel training-free approach that enables efficient streaming video question-answering (StreamingVQA), by seamlessly integrating with existing Video Large Language Models (Video-LLMs). Traditional VideoQA systems struggle with long videos, as they must process entire videos before responding to queries, and repeat this process for each new question. In contrast, our approach analyzes long videos in a streaming manner, allowing for prompt responses as soon as user queries are received. Building on a common Video-LLM, we first incorporate a sliding-window attention mechanism, ensuring that input frames attend to a limited number of preceding frames, thereby reducing computational overhead. To prevent information loss, we store processed video key-value caches (KV-Caches) in RAM and disk, reloading them into GPU memory as needed. Additionally, we introduce a retrieval method that leverages an external retriever or the parameters within Video-LLMs to retrieve only query-relevant KV-Caches, ensuring both efficiency and accuracy in question answering. ReKV enables the separation of video encoding and question-answering across different processes and GPUs, significantly enhancing the efficiency of StreamingVQA. Through comprehensive experimentation, we validate the efficacy and practicality of our approach, which significantly boosts efficiency and enhances applicability over existing VideoQA models.

한국어 요약

한 줄 요약

ReKV는 기존 Video-LLMs에 통합 가능한 훈련 없이 실시간 동영상 QA를 가능하게 하는 KV-Cache 기반 검색 기법을 제안한다.

핵심 기여도

핵심 아이디어

ReKV는 기존 Video-LLMs를 훈련 없이 활용하여 실시간 동영상 QA를 가능하게 하는 새로운 프레임워크이다. 기존 시스템은 전체 동영상을 처리해야 하므로 장시간 동영상에 비효율적이었으나, ReKV는 **sliding-window attention**을 도입하여 현재 프레임이 제한된 이전 프레임만 참조하도록 하여 계산 부담을 줄인다. 또한, **KV-Cache**를 RAM 및 디스크에 저장하고 필요 시 GPU로 재로드함으로써 정보 손실을 방지한다. 질문에 따라 필요한 KV-Cache만 검색하는 **in-context retrieval** 기법을 통해 정확도와 효율성을 동시에 확보한다. 이는 실시간 응답과 장기 맥락 유지라는 두 가지 핵심 과제를 해결한다.

기술적 접근법

주요 결과

의의 및 한계

ReKV는 기존 Video-LLMs를 훈련 없이 활용하면서도 실시간 QA를 가능하게 하므로, **실시간 응답이 필요한 시스템**에서 유용하다. 특히, **장시간 동영상 처리**와 **맥락 유지**라는 두 가지 주요 과제를 해결하며, **실용성과 확장성**을 높인다. 그러나, **매우 긴 동영상**의 경우 KV-Cache 저장 공간이 제한될 수 있으며, **검색 정확도**는 질문의 복잡성에 따라 변동할 수 있다. 또한, **외부 retriever 의존도**가 있는 경우 성능에 영향을 줄 수 있다.

실용적 활용

ReKV는 **로봇, 감시, 라이브 방송** 등 실시간 동영상 처리가 필요한 산업에 적용 가능하다. 또한, **대규모 동영상 QA 시스템** 구축 시 메모리 효율성과 응답 속도를 동시에 확보할 수 있어 연구 및 산업 현장에서 유용하게 활용될 수 있다.