Dependency-Aware Discrete Diffusion for Scene Graph Generation

Rajalaxmi Rajagopalan, Romit Roy ChoudhuryarXiv 2026

TL;DR

DiScGraph introduces a dependency-aware discrete diffusion model designed specifically to generate scene graphs from natural language prompts. By explicitly modeling the hierarchical relationship between objects, edges, and relations, it creates a structured intermediate representation that significantly improves the compositional fidelity and alignment of downstream text-to-image generation.

What Problem Does This Paper Address?

Current text-to-image (T2I) models, while impressive, often struggle with "compositional fidelity"—the ability to correctly render multiple objects and their specific spatial or semantic relationships as described in a complex prompt. Scene graphs (SGs), which represent objects as nodes and relationships as edges, offer a powerful structured prior to solve this. However, most users provide text, not graphs.

Generating scene graphs from text is challenging because SGs are not generic graphs; they possess a strict hierarchy. A relationship cannot exist without an edge, and an edge cannot exist without two objects. Prior discrete diffusion models for graph generation (like DiGress) treat nodes and edges as independent categorical variables. This independence assumption fails for SGs, where rare relations often get "drowned out" by the overwhelmingly frequent "no-edge" class during the denoising process.

Methods

The authors propose DiScGraph, which redesigns the discrete diffusion framework to be "dependency-aware" through four key innovations:

  1. Hierarchical Representation: They represent the scene graph as $G(V, E, R^+)$, where relations ($R^+$) are explicitly defined only on active edges ($E$). This decouples the structure (does a connection exist?) from the semantics (what is the relationship?).
  2. Edge-Gated Forward Noising: The noising process respects the hierarchy. If an edge is removed during noising, its associated relation is deterministically nullified. This prevents the model from trying to learn relations on non-existent edges.
  3. Factorized Reverse Sampler: During generation, the model follows a semantic order: it first predicts objects, then determines which pairs interact (edges), and finally assigns relations to those active edges. This is captured by the factorization: $p_\theta(V_0, E_0, R_0 | x_t) = p_\theta(V_0 | x_t)p_\theta(E_0 | V_0, x_t)p_\theta(R_0 | E_0, V_0, x_t)$
  4. Reward-Tilted Inference: To align the generated graph with a specific text prompt without retraining the model, they use Sequential Monte Carlo (SMC) sampling. This process uses a CLIP-based reward function to guide the diffusion trajectory toward graphs that best match the input text.
The DiScGraph pipeline showing the forward noising and factorized reverse sampling processes.

Datasets

The model was trained and evaluated on three major scene graph datasets:

  • Visual Genome (VG): A standard benchmark for scene understanding.
  • COCO-Stuff: Used for evaluating layout and grounding.
  • LAION-SG: A large-scale dataset with structural annotations.
  • CompSGBench: A specialized benchmark used to evaluate compositional alignment in complex multi-object scenarios.

Key Insights and Ideas

  • Solving the "No-Edge" Competition: In standard graph diffusion, rare relations (like "carrying") compete for probability mass against the "no-edge" class. By factorizing the state space, DiScGraph ensures that relations only compete against other relations, leading to much better modeling of long-tailed distributions.
  • Hybrid Corruption: The authors found that a mix of random replacement and "absorbing mask" corruption is vital. Masking allows the model to learn semantics while preserving the underlying graph structure, while random corruption helps it learn the overall distribution of graph topologies.
  • Structure as a Prior for Images: The paper reinforces the idea that text-to-image generation is more robust when it passes through a structured intermediate (Text $\rightarrow$ SG $\rightarrow$ Image) rather than a direct mapping, as the SG provides explicit relational constraints that text embeddings often lack.

Key Results

DiScGraph outperforms both continuous and discrete graph generation baselines across multiple metrics:

  • Graph Quality: On Visual Genome, it achieved a Relation-MMD of 5.78e-3, significantly lower (better) than the second-best baseline, DiffuseSG (1.11e-2).
  • Semantic Consistency: It showed marked improvements in Attach-TV (measuring if relations "attach" to the right objects), scoring 0.1766 compared to DiGress's 0.4561.
  • Downstream T2I Alignment: When the generated SGs were used to condition an image generator (SDXL-SG), the resulting images scored higher on ImageReward (1.4512) and BLIP-VQA (0.7854) than text-only SDXL (1.1286 and 0.6425, respectively).
Qualitative comparison showing how DiScGraph SGs lead to better image generation for complex prompts compared to text-only methods.

Limitations and Future Work

  • Reward Function Dependence: The quality of text-conditioning relies heavily on the CLIP reward function. Future work could explore more robust, learned reward models.
  • Scalability: The Graph Transformer backbone scales quadratically with the number of entities, which might be a bottleneck for extremely dense or large-scale scenes.
  • Layout Ambiguity: While the model includes a layout head for bounding boxes, predicting global layouts for graphs with many disconnected components remains an open challenge.
  • Sampler Refinement: The authors note that discrete frameworks are sensitive to sampler quality and suggest that more principled sampling algorithms could further improve results.

Summary updated

BibTeX
@misc{rajagopalan2026dependency,
  author = {Rajalaxmi Rajagopalan and Romit Roy Choudhury},
  title = {{Dependency-Aware Discrete Diffusion for Scene Graph Generation}},
  year = {2026},
  eprint = {2605.09065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.09065},
}
Figure