Skip to content

Different Threats Leave Different Traces: Conformal Multi-Expert Detection of Adversarial Attacks on TransformersDifferent Threats Leave Different Traces: Conformal Multi-Expert Detection of Adversarial Attacks on Detection Transformers

Amirhossein Nazeri, Pierluigi Pisu
Department of Automotive Engineering, Clemson University
arXiv: Adversarial Attacks, Backdoors & PoisoningarXiv:2612.01937Originally published Indexed by this site · 17 hr agoDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose CMED to detect adversarial attacks on DETR-family detectors, stating that it detects unseen attacks on KITTI and BDD100K and outperforms comparison defenses.

Threat modelThe attacker has white-box access to the frozen target detector (weights and gradients) and uses digital L∞ perturbations or universal patches, with untargeted, vanishing, or fabrication goals; in the transfer setting, an attack is constructed on one DETR-family detector and used on another. The victim systems are DETR-R50 and DINO-4scale R50.

Questions
Both L∞ perturbations and adversarial patches can make detection transformers miss or fabricate objects, but the authors find that a classifier trained only on decoder outputs to detect L∞ attacks struggles to detect withheld patches, so defenses need to cover both types of traces.
Methods
CMED converts GASC, the backbone texture anomaly expert and the JPEG re-encoding expert over all queries into conformal p-values, then fuses them by taking the minimum; the latter two are fitted only on clean images and have a preset clean false-alarm rate.
Experiments and results
In leave-one-attack-family-out tests on KITTI and BDD100K, the authors report that CMED's AUROC on withheld and unseen patches is 0.818–0.966 and 0.951–0.994, respectively, and that it outperforms the four compared methods in all patch settings.
Limitations and future work
The authors note that each patch setting has only one unseen instance, each design has only one training seed, and the latency of the texture and re-encoding experts was not measured; EPS-AD was scored only on 200 test images per dataset, and the results do not constitute a deployable defense.
Experimental setupDETR-R50、DINO-4scale R50 et al. · KITTI、BDD100K et al. · AUROC、FPR@95TPR et al.
Metrics
AUROCFPR@95TPRclean false-alarm rateAP@[.5:.95]
AI summaryAmirhossein Nazeri and Pierluigi Pisu propose the conformal multi-expert detector CMED for detecting two types of attacks against detection Transformers such as DETR and DINO: whole-image perturbations and adversarial patches. The paper finds that the two threat types leave traces in different locations: whole-image perturbations shift decoder queries, while patch-induced shifts are nearly orthogonal or opposite to them; therefore each expert detects where the attack leaves traces, with the whole-image density expert and the patch expert fitted using only clean images, and CMED then fuses the experts and GASC at a preset clean false-positive rate. On KITTI and BDD100K, CMED achieves 0.818-0.966 and 0.951-0.994 AUROC for patch attack families not used in training and unseen patch instances, respectively, while whole-image attack detection remains at 0.967-0.986; on paired test images, it outperforms the patch defenses PAD, NutNet, and Jedi in all settings, and outperforms the diffusion-based EPS-AD in all patch settings.

Amirhossein Nazeri and Pierluigi Pisu propose the conformal multi-expert detector CMED for detecting two types of attacks against detection Transformers such as DETR and DINO: whole-image perturbations and adversarial patches. The paper finds that the two threat types leave traces in different locations: whole-image perturbations shift decoder queries, while patch-induced shifts are nearly orthogonal or opposite to them; therefore each expert detects where the attack leaves traces, with the whole-image density expert and the patch expert fitted using only clean images, and CMED then fuses the experts and GASC at a preset clean false-positive rate. On KITTI and BDD100K, CMED achieves 0.818-0.966 and 0.951-0.994 AUROC for patch attack families not used in training and unseen patch instances, respectively, while whole-image attack detection remains at 0.967-0.986; on paired test images, it outperforms the patch defenses PAD, NutNet, and Jedi in all settings, and outperforms the diffusion-based EPS-AD in all patch settings.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Simultaneously detects L∞ perturbations and adversarial patches for DETR-family detectors, including attacks unseen during training.

    The core problem is how to simultaneously detect whole-image L∞ perturbations and local adversarial patches on detection transformers without knowing the specific attack.

    • Scenario and importance: The authors state that both types of attack can cause DETR and DINO to miss or fabricate pedestrians and vehicles; L∞ perturbations are hard to perceive but cover the whole image, while patches are visible but confined to a small region, and defenders usually cannot know the attack in advance.
    • Shortcomings of existing methods: The authors consider that object detection attack detection mainly targets patch localization or object consistency checks for convolutional detectors, while density detection on classifiers scores only one feature vector per image and does not handle query sets, no-object dominance and vanishing objects.
    • Core observation: Vanishing attacks turn object queries into no-object queries, so all queries must be scored; the authors also report that patches and L∞ shift decoder features in different directions, while patch texture remains in the backbone.
    • Proposed method: The paper proposes all-query clean density scoring, supervised GASC, and a conformal multi-expert detector (CMED) that fuses them; the texture anomaly and JPEG re-encoding experts are fitted only on clean images.
    • Threat model:
      • Goal: untargeted degradation, vanishing or fabrication, causing the detector to miss, degrade or produce fabricated objects.
      • Knowledge: The attacker is white-box with respect to the target detector and knows its weights and gradients.
      • Capability: Uses digital L∞-bounded perturbations or universal patches; for transfer, constructs them on one DETR-family detector and applies them to another.
      • Victim system: Frozen and unmodified DETR-R50 and DINO-4scale R50; the detector outputs an image-level score and raises an alarm by threshold.
  2. What related research exists?

    Related work spans detector attacks, classifier attack detection, object detection defenses and OOD scoring on queries.

    Adversarial attacks on object detectors

    • DAG, UEA, RAP, CAP, TOG, Daedalus: Attack detectors by mislabeling proposals, generating transferable attacks, attacking the RPN, exploiting context, defining multiple objectness objectives, or disrupting NMS, respectively.
    • Universal patches and physical patches: Thys et al. (2019), Brown et al. (2017), DPatch, and others hide objects; there are also printed clothing and generative natural patches; this paper uses a universal vanishing patch.
    • Attacks on detection transformers: Lovisotto et al. (2022) study patches attracting query attention, Nazeri et al. (2026) attack intermediate decoder losses, and Jayasundara et al. (2026) attack encoder attention.

    Attack detection on classifiers

    • Statistical and density methods: Feinman et al. (2017), Lee et al. (2018), Ma et al. (2018), and others model clean activations using KDE, Mahalanobis, LID, MMD, or nearest-neighbor statistics.
    • Transformation and supervised methods: MagNet and Feature Squeezing compare inputs before and after denoising or compression; Metzen et al. (2017) and Gong et al. (2023) learn detectors directly from adversarial examples.
    • EPS-AD (2023): Averages the scores of a pretrained diffusion model across multiple noise levels, then compares with clean samples using a kernel MMD; the authors state that these methods do not handle detector query sets, no-object dominance, and vanishing objects.

    Attack detection and patch defenses for object detectors

    • Consistency checks: SCEME (2020) learns object-class context, and Yin et al. (2021) use an object co-occurrence language model; there are also internal overactivation and video temporal checks.
    • Patch localization and removal: LGS, Jedi, SAC, PatchZero, PAD, NutNet, and DIFFender use signals such as gradients, entropy, segmentation, recompression, or reconstruction; DetectorGuard and ObjectSeeker provide certification for bounded regions.
    • Baselines and benchmarks: The experiments compare PAD, NutNet, the entropy stage of Jedi, and EPS-AD, using KITTI and BDD100K, and compare patch defenses on the public APDE benchmark.

    Density, OOD, and anomaly scoring on detector features

    • PROB, SIREN, SAFE: Model objectness on Deformable-DETR queries, shape OOD representations, or train on clean and FGSM features, respectively; the paper explicitly states that they do not detect adversarial attacks.
    • Industrial anomaly and conformal detection: Roth et al. (2022) use a clean patch-feature memory bank to localize defects, and Bates et al. (2023) use conformal p-values to set the false-alarm rate on clean data.

    The authors position this paper as performing attack detection over the full query set of DETR-family detectors and covering both types of threats with the same calibration test; the authors state that this is, to their knowledge, the first attack detector operating on DETR-family queries.

  3. How does the paper address this problem?

    CMED configures experts according to the representation where attack traces reside, then fuses them with conformal p-values and controls false alarms.

    The overall idea is to have each expert work on a representation where attack traces are visible: CMED places the supervised GASC on decoder queries together with two clean-fitted experts, backbone texture and JPEG re-encoding, into a single conformal test.

    Problem setting and full-query density scoring

    • Detection form: A frozen detector f processes image x, and the attack detector outputs g(x), where a higher score means a higher likelihood of being attacked; evaluation uses image-level AUROC between an attacked image and its clean version, plus false-alarm rates on clean and random perturbations.
    • Query representation: DETR-R50 has Q=100 queries per image, each with class logits, a 256-dimensional decoder embedding, and a box; DINO keeps the 100 queries with the highest class probability, and when no logit exceeds zero they are labeled no-object.
    • Class-conditional density: Each query is scored against the clean density for its predicted class (including no-object); classes with fewer than 200 training queries use the density of a preset second-choice class instead.
    • Seven scores and aggregation: MSP, negative energy, logit/embedding Mahalanobis, logit GMM, and logit/embedding KDE; 12 aggregations are selected on the validation set by minimax regret, and the final score is the sum of the lowest 20 per-query scores.

    Supervised expert GASC

    • Structure: Each query's features pass through a shared two-layer MLP (128 units), then gated attention pooling: a_i \propto \exp(w^\top(\tanh(V\phi(u_i))\odot\sigma(U\phi(u_i)))). This weighting lets a few informative queries dominate the image score and is invariant to query order.
    • Inputs and training: Feature groups are L, E, D, L+D, or L+E+D; training uses weighted binary cross-entropy, AdamW, and early stopping on held-out training images.
    • Training data: Uses the detector's own training images, 5,984 for KITTI and a seeded 6,000 for BDD100K; attacks are regenerated, and random-sign noise at the same budget for both budgets is added as a negative class.
    • Leave-one-family-out selection: For PGD (including PGD-Fab), APGD, L∞ vanishing, and patches, one family is held out per fold and is not used for training or model selection; each fold selects LR, GBT, or GASC from 70 designs by validation AUROC on the training families.

    Two clean-fitted experts

    • Texture anomaly: Local features of the frozen ResNet-50 backbone are 3×3 average pooled, then mapped to 256 dimensions by a fixed Gaussian random projection; the image score is g2(x)=maxu,vminm∈ M|vuv(x)−m|2, i.e., the maximum over local descriptors of the nearest distance to the clean memory bank.
    • Selection without attack data: Layers and aggregation are selected from nine candidates on synthetic local anomalies; typically layer 2 with 100 locations per clean image, and for KITTI a preset rule uses layer 1 with a denser bank of 500 locations per image.
    • JPEG re-encoding: Re-encode at quality 75, bidirectionally match confident detections with IoU≥0.5 between the two outputs, compute class-aware inconsistency, and take the mean of the largest three terms; for KITTI, the same measurement on DINO is also used as a fourth expert.

    Calibration, fusion, and attack budgets

    • Conformal fusion: Each expert's score is converted to a p-value relative to the clean validation set, and an alarm is raised when min p≤α/J for J experts, with α=0.05; the authors state that when clean calibration and test images are exchangeable, the clean false-alarm rate is bounded by α, and the fusion has no learned weights.
    • Final system: BDD100K uses GASC⊕texture-anomaly expert; KITTI additionally adds two re-encoding experts on DETR and DINO, and also reports the pre-fixed GASC⊕texture variant.
    • Budget calibration: Seven budgets are swept on KITTI validation with five groups of 50 images each; the main budget ϵ=0.01 corresponds to at most one grey level per channel in the saved 8-bit image, and ϵ=0.5 corresponds to 29 grey levels, as a saturating reference for output collapse.
    • Success criterion: Positives are attacked test images and negatives are the clean versions of the same images; each attack result for the supervised system comes from the fold that withholds its family, all designs are fixed using validation only, and the test pass for each study is run only once.
  4. What experiments did the paper conduct?

    The leave-one-family-out test shows that CMED covers both types of attack, but KITTI person patches and the noise control expose exceptions.

    Experimental setup

    • Detectors under test: The authors fine-tuned KITTI DETR-R50, KITTI DINO-4scale R50, and BDD100K DETR-R50 themselves; clean AP@[.5:.95] is 0.289, 0.622, and 0.224, respectively (Table 3).
    • Data and splits: The 1,497 held-out KITTI images are split into 749 validation and 748 test; for BDD100K, a seeded 2,000-image attack set is taken from the official validation set and then split 1,000/1,000 (Table 3).
    • Attacks: PGD, PGD-Fab, APGD, L∞ vanishing, plus UVP-All, UVP-Per, and one unseen instance each; the main budget is ϵ=0.01, with an additional ϵ=0.5.
    • Baselines: PAD uses the official code, NutNet and the Jedi entropy stage are reimplementations, and EPS-AD uses the official code with the released ImageNet diffusion model and kernel.
    • Metrics and decision rule: AUROC compares an attacked image with its clean version; FPR@95TPR and conformal-threshold false alarms are also reported; whole-image bootstrap uses 1,000 iterations and paired differences use 2,000; no LLM or human review.
    • Sample sizes: Patch positives are KITTI 748 all-class/268 person and BDD100K 994/342; because of runtime, EPS-AD is scored on 200 seeded test images per dataset, and the noise control uses 50 validation images per dataset.

    Main results

    The table below shows AUROC for a single test pass, with each family in a withheld fold; according to Table 7.

    Swipe horizontally to read the table

    DatasetAttackGASCTexture expertCMED [95% CI]
    KITTIPGD / APGD / L∞ vanishing0.971 / 0.981 / 0.9700.497 / 0.497 / 0.4970.984 [0.979,0.989] / 0.986 [0.981,0.990] / 0.979 [0.972,0.984]
    KITTIUVP-All / UVP-Per0.756 / 0.5650.981 / 0.9110.966 [0.957,0.975] / 0.823 [0.790,0.854]
    KITTIUVP-All unseen / UVP-Per unseen0.754 / 0.5530.980 / 0.9100.959 [0.948,0.969] / 0.818 [0.785,0.850]
    BDD100KPGD / APGD / L∞ vanishing0.983 / 0.981 / 0.9780.500 / 0.501 / 0.4920.972 [0.966,0.978] / 0.973 [0.966,0.978] / 0.967 [0.960,0.973]
    BDD100KUVP-All / UVP-Per0.790 / 0.4960.997 / 0.9680.994 [0.991,0.997] / 0.953 [0.936,0.967]
    BDD100KUVP-All unseen / UVP-Per unseen0.747 / 0.5080.997 / 0.9670.994 [0.991,0.997] / 0.951 [0.935,0.965]
    • Complementarity: The authors state that GASC handles L∞ shifts and the texture expert handles local patches; the GASC⊕texture variant on KITTI scores 0.906/0.903 on person patches, higher than the four-expert CMED, which the authors explain as low-contribution experts still adding clean false alarms.
    • Calibration and stability: At α=0.05, test clean false alarms across the five settings are 0.051–0.076; the unseen-instance rows differ from the corresponding patch rows by no more than 0.008 in each setting.
    • Failure boundaries: The texture expert alone cannot detect ϵ=0.01 perturbations; GASC on withheld patches is only 0.496–0.790, whereas when the patches are in the training family it is 0.933–0.995 (Table 5).

    Feature shifts and decoder design

    • What was measured: The cosine between the mean feature shift of patches and the mean shift of three L∞ attacks was computed on held-out training images (Table 6).
    • Results: In E/L space, E is 0.14 for KITTI person, E/L is 0.16/0.05 for BDD100K all-class, and L is −0.82 for BDD100K person; in D space, values are 0.79–0.87 except for BDD100K person.
    • Authors' interpretation: The authors state that patches are near-orthogonal or reversed in logit and embedding, while the density-score direction is more consistent; the other four decoder-output designs gain at most +0.075 to +0.103 in validation across the three withheld patch settings.

    Cross-detector, cross-dataset, and external baselines

    • DINO transfer: A system not using DINO attack data detects DINO's own ϵ=0.01 L∞ attacks at 0.947–0.954, DETR-trained all-class/person patches at 0.947–0.948/0.869–0.873; the cross-detector supervised classifier is 0.86–0.90.
    • Cross-dataset memory bank: When the texture expert uses another dataset's memory bank, L∞ detection stays at least 0.956, all-class patches are 0.949–0.989, and person patches are 0.839–0.897.
    • Patch baselines: In Table 8, CMED outperforms NutNet, Jedi, PAD, and EPS-AD in all eight settings; for example, KITTI UVP-Per unseen is 0.818, versus NutNet 0.706, Jedi 0.553, PAD 0.513, and EPS-AD 0.501.
    • L∞ exception: In Table 9, EPS-AD on BDD100K at ϵ=0.01 scores 1.000 against clean negatives, higher than CMED's 0.962–0.970; on KITTI at the same budget, CMED is 0.975–0.990 and EPS-AD is 0.900–0.939.

    Noise negatives, natural shifts, and overhead

    • Noise control: Figure 6 uses random-sign noise at the same budget as a second negative class on 50 validation images per dataset; on BDD100K, EPS-AD's noise-vs-clean is 1.000 and attack-vs-noise is 0.508–0.716, while CMED's are 0.488–0.516 and 0.961–0.992, respectively.
    • Authors' interpretation: The authors state that EPS-AD's perfect BDD100K score comes with a response to noise and to perturbations that shuffle pixel positions, possibly reflecting a response to any single grey-level change; CMED is better in all six ϵ=0.01 validation settings.
    • Natural distribution shift: When density is fitted only on BDD100K daytime clear-weather images, the AUROC of clean night or rain/snow/fog versus clean day is 0.47–0.63, and that of attacked day at ϵ=0.01 is 0.82–0.91.
    • APDE and runtime: The texture-anomaly expert averages AUROC 0.720 on the 35 hiding patch classes of APDE, while NutNet, Jedi, and PAD are 0.506–0.633; on an A100, GASC adds 0.42 ms, and logit/embedding KDE adds 6.2/6.8 ms.

    Other ablations and analyses

    • Aggregation choice: The bottom-20 sum has mean AUROC 0.805 and largest regret 0.021, and was selected 163 times in 200 validation bootstraps (Table 1).
    • Representation differences: Paired test bootstrap shows KITTI embedding KDE is higher by +0.016 to +0.031 for each attack target, and BDD100K logit Mahalanobis is higher by 0.026–0.085.
    • Supervised design: In Table 2, E is the strongest single feature group in each fold; D alone is 0.925–0.987, and adding L to D improves the score in eight of ten settings.
    • Attack strength: At ϵ=0.01, KITTI/BDD100K vanishing objects suppressed is 41.3%/49.3%, and at ϵ=0.5 it is 88.7%/57.3% (Table 4).
    • Implementation check: In a sample of 2,000 clean KITTI embedding queries, the tree-based KDE overestimated the log-density of 17% of far points by more than one nat, by up to 228 nats; the authors switched to float64 exact log-sum-exp.
  5. What are some points that can be further explored?

    The authors list limitations such as patch instances, training seeds, latency and baseline sample sizes, and deny that this already constitutes a deployable defense.

    Limitations noted by the authors and future directions

    • Patch instance variance: Each target group follows one digital recipe, and each setting has only one unseen instance, so instance variance was not estimated (Section 8).
    • Hard setting and additional detector: KITTI person patches are the hardest setting, and the KITTI system uses a second detector at inference time (Section 8).
    • Latency not measured: The latency of the texture-anomaly expert and the re-encoding expert was not measured (Section 8).
    • Training seeds: Each design was trained with only one seed, so the intervals reflect image sampling (Section 8).
    • Baseline evaluation scale: Because of cost, EPS-AD was scored only on 200 test images per dataset, and its random-noise response was checked only on 50 validation images per dataset (Section 8).
    • Scope of conclusions: The test set is used by the consecutive studies listed in Appendix A; the results characterize detection performance only on the evaluated attacks and do not establish a deployable defense (Section 8).

    Scope of the experiments

    • Detectors and data: The experiments cover DETR-R50 on KITTI and BDD100K, and DINO-4scale R50 on KITTI; the external patch evaluation additionally includes the 35 hiding patch types of APDE.
    • Attack coverage: Includes PGD, PGD-Fab, APGD, L∞ vanishing, two types of universal patches, and one unseen instance per setting, with budgets ϵ=0.01 and ϵ=0.5.
    • Defense comparisons: Paired comparisons of PAD, NutNet, the Jedi entropy stage, and EPS-AD, plus checks with grey/random-noise squares, random-sign noise, and natural weather-period shifts.
    • Protocol information: The splits are asserted to be mutually exclusive in code, designs are fixed using validation only, and each study has a single test pass; the paper does not report adaptive-attack experiments.
    • Reproducibility materials: The Data availability statement says code and generated data are available on request; the paper does not state that they have been publicly released.
  6. Summarize the main content of the paper

    CMED detects both types of attacks with multiple representation experts and conformal fusion, and has noise-control and transfer evidence.

    This is a paper on adversarial attack detection for DETR-family object detectors, whose core is to have different experts read representations where different threats leave traces, rather than relying only on decoder outputs.

    • Problem: Whole-image L∞ perturbations and local patches can both cause missed detections or fabricated objects; the authors find that a decoder-output classifier trained only on L∞ attacks struggles to detect withheld patches.
    • Method: All queries (including no-object) first receive clean class-conditional density scores, then GASC learns image scores with gated attention; the backbone texture anomaly and JPEG re-encoding experts are fitted only on clean images, and CMED fuses them by taking the minimum of conformal p-values.
    • Decoder results: In Table 5, the best clean-density scorer achieves 0.875–0.942 against ϵ=0.01 L∞ attacks; GASC achieves 0.970–0.983 on the withheld L∞ family on KITTI and BDD100K, but only 0.496–0.790 on withheld patches.
    • CMED main results: In Table 7, KITTI's withheld/unseen patches are 0.818–0.966, BDD100K's are 0.951–0.994, and L∞ detection remains 0.967–0.986; clean false alarms are 0.051–0.076 at α=0.05.
    • Transfer and comparison: Without DINO attack data, detection of DINO's own L∞ attacks is 0.947–0.954; CMED outperforms NutNet, Jedi, PAD and EPS-AD on all eight patch settings in Table 8.
    • Exceptions and conclusion: EPS-AD reaches 1.000 on BDD100K ϵ=0.01 with only clean images as negatives, higher than CMED; after adding same-budget noise negatives, the authors state that CMED is better on all six validation settings. The authors ultimately argue that representations should be chosen according to threat traces, while making clear that these results do not yet constitute a deployable defense.

Research lineage

3 foundations · 0 follow-ups in library
Explore in knowledge graph →
This paper
Different Threats Leave Different Traces: Conformal Multi-Expert Detection of Adversarial Attacks on Detection Transformers
2026-12-01
Follow-up work

No later in-library follow-ups recorded yet.

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 3 more papers
Read originalarxiv.org