Keep Me, Change the Scene: A Preservation-Aware LLM Agent for Prompt-Driven Video Editing
Year: 2026
Type: preprint
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.
Author: Muttineni, Venkata
Language: English
Subfield: Computer Vision and Pattern Recognition
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7238861448
