Abstract
Deep learning models often rely on "spurious correlations"—environmental cues that co-occur with labels—rather than learning core object features. ASPIRE (Language-guided Data Augmentation for SPurIous correlation REmoval) is a novel framework that utilizes Large Language Models (LLMs) and generative models to automatically identify these shortcuts and generate synthetic "minority group" data. This automated pipeline significantly improves model robustness in atypical scenarios without requiring prior knowledge of dataset biases.
Introduction: The Challenge of Spurious Correlations
Image classifiers are frequently "lazy learners," latching onto easy-to-spot features like backgrounds instead of the actual object of interest. For instance, a model might identify a "Dog Sled" based on the presence of snow or dogs rather than the sled itself. These shortcuts create a performance gap between the majority group (where the shortcut holds) and the minority group (where it fails). Manually curating minority group images is labor-intensive; ASPIRE addresses this by automating the discovery and augmentation process.
The ASPIRE Pipeline
The ASPIRE framework follows a systematic six-step process to refine training data:
- Discovery via Failure: A standard "base" model is trained and probed for biases using images it correctly predicts.
- Language Guidance: Image captions are generated, and an LLM (e.g., GPT-4) extracts foreground objects and background descriptions.
- Automated Stress-Testing: Tools like Grounding DINO and Segment Anything are used to remove foreground objects or swap backgrounds (via InstructPix2Pix).
- Identifying Shortcuts: If the base model's prediction fails after a specific feature modification, that feature is flagged as a plausible spurious correlation.
- Generative Personalization: Textual Inversion is applied to "clean" images to personalize a Stable Diffusion model, teaching it the specific style of rare minority instances.
- Data Augmentation: The fine-tuned generator produces diverse, non-spurious images to supplement the training pool.
Experimental Results and Insights
ASPIRE was evaluated on several benchmarks, including Waterbirds, CelebA, SPUCO Dogs, and a newly annotated Hard ImageNet test set.
Key Findings
- Robustness Gains: ASPIRE improved worst-group accuracy by 1% to 38% across various baselines.
- Method Agnostic: As a data-centric approach, ASPIRE enhances the performance of existing robust training algorithms like Group DRO and DFR.
- Complex Scenarios: On Hard ImageNet, ASPIRE helped a standard model improve from ~12% to ~50% worst-group accuracy.
The Role of LLMs
A core innovation of ASPIRE is treating bias detection as a language task. By converting visual scenes into captions, the system leverages the "common sense" reasoning of LLMs to distinguish between essential foreground objects and incidental backgrounds. This automated counterfactual reasoning—asking "what if" the background changed—allows for discovery without manual intervention.
Limitations and Future Directions
Despite its success, ASPIRE depends heavily on the quality of initial image captions. Computational costs associated with running LLMs and diffusion models are also higher than standard training. Future work may involve integrating multimodal models to streamline the captioning and reasoning steps into a single, more efficient pipeline.
Summary updated