Diffusion-Based Procedural Video Generation for Instructional Videos

The University of Texas at Austin
CS 381V: Visual Recognition
Advisor: Prof. Kristen Grauman

Memory-Based Procedural Video Generation

Procedural Video Generation Pipeline

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.

Abstract

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.

Methodology

1. Text Prompt Enhancement with VLM

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.

2. Fine-tuning Phantom-WAN

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.

3. Memory-Based Inference Pipeline

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.

Evaluation Metrics

We introduce a comprehensive suite of evaluation metrics to assess the quality of generated instructional videos:

  • DINO L2 Distance: Measures visual consistency between consecutive frames using DINOv2 features
  • Shot Boundary Detection: Uses TransNetV2 to identify abrupt transitions indicating temporal incoherence
  • Step Consistency: Evaluates whether procedural steps follow logical order
  • Goal Consistency: Measures alignment between generated video and intended cooking goal
  • Object-State Consistency: Tracks object transformations (e.g., raw → cooked) across frames

Quantitative comparison of video generation methods on cooking video generation.
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

Key Findings

Our experiments demonstrate several key findings:

  • 36% improvement in temporal coherence (L2 DINO Distance) compared to baseline
  • 66% reduction in shot boundary detections, indicating smoother transitions
  • 78% improvement in object-state consistency through memory-based retrieval
  • Fine-tuning on HowTo100M significantly improves cooking-specific video quality
  • The memory module is crucial for maintaining object identity across clips

The combination of domain-specific fine-tuning and memory-based inference provides substantial improvements over baseline diffusion models for procedural video generation.

Architecture Components

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

BibTeX

@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}
}