OmniPhys: Knowledge-Graph-Driven Benchmarking and Collective Optimization for Physical Commonsense in Text-to-Image Generation

Yajing Xu, Yarong Lan, Jiaoyan Chen, Yichi Zhang, Jeff Z. Pan, Mingchen Tu, Zhizhen Liu, Wen Zhang, Huajun ChenarXiv 2026

TL;DR

State-of-the-art text-to-image models excel at generating beautiful imagery but frequently violate basic laws of physics, such as drawing unequal liquid levels in connected vessels. This paper introduces OmniPhys, a knowledge-graph-backed benchmark designed to diagnose these physical blind spots, and OmniPrompt, a robust prompt-optimization framework that uses batch-level collective feedback to systematically teach models physical commonsense without expensive fine-tuning.

What Problem Does This Paper Address?

While modern text-to-image (T2I) models possess incredible artistic flair, they hit a "logical ceiling" when acting as simulators of reality. They frequently suffer from "physical hallucinations"—generating scenes that violate fundamental principles of hydrostatics, optics, and mechanics (see Figure 1).

Figure 1: Examples of physical commonsense violations across frontier T2I models, illustrating failures in hydrostat- ics (top, communicating vessels principle), optics (middle, light refraction), and mechanics (bottom, elastic deformation under stress).

Existing benchmarks fail to address this adequately because they rely on coarse, phenomenological descriptions rather than pinpointing specific physical laws. Furthermore, correcting these errors via automated prompt engineering is notoriously difficult. Because image generation is highly stochastic, an LLM-based prompt optimizer can suffer from "gradient hallucinations"—getting misled by a transient visual artifact in a single generated image rather than identifying a systemic flaw in the prompt.

Methods

To tackle these challenges, the authors developed a two-part framework:

  1. OmniPhys Benchmark & Dual-Path Verification: The authors aligned interactive physics simulations (PhET) with standard educational curricula to build a hierarchical Physical Knowledge Graph (PKG). From this graph, they generated implicit queries—prompts that describe a setup (e.g., "a wooden chopstick is partially submerged in clear water") without revealing the physical outcome. To evaluate the output, they implemented a strict Dual-Path Verification Protocol that combines binary Visual Question Answering (VQA) probes with Descriptive Consistency Statements (DCS) to rule out "lucky guesses."
  2. OmniPrompt Optimization: To eliminate gradient hallucinations, OmniPrompt introduces a two-level collective feedback loop (detailed in Figure 4). Instead of optimizing a prompt based on a single image, it generates an ensemble of $K$ images per query to create a query-level feedback buffer. It then aggregates these buffers across a batch of $B$ different queries before using an LLM to apply Textual Gradient Descent. This process updates a high-level Meta-Policy (a system prompt instructing how to expand queries) rather than rewriting individual prompts, ensuring the learned physics principles generalize across domains.
Figure 4: The OmniPrompt Framework. An overview of the iterative alignment loop for physical commonsense in T2I generation. The framework consists of a forward pass for Knowledge-Guided Prompt Enhancement and a backward pass for Meta-Policy Evolution via linguistic gradients.

Datasets

The paper introduces the OmniPhys Benchmark, which consists of 1,551 curated implicit prompts anchored to 14 distinct Physical Knowledge Points (PKPs). The dataset is divided into three primary domains:

  • Mechanics (55.8%): Fluid-structure interactions, buoyancy, leverage, and pressure.
  • Optics (24.5%): Reflection, refraction, diffraction, linear propagation, and interference.
  • Object Properties (19.7%): Mass-volume-density consistency and phase changes (melting).
Figure 3: OmniPhys Taxonomy. Hierarchical distribution of 14 PKPs across three domains: Mechanics, Optics, and Object Properties.

Key Insights and Ideas

  • The VQA Illusion: Models score significantly higher on binary VQA questions than on descriptive consistency audits (DCS). This reveals that models often pass simple visual checks through superficial pattern matching while still failing to maintain overall structural and physical consistency.
  • Scale Alone Won't Save Us: Increasing a model's parameter size (e.g., scaling up to Emu3.5's 34B parameters) improves texture-based physics like material surfaces, but fails to fix global structural logic like the leverage principle. Explicit structural priors in prompt formulation are still required.
  • Batching Textual Gradients is Essential: Just as mini-batching stabilizes weights in traditional deep learning, batching linguistic feedback across multiple distinct physical scenarios prevents prompt optimizers from over-correcting for query-local noise.

Key Results

The authors benchmarked 12 prominent T2I models (including FLUX.1-dev, SD 3.5 Large, JanusPro-7B, and commercial engines like Gemini 3 Pro Image).

  • OmniPrompt Performance: OmniPrompt consistently established the highest performance ceiling across open-source architectures. For example, on the JanusPro-7B backbone, OmniPrompt raised the physical consistency Joint Score from a baseline of 0.071 to 0.254.
  • Meta-Policy Transferability: One of the most exciting findings was that meta-policies evolved on open-source models successfully transferred to closed-source commercial models. Applying a Lumina-evolved meta-policy to SeedDream-4.0 resulted in a 45.7% relative gain in physical alignment.
Figure 7: Granular knowledge point recovery on the JanusPro-7B backbone. This radar chart compares the align- ment of OmniPrompt, TextGrad, and CoT-Aug across 14 PKPs.

Limitations and Future Work

Despite the success of OmniPrompt, certain domains remain incredibly stubborn bottlenecks. Complex wave and ray optics—specifically light reflection—showed near-zero recovery across almost all models, suggesting that current T2I architectures fundamentally struggle to map complex geometric ray-tracing purely through text guidance.

Additionally, the current evaluation protocol is limited to static 2D images, which can obscure transient physical processes. The authors suggest that extending this knowledge-graph-driven approach to video generation models is a vital next step for evaluating dynamic physical commonsense.

Summary updated

BibTeX
@misc{xu2026omniphys,
  author = {Yajing Xu and Yarong Lan and Jiaoyan Chen and Yichi Zhang and Jeff Z. Pan and Mingchen Tu and Zhizhen Liu and Wen Zhang and Huajun Chen},
  title = {{OmniPhys: Knowledge-Graph-Driven Benchmarking and Collective Optimization for Physical Commonsense in Text-to-Image Generation}},
  year = {2026},
  eprint = {2607.25641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.25641},
}
Figure