← Latest papers
💬 NLP

HERMES: KV Cache as Hierarchical Memory for Efficient Streaming Video Understanding

HERMES is a novel, training-free architecture that conceptualizes the KV cache as a hierarchical memory framework to enable real-time, accurate, and resource-efficient streaming video understanding, achieving 10x faster time-to-first-token and up to 11.4% higher accuracy on streaming datasets compared to state-of-the-art methods.

Original authors: Haowei Zhang, Shudong Yang, Jinlan Fu, See-Kiong Ng, Xipeng Qiu

Published 2026-04-17
📖 5 min read🧠 Deep dive

Original authors: Haowei Zhang, Shudong Yang, Jinlan Fu, See-Kiong Ng, Xipeng Qiu

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

The Big Problem: The "Short Attention Span" AI

Imagine you have a very smart friend (an AI) who is great at watching a 2-minute movie clip and answering questions about it. But if you ask them to watch a live, 24-hour news stream and answer questions in real-time, they start to struggle.

Why? Because their "working memory" (the part of their brain holding the video) is too small.

  • The Old Way: To watch a long stream, the AI either tries to remember everything (which crashes their brain/GPU memory) or they start forgetting the beginning of the video to make room for the new stuff.
  • The Result: They get confused, hallucinate, or take too long to answer because they have to go dig through old files to remember what happened 10 minutes ago.

The Solution: HERMES (The "Smart Librarian")

The researchers created HERMES, a new way for AI to watch live video streams without needing extra training or crashing.

Think of the AI's memory (called KV Cache) not as a single messy pile of papers, but as a three-story library. HERMES organizes this library so the AI knows exactly where to look for information, depending on how old it is.

1. The Three Floors of Memory

The paper discovered that different layers of the AI's brain naturally handle information differently. HERMES leans into this:

  • Floor 1: The "Sensory" Lobby (Shallow Layers)
    • Analogy: This is like your immediate senses. If someone just walked into the room, you notice them instantly.
    • How it works: The AI keeps the very latest video frames here. It forgets them quickly if they aren't important, but it's super fast at noticing what's happening right now.
  • Floor 2: The "Working" Desk (Middle Layers)
    • Analogy: This is like your desk where you're currently working on a project. You have the latest papers, but you also have the notes from an hour ago that you might need to reference.
    • How it works: This layer balances the "new stuff" with the "recent past." It connects the current scene to what just happened.
  • Floor 3: The "Long-Term" Archive (Deep Layers)
    • Analogy: This is the library's basement archives. You don't look here for what happened 5 seconds ago, but you look here for the main plot points of the whole movie.
    • How it works: Instead of storing every single frame, this layer stores "Anchor Tokens"—like the cover of a book or a summary of a chapter. It remembers the rhythm of the video (e.g., "The car chase started at minute 5") without needing every single pixel.

How HERMES Works (The Magic Tricks)

1. The "No-Dig" Rule (Real-Time Speed)
Most other methods try to "search" for old information when you ask a question. Imagine asking your librarian, "What happened in the movie?" and them having to walk to the basement, find a box, and bring it back. That takes time.

  • HERMES: The information is already organized on the shelves. When you ask a question, the AI grabs the answer instantly. This makes it 10 times faster than previous methods.

2. The "Smoothing" Effect
Sometimes, if you throw away a page from the "Working Desk," the "Archive" might get confused about what the story was.

  • HERMES: It uses a "Cross-Layer Smoothing" technique. It's like a gentle hand that makes sure the summary in the basement matches the notes on the desk. It ensures the AI doesn't lose the thread of the story just because it deleted some old frames.

3. The "Renumbering" Trick
As a video stream goes on forever, the AI's internal clock (position numbers) can get huge and break.

  • HERMES: It constantly "renumbers" the pages. If you delete page 50, it instantly re-labels page 51 as page 50. This keeps the AI's memory compact and prevents it from getting overwhelmed by the sheer length of the video.

The Results: Why Should You Care?

  • It's Efficient: HERMES can throw away up to 68% of the video data (the boring, redundant parts) and still understand the video better than the original AI.
  • It's Fast: It answers questions almost instantly, even on a single computer chip, without needing a supercomputer.
  • It's Accurate: On tests involving long, complex videos, HERMES actually got 11.4% more questions right than the standard AI, even though it was looking at fewer frames.

The Bottom Line

HERMES is like giving an AI a super-organized, multi-level memory system. Instead of trying to remember every single second of a live stream (which is impossible), it remembers the sensory details of the present, the context of the recent past, and the key plot points of the long-term history.

This allows AI to finally watch live video streams, sports games, or security feeds in real-time, answering questions instantly without getting a headache or running out of 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.

Try Digest →