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

Advancing Fine-Grained Classification by Structure and Subject Preserving Augmentation

Eyal Michaeli, Ohad Fried

TL;DR

SaSPA (Structure and Subject Preserving Augmentation) is a novel generative data augmentation framework that boosts performance in fine-grained visual classification (FGVC). By conditioning diffusion models on abstract "skeletons" (edge maps) and subject references rather than direct image-to-image translation, it generates highly diverse synthetic training data that maintains the surgical precision required to distinguish between nearly identical sub-classes.

What Problem Does This Paper Address?

Fine-Grained Visual Classification (FGVC) is the "expert level" of computer vision. It’s not just about telling a bird from a car; it’s about telling a Boeing 767-200 from a 767-300. These tasks suffer from two main issues:

  1. Subtle Differences: The features that define a class are tiny (e.g., the shape of a winglet or a specific feather pattern).
  2. Data Scarcity: Expert-labeled datasets are small and expensive to build.

While we can use AI to "dream up" more training data, current methods hit a wall. Standard Text-to-Image models often hallucinate unrealistic details (like a plane with two tails). Image-to-Image (Img2Img) methods stay too close to the original photo, failing to provide the diversity (new lighting, backgrounds, or angles) needed to make a model truly robust. The authors call this the Fidelity-Diversity trade-off.

Fidelity-Diversity Trade-off

As seen above, SaSPA breaks this trade-off by maintaining the high fidelity required for FGVC while achieving the diversity necessary for robust model training.

Methods

The authors introduce SaSPA, a pipeline designed to maximize diversity without losing class-specific details. Instead of using a real image as a direct template, they break it down into abstract components:

The SaSPA Pipeline
  • Structural Conditioning: They extract a "skeleton" using Canny edge detection. This tells the model where the object is without forcing it to copy the exact colors or textures.
  • Subject Conditioning: They use BLIP-Diffusion to provide a reference image of the specific sub-class. This ensures the model knows exactly which "subject" it’s drawing.
  • LLM-Guided Prompts: They use GPT-4 to generate 100 unique scenarios (e.g., "a Boeing 767 flying over a frozen tundra") to ensure the synthetic data covers a wide range of contexts.
  • Smart Filtering: Not every AI-generated image is a masterpiece. SaSPA uses a two-stage filter: CLIP ensures the image matches the general category (e.g., "it's a car"), and a Predictive Confidence filter (a model trained on the real data) ensures the specific sub-class is recognizable.

Datasets

The researchers evaluated SaSPA on five primary FGVC benchmarks:

  • Aircraft: 100 variants of airplanes.
  • Stanford Cars: 196 classes of cars.
  • CUB-200-2011: 200 species of birds.
  • DTD (Describable Textures Dataset): 47 texture categories.
  • CompCars: A dataset focused on car components (headlights, etc.).
  • Supplemental: They also tested on Stanford Dogs and Oxford-IIIT Pets to prove the method works on non-rigid objects.

Key Insights and Ideas

  • Abstract Guidance is Better: The "aha moment" here is that guiding a generative model with an edge map provides more "creative freedom" than Img2Img. This allows the model to change lighting and environment drastically while keeping the physical structure intact.
  • The Synthetic Ratio Rule: The authors found a fascinating relationship: the less real data you have, the more synthetic data you should use. For a full dataset, a 40% replacement rate was often optimal, but in low-data regimes, higher ratios yielded better results.
  • FID is a Liar (for Augmentation): Fréchet Inception Distance (FID) is the standard metric for how "real" AI images look. SaSPA actually had worse (higher) FID scores than baselines because its images were so diverse and different from the training set. However, these "unrealistic" variations were exactly what made the final classifier more accurate.
  • Killing Contextual Bias: If all your photos of Airbus planes are on a runway and all Boeing photos are in the sky, a model will learn to classify the background, not the plane. SaSPA fixes this by generating planes in every imaginable environment.

Key Results

SaSPA consistently outperformed both traditional augmentations (like CutMix) and state-of-the-art generative baselines (like ALIA):

  • Full Dataset Training: On the Aircraft dataset, SaSPA achieved 86.6% accuracy, beating the best traditional method (84.9%) and previous generative methods (84.8%).
  • Few-Shot Learning: In scenarios with only 4 to 16 examples per class, SaSPA showed massive gains, often outperforming the next best method by several percentage points.
  • Contextual Bias: In a "stress test" where models were intentionally trained on biased backgrounds, SaSPA improved "out-of-domain" accuracy from 10.2% to 41.5%, effectively teaching the model to ignore the background.

Limitations and Future Work

  • Base Model Dependency: SaSPA is only as good as the underlying diffusion model. If the base model has never seen a specific rare bird, SaSPA might struggle to represent it accurately.
  • Resolution Issues: On the CUB (birds) dataset, the authors noted that higher resolution didn't always help, likely because the fine details of feathers are still difficult for current diffusion models to replicate perfectly without heavy fine-tuning.
  • Future Directions: The authors suggest applying SaSPA to other tasks like object detection and semantic segmentation, and exploring ways to maintain temporal consistency for video data.

Summary updated

BibTeX
@inproceedings{michaeli2024advancing,
  author = {Eyal Michaeli and Ohad Fried},
  title = {{Advancing Fine-Grained Classification by Structure and Subject Preserving Augmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=MNg331t8Tj},
}
Figure