What You See Is What You Certify: Concept-Based Certificates for Unseen Compositions
Organizations: Technische Universität Darmstadt · University of New Brunswick
Abstract
Concept-based models justify a decision by concepts they claim to see, decoded through an explicit ontology. Yet concept predictions are known to leak label information, ignore locality, and be poorly grounded on new attribute combinations. A decision decoded from such concepts can satisfy the ontology and still be wrong, so we ask when it can serve as a certificate. On unseen combinations of familiar parts, a joint concept bottleneck model and a concept embedding model, trained as is standard, certify wrong classes 93-94% of the time despite a correct ontology (60% for a joint model trained only on visible parts and gated by a localizer). The joint model's part errors copy co-occurring values more often than chance (cross-concept shortcutting). Treating the ontology as an error-detecting code, we show that a certificate needs visible evidence excluding every rival, unseen parts reported as such, and rare misreads not driven by a shared shortcut. A minimal reference design, OCVE, reads each part from a local crop in its own forward pass. On unseen FunnyBirds classes, it certifies 52% of images at 0.4% risk, against 14% for mask-pooled features and 33% for full-image part readers (5.6% when trained and gated alike), at similar zero-shot accuracy. The best baselines, even calibrated or restricted to unseen classes, and a decoder counting only agreeing parts remain about 3-8 times riskier. On CUB, isolated region readers are more accurate than an attribute-prototype model (63.1% vs. 55.3%) and certify unseen species at about 6 points less risk than it and about 10 points less than features pooled in the same keypoint boxes. On real traffic signs, isolated readers lower certified risk from 99.8% to 67%, which is still far too high; most remaining errors are misread pictograms. On seen classes the ontology brings no gain over a fairly trained black box, and isolation costs accuracy.
Figures & tables
| Unseen classes | Seen classes | |||
| Model | GZSL | ZSL | Cert. risk (cov.) | Acc. (ref.) |
| B2 joint CBM | 0.087 | 0.681 | 93.3% (46%) | 0.696 |
| CEM | 0.101 | 0.685 | 94.2% (46%) | 0.697 |
| B2-ind (full-image readers) | 0.512 | 0.812 | 33.0% (32%) | 0.730 |
| B2-maskpool (soft isolation) | 0.552 | 0.779 | 13.8% (37%) | 0.599 |
| APN-lite (proto. certificate) | 0.499 | 0.790 | 79.4% (29%) | 0.697 |
| Variant | Cert. risk (cov.) | GZSL | |
|---|---|---|---|
| A1 | masked crop ( OCVE ) | 0.5% (52%) | 0.677 |
| one network, five heads | 0.9% (52%) | – | |
| box | 1.0% (51%) | 0.676 | |
| box | 0.7% (52%) | 0.678 | |
| box | 0.7% (52%) | 0.677 | |
| box | 0.8% (51%) | 0.672 |
| Run | Model | Sup. | ZSL | Risk | Occl. |
| 4 | Joint attribute reader | img | 0.399 | 43.9% | 0.223 |
| Joint attribute reader | cls | 0.479 | 34.3% | 0.288 | |
| Isolated + gate | img | 0.573 | 20.8% | 0.247 | |
| Isolated + gate | cls | 0.631 | 17.7% | 0.298 | |
| APN-lite | cls | 0.553 | 24.0% | 0.294 | |
| KP | Isolated + gate | cls | 0.627 | 17.5% | 0.304 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Region | Parts | Attribute groups | # |
|---|---|---|---|
| head | beak, crown, forehead, left and right eye, nape, throat | bill shape, bill length, bill color, head pattern, crown, forehead, nape, throat, and eye color | 112 |
| wing | left and right wing | wing color, shape, pattern | 24 |
| body | back, belly, breast | upperparts, underparts, back, breast, belly color; breast, back, belly pattern | 87 |
| tail | tail | tail shape, tail pattern, upper and under tail color | 40 |
| leg | left and right leg | leg color | 15 |
| Backbone | Split | OCVE | B2-maskpool | Joint CBM | UCR OCVE / APN-lite | ZSL OCVE / B2 / APN-lite | OCVE / B2 |
|---|---|---|---|---|---|---|---|
| ResNet-50 | 0 | 0.65% (51.5%) | 2.78% (44.5%) | 87.0% (50.9%) | 4.6% / 34.6% | 0.797 / 0.681 / 0.774 | / 0.053 |
| 1 | 0.72% (52.9%) | 5.81% (41.0%) | 93.6% (46.3%) | 3.3% / 35.1% | 0.837 / 0.735 / 0.823 | / 0.052 | |
| 2 | 0.18% (53.7%) | 5.12% (41.9%) | 87.0% (49.8%) | 4.2% / 42.1% | 0.802 / 0.660 / 0.828 | / 0.046 | |
| mean | 0.51% (52.7%) | 4.57% (42.5%) | 89.2% (49.0%) | 4.0% / 37.2% | 0.812 / 0.692 / 0.808 | / 0.050 | |
| ViT-B/16 | 0 | 0.37% (51.7%) | 5.19% (43.1%) | 94.6% (53.3%) | 1.1% / 18.4% | 0.799 / 0.710 / 0.785 | / 0.047 |
| 1 | 0.54% (52.4%) | 6.43% (40.8%) | 99.2% (56.2%) | 2.4% / 15.3% | 0.836 / 0.759 / 0.832 | / 0.056 |
| Visible | Claimed | ||||
|---|---|---|---|---|---|
| 1 | 3 / 2 | 0 / 0 | 2 | 158 / 4 | 0 / 0 |
| 2 | 82 / 4 | 0 / 0 | 3 | 1,131 / 12 | 9 / 0 |
| 3 | 380 / 3 | 9 / 0 | 4 | 1,853 / 5 | 400 / 0 |
| 4 | 1,267 / 4 | 183 / 0 | 5 | 387 / 1 | 786 / 0 |
| 5 | 1,797 / 9 | 1,003 / 0 | |||
| All | 3,529 / 22 | 1,195 / 0 | All | 3,529 / 22 | 1,195 / 0 |
| OCVE | Agreement | Matched | |||||
|---|---|---|---|---|---|---|---|
| Split | risk (cov.) | risk (cov.) | risk | ||||
| 0 | 0.47% (51.0%) | 15.3% (78.8%) | 3.3% | 285: 54.7% | 424: 20.8% | 673: 1.5% | 273: 0.0% |
| 1 | 0.46% (51.9%) | 13.8% (80.2%) | 2.3% | 296: 58.4% | 488: 11.9% | 591: 0.3% | 309: 0.0% |
| 2 | 0.63% (53.0%) | 17.2% (78.0%) | 5.4% | 309: 57.9% | 499: 19.6% | 599: 0.5% | 230: 0.4% |
| mean | 0.52% (51.9%) | 15.4% (79.0%) | 3.7% |
| Set size | Coverage | OCVE risk | APN-lite risk |
|---|---|---|---|
| 51.9% | 0.52% | 31.5% | |
| 66.4% | 0.53% | 10.0% | |
| 70.3% | 0.61% | 6.0% | |
| 77.3% | 0.74% | 3.4% |
| Split 0 | Split 1 | Split 2 | |
|---|---|---|---|
| 0.57% | 0.68% | 0.81% | |
| : observed / reference | 0.50% / 2.14% | 0.60% / 2.52% | 0.78% / 2.96% |
| : wrong / expected | 0 / 0.09 | 0 / 0.16 | 0 / 0.19 |
| OCVE | Joint CBM | ||||||
| Test images | Share | Unique | Guess | Acc. | Risk (cov.) | Acc. | Risk (cov.) |
| Unseen, complete | 59.7% | 94.1% | 0.970 | 0.917 | 0.39% (73.8%) | 0.133 | 90.0% (51.0%) |
| official test set | 4.8% | 93.7% | 0.968 | 0.910 | 0.48% (72.3%) | 0.153 | 89.3% (46.7%) |
| Unseen, parts removed | 40.3% | 28.2% | 0.413 | 0.320 | 1.21% (19.5%) | 0.027 | 97.6% (41.5%) |
| Seen, complete | 57.5% | 91.2% | 0.955 | 0.823 | 0.16% (70.4%) | 0.933 | 6.0% (97.2%) |
| Seen, parts removed | 42.5% | 28.3% | 0.410 | 0.326 | 1.22% (18.5%) | 0.374 | 45.3% (53.6%) |
| No gate | Gate | ||||||
|---|---|---|---|---|---|---|---|
| Targets | Epochs | Risk (cov.) | GZSL | Risk (cov.) | GZSL | Seen | (splits 0–2) |
| All parts | 5 | 88.8% (50.1%) | 0.098 | 82.4% (42.0%) | 0.174 | 0.934 | 0.054 / 0.053 / 0.038 |
| All parts | 30 | 94.4% (52.3%) | 0.071 | 91.3% (37.7%) | 0.145 | 0.947 | 0.062 / 0.065 / 0.054 |
| Visible parts | 5 | 72.1% (41.6%) | 0.211 | 60.1% (36.2%) | 0.302 | 0.936 | 0.040 / 0.045 / 0.034 |
| Visible parts | 30 | 73.1% (42.2%) | 0.215 | 63.0% (35.4%) | 0.314 | 0.947 | 0.047 / 0.048 / 0.036 |
| Targets | Risk , no gate | Risk , gate | GZSL / ZSL (gate) | (splits 0–2) | UCR cert. / conf. |
|---|---|---|---|---|---|
| All parts | 27.6% (40.9%) | 13.0% (44.9%) | 0.619 / 0.831 | 0.011 / 0.019 / 0.007 | 33.3% / 28.9% |
| Visible parts | 16.3% (42.0%) | 5.6% (49.3%) | 0.698 / 0.841 | 0.007 / 0.008 / 0.004 | 30.5% / 2.0% |
| Clean images | Head grayed out | |||||||||||||||||
| ZSL | Cov. | Risk | ZSL | Cov. | Risk | |||||||||||||
| Split | ISO | POOL | APN | KP-APN | ISO | POOL | APN | KP-APN | ISO | POOL | APN | KP-APN | ISO | POOL | APN | KP-APN | ||
| 0 | 64.9 | 54.1 | 59.4 | 57.2 | 41.9 | 13.4 | 27.0 | 22.9 | 21.9 | 32.9 | 30.5 | 33.1 | 29.2 | 18.4 | 36.2 | 42.2 | 32.1 | 39.2 |
| 1 | 61.4 | 52.0 | 55.2 | 52.9 | 43.7 | 16.6 | 27.6 | 24.7 | 25.5 | 29.8 | 27.3 | 28.7 | 27.8 | 14.6 | 41.2 | 37.0 | 42.7 | 44.5 |
| 2 | 61.8 | 53.7 | 54.4 | 53.1 | 44.3 | 22.5 | 32.3 | 27.8 | 27.6 | 28.4 | 24.2 | 27.5 | 25.7 | 19.8 | 55.2 | 51.0 | 47.2 | 46.2 |
| 3 | 62.1 | 52.9 | 54.3 | 52.7 | 42.2 | 20.6 | 30.6 | 27.7 | 29.5 | 26.6 | 24.6 | 27.0 | 25.7 | 18.8 | 50.4 | 60.7 | 49.3 | 49.3 |
| Run 4 | Rerun | |||||
| Split | ZSL ISO / APN | Cov. | Risk ISO / APN | ZSL ISO / APN | Cov. | Risk ISO / APN |
| 0 | 64.5 / 59.2 | 40.5 | 13.0 / 20.3 | 63.7 / 59.0 | 41.2 | 16.3 / 20.5 |
| 1 | 62.4 / 51.5 | 43.2 | 16.9 / 24.4 | 61.5 / 52.2 | 45.2 | 20.6 / 25.5 |
| 2 | 62.5 / 55.1 | 44.9 | 23.1 / 27.4 | 62.1 / 54.6 | 44.4 | 23.7 / 27.1 |
| mean | 63.1 / 55.3 | 42.9 | 17.7 / 24.0 | 62.5 / 55.3 | 43.6 | 20.2 / 24.3 |
| PS | 62.2 / 58.1 | 41.5 | 18.2 / 20.5 | 63.1 / 57.5 | 40.1 | 17.3 / 17.8 |
| ZSL | Risk | ||||||
| Split | ISO | APN-lite | Joint | Cov. | ISO | APN-lite | Joint |
| 0 | 70.7 | 62.8 | 57.4 | 47.2 | 10.3 | 22.4 | 24.1 |
| 1 | 64.4 | 54.9 | 56.8 | 45.3 | 18.2 | 30.0 | 22.0 |
| 2 | 65.9 | 55.3 | 55.6 | 49.0 | 20.2 | 28.7 | 28.7 |
| mean | 67.0 | 57.6 | 56.6 | 47.2 | 16.2 | 27.0 | 24.9 |
| PS | 66.3 | 58.8 | 57.2 | 43.4 | 15.2 | 19.2 | 25.6 |
| AUSUC | Best | at | |||||||
| Split | ISO | APN | Joint | ISO | APN | Joint | ISO | APN | Joint |
| 0 | 0.422 | 0.403 | 0.266 | 0.567 | 0.538 | 0.432 | 0.386 | 0.461 | 0.223 |
| 1 | 0.431 | 0.366 | 0.265 | 0.577 | 0.516 | 0.434 | 0.360 | 0.437 | 0.210 |
| 2 | 0.427 | 0.373 | 0.249 | 0.563 | 0.518 | 0.413 | 0.378 | 0.400 | 0.158 |
| mean | 0.427 | 0.381 | 0.260 | 0.569 | 0.524 | 0.426 | 0.374 | 0.433 | 0.197 |
| PS | 0.426 | 0.399 | 0.255 | 0.576 | 0.534 | 0.424 | 0.381 | 0.410 | 0.222 |
| Run | Model | Sup. | ZSL | Risk | Occl. |
| 1 | Joint attribute reader | img | 0.396 | – | – |
| Isolated, keypoints v1 | img | 0.400 | – | – | |
| Isolated, GT keypoints | img | 0.574 | – | – | |
| APN-lite | cls | 0.545 | – | – | |
| 2 | Joint attribute reader | img | 0.399 | 45.1% | 0.228 |
| Isolated, keypoints v2 | img | 0.566 | 28.2% | 0.231 |
| Model | ZSL | Risk | Risk per split |
|---|---|---|---|
| ISO | 0.643 | 18.6% | 13.8 / 20.8 / 21.2 |
| SHARED | 0.629 | 18.6% | 16.1 / 18.4 / 21.3 |
| ISO-224 | 0.631 | 18.6% | 14.6 / 20.1 / 21.2 |
| POOL | 0.541 | 28.1% | 26.5 / 26.4 / 31.4 |
| / / ISO | / / APN-lite | Cov. | Risk ISO / APN-lite | |
|---|---|---|---|---|
| 0.251 / 0.737 / 0.375 | 0.313 / 0.708 / 0.433 | 46.7% | 16.0% / 15.1% | |
| calibrated | 0.547 / 0.593 / 0.569 | 0.467 / 0.593 / 0.523 | 43.7% | 25.5% / 24.8% |
| Model | Follow | Real | Add / remove | Head | Other |
|---|---|---|---|---|---|
| Isolated readers | 55.9 (56.3, 57.2, 54.1) | 13.9 | 30.1 / 76.1 | 33.2 | 71.9 |
| Joint reader | 44.4 (44.2, 48.2, 40.8) | 15.8 | 20.0 / 73.3 | 32.9 | 52.5 |
| APN-lite | 60.1 (62.3, 62.1, 55.9) | 31.6 | 35.6 / 76.5 | 57.3 | 62.0 |
| Model | Cert. risk (cov.) | ZSL | GZSL | AUSUC | Shortcut (uniform ref.) | Pictogram acc. unseen / seen |
|---|---|---|---|---|---|---|
| B2 joint CBM | 99.8% (42.1%) | 0.590 | 0.018 | 0.536 | 69.6% (13.0%) | 0.304 / 0.982 |
| B2-ind (full-crop readers) | 92.2% (38.5%) | 0.680 | 0.109 | 0.630 | 67.4% (12.9%) | 0.373 / 0.980 |
| OCVE -color (content reader sees color) | 81.4% (28.4%) | 0.674 | 0.167 | 0.630 | 53.9% (12.2%) | 0.355 / 0.980 |
| OCVE (frame and content readers) | 67.2% (32.5%) | 0.747 | 0.317 | 0.701 | 35.5% (12.5%) | 0.384 / 0.968 |
| OCVE , circular window (ResNet-18) | 46.7% (40.4%) | 0.756 | 0.433 | 0.704 | 25.6% (10.5%) | 0.441 / 0.952 |
| OCVE , circular window (ViT-B/16) | 44.1% (43.4%) | 0.780 | 0.489 | 0.728 | 27.3% (10.2%) | 0.455 / 0.957 |
| oracle masks | learned localizer | + fixes, shared aug. | |
|---|---|---|---|
| Risk (%) OCVE / B1 | 0.0 / 21.2 | 19.7 / 2.3 | 0.0 / 0.1 |
| AUROC OCVE / B1 | 0.963 / 0.844 | 0.813 / 0.844 | 0.952 / 0.944 |
| Clean acc. OCVE / B1 | 0.785 / 0.709 | 0.723 / 0.709 | 0.671 / 0.735 |
Explainable Image Classification
Explainable image classification develops ways to show which pixels, regions, concepts, or model features support an image classifier’s predictions.
See all 110 papers