Compositional Attribute Imbalance in Vision Datasets

Jiayi Chen, Yanbiao Ma, Andi Zhang, Weidong Tang, Wei Dai, Bowei LiuarXiv 2025 · DOI

Introduction

While computer vision research traditionally focuses on balancing image counts per class, this paper identifies a critical "intra-class" crisis: Compositional Attribute Imbalance. Even in balanced datasets, specific feature combinations (e.g., a white, fluffy dog vs. a brown, short-haired dog) are often distributed in a long-tailed fashion. This imbalance causes models to struggle with rare attribute compositions, leading to significant performance degradation on "scarcity" samples.

Methods

The researchers propose a three-step framework to quantify and mitigate these imbalances without manual labeling:

  1. Visual Attribute Dictionary: Leveraging CLIP's zero-shot capabilities, the authors defined 20 primary attributes (e.g., color, material) and over 300 secondary attributes. They aligned these with image embeddings to automatically tag datasets.
  2. Compositional Attribute Scarcity (CAS): A new metric that calculates the rarity of an image's attribute combination within its class. High CAS scores indicate images with rare feature sets.
  3. Sparsity-Guided Sampling: A plug-and-play sampling strategy that boosts the probability of selecting high-CAS images during training. This is integrated with standard augmentations like CutMix and FMix.
The proposed pipeline for creating the Visual Attribute Dictionary and tagging images using CLIP encoders.

Key Insights and Results

The study reveals that attribute distributions within classes almost universally follow a long-tail pattern. Crucially, there is a direct negative correlation between an image's CAS score and model accuracy; as attribute combinations become scarcer, models are significantly more likely to fail.

Correlation between Compositional Attribute Scarcity (CAS) and model accuracy across various benchmark datasets. As scarcity increases (higher CAS), accuracy consistently drops.

Performance Gains

The proposed sampling strategy consistently improved performance across 12 benchmark datasets, including general-purpose (ImageNet-1K) and fine-grained (Stanford Dogs, Oxford-IIIT Pet) tasks:

  • Stanford Dogs: Achieved a 5.43% improvement when combined with CutMix.
  • Stanford Cars: Saw a massive 10.79% boost using ResNet-18 and FMix.
  • ImageNet-1K: Improved SaliencyMix accuracy by 3.07% using ResNeXt-50.

Conclusion

This work highlights that compositionality—the specific combination of features—is a primary driver of model difficulty. By addressing intra-class scarcity through automated tagging and guided sampling, the authors provide a scalable way to improve model robustness on rare but important data samples. Future work may focus on automatically discovering these attributes to reduce dependency on predefined dictionaries and CLIP's zero-shot biases.

Summary updated

BibTeX
@misc{chen2025compositional,
  author = {Jiayi Chen and Yanbiao Ma and Andi Zhang and Weidong Tang and Wei Dai and Bowei Liu},
  title = {{Compositional Attribute Imbalance in Vision Datasets}},
  year = {2025},
  eprint = {2506.14418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.14418},
}
Figure