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

DiffAugment: Diffusion Based Long-Tailed Visual Relationship Recognition

Parul Gupta, Tuan Nguyen, Abhinav Dhall, Munawar Hayat, Trung Le, Thanh-Toan Do · DOI

Abstract

Visual Relationship Recognition (VRR) is a fundamental task in computer vision that involves identifying triplets of the form <subject, relation, object>. However, real-world datasets are characterized by a severe long-tail distribution, where a few common relationships dominate the training data, causing models to underperform on rare but critical interactions. This paper presents DiffAugment, a novel data augmentation framework that leverages Diffusion Models to generate synthetic visual embeddings for tail-class relationships. By operating in the feature space and employing hardness-aware conditioning and subject-object seeding, DiffAugment significantly enhances the performance of VRR models on infrequent triplets without the computational burden of full image synthesis.

Introduction

Visual Relationship Recognition (VRR) aims to move beyond simple object detection to understand the complex interactions within a scene, such as "dog chasing ball" or "bananas hanging from ceiling." Despite the success of deep learning in this domain, the "Long-Tail Distribution" remains a significant hurdle. In datasets like GQA-LT, the imbalance ratio for relations can reach a staggering 1.7 million to 1. Standard mitigation strategies, such as re-sampling or loss weighting, often fail to capture the nuanced visual characteristics of rare interactions, leading to models that overfit to "head" (common) classes.

DiffAugment addresses this by using the generative capabilities of Diffusion Models to "hallucinate" missing data for rare classes. Unlike traditional generative approaches that focus on pixels, DiffAugment generates high-dimensional visual features, providing a more efficient and targeted way to balance the training distribution.

The DiffAugment Framework

DiffAugment consists of a multi-stage pipeline designed to expand the training variety for tail classes through four key innovations:

1. Linguistic Augmentation

To create plausible new training scenarios, the framework utilizes WordNet to perform linguistic augmentation. By identifying tail-class triplets and swapping subjects or objects with semantically similar entities (e.g., changing "spoons right of cake" to "spoons right of cookies"), the model generates a wider array of linguistic contexts for rare relations.

2. Feature-Space Diffusion

Generating high-resolution images is computationally expensive and often introduces noise that can confuse a classifier. DiffAugment bypasses this by training a Diffusion Model to generate visual embeddings—specifically, 4096-D features extracted from a Faster-RCNN backbone. This allows synthetic data to be integrated directly into existing VRR model architectures.

3. Hardness-Aware Conditioning

Standard CLIP text embeddings often lack the discriminative power required for the specific vocabulary of VRR. To solve this, DiffAugment uses K-means clustering on linguistic embeddings to calculate a "hardness" vector for each triplet. This vector serves as an additional conditioning signal, guiding the Diffusion Model to generate features that are more distinct and useful for the final classification task.

4. Subject-Object Seeding

Traditional diffusion processes typically begin with pure Gaussian noise. DiffAugment improves upon this by initializing the process with a "seed" created from the average visual features of the subject and object. This provides a semantic and spatial anchor, ensuring the generated relationship feature is grounded in the visual reality of the participating objects.

Experimental Results

The researchers evaluated DiffAugment on two major long-tailed benchmarks: GQA-LT (1,703 object categories, 310 relation categories) and VG8K-LT. The performance was measured across "Many," "Medium," and "Few" categories to assess the impact on the tail distribution.

Quantitative Performance

When integrated with state-of-the-art VRR architectures like LSVRU and RelTransformer, DiffAugment showed consistent improvements:

  • GQA-LT Accuracy: The framework improved combined average per-class accuracy by approximately 2.5% for LSVRU and 1.1% for RelTransformer.
  • Tail-Class Gains: The most significant improvements occurred in the "Few" category. For instance, using LSVRU with standard Cross-Entropy loss, the accuracy for rare object classes increased from 6.74% to 10.14%.

Qualitative Impact

Beyond numerical gains, DiffAugment led to more specific and descriptive predictions. Visualizations indicated that fine-tuned models shifted from generic relation labels (e.g., "above") to more precise ones (e.g., "perched on"), demonstrating a better semantic understanding of the scene.

Discussion and Limitations

While DiffAugment represents a significant step forward, it is not without limitations. The iterative nature of Diffusion Models, even in feature space, introduces higher sampling latency compared to simpler methods like Mixup. Furthermore, the quality of the synthetic features is inherently limited by the pre-trained backbone (Faster-RCNN); if the detector fails to extract meaningful features from the original objects, the diffusion model's foundation is weakened.

Conclusion

DiffAugment demonstrates that diffusion-based feature synthesis is a powerful tool for addressing the long-tail problem in Visual Relationship Recognition. By focusing on the embedding space and incorporating semantic seeding and hardness-aware conditioning, the framework provides a scalable way to improve model robustness on rare interactions. Future work may explore more advanced latent diffusion architectures to further enhance the diversity and quality of synthetic relationship embeddings.

Summary updated

BibTeX
@misc{gupta2024diffaugment,
  author = {Parul Gupta and Tuan Nguyen and Abhinav Dhall and Munawar Hayat and Trung Le and Thanh-Toan Do},
  title = {{DiffAugment: Diffusion Based Long-Tailed Visual Relationship Recognition}},
  year = {2024},
  eprint = {2401.01387},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.01387},
}
Figure