Busting the Paper Ballot: Voting Meets Adversarial Machine Learning

Kaleel Mahmood, Caleb Manicke, Ethan Rathbun, Aayushi Verma, Sohaib Ahmad +3 more
6/17/2025
cs.CRcs.CVcs.LG

No official code found. Best implementation: VoterCenter/Busting-the-Ballot (1 star, BSD-3-Clause, last commit 2026-01-26).

Abstract

We show the security risk associated with using machine learning classifiers in United States election tabulators. The central classification task in election tabulation is deciding whether a mark does or does not appear on a bubble associated to an alternative in a contest on the ballot. Barretto et al. (E-Vote-ID 2021) reported that convolutional neural networks are a viable option in this field, as they outperform simple feature-based classifiers. Our contributions to election security can be divided into four parts. To demonstrate and analyze the hypothetical vulnerability of machine learning models on election tabulators, we first introduce four new ballot datasets. Second, we train and test a variety of different models on our new datasets. These models include support vector machines, convolutional neural networks (a basic CNN, VGG and ResNet), and vision transformers (Twins and CaiT). Third, using our new datasets and trained models, we demonstrate that traditional white box attacks are ineffective in the voting domain due to gradient masking. Our analyses further reveal that gradient masking is a product of numerical instability. We use a modified difference of logits ratio loss to overcome this issue (Croce and Hein, ICML 2020). Fourth, in the physical world, we conduct attacks with the adversarial examples generated using our new methods. In traditional adversarial machine learning, a high (50% or greater) attack success rate is ideal. However, for certain elections, even a 5% attack success rate can flip the outcome of a race. We show such an impact is possible in the physical domain. We thoroughly discuss attack realism, and the challenges and practicality associated with printing and scanning ballot adversarial examples.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Corresponding repo for "Busting the Ballot: Voting Meets Adversarial Machine Learning".

11Shell, MATLABMay 30, 20258 months agoBSD-3-Clause

Similar Papers

Cite this paper

@article{mahmood2025busting,
  title  = {Busting the Paper Ballot: Voting Meets Adversarial Machine Learning},
  author = {Kaleel Mahmood and Caleb Manicke and Ethan Rathbun and Aayushi Verma and Sohaib Ahmad and Nicholas Stamatakis and Laurent Michel and Benjamin Fuller},
  year   = {2025},
  eprint = {2506.14582},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.14582v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.14582.svg)](https://codeofpaper.com/paper/2506.14582)

Discussion