← Latest papers
🤖 machine learning

CoStream: Codec-Guided Resource-Efficient System for Video Streaming Analytics

CoStream is a resource-efficient video streaming analytics system that leverages inherent codec metadata to guide online patch pruning and selective key-value cache refresh, achieving up to 3x throughput improvement and 87% GPU compute reduction with minimal accuracy loss.

Original authors: Yulin Zou, Yan Chen, Wenyan Chen, JooYoung Park, Shivaraman Nitin, Luo Tao, Francisco Romero, Dmitrii Ustiugov

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

Original authors: Yulin Zou, Yan Chen, Wenyan Chen, JooYoung Park, Shivaraman Nitin, Luo Tao, Francisco Romero, Dmitrii Ustiugov

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 running a massive security operation for a city with 500,000 cameras. Your goal is to have a super-smart AI (a Vision-Language Model) watch every single camera feed 24/7 to spot crimes or accidents.

The Problem: The AI is Overworked and the Pipes are Clogged
Right now, this system is struggling for two main reasons:

  1. The Data Pipe is Too Wide: Sending raw, uncompressed video from cameras to the cloud is like trying to drink from a firehose. It clogs the network.
  2. The AI is Doing "Double Work": Imagine you are watching a video of a person standing still in a park. If you ask an AI to analyze every single second, it will look at the person, the trees, and the sky in frame 1, then do the exact same thing for frame 2, frame 3, and so on. Even though the person hasn't moved an inch, the AI re-calculates everything from scratch. This is incredibly wasteful.

Current systems try to fix this by either making the AI smarter at skipping frames or by caching (saving) previous answers. But these methods are often slow, require heavy training, or only fix one part of the problem.

The Solution: CoStream (The "Smart Translator")
The authors of this paper, CoStream, realized they were ignoring a secret source of information that already exists: The Video Codec.

Think of a video codec (like the software that compresses your YouTube videos) as a smart translator. When it compresses a video, it doesn't just shrink the file; it creates a "map" of what changed and what stayed the same.

  • If a tree is still, the codec says: "Nothing changed here."
  • If a car drives by, the codec says: "Hey, this part moved!"

CoStream uses this "map" (metadata) to guide the AI, acting as a traffic controller for the entire system.

How CoStream Works (The Three Magic Tricks)

1. The "Skip the Boring Stuff" Trick (Token Pruning)

  • Old Way: The AI looks at every single patch of the image, even the static background.
  • CoStream Way: Before the AI even sees the image, CoStream looks at the codec's "motion map." If the map says, "The sky and the building didn't move," CoStream tells the AI: "Don't bother looking at the sky or the building. Just focus on the moving car."
  • Analogy: It's like a teacher grading a test. Instead of reading every single word of a student's essay, the teacher glances at the "highlighted" sections where the student actually did something new, ignoring the parts they just copied from the textbook.

2. The "Don't Re-Read the Book" Trick (Selective Cache Refresh)

  • Old Way: When the AI moves to the next 10 seconds of video, it throws away its previous notes and starts reading the whole story again from the beginning.
  • CoStream Way: CoStream knows that 80% of the video is the same as the last 10 seconds. It says: "Keep your notes on the static background. But since a new person just walked in, let's update the notes for that specific person."
  • Analogy: Imagine you are reading a long novel. If you turn the page and the scene is the same, you don't re-read the whole chapter. You just read the new paragraph where the character speaks. CoStream does this for the AI's memory.

3. The "Direct Line" Trick (Transmission)

  • Old Way: The system often decompresses the video, processes it, and then sends it.
  • CoStream Way: It keeps the video compressed as long as possible and uses the codec's own "motion map" to do the work. It's like receiving a package that is already sorted by the delivery driver, so you don't have to unpack and re-sort it yourself.

The Results: A Giant Leap Forward

By using these tricks, CoStream achieves some impressive numbers:

  • 3x Faster: It can process video streams three times faster than the best existing systems.
  • 87% Less Power: It uses 87% less computing power (GPU energy). This means you could potentially run the same system on a fraction of the hardware, saving massive amounts of money and electricity.
  • No Brain Damage: Despite skipping so much work, the AI is still almost as accurate as if it had done all the work. It only loses about 0% to 8% in accuracy, which is a tiny price to pay for such huge speed gains.

The Big Picture

CoStream is like giving a super-intelligent AI a pair of smart glasses. Instead of staring blankly at every pixel and re-calculating the universe every second, the AI can now see exactly what changed, what stayed the same, and what needs attention. It turns a chaotic, energy-hungry process into a sleek, efficient, and scalable system that can finally handle the billions of cameras in our modern world.

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 →