Domino: Discovering Systematic Errors with Cross-Modal Embeddings

Sabri Eyuboglu, Maya Varma, Khaled Kamal Saab, Jean-Benoit Delbrouck, Christopher Lee-Messer, Jared Dunnmon, James Zou, Christopher Re

Machine learning models often boast impressive "top-line" accuracy while harboring embarrassing—and sometimes dangerous—systematic failures on specific subsets of data. A model might be great at identifying collapsed lungs in X-rays, but only because it learned to look for the chest drains used to treat them, failing miserably on patients who haven't been treated yet. These underperforming subgroups are known as slices, and finding them in massive, high-dimensional datasets is a major challenge for AI reliability.

In their ICLR 2022 paper, researchers from Stanford University introduce Domino, a novel Slice Discovery Method (SDM) that leverages the power of cross-modal embeddings to automatically find and—for the first time—describe these systematic errors in plain English.

TL;DR

Domino is a new method for discovering "hidden" subsets of data where machine learning models perform poorly. By combining cross-modal embeddings (like CLIP) with a novel error-aware mixture model, Domino identifies 12% more error slices than previous methods and can automatically generate natural language descriptions of the failure modes it finds.

What Problem Does This Paper Address?

Even the best models have "blind spots." These are often caused by hidden stratification: the data contains semantically meaningful subgroups (e.g., "photos taken at night" or "patients with a specific rare condition") that aren't explicitly labeled in the metadata.

If a practitioner doesn't know these slices exist, they can't fix them. Traditionally, finding these errors required tedious manual inspection or interpretability tools like Grad-CAM, which are prone to human confirmation bias. Previous automated attempts often produced "incoherent" slices—groups of images that the model fails on but that don't share a clear, human-understandable concept. The field also lacked a rigorous way to measure how well these discovery tools actually work.

Methods

Domino tackles slice discovery through a three-step pipeline designed to identify and explain coherent failure modes.

Overview of the Domino pipeline and evaluation setting.
  1. Cross-Modal Embedding: Instead of using standard image features, Domino uses embeddings from models like CLIP (for natural images) or ConVIRT (for medical data). Because these models are trained on both images and text, their internal representations are inherently more "semantic" and aligned with human concepts.
  2. Slicing with an Error-Aware Mixture Model: Most prior methods cluster data based on features alone and then check for errors. Domino uses a novel Gaussian Mixture Model (GMM) that jointly models the embeddings, the true labels, and the model's predictions. This ensures the discovered clusters are not just visually similar, but also share a common failure mode (e.g., a cluster of "false positives").
  3. Automated Description: Because Domino uses cross-modal embeddings, it can "query" the discovered slice against a corpus of text. It identifies the phrases that best describe the difference between the error slice and the rest of the data, effectively "naming" the error for the user.

Datasets

To rigorously test Domino, the authors created a massive evaluation framework consisting of 1,235 slice discovery settings across three domains:

  • Natural Images: Using CelebA and ImageNet.
  • Medical Images: Using MIMIC-CXR (chest X-rays).
  • Medical Time-Series: Using EEG data for seizure detection.

They programmatically generated slices based on three common real-world failure types: Rare slices (subgroups that seldom appear in training), Correlation slices (where the model relies on a "spurious" shortcut), and Noisy label slices.

Key Insights and Ideas

  • Semantics Matter: Unimodal embeddings (image-only) often cluster based on low-level textures. Cross-modal embeddings (image+text) are much better at capturing the high-level "concepts" that humans use to define slices.
  • Joint Modeling is Key: You shouldn't just look for clusters of images; you should look for clusters of mistakes. By including the model's error signal directly in the clustering process, Domino finds much more coherent failure modes.
  • Closing the Interpretability Loop: Identifying a slice is only half the battle. By providing a natural language description (e.g., "a photo of a man in aviator sunglasses"), Domino allows engineers to immediately understand why a model is failing and how to collect better data to fix it.

Key Results

  • Better Discovery: Domino accurately identified 36% of the ground-truth slices in the evaluation framework—a significant 12 percentage point improvement over the previous state-of-the-art.
  • Accurate Naming: In 35% of the settings, Domino's top-ranked description was the exact name of the ground-truth slice. In over 50% of cases, the correct name appeared in the top ten suggestions.
  • Versatility: While it shines on images, the authors demonstrated that the same principles work for medical time-series data (EEG), provided you have a text-aligned embedding space.

Limitations and Future Work

The authors note that slice discovery remains very difficult when the "slice strength" is low—meaning the subgroup is so rare or the error is so subtle that it's hard to distinguish from random noise.

Additionally, Domino's descriptive power depends on having a good text encoder. For specialized fields like medicine, this requires training custom cross-modal models (like MIMIC-CLIP), which requires large amounts of paired image-text data. Future work may focus on making these explanations more "actionable"—telling the user not just what the error is, but exactly how to modify the training set to fix it.

Summary updated

BibTeX
@inproceedings{eyuboglu2022domino,
  author = {Sabri Eyuboglu and Maya Varma and Khaled Kamal Saab and Jean-Benoit Delbrouck and Christopher Lee-Messer and Jared Dunnmon and James Zou and Christopher Re},
  title = {{Domino: Discovering Systematic Errors with Cross-Modal Embeddings}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=FPCMqjI0jXN},
}
Figure