November 24, 2026
Technology Watch

From the laboratory to industry: following new technology on its way

← Front page

arXiv

Ballot classifiers face their real test at the scanner

Image drawn by AI

Election AI will face its real security test in the full journey from printed paper to scanner to human audit, not in a clean digital image alone. The paper’s authors tested 11 black-box attack methods against eight ballot classifiers and then printed, scanned, and denoised the altered samples. If those effects hold on real election equipment, a disagreement between classifiers could send a suspicious ballot to documented human review instead of silently changing a vote.

A ballot reader can be more than 97% accurate on ordinary images and still make a dangerous mistake when a mark is designed to fool it. In Los Angeles County, election workers and voters cannot treat a strong score on clean ballot images as proof that every printed bubble will be read correctly. The technology is still being proposed for US election systems rather than fully integrated. A misread blank or filled bubble could turn a vote into an overvote or an unintended choice.

Refer to caption
Figure 2. An attack on an election system using adversarial examples. Under this attack scenario three outcomes are possible. In two of the cases, a vote is given to the attacker’s preferred candidate (Candidate A). In one case, neither candidate receives a vote. The main focus of this work is determining which black-box adversarial example method is most effective when physically realized, for an election attack.In Figure [2](https://arxiv.org/html/#S2.F2 "Figure 2 ‣ 2.4. How an Attacker Can Flip an Election ‣ 2. Adversarial Threat Model ‣ Black-Box Adversarial Example Attacks on Machine Learning based Election Systems") we illustrate an attack scenario that demonstrates how adversarial perturbations on printed ballots can alter the outcome of an election. Consider a election race between two candidates, Candidate A and Candidate B. Voters fill in a bubble next to their preferred candidate. A machine learning classifier reads each bubble and determines whether it is filled or blanked. Source: Black-Box Adversarial Example Attacks on Machine Learning based Election Systems(arXiv)

Why a clean ballot is not enough

A ballot classifier is a machine-learning system that decides whether a bubble is blank or filled. Its usual accuracy measures ordinary mistakes: how often it gets normal examples right. They do not show how it handles a mark deliberately made to cross the system’s internal decision boundary.

The paper examines a black-box attack. The attacker does not see the model’s design or its weights. Instead, the attacker sends examples to the system and learns from its replies. A decision-based attack reveals only the label, such as “blank” or “filled.” A score-based attack also returns confidence-like numbers, giving the attacker more clues. An attack can change what the machine sees without making the alteration obvious to a person looking at the ballot.

Paper adds another layer. Toner, paper, scanner optics, alignment, image processing, and denoising can all change a tiny alteration before the classifier receives the image. That means a successful attack on a digital picture may disappear when printed and scanned. It also means digital accuracy alone cannot answer the election question.

The scanner becomes part of the test

The authors tested 11 black-box attack methods against eight kinds of ballot classifiers, including neural networks, a transformer, a linear support-vector machine, and prototype-based systems. Before the attacks, the models scored more than 97% on validation images.

Then the researchers moved the experiment through a physical pipeline. They printed ballot-bubble samples on an HP LaserJet printer, scanned them with a Ricoh fi-7160, passed the images through a UNet denoiser, and sent them to the classifier. In the paper’s physical-experiment methods, they say they printed and scanned 32,000 adversarial examples; the abstract says 20,000.

The printer and scanner erased many attacks that worked in the digital setting. At the selected settings, several query-based attacks had perfect physical robust accuracy against some of the tested models. But the physical channel did not make every threat vanish. One attack reduced the CaiT model’s robust accuracy to 0.686 in the reported tests. Another reached 0.666. The researchers also found that an altered example made for one model could affect another model after printing and scanning, including a reported 0.6% transfer from one prototype-based model to ResNet20.

A defense that sent uncertain cases into a barrier zone shared by two models reported perfect accuracy against the listed attacks in its defense table. The authors nevertheless say none of the defenses they tested was completely robust in either the digital or physical domain. The important result is not that a particular model wins. It is that security depends on the whole route from paper to scanner to decision.

Refer to caption
Figure 1. End-to-end physical attack pipeline. Adversarial examples are generated using a black-box attack method, printed, scanned and converted into a PyTorch tensor for model prediction. This setup models the attack process that would hypothetically be used during a U.S. election to alter the outcome in favor of one candidate.In this paper, we analyze the security of machine learning models in the voting domain. Specifically in U.S. elections, the primary machine learning task is ballot classification: deciding whether a bubble is either blank or filled. Two natural questions arise based on the application of machine learning for ballot classification. First, how viable are machine learning models for ballot classification? Second, how much machine learning/AI is currently used in elections? Source: Black-Box Adversarial Example Attacks on Machine Learning based Election Systems(arXiv)

What a safer ballot warehouse would do

At a county election warehouse, a scanned bubble that makes independently designed classifiers disagree could be set aside for documented human review instead of becoming an invisible machine decision. A suspicious mark would have a path back to the paper evidence, and the decision would remain auditable.

That future is possible only if election systems keep the paper record, test the actual printers, scanners, ballot layouts, and image-processing steps, and build in enough capacity for review. They would also need end-to-end print-scan tests rather than tests of pixels alone. A high clean-image score, or a defense tested against one model, cannot carry that burden by itself.

Sources

arXiv, “Black-Box Adversarial Example Attacks on Machine Learning based Election Systems”