Meta Inverse Prompting for Video Generative Models

Yerin Jung
Jongheon Jeong
Korea University
NeurIPS 2026
Target video
Recovered prompt

“The video captures a person kiteboarding on a clear day at the beach. The person is wearing a black helmet and a life jacket, and they are holding onto a blue handle attached to a kite that is not visible in the frame. The person is riding a blue surfboard and is moving towards the right side of the frame. …”

Reconstruction

Abstract

Recent advances in video generative models have enabled flexible conditional generation and editing pipelines, such as text-to-video, image-to-video, and reference-guided synthesis. However, these workflows are inherently one-directional, mapping conditions to videos without providing a mechanism to invert this process. In complex media production settings, the ability to recover controllable textual conditions from a given video is highly desirable, yet remains underexplored.

While inverse prompting has been studied for image generation, directly extending these approaches to video is challenging due to the need to capture temporal dynamics beyond static appearance, as well as the substantial computational cost of per-video optimization. In this work, we propose the first practical framework for efficient video inverse prompting. Specifically, we formulate inverse prompting as a meta-learning problem and introduce Meta Video Inverse Prompting (MVIP), which learns a meta-prompt optimized over temporal dimensions to enable fast and effective prompt inference. Our approach amortizes the inversion process, eliminating the need for costly iterative optimization at test time.

Experimental results demonstrate that MVIP recovers higher-quality inverse prompts with significantly improved reconstruction fidelity compared to image-based inversion and iterative captioning baselines, while achieving substantial gains in efficiency.

Method

Existing workflows to access video generative models are inherently unidirectional: conditions can guide video synthesis, but there is no clear mechanism to invert this process. A creator may generate a video from a prompt and later wish to modify it, such as changing lighting or motion while preserving the scene. However, the original prompt is often unavailable or insufficient to reproduce the video, forcing users to rely on trial-and-error prompt engineering. Our goal is inverse prompting: recovering a reusable prompt from a target video, enabling both faithful video reconstruction and controllable prompt-based video editing.

Top: a target video is inverted into a prompt, and a video generator conditioned on that prompt reconstructs the video. Bottom: editing the recovered prompt (stationary to take off) and regenerating yields the edited video.

Prior inverse-prompting approaches do not scale well to video: gradient-based prompt optimization requires repeated forward and backward passes, which becomes prohibitively expensive for long video sequences, while captioning produces semantically plausible but insufficient prompts to support reconstruction. Our key idea is to unify the two within a meta-learning formulation: instead of optimizing prompts from scratch for each video, MVIP learns a shared prompt initialization across videos, which at inference time enables rapid prompt inference without costly per-video optimization, effectively behaving as a reconstruction-aware captioning mechanism.

Overview of MVIP: a pool of video tasks, an inner loop of reconstruction-guided adaptation with a frozen VLM and a frozen video generator, and an outer meta-update of the shared soft prompt.

MVIP meta-learns a shared soft-prompt initialization Φ for video inverse prompting across video tasks. Inner loop. A frozen VLM generates candidate prompts, and the candidate with the highest reconstruction score from a frozen video generator is selected as a pseudo-target for updating Φ. Outer loop. The task-adapted prompts update the shared initialization following Reptile. Inference. The meta-learned Φ is applied directly to unseen video segments; the VLM and the video generator stay frozen throughout.

Video reconstruction

Since text alone underconstrains video reconstruction, every method renders with the same frozen video generator conditioned on its prompt and the first and last frames of the target video, which specify how the video starts and ends.

Reference
MVIP Ours
FLF-only
PEZ [1]
Captioning [2]

Prompt-based video editing

GPT-4o minimally rewrites the recovered inverse prompt according to the edit instruction; the edited prompt and only the first frame of the source video are then used for video generation, without access to the benchmark target prompt or any editing-specific training.

Edit instruction: Make the man and the boy suddenly fall asleep.

Source
MVIP Ours
RF-Edit [3]
Wan-Edit [4]
1 / 5

References

[1] Yuxin Wen, Neel Jain, John Kirchenbauer, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Hard prompts made easy: Gradient-based discrete optimization for prompt tuning and discovery. Advances in Neural Information Processing Systems (NeurIPS), 2023.

[2] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-VL technical report. arXiv preprint arXiv:2502.13923, 2025.

[3] Jiangshan Wang, Junfu Pu, Zhongang Qi, Jiayi Guo, Yue Ma, Nisha Huang, Yuxin Chen, Xiu Li, and Ying Shan. Taming rectified flow for inversion and editing. Proceedings of the International Conference on Machine Learning (ICML), 2025.

[4] Minghan Li, Chenxi Xie, Yichen Wu, Lei Zhang, and Mengyu Wang. FiVE-Bench: A fine-grained video editing benchmark for evaluating emerging diffusion and rectified flow models. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2025.