Keep Me, Change the Scene: A Preservation-Aware LLM Agent for Prompt-Driven Video Editing

People increasingly edit video by typing what they want: "put me on a beach", "blur the room behind me", "make my shirt red". Instruction-following editors and the LLM agents built on top of them carry out such requests by sending the whole frame through a generative model, so the parts that should stay the same, usually the person, change as well. We describe a small agent that treats preservation as part of the plan. An open LLM turns the request into a structured plan that names the operation, the region to keep and the new scene, colour or edit. Background edits keep the filmed subject out of the generator and composite it through a colour-first video matte; edits to the subject go to an image editor. After execution the agent measures change in the region its plan says to keep and, if it moved, restores that region through the matte. On 90 free-form requests applied to 10 test clips, with five acceptance criteria fixed in code before the run, all five criteria were met. For the 75 background requests the subject's interior reached 54.2 dB PSNR against the filmed subject, compared with 15.7 dB when an LLM rewrote the request for InstructPix2Pix and 16.2 dB for InstructPix2Pix on the raw request, with lower flicker and slightly higher CLIP agreement with the request. The colour-first matte reduced edge error by 42% relative to a fine-tuned RVM matte inside the same agent, on all 68 correctly routed background requests. For the 15 requests that change the subject, verify-and-repair raised the median PSNR of the untouched background from 22.1 dB to the 60 dB ceiling of our metric, at a cost of 0.012 in CLIP agreement. The Qwen2.5-3B planner routed 91% of requests correctly and Phi-3.5-mini 97%; every Qwen routing error still kept the subject intact. The agent runs on a single T4 GPU with open models.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-23
DOI
https://doi.org/10.5281/zenodo.24469407
Primary Topic
Generative Adversarial Networks and Image Synthesis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Keep Me, Change the Scene: A Preservation-Aware LLM Agent for Prompt-Driven Video Editing

Venkata Muttineni
Zenodo (CERN European Organization for Nuclear Research)
Generative Adversarial Networks and Image Synthesis
preprint

Keep Me, Change the Scene: A Preservation-Aware LLM Agent for Prompt-Driven Video Editing

Venkata Muttineni
preprint en

Abstract

People increasingly edit video by typing what they want: "put me on a beach", "blur the room behind me", "make my shirt red". Instruction-following editors and the LLM agents built on top of them carry out such requests by sending the whole frame through a generative model, so the parts that should stay the same, usually the person, change as well. We describe a small agent that treats preservation as part of the plan. An open LLM turns the request into a structured plan that names the operation, the region to keep and the new scene, colour or edit. Background edits keep the filmed subject out of the generator and composite it through a colour-first video matte; edits to the subject go to an image editor. After execution the agent measures change in the region its plan says to keep and, if it moved, restores that region through the matte. On 90 free-form requests applied to 10 test clips, with five acceptance criteria fixed in code before the run, all five criteria were met. For the 75 background requests the subject's interior reached 54.2 dB PSNR against the filmed subject, compared with 15.7 dB when an LLM rewrote the request for InstructPix2Pix and 16.2 dB for InstructPix2Pix on the raw request, with lower flicker and slightly higher CLIP agreement with the request. The colour-first matte reduced edge error by 42% relative to a fine-tuned RVM matte inside the same agent, on all 68 correctly routed background requests. For the 15 requests that change the subject, verify-and-repair raised the median PSNR of the untouched background from 22.1 dB to the 60 dB ceiling of our metric, at a cost of 0.012 in CLIP agreement. The Qwen2.5-3B planner routed 91% of requests correctly and Phi-3.5-mini 97%; every Qwen routing error still kept the subject intact. The agent runs on a single T4 GPU with open models.

Zenodo (CERN European Organization for Nuclear Research)
Generative Adversarial Networks and Image Synthesis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon