arXiv:2611.02119cs.CVNov 2026

Manuscript Offprint

arXiv:2611.02119

Testing concept-level audits of melanoma classifiers with diffusion counterfactuals and matched positive controls

Md. Shohanoor Rahman, Md. Hasibul Islam, Md Kishor Morol, Moinul Hossain, Dip Nandi, Liew Tze Hui

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

Abstract

Concept-based explanations of melanoma classifiers are rarely tested against controls with known targets. We built a counterfactual audit from a diffusion model conditioned on seven 7-point checklist concepts and tested it with such controls. Colour-calibrated start noise reduced colour outliers from 78.5-84.8% to 6.6-13.3%. Four of seven knobs were target-dominant but also changed other concepts. Quartile-based positive controls were confounded, and the audit failed its pre-specified rule. It recovered the targets of all 16 controls matched on the generator's pseudo-labels and of 12 of 12 controls labelled by a second evaluator, for three concepts; concept activation vectors recovered fewer (11 of 16). In 18 permuted-label classifiers, significant sweep responses and target rankings also arose, whereas standardised effect margins separated the controls from these null classifiers. The pigmentation sweep raised the melanoma logit in 15 of 15 ISIC 2020 classifiers (+3.12 on average) and 6 of 6 HAM10000 classifiers (+4.01), about four times the null response in scale-free units; the regression effect did not transfer. An exploratory decomposition, evaluated against the controls, suggested that knob cross-talk partly hides vascular responses. Matched controls and null classifiers are practical checks of concept audits.

Introduction

A melanoma classifier can reach a high AUC for the wrong reasons. Surgical skin markings raised the melanoma scores of a certified convolutional network and lowered its specificity from 84.1% to 45.8% [1]. A study of seven visual artefacts concluded that current debiasing methods do not yet remove this kind of bias from skin-lesion models [2]. DeGrave et al. combined generative counterfactual images with the judgement of dermatologists to audit five dermatology classifiers. The classifiers used lesional pigmentation patterns, as dermatologists do, but they also used background skin texture and colour balance [3]. A clinician who reads a model explanation therefore needs to know whether the explanation itself is correct.

Concept-based methods explain a classifier in clinical terms. Testing with concept activation vectors (TCAV) measures how sensitive a prediction is to a direction in activation space that separates images with a concept from random images [4]. In dermoscopy, TCAV has been used to test whether skin-lesion classifiers rely on dermoscopic concepts [5, 6]. The 7-point checklist scores seven dermoscopic structures [7], and the Derm7pt dataset gives expert labels for them [8]. Such explanations, however, are rarely tested against a reference with a known target. Some saliency maps do not change when the model weights are randomised [9], and concept explanations change with the probe dataset and with how well a concept can be learned [10]. Known-answer tests have so far relied on planted artificial signals. Adebayo et al. found that common explanation methods did not reliably reveal a planted spurious signal [11], and Pahde et al. compared CAVs with ground-truth directions in controlled data and in ISIC 2019 classifiers with inserted shortcuts [12]. Such tests do not show whether a concept method recovers the clinical dermoscopic structures that a classifier actually uses. TCAV and regression on concept scores also share a causal limitation: they measure association, and when concepts occur together, an association with one concept can stand for another [13, 14]. Goyal et al. therefore proposed to estimate the causal effect of a concept with a generative model [13], and CEBaB provides counterfactual texts as a benchmark for such estimators in language models [15].

A generative model makes this kind of intervention possible in images. In dermatology, Varshney et al. derived concepts from latent-diffusion counterfactuals of an ISIC classifier [16], MONET scores images for clinical concepts with an image-text foundation model in order to audit data and models [17], and concept-guided diffusion has been used to synthesise training images [18]. If a model can add or remove one dermoscopic structure while it keeps the rest of the image, the change in the classifier output is an interventional effect, provided that each knob changes the intended concept and little else. We trained a denoising diffusion probabilistic model [19] with classifier-free guidance [20] on ISIC 2020 [21], conditioned on concept pseudo-labels from a concept bottleneck model [22]. Such an instrument has its own failure modes: a knob can move several concepts, the images can be unrealistic, and the colour can drift. An audit made with it is only as good as the evidence that it finds what a classifier really uses.

To our knowledge, no study has tested concept explanations of dermatology classifiers against control classifiers trained on known targets for clinical dermoscopic concepts, or compared TCAV with an interventional audit under the same controls. We therefore asked whether a concept-level counterfactual audit, TCAV and observational attribution recover the training targets of such controls: classifiers trained to detect one concept, with a permuted-label classifier as a negative control. Each decision rule was fixed in code before the run that tested it, and we report the rule that failed as well as the rules that passed. We show that quartile-based positive controls are confounded, that the audit recovers the targets of matched controls more often than TCAV, and that 18 permuted-label classifiers, used as a null distribution, also show significant sweep responses and target rankings. Against this null, the response of melanoma classifiers to the pigmentation sweep holds across retraining and a second training dataset. Figure 1 summarises the study design.

Figure

Figure 1 Study design. a. The counterfactual instrument and the audit statistic. CBM-A, the concept bottleneck model that produced the conditioning pseudo-labels; CBM-B, an evaluator trained separately on the Derm7pt expert labels. b. The validity rules in the order in which they were fixed, with their outcomes. Each rule was written into the code before the run that tested it. c. The three other methods, tested on the same controls, and the melanoma classifiers. PN, pigment network; VS, vascular structures; Pig, pigmentation; Reg, regression structures; BWV, blue-whitish veil; Str, streaks; D/G, dots and globules; BH, Benjamini-Hochberg.

References (33)