Black-box adversarial example attacks against machine learning-based election systemsBlack-Box Adversarial Example Attacks on Machine Learning based Election Systems
The authors evaluate 11 black-box adversarial attacks on 8 ballot classification models (including 20,000 physical print-scan experiments), and the authors claim the physical robustness gap for black-box attacks is larger than for white-box.
The attacker has only query access to the ballot classifier and does not know the weights or architecture; there are three black-box threat models: decision based (sees only class labels), score based (sees class probabilities), and transfer based (can query and use some data to train a synthetic model); the physical scenario assumes the attacker can query the classifier and control a compromised election printer.
- Machine learning ballot classification (determining whether a bubble is filled in) has been shown to be vulnerable to adversarial examples, which may change election results, but all prior work assumed a white-box threat model (known classifier parameters); the authors aim to analyze a more realistic black-box attacker.
- Implement and evaluate 11 black-box attacks, covering three threat models—decision based, score based, and transfer based—and four norms—l∞, l2, l1, and l0; in addition to digital experiments, build a print—scan—UNet denoising pipeline for physical attack experiments, and test two defenses, adversarial training and Barrier Zones, as well as transferability.
- In the digital domain, Square Attack is the most effective (lowest robust accuracy on 5 of 8 models); physical-domain robustness is generally higher than digital-domain robustness, and the black-box physical–digital gap is larger than the white-box gap (e.g., Square on ResNet20 has Δ=+99.6%, while white-box APGD-l∞ on CaiT has Δ=+4.0%); transferability experiments show that no model is fully robust; none of the defenses is fully robust.
- The authors describe the defense results as preliminary; existing defense techniques cannot directly solve robustness in this domain; the physical experiments cover only 8 attacks (5 query attacks out of 11 plus 3 transfer attacks), with 500 samples per model per attack; the paper has no dedicated limitations section.
- Evaluated models
- ResNet20VGG16CaiTSVMSNN VGG16SNN ResNet20ProtoPNet-VGG16ProtoPNet-ResNet20Wide Resnet
- Benchmarks
- UConn Bubbles with Marginal Marks(Combined 与 Bubbles 两个数据集)
- Metrics
- robust accuracytransferability (T = 1 − Acc)clean accuracy
The researchers targeted ballot classification models in election systems and implemented and evaluated 11 black-box adversarial example attacks. These attacks cover three black-box threat models—decision-based, score-based, and transfer-based—and span four norms: l∞, l2, l1, and l0, including query-based attacks such as ADBA, Square, SurFree, RayS, and SA-MOO, as well as APGD and PGD-family transfer attacks. The authors also printed and scanned 20,000 adversarial examples for physical testing and found that the gap between physical and digital robustness is larger for black-box adversarial examples than for white-box adversarial examples. The authors state that this is the first study of adversarial example transferability in the voting domain, and they tested two black-box defense strategies: adversarial training and barrier zones.
Paper analysis
What problem does this paper attempt to solve?
The authors analyze adversarial example attacks on machine learning ballot classifiers under a black-box threat model, covering both digital and physical (print-scan) domains.
Core question: under a black-box threat model, are adversarial example attacks against machine learning ballot classifiers in US elections (deciding whether a bubble is blank/filled) feasible, and do they remain effective in the physical world?
- Scenario and importance: machine learning models for ballot classification already achieve high accuracy, and prior work has shown they are vulnerable to adversarial example attacks; the authors argue that a single successful attack could change an election outcome and undermine the democratic process. The US VVSG 2.0 standard requires that "manufacturers shall not set specifications as proprietary," and prior work used this to assume white-box access; this paper does not make that assumption.
- Gaps in existing work: the authors note that only two prior works in the voting domain have analyzed adversarial example attacks, and all assumed a white-box threat model (known classifier parameters).
- Core observation: the authors argue that a weaker black-box threat model can still successfully attack ballot classifiers, and that the physical domain exhibits trends not seen in digital simulations.
- Paper contributions: evaluate 11 black-box attacks (covering three threat models and four norms) on 8 models in the digital domain; print and scan 20,000 adversarial examples for physical experiments; the authors claim this is the first transferability study of adversarial examples in the voting domain, and test two defenses, adversarial training and Barrier Zones.
- Threat model:
- Goal: make the classifier misclassify a bubble (e.g., classify blank as filled); Figure 2 presents a scenario for changing an election outcome this way.
- Knowledge: does not know model weights or architecture; decision based sees only class labels, score based sees class probabilities, transfer based can additionally train a synthetic model and access part of the input data.
- Capability: has query access to the classifier; the physical scenario assumes the attacker can query the classifier and control a compromised election printer.
- Victim system: a machine learning ballot classifier in the US election pipeline (including printing, scanning and UNet denoising stages).
What related research exists?
Related work is divided into four groups: ballot classification, adversarial attacks in the voting domain, black-box attack methods, and defenses; this paper extends the threat model from white-box to black-box.
Machine learning for ballot classification
- Barretto et al. (2021), Shrestha and Acharya (2025), Thuan et al. (2025) — use architectures such as CNNs for ballot scan/symbol and vote-count classification; Zhao et al. (2023) use deep learning for ballot vote counting; there is also work on Siamese networks and Vision Transformers. On this basis, the authors state that ballot classification is a feasible machine learning task.
Adversarial example attacks in the voting domain
- Mahmood et al. (2025, CCS '25) — "Busting the Paper Ballot", analyzing adversarial machine learning in voting; Kamal et al. (2026) — analyzing physical adversarial example threats to election systems. The authors point out that these two are the only adversarial example attack analyses in the voting domain, and both consider only the white-box threat model; this paper's imperceptible perturbation threshold and physical experiment standards follow these two works.
Black-box adversarial attack methods (attacks directly implemented in this paper)
- Query/decision-based: ADBA (Wang et al., 2025), RayS (Chen and Gu, 2020), SurFree (Maho et al., 2021); score based: Square Attack (Andriushchenko et al., 2020, one of the AutoAttack benchmarks), SA-MOO (Williams and Li, 2023).
- Transfer-based: Adaptive Transfer Attack (Mahmood et al., 2022), with the underlying white-box attacks taken from the APGD series (Croce and Hein, 2019–2021) and FGSM (Goodfellow et al., 2015); the transferability principle is based on Liu et al. (2017) and Papernot et al. (2017).
Defenses
- Adversarial training (Wang et al., 2023, improved based on diffusion models) and Barrier Zones (Mahmood et al., 2022, a multi-model defense designed specifically for black-box attacks); there is also theoretical work on the robustness–accuracy trade-off (Zhang et al., 2019).
Baselines and benchmarks: the attack baselines are the 11 attacks themselves; the defense baselines are AT and BARZ; the datasets are UConn Bubbles with Marginal Marks (Combined and Bubbles). The authors position this paper as: extending adversarial analysis in the voting domain from white-box to the more realistic black-box, and adding transferability research and physical experiments.
How does the paper address this problem?
Implements 11 attacks under three black-box threat models, evaluates 8 models in the digital domain, then conducts physical experiments through a print-scan-UNet pipeline, and measures transferability and two defenses.
Overall approach: based on US election standards (VVSG 2.0), set a realistic black-box threat model, systematically evaluate 11 black-box attacks on 8 ballot classification models, compare the digital and physical domains, then use transferability studies and two defenses to examine room for robustness improvement.
Threat models and attack selection
- Three threat models: decision based (queries return only hard label 0/1), score based (returns class probabilities p_blank, p_filled), transfer based (can query and train a synthetic model).
- 11 attacks: decision based uses ADBA (l∞), RayS (l∞), SurFree (l2); score based uses Square (l∞), SA-MOO (l0); transfer based uses the ATA framework to run six white-box attacks (APGD-l∞, APGD-l1, APGD-l2, PGD-l0, PGD-l0+l∞, PGD-l0+σ).
- ATA procedure: query the classifier with unlabeled data to obtain labels, train VGG11 as a synthetic model, then use FGSM (ε=0.01) to generate new samples and iteratively expand the training set, and finally run white-box attacks on VGG11 and transfer them to the target classifier.
Attack scenario (Figure 2)
- The attacker injects an imperceptible perturbation into the Candidate A bubble region, causing the classifier to misclassify blank as filled; the authors describe three voting situations: if the voter votes A, the ink covers the perturbation and counting proceeds normally; if the voter does not vote, A gains an extra vote; if the voter votes B, an overvote is triggered, and in the worst case the ballot is invalidated.
Data and models
- Datasets: two subsets of UConn Bubbles with Marginal Marks, both 40×50 grayscale images; Combined contains 42,679 training / 10,652 validation images (including synthetic marginal marks), Bubbles contains 28,589 training / 7,137 validation images (blank/filled only).
- 8 models: ResNet20, VGG16, CaiT, linear SVM, SNN VGG16, SNN ResNet20 (SpikingJelly, 4 timesteps), ProtoPNet-VGG16, ProtoPNet-ResNet20 (40 prototypes each); training hyperparameters in Table 4.
- Physical pipeline: HP LaserJet Pro MFP 3101fdw printing (96 samples per page, with a black bar at the bottom of the page for scanner calibration) → Ricoh Fujitsu fi-7160 scanning to TIFF → ECC alignment and affine transformation → cropping 40×50 images → UNet autoencoder denoising → classification.
Evaluation protocol
- Samples: in the digital domain, for each model and each attack, 500 correctly classified, class-balanced samples from the Bubbles validation set; in the physical domain, 500 samples similarly selected from 1000 printed-and-scanned clean samples (250 blank, 250 filled).
- Imperceptibility thresholds: following the thresholds set by majority vote of six US election security experts in Kamal et al. (2026): l∞ attacks ε=16/255, APGD-l1 ε=20, l0 attacks k=1, PGD-l0+l∞ ε=64/255; the only deviation is l2 attacks using ε=2 (the authors state that below this value SurFree has no successful samples).
- Metrics: robust accuracy (the proportion still correctly classified on adversarial examples); transferability is defined as T = 1 − Acc, i.e., the error rate of the target model on adversarial examples generated by another model.
- Defenses: AT trains a Wide ResNet following Wang et al. (2023); BARZ combines multiple models by absolute consensus voting, and the main text reports BARZ-2 (CaiT + SNN ResNet20, selected for low transferability).
What experiments did the paper conduct?
Digital domain: 11 attacks × 8 models; physical domain: 8 attacks × 8 models (20,000 print-scan cases); ADBA transferability matrix and AT/BARZ defense evaluation.
Experimental Setup
- Models evaluated: ResNet20, VGG16, CaiT, SVM, SNN VGG16, SNN ResNet20, ProtoPNet-VGG16, ProtoPNet-ResNet20, all trained on Combined-Grayscale; clean accuracy on the Combined validation set is >97% for all (Table 3).
- Attacks and hyperparameters: 11 black-box attacks, with a query budget mostly of 10,000 (60,000 for Square), see Table 5 for details; the synthetic model for transfer attacks is VGG11, trained on 32,000 samples (2,000 bubble samples + 30,000 FGSM adversarial examples, Table 17).
- Datasets: the Bubbles validation set of UConn Bubbles with Marginal Marks (source of attack samples) and Combined (training).
- Metrics: robust accuracy; physical−digital difference Δ = Physical Robustness% − Digital Robustness%; transferability T = 1 − Acc.
- Sample size: 500 class-balanced samples per model per attack; the physical experiments printed and scanned a total of 32,000 adversarial examples (8 attacks × 8 models × 1 perturbation value, Section 6.1), while the abstract says 20,000.
- Number of repetitions: not reported in the paper.
Main Results
Robust accuracy in the digital domain at the imperceptible threshold (from Table 6; bold indicates the most effective attack for that model):
Swipe horizontally to read the table
Model ADBA RayS Square SurFree SA-MOO APGD-l∞ APGD-l1 APGD-l2 PGD-l0 PGD-l0+l∞ PGD-l0+σ ResNet20 0.270 0.416 0.004 0.500 0.816 0.500 0.938 0.994 1.000 1.000 0.996 VGG16 0.498 0.924 0.496 0.500 0.500 0.500 0.820 0.500 1.000 1.000 1.000 CaiT 0.494 0.498 0.500 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 SVM 0.500 0.500 0.500 0.966 1.000 0.598 0.992 0.790 1.000 1.000 1.000 SNN VGG16 0.520 0.838 0.456 0.616 0.996 0.500 0.996 0.994 1.000 1.000 1.000 SNN ResNet20 0.496 0.522 0.020 0.496 1.000 0.990 1.000 0.998 1.000 1.000 1.000 ProtoPNet-VGG16 0.500 0.606 0.500 0.500 0.500 0.500 0.500 0.500 0.546 0.916 0.596 ProtoPNet-ResNet20 0.500 0.500 0.334 0.500 0.500 0.558 0.614 0.500 0.500 1.000 0.502 - Threat model has a large impact: the authors state that Square Attack is the most effective, achieving the lowest robust accuracy on 5 of 8 models; considering only hard-label attacks, ADBA is the most effective.
- Transfer attacks are generally ineffective: the authors state that ATA w/PGD-l0 achieves a robust accuracy of 1.000 on 6 of 8 models; the best transfer attack, ATA w/APGD-l∞, is still worse than Square on 7 of 8 models.
- Norm comparison: the authors state that in the digital domain the l∞ query attack is the most effective and l0 (k=1) is the weakest; SurFree fails against CaiT (1.000).
Physical Attack Experiments
- What was measured: the robust accuracy of 5 query attacks + 3 transfer attacks on 8 models after printing and scanning (Table 8), compared with the digital domain (Table 9).
- Results: physical-domain robustness is generally higher; ResNet20, VGG16, SNN VGG16, and ProtoPNet-VGG16 reach 1.000 against all 5 query attacks; CaiT is 0.666 under RayS and 0.686 under ADBA. The largest Δ is +99.6% for Square on ResNet20, whereas white-box APGD-l∞ on CaiT has Δ=+4.0% (cited from [15]); the authors state that the physical–digital robustness gap is larger for black-box attacks than for white-box attacks.
- Exception: the transfer attack ATA w/APGD-l1 is actually more effective in the physical domain, e.g., SNN VGG16 physical 0.522 vs digital 0.996 (Δ=−47.4%).
Transferability Study
- What was measured: physical adversarial examples generated by ADBA on 8 models were evaluated against each other; the transfer matrix is in Table 11 and Figure 5; the authors state that this is the first transferability study in the voting domain.
- Results: no model has a transfer rate of 0.000; ResNet20, which is robust to all attacks in the physical domain, is still broken by samples generated by ProtoPNet-VGG16 (transfer rate 0.6%); samples generated by SNN VGG16 have a transfer rate of 0.500 against all other models.
- Authors' interpretation: single-model query attack evaluations cannot accurately reflect real robustness.
Defense Evaluation
- What was measured: the accuracy of AT (Wide ResNet) and BARZ-2 (CaiT + SNN ResNet20) in the digital and physical domains (Table 10).
- Results: both have a clean accuracy of 1.000 on the Combined validation set; BARZ-2 is 1.000 for all four attacks in the digital domain and 0.998 for SurFree (ε=5) in the physical domain; AT is 0.774 for SurFree (ε=5) in the digital domain, and the physical domain is not reported ("-" in the table).
- Authors' interpretation: the authors state that neither defense is fully robust and that existing out-of-domain defense techniques cannot directly solve this problem; Appendix Table 34 shows that 8 BARZ configurations (2–6 models) all have an accuracy of 1.0000 under ADBA (ε=8/255 and 16/255).
Other Ablations and Analyses
- Full perturbation-range digital results are in Appendix Tables 12–23: e.g., ADBA at ε=255/255 reduces the robust accuracy of all models to 0.000 (Table 12).
- Full perturbation-range physical results are in Tables 24–28: e.g., SurFree in the physical domain at ε=5 gives CaiT 0.323 (Table 28).
- Physical transfer attack results are in Tables 30–32; the digital-domain ADBA transfer matrix (ε=8/255) is in Table 33.
- SurFree initialization changed to ADBA-style block mutation (Appendix A.3): the authors state that standard Gaussian initialization consistently fails on ballot data, and the modification guarantees finding an initial adversarial point within 1,000 queries.
- ProtoPNet analysis (Appendix A.1): the authors state that, looking at accuracy alone, interpretable models are as vulnerable to black-box attacks as traditional models.
What are some points that can be further explored?
The authors state that the defense results are preliminary and existing defenses are not fully robust; the physical experiments cover 8 attacks, and the paper has no dedicated limitations section.
Limitations and future directions noted by the authors
- Defenses are not fully robust (Section 7.2): the authors state that the defenses tested are not fully robust in either the physical or digital domain, and consider that achieving robustness in this domain cannot rely on directly applying existing defense techniques from other domains, which is a promising future research direction.
- Defense results are preliminary (Section 7.2): the authors use "preliminary defense results" to describe the results in Table 10; the main text gives only some numbers for BARZ-2 and AT, with more BARZ configurations placed in the appendix.
- Summary in the conclusion (Section 8): the authors state that current conventional defense implementations cannot provide perfect robustness.
- The paper has no dedicated Limitations section; the above all comes from the experimental analysis and conclusion.
Scope of experimental coverage
- There are 8 models tested: ResNet20, VGG16, CaiT, SVM, SNN VGG16, SNN ResNet20, ProtoPNet-VGG16, ProtoPNet-ResNet20 (Table 2).
- The digital domain covers all 11 attacks; the physical domain covers 8 of them (5 query attacks + APGD-l∞/l1/l2 transfer attacks), and the three transfer attacks PGD-l0, PGD-l0+l∞, and PGD-l0+σ have only digital results (Section 6.1).
- Each model and each attack uses 500 class-balanced samples; the synthetic model for transfer attacks is VGG11, trained on 32,000 samples (Table 17, 29).
- Defense evaluation covers only two defenses, AT and BARZ; the physical domain results for AT are not reported (shown as "-" in Table 10).
- The paper does not report the number of experimental repetitions or statistical significance tests; the imperceptible threshold follows the standard determined by majority vote of six experts in Kamal et al. (2026) (Section 5).
Summarize the main content of the paper
The authors systematically evaluate the threat of black-box adversarial attacks to ballot classifiers: effective in the digital domain, weaker but still feasible in the physical domain, and transfer attacks can break all models.
An attack analysis paper on the security of machine learning ballot classifiers in US elections, extending the threat model from the white-box of prior work to the more realistic black-box.
- Problem: ballot bubble classification (blank/filled) models are vulnerable to adversarial example attacks, which could change election results; previously there were only two adversarial attack studies in the voting domain, and both assumed known model parameters.
- Method: implement 11 black-box attacks, covering three threat models—decision based, score based, and transfer based—and four norms—l∞, l2, l1, and l0; conduct digital evaluations on 8 models (CNN, Transformer, SVM, SNN, ProtoPNet), and build a print—scan—UNet denoising pipeline for physical experiments; also conduct transferability research and evaluations of two defenses, AT and BARZ.
- Digital domain results: Square Attack is the most effective, with the lowest robust accuracy on 5 of the 8 models, as low as 0.004 on ResNet20 (ε=16/255, Table 6); transfer-based attacks are mostly ineffective, with ATA w/PGD-l0 at 1.000 on 6 models.
- Physical domain results: robustness is generally higher than in the digital domain, and the authors state that the physical—digital gap for black-box is larger than for white-box: Square on ResNet20 has Δ=+99.6%, whereas white-box APGD-l∞ on CaiT has Δ=+4.0% (Table 9); 4 models reach 1.000 against all query attacks.
- Transferability and defenses: the authors state this is the first transferability study in the voting domain, with a model-free transfer rate of 0; ResNet20, which is fully robust in the physical domain, still has a 0.6% transfer rate (Table 11); neither AT nor BARZ-2 is fully robust (AT is 0.774 in the digital domain under SurFree, Table 10).
- Authors' conclusion: black-box attacks are a practical and physically realizable threat to election systems; single-model query attack evaluations are insufficient to reflect real robustness; existing conventional defenses cannot provide perfect robustness.