Clarify: Improving Model Robustness With Natural Language Corrections

Yoonho Lee, Michelle S. Lam, Helena Vasconcelos, Michael S. Bernstein, Chelsea Finn · DOI

TL;DR

This paper introduces "Clarify," a novel system that allows non-expert users to improve the robustness of machine learning models by simply describing their failure patterns in natural language. This approach significantly boosts model performance on challenging subpopulations and is scalable to large datasets like ImageNet, offering a more efficient alternative to traditional data-heavy correction methods.

What Problem Does This Paper Address?

Machine learning models, especially those trained with supervised learning, often develop "misconceptions." This happens when models learn to rely on spurious correlations present in the training data rather than the true underlying patterns. For example, an image classifier might learn to associate a specific background (like water) with a particular object (like a bird), leading to errors when that object appears in a different context. While traditional methods to fix these issues involve collecting more labeled data or providing specific instance-level annotations, these approaches are incredibly costly and time-consuming, especially for massive datasets. The authors identify a gap in leveraging human intuition and language skills for more efficient model correction.

Methods

The core of Clarify is a two-part system:

  1. Interactive Interface: Users are presented with a model's predictions on a validation dataset. They can then identify consistent failure modes and describe them using short, natural language phrases (e.g., "red squares"). The interface helps users refine these descriptions by showing how well they separate correct and incorrect predictions.
  2. Automated Correction: Once a user provides a textual description of a failure pattern, Clarify uses a multimodal model (like CLIP) to measure the similarity between images and the text description. This information is then used to automatically re-weight the training data or gather more targeted data to retrain the model. The authors employ a Distributionally Robust Optimization (DRO) objective to ensure the model performs well across different subsets of data identified by the user's feedback.

Datasets

The authors evaluated their system on three datasets:

  • Waterbirds: A dataset with known spurious correlations between bird species and their backgrounds (land vs. water).
  • CelebA: A dataset of celebrity faces, known for spurious correlations between attributes like hair color and gender.
  • ImageNet: A large-scale, widely used image dataset. Notably, the authors used ImageNet to discover novel spurious correlations, as prior knowledge of such issues was limited.

Key Insights and Ideas

  • Natural Language as Efficient Supervision: The paper strongly posits that natural language descriptions of failures are a highly efficient form of supervision. This is because humans are adept at identifying what's wrong, and this negative feedback can be more direct than trying to articulate all correct rules upfront.
  • Concept-Level Correction: Clarify operates at the concept level, allowing users to describe abstract patterns (like "red background") rather than just individual incorrect examples. This is more scalable and interpretable.
  • Non-Experts Can Drive Improvement: A key finding is that non-expert users, with minimal training, can effectively use Clarify to identify and describe model misconceptions, leading to significant improvements. This democratizes model debugging.
  • Discovering Novel Misconceptions: The application to ImageNet demonstrates that Clarify can uncover previously unknown failure modes in large, well-studied datasets, highlighting its utility beyond known issues.

Key Results

  • Improved Worst-Group Accuracy: On the Waterbirds and CelebA datasets, models retrained with Clarify annotations showed an average improvement of 17.1% in worst-group accuracy.
  • ImageNet Discoveries: Clarify helped identify 31 novel hard subpopulations in ImageNet. Retraining with this feedback improved minority-split accuracy from 21.1% to 28.7%, with only a negligible drop in overall accuracy.
  • Efficiency: Non-expert users completed annotation tasks in an average of less than 3 minutes per dataset.
  • Competitive Performance: Clarify's performance was competitive with or superior to existing automated methods for addressing spurious correlations, especially in terms of robustness and scalability.

Limitations and Future Work

  • User Granularity and Salience: The authors acknowledge that eliciting high-quality feedback can be challenging. Some users provided feedback that was too generic, or only identified visually salient errors. Fine-tuning the level of detail and guiding users to more subtle issues remains an area for improvement.
  • Natural Language Expressivity: Clarify is limited to failures that can be concisely described in natural language. More complex failures requiring domain-specific knowledge or not easily articulated in text are not addressed.
  • Reliance on Pre-trained Models: The system inherits biases and limitations from the underlying pre-trained models (like CLIP).
  • Future Work: The authors suggest extending Clarify to large language models (LLMs), designing more effective interfaces for understanding LLM behavior, and exploring richer feedback mechanisms (e.g., multi-turn dialogues, domain expert input). They also envision integrating automated bias discovery tools to prime users with candidate keywords.

Summary updated

BibTeX
@inproceedings{lee2024clarify,
  author = {Yoonho Lee and Michelle S. Lam and Helena Vasconcelos and Michael S. Bernstein and Chelsea Finn},
  title = {{Clarify: Improving Model Robustness With Natural Language Corrections}},
  booktitle = {UIST},
  year = {2024},
  doi = {10.1145/3654777.3676362},
}
Figure