← Latest papers
💻 computer science

MemRoPE: Training-Free Infinite Video Generation via Evolving Memory Tokens

MemRoPE is a training-free framework that enables high-fidelity, infinite video generation by introducing evolving memory tokens for dynamic context compression and online RoPE indexing to resolve positional conflicts, thereby overcoming the identity drift and motion stagnation inherent in existing autoregressive diffusion methods.

Original authors: Youngrae Kim, Qixin Hu, C. -C. Jay Kuo, Peter A. Beerel

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

Original authors: Youngrae Kim, Qixin Hu, C. -C. Jay Kuo, Peter A. Beerel

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 trying to tell a story that lasts for an hour. You have a very talented storyteller (the AI), but they have a terrible memory. Every time they tell a new sentence, they forget the one before it, or they start mixing up the characters' names. By the time they reach the end of the story, the hero has turned into a villain, the setting has changed from a forest to a desert, and the plot makes no sense.

This is exactly the problem with current AI video generators. They are great at making short, 5-second clips, but when you ask them to make a 1-hour video, the quality falls apart. The characters drift, the background glitches, and the motion gets stuck.

MemRoPE is a new "training-free" solution (meaning it doesn't need to relearn anything) that fixes this memory problem. Here is how it works, using some simple analogies:

1. The Problem: The "Sliding Window" vs. The "Black Hole"

Most current AI video makers use a Sliding Window. Imagine you are looking through a narrow tube. You can only see the last 10 seconds of the video. As new seconds come in, the oldest ones fall off the back and are thrown into a black hole forever.

  • The result: The AI forgets who the main character was 20 minutes ago. It also tries to keep a "static anchor" (like a photo of the first frame) to remember the start, but that photo never updates, so it doesn't help with things that change over time.

2. The Solution: The "Smart Librarian" (Memory Tokens)

MemRoPE introduces a Smart Librarian who doesn't throw books away. Instead, the librarian summarizes them.

  • The Dual-Stream System: The AI maintains two special "memory buckets":
    • The Long-Term Bucket (The Encyclopedia): This bucket slowly absorbs information about the entire video so far. It remembers the main character's face, the general style of the room, and the core story. It updates very slowly, so it doesn't get confused by every tiny movement.
    • The Short-Term Bucket (The Sticky Note): This bucket holds the recent action. It remembers what happened in the last few seconds so the video doesn't look frozen or jerky.
  • How it works: As the video plays, the AI takes the oldest frames that are about to be forgotten, compresses them into a summary, and updates these two buckets. It's like taking a photo of the whole movie so far and keeping it in your pocket, rather than trying to remember every single second.

3. The Secret Sauce: The "Unlabeled Box" (Online RoPE Indexing)

This is the technical magic part, but here's the simple version.

In AI, every piece of information has a "label" telling it where it is in time (like "Frame 1," "Frame 2," etc.). Usually, these labels are glued to the information permanently. If you try to mix information from Frame 1 and Frame 100 together, the labels get confused, and the math breaks.

MemRoPE uses a trick called Online RoPE Indexing:

  • The Analogy: Imagine you have a box of Lego bricks. Usually, the bricks are stamped with "Part of House A" or "Part of House B." If you try to glue them together, they don't fit.
  • MemRoPE's Move: It takes the bricks (the video data) and puts them in a box without any stamps. It only puts the stamps on after the bricks are mixed together, right before the AI looks at them.
  • The Result: The AI can now safely mix the "Long-Term Memory" with the "New Frame" without the math getting confused. It allows the AI to look at the whole hour of video as one continuous, coherent story, even though it's only looking at a small chunk at a time.

Why is this a big deal?

  • No Re-training: You don't need to teach the AI a new way to learn. You just plug this "Smart Librarian" system into existing models, and they instantly get better at long videos.
  • Unlimited Length: Because the memory buckets stay the same size (they just get smarter summaries), you can generate a video that is 1 hour, 10 hours, or even longer without the computer running out of memory.
  • Perfect Consistency: In the paper's examples, MemRoPE generated a 1-hour video of a woman walking through Tokyo. The woman's face, clothes, and the neon lights stayed consistent the whole time. Other methods made her face morph into a monster or the lights turn into static.

In a Nutshell

Think of MemRoPE as giving the AI a photographic memory that updates itself. Instead of forgetting the past or freezing the present, it continuously summarizes the history of the video while keeping the recent action sharp. This allows it to tell a coherent, high-quality story that can last for hours, rather than just a few seconds.

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 →