NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GR-Diffusion: Graph-Guided Relational-Aware Diffusion via Attention Alignment

Xiaochen Liu, Xiaoting Xi, Chao Yin, Xiaoqiang Li, Daoguo DongCVPR 2026 Findings 2026

TL;DR

GR-Diffusion is a training-free, plug-and-play framework that gives text-to-image diffusion models precise control over complex human-object interactions (HOI). By reframing interaction directives as a Target Scene Graph, it dynamically aligns internal cross- and self-attention maps to accurately position entities and reinforce their semantic relationships without requiring any model retraining.

What Problem Does This Paper Address?

While large-scale text-to-image diffusion models generate stunning, high-fidelity images, they notoriously struggle with fine-grained control over spatial layouts and complex human-object interactions (HOI) simultaneously.

When users attempt to enforce both layout constraints (bounding boxes) and interaction prompts (e.g., "a person riding a horse, another person straddling a horse"), models often suffer from guidance conflicts. This leads to two major issues:

  1. Attribute Drift: Entities blend together incorrectly (e.g., a person's features bleeding into a giraffe).
  2. Incorrect Entity Counts: The model generates an incorrect number of subjects or limbs (e.g., an unnatural number of horse legs).

Existing solutions are caught in a trade-off: training-based methods are rigid and computationally expensive to generalize, while training-free alternatives often rely on heavy, external Large Language or Vision-Language Models (LLMs/VLMs), introducing massive inference latencies. GR-Diffusion addresses this gap by providing an efficient, training-free framework that explicitly models both layout and semantic relationships directly within the diffusion network's attention layers.

Visual comparison of guidance conflicts in existing baselines vs. the precise control of GR-Diffusion.

Methods

GR-Diffusion reframes HOI control as a graph structural alignment task at the inference stage. It represents the prompt's requirements as a Target Scene Graph (TSG), where nodes define the spatial layout of entities and edges define their semantic interactions.

This graph structure guides the U-Net denoising process through two key plug-and-play modules:

  1. Node Alignment Guidance (NAG): Operating on the cross-attention layers, NAG constructs a Dynamic Attention Graph (DAG) based on the model's current attention centroids at each denoising step. A Graph Similarity Detector evaluates how closely this dynamic graph matches the TSG. If a layout deviation is detected, NAG applies an adaptive, region-confined warping operation to shift the cross-attention maps, pulling entities into their correct bounding boxes.
  2. Edge Enhancement Guidance (EEG): Once the layout is stabilized, EEG reinforces the semantic interactions. It takes the corrected cross-attention maps to construct an Edge Relation Mask via an outer product of the subject and object maps. This mask is injected into the self-attention layers, forcing the model to establish a strong contextual and visual link between the interacting entities.
Overview of the GR-Diffusion framework, detailing the NAG and EEG modules.

Datasets

The authors evaluated their framework on the widely-used HICO-DET benchmark, a large-scale dataset for human-object interaction. The dataset consists of:

  • 47,776 images (38,118 for training, 9,658 for testing).
  • 600 distinct HOI categories formed by combinations of 117 verb classes and 80 object classes.

Evaluations were conducted on both the Full subset and the highly challenging Rare subset (HOI categories with fewer than 10 training samples) using ground-truth annotations as conditional inputs.

Key Insights and Ideas

  • Decoupling Layout from Interaction: Instead of treating an interaction as a single complex text prompt, GR-Diffusion splits the problem into spatial coordinates (nodes) and semantic actions (edges). This prevents the layout and interaction constraints from fighting each other during generation.
  • Attention Maps as Graphs: A key "aha moment" is treating internal attention maps as a live, evolving graph. This allows the authors to use classic mathematical tools—like Radial Basis Function (RBF) kernels and cosine similarity—to mathematically calculate exactly how "lost" a diffusion model is during the generation process.
  • Adaptive Feedback Loop: The framework features a dynamic trade-off mechanism. The strength of the self-attention injection (EEG) is scaled based on the layout accuracy score from NAG. If the spatial layout is poorly aligned, the system dynamically dials back interaction enforcement to let the model fix entity positioning first.

Key Results

GR-Diffusion achieves state-of-the-art performance across both image quality and interaction controllability metrics on Stable Diffusion v1.x and SDXL backbones:

  • Superior Controllability: On the Stable Diffusion 1.x backbone, GR-Diffusion boosted the HOI detection score (mAP) from a baseline of 32.52 to 35.79 in the Swin-Large, Known Object, Full setting.
  • Enhanced Image Fidelity: It significantly reduced the Frechet Inception Distance (FID) to 15.55 (down from 18.69 for InteractDiffusion), proving that resolving internal attention conflicts directly eliminates visual artifacts.
  • Efficiency: Because it introduces zero trainable parameters, it sidesteps expensive training phases entirely and maintains lower inference latency than competing training-free methods like B2B.
Qualitative comparison demonstrating GR-Diffusion's ability to generate natural poses and accurate entity counts compared to baselines.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{liu2026gr,
  author = {Xiaochen Liu and Xiaoting Xi and Chao Yin and Xiaoqiang Li and Daoguo Dong},
  title = {{GR-Diffusion: Graph-Guided Relational-Aware Diffusion via Attention Alignment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=RuO14bluJc},
}
Figure