Our approach generates coherent instructional cooking videos from text prompts. We fine-tune Phantom-WAN using Diffusion-Pipe on the HowTo100M dataset to capture cooking domain knowledge. A memory-based inference pipeline with FAISS retrieval ensures object consistency across video clips. We use GPT-4o for text prompt enhancement and Grounding DINO with CLIP embeddings for object detection and similarity matching.
Generating coherent multi-step instructional videos from text descriptions remains a significant challenge in computer vision. While recent advances in diffusion-based video generation have shown promising results, maintaining temporal consistency and object-state coherence across extended sequences remains difficult. In this work, we propose a novel approach that combines fine-tuned diffusion models with a memory-based inference pipeline to generate procedural cooking videos.
We fine-tune Phantom-WAN using Diffusion-Pipe on the HowTo100M dataset to learn cooking-specific visual patterns. Our memory module leverages FAISS for efficient retrieval of object representations, ensuring consistency across generated clips. We utilize GPT-4o as a Vision-Language Model (VLM) for text prompt enhancement and object extraction, combined with Grounding DINO for precise object detection and CLIP embeddings for similarity matching.
Our experiments demonstrate 36% improvement in temporal coherence compared to baseline methods, with significant gains in object-state stability and procedural accuracy. We introduce novel evaluation metrics including DINO L2 Distance, Shot Boundary Detection, and Object-State Consistency scores to comprehensively assess video generation quality.
We leverage GPT-4o to enhance user text prompts with detailed procedural descriptions. The VLM identifies key objects, actions, and temporal sequences required for cooking tasks, generating structured prompts that guide the video generation process.
We fine-tune the Phantom-WAN video diffusion model using Diffusion-Pipe on a curated subset of the HowTo100M dataset focusing on cooking videos. This domain-specific training enables the model to capture cooking-specific visual patterns and temporal dynamics.
Our memory module stores object representations using CLIP embeddings indexed with FAISS for efficient retrieval. During inference, Grounding DINO detects objects in generated frames, which are then matched against stored representations to ensure consistency across clips.
\begin{equation} \text{Similarity}(o_t, M) = \max_{m \in M} \frac{\phi(o_t) \cdot \phi(m)}{\|\phi(o_t)\| \|\phi(m)\|} \end{equation}
where \(\phi\) represents the CLIP embedding function, \(o_t\) is the detected object at time \(t\), and \(M\) is the memory bank of stored object representations.
We introduce a comprehensive suite of evaluation metrics to assess the quality of generated instructional videos:
| Method | L2 DINO Dist ↓ | Shot Boundary ↓ | Step Consist. ↑ | Goal Consist. ↑ | Obj-State ↑ |
|---|---|---|---|---|---|
| Baseline Phantom-WAN | 0.847 | 12.3 | 0.52 | 0.48 | 0.41 |
| Fine-tuned (No Memory) | 0.623 | 8.7 | 0.68 | 0.61 | 0.54 |
| Ours (Full Pipeline) | 0.412 | 4.2 | 0.81 | 0.76 | 0.73 |
Our experiments demonstrate several key findings:
The combination of domain-specific fine-tuning and memory-based inference provides substantial improvements over baseline diffusion models for procedural video generation.
| Component | Model/Tool | Purpose |
|---|---|---|
| Video Generation | Phantom-WAN | Base diffusion model for video synthesis |
| Fine-tuning | Diffusion-Pipe | Efficient fine-tuning on HowTo100M |
| Text Enhancement | GPT-4o | VLM for prompt enhancement and object extraction |
| Object Detection | Grounding DINO | Open-vocabulary object detection |
| Embeddings | CLIP | Visual-semantic representations |
| Memory Index | FAISS | Efficient similarity search for retrieval |
| Shot Detection | TransNetV2 | Evaluation metric for temporal coherence |
@article{jain2026procedural,
author = {Jain, Agrim and Saini, Krishanu and Nair, Shabari S},
title = {Diffusion-Based Procedural Video Generation for Instructional Videos},
booktitle = {CS 381V: Visual Recognition, The University of Texas at Austin},
year = {2026},
advisor = {Grauman, Kristen}
}