Papers
Topics
Authors
Recent
Search
2000 character limit reached

PhysRAG: Enhancing Physics-Awareness in Video Generation via Retrieval-Augmented Generation

Published 25 Jun 2026 in cs.CV | (2606.26916v1)

Abstract: Developing physically aware video generation models remains a significant challenge due to the difficulty in capturing diverse physical phenomena, such as thermal dynamics, mechanics, and optics. In this work, we introduce PhysRAG, a novel pipeline that enhances physical awareness in video generation through Retrieval-Augmented Generation (RAG). To address the issue of limited high-quality data, we design a two-stage data filtering pipeline based on the WISA-80K dataset, resulting in a curated set of 7K high-quality videos for training. Furthermore, we construct a physical video database and develop a mechanism to inject physical knowledge into a video diffusion model using learnable queries. Our method achieves state-of-the-art performance in both visual quality and physical rule compliance, surpassing existing models in benchmarks such as PhyGenBench and VBench. We conduct extensive ablation studies to validate the effectiveness of our key components, including the data filtering pipeline, RAG mechanism, and method for physical information extraction. To facilitate future research, our code, data, and models are prepared for release at https://github.com/sediment1024/PhysRAG.

Summary

  • The paper presents a retrieval-augmented framework that explicitly injects physical priors into video generation using a learnable query mechanism.
  • It employs a two-stage data filtering process and curated physical exemplar retrieval to ensure high-quality, physics-consistent video outputs.
  • Quantitative evaluations on PhyGenBench and VBench demonstrate significant improvements in physical correctness, color fidelity, and subject consistency.

PhysRAG: Retrieval-Augmented Generation for Physics-Aware Video Synthesis

Motivation and Context

Achieving physically plausible dynamics in generative video models is a persistent challenge largely due to the paucity of high-quality, diverse training data and the lack of explicit mechanisms for integrating physical knowledge within the generation process. Prior methodologies are classified as either explicitโ€”relying on deterministic simulators and predefined constraintsโ€”or implicitโ€”using preference alignment, RL, or data-driven latent space conditioning. Both paradigms suffer from trade-offs in generalization and controllability, with explicit approaches failing in unconstrained environments and implicit approaches unable to inject precise physical guidance.

PhysRAG advances the field by introducing a retrieval-augmented paradigm explicitly targeting physics-aware generation. This approach leverages a structured database of physical video exemplars, retrieval mechanisms for prompt-condition matching, and a learnable query injection module to transfer distilled physical priors into the generative backbone.

Pipeline Overview

PhysRAG operates through several interconnected modules:

  • Two-stage Data Filtering: Using the WISA-80K dataset, Phase 1 applies Qwen3-VL-4B for caption-level screening to retain top 10% physics-relevant entries. Phase 2 uses multimodal grounding to validate prompt-frame consistency, yielding a curated set (~7K videos) with broad coverage across physical phenomena (mechanics, optics, thermal dynamics, etc.).
  • PhysRAG Database Construction: A manually curated corpus comprising 170 videos arranged into 17 physical categories provides physically meaningful retrieval candidates, enhancing reference reliability and diversity.
  • Physical Prior Retrieval and Injection: Upon prompt receipt, VideoCLIP-XL retrieves a relevant exemplar from the database, encoding latent features via VideoMAE V2. The Query Inject module selectively distills the relevant dynamics through learnable cross-attention queries, concatenated and projected into the DiT backbone. Multi-layer injection (layers 0,1,2) maximizes coverage of high-level and low-level physical abstractions.

Experimental Evaluation

PhysRAG is benchmarked on PhyGenBench [47] and VBench [29], both designed for evaluating physical commonsense and semantic consistency in video generation. Direct comparisons are drawn to both commercial and open-source state-of-the-art models such as Kling, Pika, Gen-3, Wan2.2, DiT-Mem, and others.

Quantitative Results

  • PhyGenBench Metrics: PhysRAG achieves an average physical correctness score of 0.58, outperforming Kling (0.49), DiT-Mem (0.56), and Wan2.2 baseline (0.54). Significant improvements are observed in complex physical categories: 0.07 absolute gain in Thermal and 0.08 in Material metrics.
  • VBench Metrics: The integration of PhysRAG yields superior Low-Avg (65.48%) and High-Avg (82.88%) scores, surpassing all baselines. Notably, it attains the highest color fidelity (93.95%), subject consistency, and spatial relational accuracy.

Qualitative Observations

The model demonstrates strict physical law enforcement in challenging scenarios: sequential fluid accumulation, correct mechanical tool trajectories, and temporally causal interactions, where baselines frequently exhibit non-causal artifacts and incorrect material rendering.

Ablations

  • Injection Methods: The learnable query-based mechanism substantially improves performance by filtering non-relevant reference noise (0.578 avg score), outperforming simple concatenation or direct cross-attention.
  • Training Strategies: Joint SFT+RAG training is critical; freezing the backbone after SFT yields diminished gains, indicating the necessity of synergistic optimization between backbone and RAG module.
  • Data Quality: Filtering for high-quality, physically consistent samples is essential, as random data integration with RAG underperforms compared to filtered SFT alone.
  • Layer Injection: Multi-layer query injection is optimal; single-layer (front/mid/back) variants result in inferior consistency and physical abstraction.
  • Computational Overhead: PhysRAG introduces negligible inference latency (+1.24%) and marginal parameter increase (+2.28%), with retrieval cost amortized to 0.0065s per sampleโ€”demonstrating practical scalability.

Implications and Future Directions

PhysRAG illustrates that explicit retrieval and learnable query-based injection of physical priors into diffusion backbones can significantly improve physical plausibility and visual quality with minimal resource overhead. The approach bridges explicit and implicit modeling, enabling broader generalization without sacrificing controllability.

Practically, this advancement is instrumental for embodied AI, robot manipulation, autonomous driving, and interactive world modeling, where physical law adherence is non-negotiable. Theoretical implications underscore the utility of external exemplars in world-simulator frameworks and point to modular, scalable architectures for integrating retrieval-augmented generative conditioning.

Future research should investigate database expansionโ€”possibly via unsupervised or semi-supervised miningโ€”for increased coverage. Integrating multimodal retrieval across text, video, and sensor data, as well as adaptive fusion strategies beyond cross-attention, could further enhance physical abstraction and task-specific generalization.

Conclusion

PhysRAG represents a rigorously engineered retrieval-augmented mechanism for physics-aware video generation, setting state-of-the-art benchmarks in physical correctness and visual fidelity. By combining high-quality, curated data with targeted injection of explicit physical priors, PhysRAG delivers robust, physically plausible synthesis with scalable computational overhead, forming a foundation for next-generation world simulator and embodied AI models (2606.26916).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 1 like about this paper.