arXiv:2610.13935cs.CVOct 2026

Manuscript Offprint

arXiv:2610.13935

Hide and Seek: HIDE Concepts to SEEK explanations for black box models

Bhanu Tokas, Rahul Nair, Rockwell Jackson, Hannah Kerner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Interpreting machine learning model predictions is a central challenge, particularly for black-box vision models. Concept-based attribution methods interpret models using human-understandable concepts. Existing concept-based methods can only interpret classification and regression models. They require access to model weights or large concept-annotated datasets, and most methods cannot provide image-level attribution. We propose Hide and Seek (HnS), a new method for concept-level attribution that does not require access to model weights or labeled concept datasets. HnS can interpret a wide range of vision models. Given a concept and image set, HnS retrieves concept-aligned images using a vision-language model, localizes the concept within each image, masks the localized region, and measures attribution from the change in the black-box model's output between the original and masked images. This enables faithful attribution by directly measuring the model's behavior while also enabling local attributions. We validated HnS on CelebA and COCO-Stuff. Compared to existing methods, HnS showed better agreement with ground truth attributions. We demonstrated the applicability of HnS on diverse tasks, including image captioning and satellite image segmentation, where no existing concept attribution method can be used. We provided our anonymous code in the supplementary material.

1 INTRODUCTION

Interpreting why a model made a certain prediction is important for deploying it responsibly, especially in high-stakes settings such as medicine or hiring. Concept attribution is a popular approach for interpreting the behavior of vision models (Kim et al., 2018; Yeh et al., 2020; Wang et al., 2024; Chen et al., 2020; Yuksekgonul et al., 2023). It measures how much a human understandable concept (e.g., smiling, long hair) contributed to a model's prediction. Suppose we have a classification model M that predicts whether an image contains a male or a female, and M showed a high attribution score for the concept "smiling" for male images. This means that M relies on smiling-related features to predict males. This insight is valuable for model refinement, since we know M has learned to rely on a spurious feature in the dataset to classify males.

To be practically and widely useful, a concept attribution method should be applicable to black-box models (no access to model weights), not only for white-box models (models with publicly accessible weights). Second, it should measure both global attribution (the overall attribution of a concept across all images in a dataset) and local attribution (the attribution of a concept for a single image). Third, it should not require a labeled concept dataset, since curating such datasets is expensive and impractical to do for every application. Fourth, it should be able to interpret a wide range of vision models. No existing method meets all of these criteria.

TCAV (Kim et al., 2018) was one of the first methods to measure concept attribution. Several subsequent works developed extended versions of TCAV (Yeh et al., 2020; Wang et al., 2024; Chen et al., 2020). TCAV and its derivatives only work for white-box models, as they require access to model weights. More recent attribution methods, such as Post-hoc Concept Bottleneck Models (PCBMs) (Yuksekgonul et al., 2023), work for both white-box and black-box models. However, PCBMs require labeled concept datasets, measure only global attribution, and can only interpret classification and regression models. Motivated by these gaps in prior work, we present a new concept attribution method called Hide and Seek or HnS (Figure 1).

To understand how Hide and Seek (HnS) works, say we want to compute the attribution of the concept “smiling” for male predictions, for model M (discussed in our example earlier). We use a vision-language model (VLM) to retrieve images that best represent the concept (smiling faces). In each of these images, HnS automatically identifies the region where the target concept is present (mouth region). It creates a corresponding masked image where that concept is hidden. To compute attribution, HnS passes the actual image (a smiling face) and its masked version (mouth region hidden) to the model M. We define concept attribution as the difference in the predicted probability (of the male class) between the original and the masked image. A high attribution score indicates that M relies on smiling as a cue to predict males.

HnS does not need a labeled concept dataset, since it uses a VLM to identify concepts. Since HnS uses a model's predicted probability to measure attribution (only forward-pass outputs, not internal representations), it works with both white-box and black-box models. HnS measures both global (overall) and local (image-level) attribution. It can interpret a wide range of vision models (e.g., classification, regression, segmentation, captioning). It is also the fastest method to measure attributions (refer to Appendix A).

We validated HnS on two distinct types of datasets: CelebA (a dataset of celebrity faces) and COCO-Stuff (an object- and scene-based dataset). HnS achieved the highest correlation with ground-truth attributions compared to previous methods such as TCAV and PCBM. We also tested HnS in real-world use cases such as image captioning and field boundary segmentation, where existing methods cannot be applied directly. We found that several state-of-the-art captioning models had gender bias (e.g., models generated male-centric captions when images had a tie or a toaster, and female-centric captions when images had a cake or a hair dryer). Using HnS, we also investigated why PRUE is the current state-of-the-art model to segment crop fields (Muhawenayo et al., 2026). We found that PRUE has not only learned to identify concepts useful for segmenting cropland (e.g., arable land) but also concepts irrelevant to cropland (e.g., urban areas).

Our contributions are as follows: (1) We propose HnS, the first concept attribution method that can interpret any vision model, without a labeled concept dataset. (2) Compared to previous methods (TCAV, PCBM), we show that HnS has the best correlation with ground-truth attributions on facial datasets (CelebA) and object-based datasets (COCO-Stuff). (3) We applied HnSs on real-world vision tasks like image captioning and field boundary segmentation to show how our method can be used to interpret a wide variety of vision models.

Figure

Figure 1: Overview of Hide and Seek (HnS). For a concept cc (smiling), we encode its text prompt (“photo of a person smiling”) into a text vector vcv_c using SigLIP (a vision-language model). We preprocess vcv_c (using modality correction and orthogonalization) to obtain vc∗v_c^*. From an image database, we select a set of images RcR_c that show the highest cosine similarity with vc∗v_c^*. For each image xix_i in RcR_c, HnS identifies the region cc in xix_i and hides this region to create a masked image x~i\tilde{x}_i. We pass xix_i and x~i\tilde{x}_i to our model MM to obtain predicted probabilities for a class yy (male): P(xi)P(x_i) and P(x~i)P(\tilde{x}_i), respectively. We measure attribution for the concept cc (on class yy) as P(xi)−P(x~i)P(x_i) - P(\tilde{x}_i).

References (75)