Hide and Seek: HIDE Concepts to SEEK explanations for black box models
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 and supporting 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.
Figures & tables
| Method | Black Box | Concept Label-Free | Surrogate Free | Local Attribution | Wide Task Support |
| TCAV ( Kim et al., 2018 ) | ✗ | ✗ | ✓ | ✓ | ✗ |
| ConceptSHAP ( Yeh et al., 2020 ) | ✗ | ✗ | ✓ | ✓ | ✗ |
| PACE ( Wang et al., 2024 ) | ✗ | ✗ | ✓ | ✓ | ✗ |
| PCBM ( Yuksekgonul et al., 2023 ) | ✓ | ✓ | ✗ | ✗ | ✗ |
| Hide and Seek (ours) | ✓ | ✓ | ✓ | ✓ | ✓ |
| CelebA | COCO-Stuff | |||||
| Method | ResNet18 | ViT | ConvNeXt | ResNet18 | ViT | ConvNeXt |
| TCAV | 0.319 | 0.213 | 0.192 | 0.030 | 0.085 | 0.117 |
| PCBM (ResNet-18) | 0.180 | 0.164 | 0.258 | 0.058 | 0.018 | 0.059 |
| PCBM (SigLIP) | 0.208 | 0.197 | 0.291 | 0.163 | 0.211 | 0.214 |
| PCBM (CLIP-RN50) | 0.149 | 0.142 | 0.201 | 0.168 | 0.199 | 0.214 |
| HnS (ours) | 0.615 | 0.507 | 0.421 | 0.315 | 0.342 | 0.257 |
| Male-centric concepts | Number of models | Female-centric concepts | Number of models |
| tie | 9/10 | cake | 7/10 |
| toaster | 8/10 | hair dryer | 6/10 |
| backpack | 7/10 | teddy bear | 6/10 |
| sandwich | 7/10 | carrot | 6/10 |
| bottle | 6/10 | umbrella | 6/10 |
Appendix figures & tables39 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Reusable (encoder-side) | Black-Box-Dependent | Total |
| Hide and Seek (ours) | 232.0s | 6.0s | 238.0s |
| TCAV | - | 349.5s | 349.5s |
| PCBM (SigLIP) | 844.7s | 391.7s | 1236.4s |
| PCBM (CLIP) | 516.6s | 348.1s | 864.7s |
| PCBM (ResNet-18) | 615.2s | 347.3s | 962.5s |
| Method | Reusable (encoder-side) | Black-Box-Dependent | Total |
| Hide and Seek (ours) | 338.1s | 10.6s | 348.7s |
| TCAV | - | 405.8s | 405.8s |
| PCBM (SigLIP) | 1187.0s | 461.5s | 1648.5s |
| PCBM (CLIP) | 678.5s | 429.6s | 1108.1s |
| PCBM (ResNet-18) | 664.1s | 481.6s | 1145.7s |
| Dataset | SigLIP | CLIP | OpenCLIP-H | Perception |
| CelebA | 0.633 | 0.409 | 0.354 | 0.573 |
| COCO-Stuff | 0.318 | 0.331 | 0.197 | 0.245 |
| Dataset | K=15 | K=30 | K=50 | K=75 | K=100 |
| CelebA | 0.603 | 0.607 | 0.615 | 0.604 | 0.594 |
| COCO-Stuff | 0.269 | 0.297 | 0.315 | 0.311 | 0.305 |
| Prompt | CelebA | COCO-Stuff |
| a photo of concept | 0.621 | 0.308 |
| a photo showing concept | 0.634 | 0.311 |
| an image of concept | 0.605 | 0.306 |
| Ensemble | 0.615 | 0.315 |
| Metric | COCO-Stuff | CelebA |
| TCAV | -0.42 | 0.27 |
| PCBM (Resnet-18) | -0.28 | -0.84 |
| PCBM (CLIP-RN50) | -0.62 | 0.71 |
| PCBM (SigLIP) | -0.63 | 0.66 |
| Hide and Seek (ours) | 0.82 | 0.85 |
| Method | Attractive | Male | Average |
| TCAV | 0.478 | 0.160 | 0.319 |
| PCBM (ResNet-18) | 0.131 | 0.228 | 0.180 |
| PCBM (CLIP-RN50) | 0.267 | 0.032 | 0.149 |
| PCBM (SigLIP) | 0.320 | 0.096 | 0.208 |
| Hide and Seek (UTKFace) | 0.501 | 0.426 | 0.463 |
| Hide and Seek (LFW) | 0.641 | 0.502 | 0.571 |