HiBug2: Efficient and Interpretable Error Slice Discovery for Comprehensive Model Debugging

Muxi Chen, Chenchen Zhao, Qiang Xu

Overview

Deep learning models rarely fail at random. Instead, they often exhibit systematic weaknesses on specific types of data, such as "pedestrians in low light" or "black bears against dark backgrounds." These subsets are known as error slices.

HiBug2 is an automated framework designed to uncover these systematic failures by using Large Language Models (LLMs) to generate structured visual attributes. By combining a highly efficient search algorithm with the ability to predict errors beyond the initial validation set, HiBug2 provides a closed-loop system for diagnosing and repairing models across classification, object detection, and pose estimation.

The Challenge of Identifying Error Slices

Identifying error slices is notoriously difficult because most evaluation datasets lack the granular annotations (like "lighting conditions" or "background clutter") needed to group failures together. Previous attempts usually followed a "slice-then-tag" approach: clustering images in a messy embedding space and then trying to describe the clusters. This often results in "word salad" descriptions that are hard for humans to interpret or use for model repair.

Examples of error slices in classification and detection tasks, highlighting distribution issues and inherent difficulties.

HiBug2 flips the script using a "tag-then-slice" approach. It generates high-quality attributes first to ensure the resulting error slices are both coherent and actionable.

The HiBug2 Methodology

HiBug2 introduces a comprehensive three-stage pipeline for model debugging:

The HiBug2 framework pipeline, illustrating attribute generation, error slice discovery, and model repair.
  1. Structured Attribute and Tag Generation: Rather than asking an LLM generic questions, HiBug2 uses a structured process. It categorizes attributes into Main Object (shape, color), Background (environment, weather), and Global (resolution, noise). It also uses a "comparative approach," showing the LLM pairs of images to highlight subtle, error-prone differences.
  2. Efficient Slice Enumeration: Finding combinations of attributes (e.g., "Small Object" + "Low Contrast" + "Rainy") creates a combinatorial explosion. HiBug2 uses a Breadth-First Tree-structured algorithm. It leverages the mathematical property of monotonicity—since the number of images in a slice can only decrease as you add more attributes, the system can prune search branches that lack enough data to be statistically significant.
  3. Predicting Unseen Errors: To find risks not present in the small validation set, HiBug2 uses Tag Substitution (finding semantically similar attributes via CLIP embeddings) and Instruction-Based Prediction (asking an LLM to brainstorm scenarios that would likely confuse a specific model type).

Experimental Setup and Key Insights

The authors evaluated HiBug2 across three distinct computer vision domains: image classification (bear species from ImageNet), object detection (cars and pedestrians from KITTI), and pose estimation (COCO and a private industrial dataset).

Key Insights: * Context is King: Most previous debugging tools focused only on the object itself. HiBug2 demonstrates that background and global image properties (like "background clutter" or "exposure") are often the primary drivers of model failure. * Task-Specific Failure Patterns: In object detection, different models (like YOLO and DINO) tend to fail on the same slices (86% overlap), suggesting these errors are due to inherent task difficulty. In contrast, classification failures were much more model-specific (only 31% overlap), suggesting they are driven by how each model handles specific data distributions.

Results and Impact

The framework demonstrated significant improvements in both efficiency and model repair:

  • Massive Speedup: The slice enumeration algorithm achieved a 510x speedup over naive brute-force methods.
  • Effective Model Repair: Using HiBug2 to identify weak spots and then adding targeted data improved ResNet18 accuracy by 7.6%, significantly outperforming random data augmentation (+4.7%).
  • High-Precision Discovery: The framework identified hundreds of distinct error slices for popular models like CLIP and BLIP.
  • Generalization: The "unseen error" prediction was highly effective. Models showed performance drops of up to 64.6% on the slices HiBug2 predicted would be difficult, even though the model hadn't "seen" those specific failures during the debugging phase.

Limitations and Future Work

Currently, the framework relies heavily on proprietary models like GPT-4V, which introduces costs and API dependencies. The authors plan to integrate open-source models like LLaVA in the future. Additionally, while statistical analysis helps mitigate occasional LLM "hallucinations," the coherence of the slices remains tied to the underlying vision-language model's descriptive accuracy. Finally, the authors note that the field of error slice discovery lacks standardized benchmarks, a gap they hope future work will address to enable equitable comparisons between frameworks.

Summary updated

BibTeX
@inproceedings{chen2025hibug,
  author = {Muxi Chen and Chenchen Zhao and Qiang Xu},
  title = {{HiBug2: Efficient and Interpretable Error Slice Discovery for Comprehensive Model Debugging}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=l30moNjSY9},
}
Figure