[Paper Review] P-Flow: Prompting Visual Effects Generation
P-Flow is a training-free framework that optimizes text prompts at test time to customize dynamic visual effects in video generation, without changing the base model. It uses a noise-prior enhancement and a historical prompt trajectory guided by a vision-language model to achieve high-fidelity, diverse effects in both image-to-video and text-to-video tasks.
Recent advancements in video generation models have significantly improved their ability to follow text prompts. However, the customization of dynamic visual effects, defined as temporally evolving and appearance-driven visual phenomena like object crushing or explosion, remains underexplored. Prior works on motion customization or control mainly focus on low-level motions of the subject or camera, which can be guided using explicit control signals such as motion trajectories. In contrast, dynamic visual effects involve higher-level semantics that are more naturally suited for control via text prompts. However, it is hard and time-consuming for humans to craft a single prompt that accurately specifies these effects, as they require complex temporal reasoning and iterative refinement over time. To address this challenge, we propose P-Flow, a novel training-free framework for customizing dynamic visual effects in video generation without modifying the underlying model. By leveraging the semantic and temporal reasoning capabilities of vision-language models, P-Flow performs test-time prompt optimization, refining prompts based on the discrepancy between the visual effects of the reference video and the generated output. Through iterative refinement, the prompts evolve to better induce the desired dynamic effect in novel scenes. Experiments demonstrate that P-Flow achieves high-fidelity and diverse visual effect customization and outperforms other models on both text-to-video and image-to-video generation tasks. Code is available at https://github.com/showlab/P-Flow.
Motivation & Objective
- Motivate the need for controllable dynamic visual effects beyond low-level motion control.
- Propose a training-free prompt-optimization framework that adapts prompts at test time without fine-tuning models.
- Leverage vision-language models to evaluate and refine prompts for temporal coherence and semantic fidelity.
- Introduce noise-prior enhancement and historical trajectory mechanisms to stabilize and diversify prompt optimization.
Proposed method
- Treats text prompts as optimization variables without updating the video generator.
- Uses flow-matching inversion to derive a motion-focused noise prior from the reference video.
- Applies a two-stage SVD-based projection to separate motion from appearance in the latent noise.
- Per-iteration, generates V_gen with current prompt and enhanced noise, then uses a vision-language model to refine the prompt based on a composite reference/generation input.
- Maintains a lightweight historical trajectory H to provide context for prompt refinements across iterations.
- Operates in both text-to-video and image-to-video settings with no model fine-tuning.
Experimental results
Research questions
- RQ1How can dynamic visual effects be controlled in video generation using prompts alone without modifying the generator?
- RQ2Can test-time prompt optimization guided by vision-language models achieve high-fidelity and diverse visual effects across different generation settings (I2V and T2V)?
- RQ3What are the effects of noise priors and historical context on the stability and coherence of prompt optimization for dynamic visual effects?
- RQ4How does P-Flow compare to training-based and training-free baselines on standard metrics and human judgments?
Key findings
- P-Flow achieves state-of-the-art or highly competitive results on FID-VID, FVD, and Dynamic Degree across both image-to-video and text-to-video tasks.
- In human evaluations, P-Flow is consistently preferred over strong baselines in both I2V and T2V settings.
- Compared to training-based VFX Creator, P-Flow attains comparable FID-VID/FVD and superior Dynamic Degree, while offering training-free flexibility and cross-task applicability.
- Ablation studies show that noise-enhancement, visual-context, and logic-context components each contribute to improved fidelity and temporal dynamics.
- Qualitative results demonstrate that P-Flow avoids truncation and distribution biases common in training-based methods, preserving subject-specific attributes from input references.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.