Hover on the videos to see corresponding text prompts, and drag the progress bar to adjust the playback position.
Demo Video
Long Context Memory Showcases
MemFlow maintains long-range consistency and semantic coherence in challenging cases, including camera movement, character insertion, and scene switching. In the first 0–10 seconds of the long video, the scene contains only a single subject. Between 10–20 seconds, a new subject enters the scenario. From 20–40 seconds, multiple subjects interact while each maintains its own visual consistency—exhibiting neither drifting nor identity confusion. Between 40–50 seconds, the camera angle changes, with some subjects temporarily moving out of view. At 50–60 seconds, the viewpoint returns to its original position, and the subjects still preserve the same characteristics they had before the camera switch, highlighting our advantage in long context memory.
Play speed:
0-10s (single subject)
10-20s (subject insertion)
20-30s (subjects interaction)
30-40s (subject interaction)
40-50s (viewpoint switching)
50-60s (original viewpoint)
0s-10s: Medium shot: Thoughtful male musician in a vintage tee sits in a dimly lit, soundproof studio, gently strumming an acoustic guitar.
10s-20s: Same setup: A blue-haired female sound engineer wearing headphones enters from the control room, holding a clipboard, offering an encouraging smile.
20s-30s: Same: The musician finishes playing and asks for feedback; the engineer points to the canvas and suggests a harmony change by humming.
30s-40s: Same: The musician incorporates the suggestion, finding the right harmony; the engineer gives a thumbs-up and notes it down.
40s-50s: Tight close-up: Focus on the musician's hands forming a complex chord on the guitar fretboard, then on the strumming hand with the pick. People are blurred.
50s-60s: Medium shot: The musician sings into the mic while the engineer, now wearing headphones, intently monitors the sound levels, nodding to the rhythm.
0s-10s: Medium shot: Focused female scientist in a white lab coat peers intently into a microscope at her organized, modern workstation.
10s-20s: Same setup: A male colleague in a lab coat and safety glasses approaches, holding a tablet displaying a complex 3D molecular model.
20s-30s: Same: The scientist looks up; the colleague turns the tablet, pointing to a protein bond while clearly explaining a new finding.
30s-40s: Same: The scientist leans in, using her finger to rotate the 3D model on the screen, engaging in rapid, efficient collaboration.
40s-50s: Slow pan: Focus on a petri dish under a sterile lamp, showing a delicate, crystalline structure forming in close-up. People are out of frame.
50s-60s: Medium shot: Both scientists are now looking at the scientist's digital notepad; she types furiously, sharing a look of mutual understanding.
0s-10s: Medium shot, dim office: Sharp 40s female detective in a blazer stares intently at a complex case board covered in photos and red string.
10s-20s: Same setup: Her disheveled male partner enters carrying two coffees and a file, looking tired but resolute.
20s-30s: Same: The detective turns to take coffee; the partner opens the file and points to a newly acquired surveillance photo for examination.
30s-40s: Same: The partner spots a partial license plate; the detective grabs a magnifying glass, showing a spark of breakthrough excitement.
40s-50s: Close-up: Focus shifts to a grainy photo of a worried key witness pinned to the board, with a red string leading off-frame. Moody and dark.
50s-60s: Wide shot: The detective types rapidly on her computer while her partner leans over her shoulder, ready to connect the next clue.
0s-10s: Medium shot: Mechanic in her late 20s, grease smudge on her cheek, wearing overalls, leans over the open hood of a classic car, working on the engine.
10s-20s: Same setup: The car's proud owner, an older man in a leather jacket, enters the garage and watches anxiously from a workbench.
20s-30s: Same: The mechanic straightens up, confidently explaining the completed carburetor tuning to the excited owner with a smile.
30s-40s: Same: The mechanic turns the key; the engine roars to life with a smooth rumble, making the owner break into a huge grin.
40s-50s: Close-up: Focus on the polished, vibrating V8 engine block, showing the clean chrome and tight wiring, idling smoothly. People are not visible.
50s-60s: Wide shot: The mechanic leans against the fender while the satisfied owner admires the purring engine; they share smiles of a successful restoration.
0s-10s: Medium shot: Artist in her late 20s, covered in paint, stands in a bright studio, holding a palette and brush, contemplating her large canvas.
10s-20s: Same setup: A respected older mentor in a turtleneck enters holding tea, observing her work from a distance with a thoughtful expression.
20s-30s: Same: The artist turns and asks for his opinion; the mentor steps closer, offering gentle critique by pointing to a specific area.
30s-40s: Same: The student listens intently as the mentor uses his free hand to illustrate a point about color theory; she nods in understanding.
40s-50s: Slow pan: Focus glides across the cluttered studio, settling on a close-up of the woman's palette, a chaotic swirl of glossy, wet oil colors. Artists are faint.
50s-60s: Medium shot: The artist, with renewed confidence, applies a bold stroke to the canvas as her encouraging mentor stands supportively beside her.
0s-10s: Medium shot: Elegant 30s female calligrapher in a silk robe kneels, poised to make a stroke on rice paper.
10s-20s: Same setup: A curious 8-year-old niece in a floral dress quietly kneels beside her aunt, captivated by the meditative atmosphere.
20s-30s: Same: The calligrapher dips her brush, then turns to the girl to explain the need for a clear mind and focused breathing.
30s-40s: Same: The aunt executes a fluid stroke, then guides the girl's hand, showing her the proper brush hold for her shaky first attempt.
40s-50s: Top-down close-up: Focus on the single, shiny black ink stroke on the rice paper, emphasizing the texture and form. People are out of frame.
50s-60s: Medium shot: The loving aunt watches with a patient smile as her niece concentrates on making strokes on her own separate paper.
Interactive Long Video Showcases
Given ·
MemFlow maintains long-range consistency and semantic conherence on challenging cases, including camera movement, character insertion and scene switching.
Play speed:
60s
0s-10s: Medium shot: Muscular 40s blacksmith in a leather apron hammers glowing metal in a dimly lit forge; sparks fly.
10s-20s: Same setup: His lanky 16-year-old son, dressed in street clothes, enters carrying a bucket of water, watching his father with admiration.
20s-30s: Same: The blacksmith pauses hammering to patiently explain the importance of heat while holding the hot metal with tongs.
30s-40s: Same: The father hands a smaller hammer to his son, guiding his grip and stance as the boy takes tentative swings.
40s-50s: Extreme close-up: Focus on the glowing iron leaf shape pressed against the cold anvil as sparks cascade during a final strike. People are out of frame.
50s-60s: Wide shot: The blacksmith and his son plunge the finished metal leaf into water together, a cloud of steam erupting; they share a smile of accomplishment.
60s
0s-10s: Medium shot: Late 50s tailor with a measuring tape draped around his neck carefully cuts charcoal-grey wool fabric on a large wooden table.
10s-20s: Same setup: A dapper young man in his early 20s, wearing an ill-fitting modern suit, enters for his final fitting, admiring the classic shop.
20s-30s: Same: The tailor greets the client and holds up the nearly finished, perfectly cut charcoal jacket for him to see.
30s-40s: Same: The young man tries on the jacket; the tailor expertly adjusts the shoulders and sleeves, pinning and chalking for a bespoke fit.
40s-50s: Close-up: Focus on the tailor's skilled, wrinkled fingers precisely pinning the sleeve of the wool jacket, making a tiny chalk mark. Faces are not visible.
50s-60s: Full shot: The fitting complete, the tailor lays the jacket on the table as the satisfied client shakes his hand in gratitude for the exquisite craftsmanship.
60s
0s-10s: Medium shot: Passionate 50s paleontologist in a lab coat painstakingly uses a dental pick to excavate a massive dinosaur fossil/tooth.
10s-20s: Same setup: A sophisticated, well-dressed female benefactor, funding the dig, enters the dusty lab for a private viewing.
20s-30s: Same: The scientist excitedly shows the benefactor the massive fossil, explaining it's a new tyrannosaur species with scientific passion.
30s-40s: Same: The scientist places the massive, freed tooth into the benefactor's hand; her polite interest turns to genuine awe as she feels its weight.
40s-50s: Extreme close-up: Focus on the serrated edge and dark, fossilized enamel of the massive tyrannosaur tooth. People are out of frame.
50s-60s: Medium shot: The impressed benefactor, still holding the tooth, enthusiastically tells the scientist to spare no expense on the rest of the dig.
60s
0s-10s: Medium shot: Gentle 60s librarian in a tweed jacket meticulously re-shelves books in a grand, sunlit library, smelling of old paper.
10s-20s: Same setup: A confused young female college student with a backpack approaches him, clutching a piece of paper with a call number.
20s-30s: Same: The librarian takes the paper, smiles warmly, and softly explains the correct section is on the mezzanine level.
30s-40s: Same: The librarian leads the student through the towering shelves, pointing out library history as her nervousness turns to appreciation.
40s-50s: Vertical pan: Camera travels up a massive, dark wood bookshelf, showing rows of gilded, ancient-looking books in shafts of light. People are out of frame.
50s-60s: Wide shot (from mezzanine): The librarian points to a specific book on a high shelf for the student, then gracefully climbs a rolling ladder to retrieve it.
60s
0s-10s: Medium shot: Creative 60s stained-glass artist in an apron carefully fits a piece of deep blue glass into a lead channel in her magical, light-filled studio.
10s-20s: Same setup: A kind young priest in a clerical collar enters to see the initial sketches for a large new church window commission.
20s-30s: Same: The artist wipes her hands and unrolls a large sketch, revealing a modern, abstract, and vibrant design for the window.
30s-40s: Same: The priest studies the sketch; realizing the modern vision is exactly what his traditional church needs, he smiles broadly and approves the design.
40s-50s: Close-up: Focus on the rich textures and vibrant colors of various glass sheets leaning against a wall, projecting kaleidoscopic light onto the floor. People are out of frame.
50s-60s: Wide shot: The artist and the priest stand side-by-side, happily discussing the specific colors of glass to be used in the exciting new project.
60s
0s-10s: Medium shot: Elderly 70s watchmaker with a loupe attached to his glasses carefully places a tiny gear in a pocket watch mechanism using tweezers.
10s-20s: Same setup: A stylish young woman in a navy business suit, the watch's owner, enters his quiet, old-world shop, respectfully observing.
20s-30s: Same: The watchmaker looks up, greets the client, and gestures her closer to show her the progress on the complex repair.
30s-40s: Same: The watchmaker points out the new part, then winds the watch; the quiet, steady ticking earns the client a wide, grateful smile.
40s-50s: Extreme close-up (Macro): Focus on the miniature, exposed brass gears turning perfectly in sync, the balance wheel spinning. People are not visible.
50s-60s: Medium shot: The watchmaker reverently hands the fully ticking pocket watch to the happy client, who holds it to her ear.
Comparisons
Qualitative comparisons under multi-prompt 60-second setting with representative long video generation models, where our MemFlow outperforms other alternatives in narrative coherence and subject consistency, without drifting or duplicated characters.
Play speed:
Self Forcing
SkyReels-V2
LongLive
FramePack
Ours
0s–10s: Medium, static: A confident young man stands arms-crossed in a sleek office, colleagues working behind him.
10s–20s: Same setup: a stern female supervisor approaches, showing him something on a tablet.
20s–30s: Same: they argue quietly; he gestures defensively as she points to the screen.
30s–40s: Same: tension rises; both lean in, trading sharp gestures.
40s–50s: Same: argument stops; they hold a cold, hostile stare.
50s–60s: Same: stalemate continues as the office works on around them.
0s–10s: Medium, static: A confident young man stands arms-crossed in a sleek office, colleagues working behind him.
10s–20s: Same setup: a stern female supervisor approaches, showing him something on a tablet.
20s–30s: Same: they argue quietly; he gestures defensively as she points to the screen.
30s–40s: Same: tension rises; both lean in, trading sharp gestures.
40s–50s: Same: argument stops; they hold a cold, hostile stare.
50s–60s: Same: stalemate continues as the office works on around them.
0s–10s: Medium, static: A confident young man stands arms-crossed in a sleek office, colleagues working behind him.
10s–20s: Same setup: a stern female supervisor approaches, showing him something on a tablet.
20s–30s: Same: they argue quietly; he gestures defensively as she points to the screen.
30s–40s: Same: tension rises; both lean in, trading sharp gestures.
40s–50s: Same: argument stops; they hold a cold, hostile stare.
50s–60s: Same: stalemate continues as the office works on around them.
0s–10s: Medium, static: A confident young man stands arms-crossed in a sleek office, colleagues working behind him.
10s–20s: Same setup: a stern female supervisor approaches, showing him something on a tablet.
20s–30s: Same: they argue quietly; he gestures defensively as she points to the screen.
30s–40s: Same: tension rises; both lean in, trading sharp gestures.
40s–50s: Same: argument stops; they hold a cold, hostile stare.
50s–60s: Same: stalemate continues as the office works on around them.
0s–10s: Medium, static: A confident young man stands arms-crossed in a sleek office, colleagues working behind him.
10s–20s: Same setup: a stern female supervisor approaches, showing him something on a tablet.
20s–30s: Same: they argue quietly; he gestures defensively as she points to the screen.
30s–40s: Same: tension rises; both lean in, trading sharp gestures.
40s–50s: Same: argument stops; they hold a cold, hostile stare.
50s–60s: Same: stalemate continues as the office works on around them.
0s–10s: Wide: A child runs along a sunset beach, chasing a colorful ball.
10s–20s: Same: a Golden Retriever enters, joyfully chasing the kicked ball.
20s–30s: Same: the dog retrieves the ball and drops it at the child’s feet.
30s–40s: Same: child throws the ball farther; dog sprints along the glowing shoreline.
40s–50s: Same: child hugs the dog as waves roll in behind them.
50s–60s: Same: they stroll by the water, tossing the ball occasionally under fading sunlight.
0s–10s: Wide: A child runs along a sunset beach, chasing a colorful ball.
10s–20s: Same: a Golden Retriever enters, joyfully chasing the kicked ball.
20s–30s: Same: the dog retrieves the ball and drops it at the child’s feet.
30s–40s: Same: child throws the ball farther; dog sprints along the glowing shoreline.
40s–50s: Same: child hugs the dog as waves roll in behind them.
50s–60s: Same: they stroll by the water, tossing the ball occasionally under fading sunlight.
0s–10s: Wide: A child runs along a sunset beach, chasing a colorful ball.
10s–20s: Same: a Golden Retriever enters, joyfully chasing the kicked ball.
20s–30s: Same: the dog retrieves the ball and drops it at the child’s feet.
30s–40s: Same: child throws the ball farther; dog sprints along the glowing shoreline.
40s–50s: Same: child hugs the dog as waves roll in behind them.
50s–60s: Same: they stroll by the water, tossing the ball occasionally under fading sunlight.
0s–10s: Wide: A child runs along a sunset beach, chasing a colorful ball.
10s–20s: Same: a Golden Retriever enters, joyfully chasing the kicked ball.
20s–30s: Same: the dog retrieves the ball and drops it at the child’s feet.
30s–40s: Same: child throws the ball farther; dog sprints along the glowing shoreline.
40s–50s: Same: child hugs the dog as waves roll in behind them.
50s–60s: Same: they stroll by the water, tossing the ball occasionally under fading sunlight.
0s–10s: Wide: A child runs along a sunset beach, chasing a colorful ball.
10s–20s: Same: a Golden Retriever enters, joyfully chasing the kicked ball.
20s–30s: Same: the dog retrieves the ball and drops it at the child’s feet.
30s–40s: Same: child throws the ball farther; dog sprints along the glowing shoreline.
40s–50s: Same: child hugs the dog as waves roll in behind them.
50s–60s: Same: they stroll by the water, tossing the ball occasionally under fading sunlight.
0s–10s: Close–medium: A young man excitedly examines a gaming controller in a bright electronics store.
10s–20s: Same setup: a young woman joins him, smiling and commenting on the controller.
20s–30s: Same: they chat warmly; he explains features while she laughs.
30s–40s: Same: he switches to another controller; she gives an approving thumbs-up.
40s–50s: Same: they walk together toward checkout, chatting happily.
50s–60s: Same: he pays, and they leave the store together.
0s–10s: Close–medium: A young man excitedly examines a gaming controller in a bright electronics store.
10s–20s: Same setup: a young woman joins him, smiling and commenting on the controller.
20s–30s: Same: they chat warmly; he explains features while she laughs.
30s–40s: Same: he switches to another controller; she gives an approving thumbs-up.
40s–50s: Same: they walk together toward checkout, chatting happily.
50s–60s: Same: he pays, and they leave the store together.
0s–10s: Close–medium: A young man excitedly examines a gaming controller in a bright electronics store.
10s–20s: Same setup: a young woman joins him, smiling and commenting on the controller.
20s–30s: Same: they chat warmly; he explains features while she laughs.
30s–40s: Same: he switches to another controller; she gives an approving thumbs-up.
40s–50s: Same: they walk together toward checkout, chatting happily.
50s–60s: Same: he pays, and they leave the store together.
0s–10s: Close–medium: A young man excitedly examines a gaming controller in a bright electronics store.
10s–20s: Same setup: a young woman joins him, smiling and commenting on the controller.
20s–30s: Same: they chat warmly; he explains features while she laughs.
30s–40s: Same: he switches to another controller; she gives an approving thumbs-up.
40s–50s: Same: they walk together toward checkout, chatting happily.
50s–60s: Same: he pays, and they leave the store together.
0s–10s: Close–medium: A young man excitedly examines a gaming controller in a bright electronics store.
10s–20s: Same setup: a young woman joins him, smiling and commenting on the controller.
20s–30s: Same: they chat warmly; he explains features while she laughs.
30s–40s: Same: he switches to another controller; she gives an approving thumbs-up.
40s–50s: Same: they walk together toward checkout, chatting happily.
50s–60s: Same: he pays, and they leave the store together.
0s–10s: Wide underwater: a diver swims through a coral reef.
10s–20s: Same: a giant manta ray glides in from the deep toward the diver.
20s–30s: Same: diver and manta swim side-by-side among colorful fish.
30s–40s: Close-up: the diver gently touches the manta’s smooth skin.
40s–50s: Same: they circle each other in a slow, graceful underwater dance.
50s–60s: Same: manta drifts away; diver waves and continues exploring deeper.
0s–10s: Wide underwater: a diver swims through a coral reef.
10s–20s: Same: a giant manta ray glides in from the deep toward the diver.
20s–30s: Same: diver and manta swim side-by-side among colorful fish.
30s–40s: Close-up: the diver gently touches the manta’s smooth skin.
40s–50s: Same: they circle each other in a slow, graceful underwater dance.
50s–60s: Same: manta drifts away; diver waves and continues exploring deeper.
0s–10s: Wide underwater: a diver swims through a coral reef.
10s–20s: Same: a giant manta ray glides in from the deep toward the diver.
20s–30s: Same: diver and manta swim side-by-side among colorful fish.
30s–40s: Close-up: the diver gently touches the manta’s smooth skin.
40s–50s: Same: they circle each other in a slow, graceful underwater dance.
50s–60s: Same: manta drifts away; diver waves and continues exploring deeper.
0s–10s: Wide underwater: a diver swims through a coral reef.
10s–20s: Same: a giant manta ray glides in from the deep toward the diver.
20s–30s: Same: diver and manta swim side-by-side among colorful fish.
30s–40s: Close-up: the diver gently touches the manta’s smooth skin.
40s–50s: Same: they circle each other in a slow, graceful underwater dance.
50s–60s: Same: manta drifts away; diver waves and continues exploring deeper.
0s–10s: Wide underwater: a diver swims through a coral reef.
10s–20s: Same: a giant manta ray glides in from the deep toward the diver.
20s–30s: Same: diver and manta swim side-by-side among colorful fish.
30s–40s: Close-up: the diver gently touches the manta’s smooth skin.
40s–50s: Same: they circle each other in a slow, graceful underwater dance.
50s–60s: Same: manta drifts away; diver waves and continues exploring deeper.
0s–10s: Wide: a park ranger walks a sunlit trail among towering redwoods.
10s–20s: Same: the ranger finds a small, frightened orphaned fawn at a tree base.
20s–30s: Same: ranger kneels and speaks softly to calm the fawn.
30s–40s: Same: ranger gently lifts the fragile animal into their arms.
40s–50s: Same: ranger carries the fawn down the dappled forest path.
50s–60s: Same: ranger walks with purpose toward safety, redwoods rising above.
0s–10s: Wide: a park ranger walks a sunlit trail among towering redwoods.
10s–20s: Same: the ranger finds a small, frightened orphaned fawn at a tree base.
20s–30s: Same: ranger kneels and speaks softly to calm the fawn.
30s–40s: Same: ranger gently lifts the fragile animal into their arms.
40s–50s: Same: ranger carries the fawn down the dappled forest path.
50s–60s: Same: ranger walks with purpose toward safety, redwoods rising above.
0s–10s: Wide: a park ranger walks a sunlit trail among towering redwoods.
10s–20s: Same: the ranger finds a small, frightened orphaned fawn at a tree base.
20s–30s: Same: ranger kneels and speaks softly to calm the fawn.
30s–40s: Same: ranger gently lifts the fragile animal into their arms.
40s–50s: Same: ranger carries the fawn down the dappled forest path.
50s–60s: Same: ranger walks with purpose toward safety, redwoods rising above.
0s–10s: Wide: a park ranger walks a sunlit trail among towering redwoods.
10s–20s: Same: the ranger finds a small, frightened orphaned fawn at a tree base.
20s–30s: Same: ranger kneels and speaks softly to calm the fawn.
30s–40s: Same: ranger gently lifts the fragile animal into their arms.
40s–50s: Same: ranger carries the fawn down the dappled forest path.
50s–60s: Same: ranger walks with purpose toward safety, redwoods rising above.
0s–10s: Wide: a park ranger walks a sunlit trail among towering redwoods.
10s–20s: Same: the ranger finds a small, frightened orphaned fawn at a tree base.
20s–30s: Same: ranger kneels and speaks softly to calm the fawn.
30s–40s: Same: ranger gently lifts the fragile animal into their arms.
40s–50s: Same: ranger carries the fawn down the dappled forest path.
50s–60s: Same: ranger walks with purpose toward safety, redwoods rising above.
Ablations
Qualitative comparisons of different memory mechanisms under multi-prompt 60-second setting.
"w/o Memory" means only attending to the local attention window, "Frame Sink" refers to keeping the kv cache from the first chunk as memory,
"NAM" adopts the whole memory bank without filtering, and "NAM+SMA" is our full model which further compresses memory by relevance-gated selection.
Play speed:
w/o Memory
Frame Sink
NAM
NAM+SMA
0s-10s: Man decorates a cozy, festive Christmas tree, hanging ornaments.
10s-20s: Partner enters with the tree topper box, a star.
20s-30s: Man is too short to reach the top; partner offers to lift him/decorations.
30s-40s: Partner lifts him/decorations; they successfully place the star on top, filling the room with cheer.
40s-50s: Slow pan down the sparkling tree, focusing closely on a beautifully tagged gift box underneath.
50s-60s: Medium shot: Couple plugs in the tree lights together, bathing the room in warm, festive glow from star to presents.
0s-10s: Man decorates a cozy, festive Christmas tree, hanging ornaments.
10s-20s: Partner enters with the tree topper box, a star.
20s-30s: Man is too short to reach the top; partner offers to lift him/decorations.
30s-40s: Partner lifts him/decorations; they successfully place the star on top, filling the room with cheer.
40s-50s: Slow pan down the sparkling tree, focusing closely on a beautifully tagged gift box underneath.
50s-60s: Medium shot: Couple plugs in the tree lights together, bathing the room in warm, festive glow from star to presents.
0s-10s: Man decorates a cozy, festive Christmas tree, hanging ornaments.
10s-20s: Partner enters with the tree topper box, a star.
20s-30s: Man is too short to reach the top; partner offers to lift him/decorations.
30s-40s: Partner lifts him/decorations; they successfully place the star on top, filling the room with cheer.
40s-50s: Slow pan down the sparkling tree, focusing closely on a beautifully tagged gift box underneath.
50s-60s: Medium shot: Couple plugs in the tree lights together, bathing the room in warm, festive glow from star to presents.
0s-10s: Man decorates a cozy, festive Christmas tree, hanging ornaments.
10s-20s: Partner enters with the tree topper box, a star.
20s-30s: Man is too short to reach the top; partner offers to lift him/decorations.
30s-40s: Partner lifts him/decorations; they successfully place the star on top, filling the room with cheer.
40s-50s: Slow pan down the sparkling tree, focusing closely on a beautifully tagged gift box underneath.
50s-60s: Medium shot: Couple plugs in the tree lights together, bathing the room in warm, festive glow from star to presents.
0s-10s: Calm 40s beekeeper in a white suit inspects a frame in a sunny apiary filled with buzzing bees.
10s-20s: A curious 6-year-old boy, also suited up, watches his mentor with wide-eyed fascination.
20s-30s: The beekeeper points out the queen bee on the frame to the observing child.
30s-40s: Mentor scrapes fresh honey and offers a taste to the boy, whose eyes light up behind his veil.
40s-50s: After the taste, the beekeeper carefully replaces the frame in the bustling hive; camera begins to pan away.
50s-60s: Wide shot of the entire sunny apiary with rows of hives; the mentor and child are now two small figures in the vibrant field.
0s-10s: Calm 40s beekeeper in a white suit inspects a frame in a sunny apiary filled with buzzing bees.
10s-20s: A curious 6-year-old boy, also suited up, watches his mentor with wide-eyed fascination.
20s-30s: The beekeeper points out the queen bee on the frame to the observing child.
30s-40s: Mentor scrapes fresh honey and offers a taste to the boy, whose eyes light up behind his veil.
40s-50s: After the taste, the beekeeper carefully replaces the frame in the bustling hive; camera begins to pan away.
50s-60s: Wide shot of the entire sunny apiary with rows of hives; the mentor and child are now two small figures in the vibrant field.
0s-10s: Calm 40s beekeeper in a white suit inspects a frame in a sunny apiary filled with buzzing bees.
10s-20s: A curious 6-year-old boy, also suited up, watches his mentor with wide-eyed fascination.
20s-30s: The beekeeper points out the queen bee on the frame to the observing child.
30s-40s: Mentor scrapes fresh honey and offers a taste to the boy, whose eyes light up behind his veil.
40s-50s: After the taste, the beekeeper carefully replaces the frame in the bustling hive; camera begins to pan away.
50s-60s: Wide shot of the entire sunny apiary with rows of hives; the mentor and child are now two small figures in the vibrant field.
0s-10s: Calm 40s beekeeper in a white suit inspects a frame in a sunny apiary filled with buzzing bees.
10s-20s: A curious 6-year-old boy, also suited up, watches his mentor with wide-eyed fascination.
20s-30s: The beekeeper points out the queen bee on the frame to the observing child.
30s-40s: Mentor scrapes fresh honey and offers a taste to the boy, whose eyes light up behind his veil.
40s-50s: After the taste, the beekeeper carefully replaces the frame in the bustling hive; camera begins to pan away.
50s-60s: Wide shot of the entire sunny apiary with rows of hives; the mentor and child are now two small figures in the vibrant field.
Overall Framework
Our Framework is designed for interactive long video generation with both long-term consistency and efficiency.
In autoregressive generation, we conduct memory retrieval, updating, and selection sequentially before finally use it for synthesizing the incoming video chunk. Given the current prompt and preceding KV cache memory bank, we first use textual token from the prompt to query the memory and the previous chunk to retrieve semantically aligned KV cache. After adding KV cache of previous chunk after merging to inject the latest context, the memory is updated for current chunk generation.
The updated memory is then combined with "Frame Sink"—KV cache from the first chunk—for the following Sparse Memory Activation (SMA). SMA filters the most relevant context for attention computation, improving the generation efficiency without sacrificing visual quality.
Contact Us
Feel free to contact Sihui Ji at sihuiji.cs@connect.hku.hk for any question, cooperation, and communication.
If you find this work useful, please consider citing:
@misc{ji2025memflow,
title={MemFlow: Flowing Adaptive Memory for Consistent and Efficient Long Video Narratives},
author={Ji, Sihui and Chen, Xi and Yang, Shuai and Tao, Xin and Wan, Pengfei and Zhao, Hengshuang},
year={2025},
eprint={2512.14699},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2512.14699},
}
Thank LongLive, Jenga, UltraPixel, ControlNeXt, and ToonCrafter to provide us the project page's template!