Group Diffusion: Enhancing Image Generation by Unlocking Cross-Sample Collaboration

Sicheng Mo, Thao Nguyen, Richard Zhang, Nick Kolkin, Siddharth Srinivasan Iyer, Eli Shechtman, Krishna Kumar Singh, Yong Jae Lee, Bolei Zhou, Yuheng LiarXiv 2025 · DOI

Introduction

Standard diffusion models generate images in isolation. Even when processing a batch of similar prompts, such as multiple "golden retrievers," each image is treated as an independent entity. While internal patches within a single image interact to ensure local coherence, there is no mechanism for information sharing across different images in the same batch.

Group Diffusion (GroupDiff) challenges this paradigm by allowing samples within a batch to collaborate via shared attention. By enabling patches across different images to "talk" to one another during the denoising process, the model achieves significant improvements in image quality, revealing that collective generation is more effective than isolated generation.

Comparison between Individual Diffusion and Group Diffusion across different group sizes.

Methodology

The core of Group Diffusion is the Group Attention Operation. Instead of performing self-attention on a single image's tokens, GroupDiff reshapes the tokens from a group of $N$ images into a single sequence. This allows the Transformer's bidirectional attention to see every patch in the entire group.

Architecture of the Group Attention Operation.

Semantic Grouping

To ensure meaningful collaboration, the authors employ Semantic Grouping. Rather than grouping random images, they use a query function (based on CLIP or DINO embeddings) to find semantically or visually similar images from the dataset. This allows the model to leverage relevant features—for instance, one dog image can attend to the texture of another dog's fur to improve its own generation.

Implementation Variants

The framework offers two primary inference variations:

  • GroupDiff-f (Full): Applies group attention to both the conditional and unconditional paths of Classifier-Free Guidance (CFG).
  • GroupDiff-l (Lightweight): Only applies group attention to the unconditional score. This variant is computationally cheaper yet remains highly effective by allowing the model to learn a stronger internal representation that benefits conditional generation through weight sharing.

To help the model distinguish between different images in the same sequence, a learnable "sample embedding" is added to the patches of each image.

Key Insights

The Scaling Effect

A clear "more is better" trend emerges with group size. As the group size increases from 1 to 8, generation quality consistently improves. Larger groups provide a richer set of "reference material" for the attention mechanism.

Temporal Dynamics of Collaboration

Cross-sample interaction is most critical during the early stages of denoising, where global structure and high-level semantics are formed. In later stages, the model naturally shifts toward local detail refinement, where independent processing becomes sufficient.

The Cross-Sample Score

The researchers introduced a quantitative measure for cross-sample attention. They discovered a 0.95 correlation between this collaboration score and the final FID score, suggesting that "neighbor-focused" attention is a primary driver of image quality.

Results and Performance

Evaluated on ImageNet-256×256 and MS-COCO, GroupDiff demonstrates state-of-the-art performance. Built on Scalable Interpolant Transformers (SiT), GroupDiff-4 achieved a 32.2% FID improvement (dropping from 2.06 to 1.40) on ImageNet with only 100 additional training epochs.

Qualitatively, images generated in groups exhibit superior textures, more coherent shapes, and fewer "hallucination" artifacts compared to those generated in isolation.

Conclusion and Future Work

Group Diffusion proves that breaking the isolation of standard generative processes leads to higher-quality results. While the quadratic complexity of attention presents a computational bottleneck for very large groups, future work exploring linear attention mechanisms could mitigate this. Additionally, extending the framework to handle diverse or cross-conditioned inputs remains a promising direction for creating stylistically consistent sets of diverse objects.

Summary updated

BibTeX
@misc{mo2025group,
  author = {Sicheng Mo and Thao Nguyen and Richard Zhang and Nick Kolkin and Siddharth Srinivasan Iyer and Eli Shechtman and Krishna Kumar Singh and Yong Jae Lee and Bolei Zhou and Yuheng Li},
  title = {{Group Diffusion: Enhancing Image Generation by Unlocking Cross-Sample Collaboration}},
  year = {2025},
  eprint = {2512.10954},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.10954},
}
Figure