ProtoKV: Streaming Video Understanding under Delayed Query with Summary-State Memory
ProtoKV is a streaming video understanding framework that addresses the challenge of delayed queries by maintaining a constant memory footprint through a hybrid approach of exact near-window KV caching and a fixed-capacity summary-state memory for historical content, thereby significantly improving accuracy over token-retention baselines as query delays increase.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are watching a very long, continuous video stream, like a 24-hour security camera feed. Your job is to answer questions about what happened in that video. The problem? You have a tiny brain (limited computer memory) and you can't pause the video to rewind and re-watch everything. You have to keep watching while waiting for someone to ask you a question, which might come minutes or even hours after a specific event happened.
This is the challenge of Streaming Video Understanding.
The Problem: The "Forgetting" Brain
Most current systems try to solve this by keeping a "sliding window" of the last few minutes of video in their memory.
- The Analogy: Imagine you are holding a bucket of water (your memory). As new water (video frames) flows in, you have to let old water out to keep the bucket from overflowing.
- The Flaw: If a crucial event happens (like a thief stealing a wallet) and then 20 minutes of boring footage follow before someone asks, "Did you see the thief?", the old water (the thief) has already been dumped out of the bucket. The system forgets the answer.
Other systems try to keep a list of "important moments" (tokens) they saved. But if the video is long, they have to constantly decide which saved moments to throw away to make room for new ones. If they throw away the wrong moment, the answer is lost forever.
The Solution: ProtoKV (The "Summary Notebook")
The authors propose a new system called ProtoKV. Instead of trying to save every single frame or just a few specific moments, ProtoKV uses a two-part memory system that acts like a smart notebook.
1. The "Recent Past" (The Exact Window)
For the most recent part of the video (say, the last few minutes), ProtoKV keeps a perfect, high-definition copy of everything.
- Analogy: This is like having a clear, high-resolution photo of what happened in the last 5 minutes. If you ask a question about right now, the answer is right there, crystal clear.
2. The "Distant Past" (The Prototype Bank)
For everything that happened before that recent window, ProtoKV stops saving individual frames. Instead, it creates summaries.
- The Analogy: Imagine you are watching a parade. You don't remember every single person's face from 2 hours ago. Instead, you remember: "There was a marching band," "There was a float with a giant cat," and "There was a group of people in red shirts."
- How it works: ProtoKV groups similar things together into "Prototypes."
- If a person is walking, ProtoKV creates a "Walking Person" summary.
- If that person walks for 10 minutes, the system doesn't save 10 minutes of video. It just updates the "Walking Person" summary to say, "This person has been walking for a long time."
- It also keeps a "residual" note: "Most of the time, the person was walking normally, but occasionally they waved." This captures the variety without saving every single step.
The Magic Trick: The "Ghost Token"
When a question finally arrives (e.g., "What did the person in the red shirt do 30 minutes ago?"), the system needs to feed this information to the AI model. But the model expects to see actual video frames, not just a summary.
ProtoKV uses a clever trick called Pseudo-Tokens.
- The Analogy: Imagine you have a summary note that says "Giant Cat Float." To show this to the AI, ProtoKV creates a few "ghost" video frames that look like the Giant Cat Float based on the summary notes.
- These ghosts aren't real frames; they are mathematical reconstructions of the summary. The AI model sees these ghosts and treats them just like real video frames.
- Crucially, the system counts how many real moments went into that summary. If the "Giant Cat Float" summary was built from 500 real seconds of video, the system tells the AI, "This ghost represents 500 seconds of evidence," so the AI pays more attention to it.
Why This is Better
The paper claims that ProtoKV is much better at answering questions about things that happened a long time ago (high "delay") compared to other methods.
- Old Method (Sliding Window): If the event happened 30 minutes ago, the system has already deleted it. Accuracy drops to zero.
- Old Method (Token Retention): The system tried to save specific moments, but it had to delete some to make room for new ones. It might have deleted the exact moment the thief appeared.
- ProtoKV: It never deletes the concept of the event. It just compresses it into a summary. Even after 30 minutes of new video, the "Thief" summary is still there, updated with new details, ready to be turned back into a "ghost" frame for the AI to answer the question.
The Results
The authors tested this on several video benchmarks. They found that:
- Accuracy: ProtoKV got significantly higher scores (up to 12.5 points better) on questions about events that happened a long time ago.
- Stability: As the time gap between the event and the question grew, ProtoKV's performance stayed steady, while other methods crashed.
- Speed: It answers questions just as fast as the other methods because the "summary" is small and fits easily into the computer's memory, so it doesn't slow down the system.
In short, ProtoKV solves the problem of "forgetting" by stopping the attempt to remember every single detail and instead remembering the story of what happened, allowing it to answer questions about the distant past without needing a super-computer's memory.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.