2026年11月25日
Technology Watch

從實驗室到產業,追蹤新技術的路徑

← 回首頁

arXiv

選票分類器在掃描器前面臨真正考驗

AI 繪製的示意圖

選舉 AI 真正的安全性考驗,將出現在從紙本選票到掃描器再到人工稽核的完整流程中,而不只是乾淨的數位影像。論文作者以 11 種黑箱攻擊方法測試 8 種選票分類器,接著將遭修改的樣本列印、掃描並去噪。如果這些影響在真實選舉設備上也成立,分類器之間的意見不一致,就可能將可疑選票送交有紀錄的人工審查,而不是悄悄改變一張選票的結果。

選票讀取器在一般影像上的準確率可以超過 97%,但當某個標記是為了欺騙它而設計時,仍可能犯下危險的錯誤。在洛杉磯縣,選舉工作人員和選民不能把乾淨選票影像上的高分,視為每個印出的圓圈都會被正確讀取的證明。這項技術目前仍只是被提議用於美國選舉系統,尚未完全整合。一個被誤讀為空白或填滿的圓圈,可能把一票變成超額投票,或變成非預期的選擇。

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. 出處: Black-Box Adversarial Example Attacks on Machine Learning based Election Systems(arXiv)

為什麼乾淨的選票還不夠

選票分類器是一種機器學習系統,用來判斷一個圓圈是空白還是填滿。它通常的準確率指標衡量的是一般錯誤:它有多常能正確判斷正常範例。這些指標並未顯示,當某個標記被刻意設計成跨越系統內部的決策邊界時,系統會如何處理。

這篇論文研究的是黑箱攻擊。攻擊者看不到模型的設計或權重。相反地,攻擊者會向系統送出範例,並從系統的回覆中學習。以決策為基礎的攻擊只會揭示標籤,例如「空白」或「填滿」。以分數為基礎的攻擊還會回傳類似信心程度的數字,給攻擊者更多線索。攻擊可以改變機器看到的內容,卻不必讓查看選票的人明顯察覺這些改動。

紙張又增加了另一層因素。碳粉、紙張、掃描器光學元件、對齊方式、影像處理和去噪,都可能在分類器收到影像前改變一個細微的改動。這表示,在數位圖片上成功的攻擊,列印並掃描後可能會消失。這也表示,單靠數位準確率無法回答選舉所面臨的問題。

掃描器成為測試的一部分

作者以 11 種黑箱攻擊方法,測試 8 種選票分類器,包括神經網路、transformer、線性支援向量機,以及以原型為基礎的系統。在進行攻擊前,這些模型在驗證影像上的得分都超過 97%。

接著,研究人員讓實驗經過一條實體流程。他們使用 HP LaserJet 印表機列印選票圓圈樣本,用 Ricoh fi-7160 掃描,再將影像交給 UNet 去噪器處理,最後送入分類器。在論文的實體實驗方法中,他們表示列印並掃描了 32,000 個對抗性範例;但摘要寫的是 20,000 個。

印表機和掃描器消除了許多在數位環境中有效的攻擊。在所選設定下,數種以查詢為基礎的攻擊,對部分受測模型達到了完美的實體強健準確率。不過,實體通道並未讓所有威脅消失。在報告的測試中,其中一種攻擊將 CaiT 模型的強健準確率降至 0.686,另一種則降至 0.666。研究人員也發現,為某個模型製作的改動範例,在列印和掃描後可能影響另一個模型,其中包括一個以原型為基礎的模型對 ResNet20 報告的 0.6% 轉移率。

一項將不確定案例送入兩個模型共用的隔離區的防禦方法,在其防禦表中對列出的攻擊報告了完美準確率。然而,作者仍表示,他們測試的防禦方法,無論在數位領域或實體領域,都沒有完全強健。重要的結果並不是某個特定模型勝出,而是安全性取決於從紙張到掃描器再到決策的整條路徑。

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? 出處: Black-Box Adversarial Example Attacks on Machine Learning based Election Systems(arXiv)

更安全的選票倉庫會怎麼做

在縣級選舉倉庫中,如果掃描後的選票圓圈導致獨立設計的分類器意見不一致,就可以將它擱置,交由有紀錄的人工審查,而不是讓它成為一個看不見的機器決定。可疑標記將有一條路徑回到紙本證據,而決定也能保持可稽核性。

只有在選舉系統保留紙本紀錄、測試實際使用的印表機、掃描器、選票版面和影像處理步驟,並且為審查預留足夠能力的情況下,這種未來才有可能實現。系統也需要進行端到端的列印—掃描測試,而不是只測試像素。乾淨影像上的高分,或針對單一模型測試過的防禦方法,單靠自身都無法承擔這項任務。

來源

arXiv,「Black-Box Adversarial Example Attacks on Machine Learning based Election Systems」