LADDER: Language-Driven Slice Discovery and Error Rectification in Vision Classifiers

Shantanu Ghosh, Rayan Syed, Chenyu Wang, Vaibhav Choudhary, Binxu Li, Clare B. Poynton, Shyam Visweswaran, Kayhan Batmanghelich

Abstract

Slice discovery refers to identifying systematic biases in the mistakes of pre-trained vision models. Current methods rely on predefined attribute banks and lack common-sense reasoning, particularly in specialized domains like radiology. We introduce LADDER, which leverages the reasoning capabilities of Large Language Models (LLMs) to generate hypotheses about model mistakes by projecting internal activations into text. LADDER generates pseudo-labels for identified biases, enabling error rectification without expensive manual annotations. Evaluations across natural and medical imaging datasets show that LADDER consistently outperforms existing methods.

Introduction

Vision classifiers often suffer from "error slices"—subsets of data where the model systematically fails due to spurious correlations. For instance, a model might identify a pathology based on the presence of treatment equipment (like a chest tube) rather than the disease itself. Existing slice discovery methods are limited by fixed attribute sets and a lack of domain-specific reasoning. Furthermore, they often ignore biases introduced during data preprocessing that are not visible in image pixels but are recorded in logs or metadata.

Methodology: The LADDER Pipeline

LADDER (Language-Driven Slice Discovery and Error Rectification) addresses these gaps by converting "language traces" into actionable insights.

The LADDER pipeline projects model activations into a Vision-Language Representation (VLR) space to retrieve descriptive text, which an LLM then uses to generate bias hypotheses.

The process involves four key stages:

  1. Projection & Retrieval: Activations from a pre-trained model are projected into a shared Vision-Language Representation (VLR) space. By analyzing the embedding difference between correct and incorrect classifications, LADDER retrieves relevant text (e.g., captions or reports) describing the failure mode.
  2. LLM Hypothesis Generation: An LLM analyzes these retrieved sentences, using its latent domain knowledge to propose specific bias hypotheses, such as "The classifier is biased toward the presence of chest tubes."
  3. Pseudo-labeling: LADDER scores images against these hypotheses in the VLR space to generate pseudo-labels for the biased attributes.
  4. Error Rectification: The classifier is fine-tuned using these pseudo-labels and an ensemble-based strategy to rebalance the model and mitigate the identified shortcuts.

Experimental Evaluation

LADDER was evaluated on six datasets, including natural images (Waterbirds, CelebA, MetaShift) and medical imaging (NIH Chest X-ray, RSNA-Mammo, VinDr-Mammo). A synthetic "toy" dataset was also used to evaluate the LLM's ability to reason about complex spatial relationships.

Examples from the synthetic dataset used to evaluate LADDER's ability to identify biases based on spatial configurations of objects.

Key Results

  • Improved Discovery: In medical contexts, LADDER achieved a 50% improvement in Precision@10 for slice discovery over state-of-the-art baselines.
  • Effective Mitigation: The framework significantly boosted Worst Group Accuracy (WGA), showing improvements ranging from 3.6% to 21.1% over the DFR baseline.
  • Practicality: The system is highly cost-effective; API costs for the entire study involving over 200 classifiers totaled approximately $28.

Conclusion

LADDER demonstrates that language is a powerful diagnostic tool for debugging vision models. By leveraging the latent domain knowledge of LLMs, it can identify subtle biases—including those in metadata—that purely visual methods miss. While currently dependent on text availability, the integration of instruction-tuned models for caption generation offers a path forward for datasets lacking native text descriptions. Future work will explore human-in-the-loop validation to further refine the generated hypotheses.

Summary updated

BibTeX
@inproceedings{ghosh2025ladder,
  author = {Shantanu Ghosh and Rayan Syed and Chenyu Wang and Vaibhav Choudhary and Binxu Li and Clare B. Poynton and Shyam Visweswaran and Kayhan Batmanghelich},
  title = {{LADDER: Language-Driven Slice Discovery and Error Rectification in Vision Classifiers}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=ojdkDin50Q},
}
Figure