Auditing Distributed Elections for Metric-Inconsistent Strategic Reports

In many real elections, votes are not counted in one place. Districts first produce a summary, such as a local winner or a local ranking of candidates, and a central body then combines those summaries. Theory tells us how much worse such two-stage systems can be than an ideal central planner, but almost every guarantee assumes voters report honestly. A strategic ballot is a perfectly legal ranking. One district coordinating on a tactical ranking is just another district result. Nothing local looks wrong. This is the same blind spot that industrial inspection calls a logical anomaly: every part of the product looks fine, but the parts are in an arrangement the rules forbid. We propose to borrow that idea. The global rules come from the geometry of preferences. If voters and candidates truly sit in a shared space and voters prefer nearby candidates, then the district summaries must be jointly explainable by one common placement of candidates. Some kinds of strategic behavior break that joint explanation even when every individual report is legal.

The concrete contribution has three parts. The first is an exact, executable consistency audit that runs on what the central aggregator actually sees. The second is a score: how many voters must be edited before the reports become jointly explainable. The third is a mechanism that stays deterministic when the audit passes and hedges only when it fails. The open question this answers is narrower than "detect manipulation." It asks which strategic manipulations of distributed elections are visible as violations of shared-geometry constraints, and whether acting on that visibility recovers welfare without resorting to an always-on lottery.

Core Claim

Distributed voting research measures inefficiency by distortion, the worst-case ratio between the social cost of the chosen candidate and that of the best candidate (Distortion in Social Choice Problems: The First 15 Years and Beyond). This work supplies the motivating gap. The distortion of distributed voting shows that compressing districts into summaries discards preference intensity. The distortion of distributed metric social choice composes local and global rules into bounds of $\alpha+\beta+\alpha\beta$, for example 11 for general ordinal rules and 7 for the line-metric average-of-averages objective. Tight Bounds on the Distortion of Randomized and Deterministic Distributed Voting proves a deterministic floor of 5 for the max-of-averages objective and reaches 3 only by randomizing the global stage. That last paper explicitly names strategic voting as the main threat to its guarantees and leaves robustness open.

Our claim has three parts. First, sincere reports always pass a shared-geometry audit. On the line, honest voter rankings are single-peaked on the true candidate order, and so are honest district majority summaries. The audit therefore has zero false alarms on sincere input by construction. Second, some strategic patterns are metric-visible: they produce reports that no common candidate placement can explain. Examples are burying a rival below a far candidate, and districts whose summaries imply incompatible candidate orders. Other patterns are metric-invisible, such as compromise voting, where a voter ranks a nearby viable candidate first. Such a ballot is indistinguishable from an honest voter standing at a slightly different spot. Third, a mechanism gated on the audit score keeps the deterministic sincere guarantee and improves realized welfare under visible manipulation. On invisible manipulation it should degrade no worse than the ungated rule. We will test this degradation empirically and try to bound it theoretically.

The audit score for a set of district reports $R$ is

$$ s(R) = \min_{\sigma} \; \frac{1}{n}\,\big|\{\, i : \text{report } i \text{ is not single-peaked on axis } \sigma \,\}\big|, $$

where $\sigma$ ranges over candidate orderings and $n$ is the number of reports seen by the aggregator. These reports are district rankings, plus sampled ballots when they are available. The score is 0 for every sincere line-metric profile. The minimizing axis together with the violating reports form an interpretable certificate. This plays the role of the human-readable diagnostics in LogiCode.

Research Program

The anomaly-detection literature supplies the framing and a constraint on method. Reconstruction and patch-matching detectors fall into a "local validity trap" on logical anomalies. When a part is missing, DRÆM and Reverse Distillation reconstruct clean background. AnomalyDINO misses swapped parts because each patch looks normal. That negative evidence argues against per-district outlier scoring as the core detector.

Two positive designs exist. LogiCode turns expert rules into executable checks with readable diagnostics. Its weak point is LLM code generation, with roughly 60% first-pass syntactic success. In our setting the rules are mathematically exact, so we write them as solvers rather than generate them. Contextual Affinity Distillation pairs a local student with a global student that learns pairwise affinities across regions. We use this design only as a learned competitor, for settings where exact rules are intractable.

The first workstream builds the audit at three levels. The line-metric audit tests joint single-peakedness of district summaries, and of sampled ballots when available, against a common axis. It returns the minimal-edit score and the certificate. The two-dimensional Euclidean audit tests whether the reports admit a joint candidate placement. Here exact checking is hard, so we use a linear-programming relaxation and treat the gap between relaxation and truth as a measured quantity. The truncation audit applies to instant runoff voting (IRV), where voters rank candidates and the last-place candidate's votes are transferred until someone has a majority. Ballot Length in Instant Runoff Voting shows that changing the allowed ballot length can change the winner in 25% of 168 PrefLib elections, and that honest truncation is a modeling assumption. Our truncation audit checks whether short ballots are consistent with prefixes of single-peaked full rankings, so it can flag strategic reordering under length caps.

The second workstream builds the gated mechanism. When $s(R)\le\tau$, it applies a fixed deterministic distributed rule; we use the Pareto-efficient local rules from the tight-bounds paper. When the score exceeds $\tau$, it hedges. The hedge randomizes over district representatives with weight that decreases in each district's contribution to the violation certificate, or falls back to a robust deterministic tie-break. Under sincerity the mechanism coincides with its deterministic rule. It therefore inherits that rule's worst-case bound, which is 5 to 7 depending on the objective, and does not reach the randomized bound of 3. We state this trade-off openly: the target is settings where an always-on lottery is unacceptable.

The third workstream is theory. We will characterize the metric-invisible manipulation class as profiles explainable by relocating manipulators. We will then try to bound the gated mechanism's distortion in terms of the minimal relocation needed. The conjecture is graceful degradation that is linear in relocation distance on the line.

Baselines

The naive reference point is the ungated deterministic distributed rule: Pareto-efficient local rules composed with a deterministic global rule, as analyzed in Tight Bounds on the Distortion of Randomized and Deterministic Distributed Voting, run on reports without any audit. Every method will see the same simulated and PrefLib-derived instances. The gated mechanism must match it on sincere instances; by construction the two are identical there. It counts as a win if it lowers mean and 95th-percentile realized distortion under visible manipulation.

The strongest existing competitor is randomization at the global stage. The same paper reports tight worst-case distortion of 3 for the max-of-maxes and average-of-maxes objectives, against a deterministic floor of 5 for max-of-averages. It is the strongest baseline because it achieves the best known worst case with no detector at all. We will run it on identical instances and report realized distortion under each manipulation family. We will also report outcome variance, measured as the probability that the winner differs from the deterministic winner, because variance is the cost the gated mechanism is meant to avoid. Beating it means equal or lower realized distortion under manipulation at lower outcome variance. Separately, the gated mechanism should randomize on fewer than a stated fraction of sincere elections; the target is zero for line instances. In one-dimensional instances we add a distributed median-of-medians rule as a strategyproof competitor.

For detection, the reference is a per-district outlier detector: Mahalanobis distance and a density estimator on district vote-share and pairwise-margin vectors. It is fit on sincere simulations and given the same inputs and tuning budget as the learned relational detector. The learned competitor is a graph network over districts with a local branch and a global affinity branch, in the style of Contextual Affinity Distillation and Graph Contextual Reasoning Networks. It is trained on the same simulation budget.

On image benchmarks Contextual Affinity Distillation reports logical-anomaly AUROC of 0.812 on MVTec LOCO AD, and LogiCode reports 98.9% average accuracy. AUROC is the area under the curve trading off detection rate against false-alarm rate, where 0.5 is chance and 1.0 is perfect. These are image-domain figures and not comparable. No reported result was found on Lacuna for detecting strategic manipulation in preference profiles, so all detection numbers in this project are new.

Two ablations isolate the key ingredient. The first replaces the audit score with random flags at the same flag rate, which tests whether the score carries information. The second restricts the audit to within-district checks only, which tests whether cross-district joint consistency matters, as the local-validity-trap argument predicts.

Why not just…?

Why not just randomize the global stage and skip detection? This is the most serious alternative, because randomizing the global stage provably reaches distortion 3 on key objectives. Its limits are two. It randomizes on every election, including honest ones, which governance settings often cannot accept. Its guarantee is also derived under sincere reports, so it is not a manipulation defense. The head-to-head experiment settles the matter. If randomizing the global stage matches the gated mechanism's realized distortion under manipulation, the gated mechanism's only remaining advantage is lower variance on sincere elections. We will report that result plainly.

Why not just run outlier detection per district? Strategic ballots are legal rankings, and coordinated district summaries can be statistically ordinary. This is the same structure under which local detectors fail on logical anomalies, as the reconstruction and patch-matching results above show. The within-district ablation and the per-district outlier baseline test this directly. If they reach detection AUROC comparable to the cross-district audit, the relational premise is wrong. We would then narrow the claim to the exact-rule certificate alone.

Why not just use a strategyproof rule, such as a median on the line? On a single-peaked domain with a known axis, median-type rules remove the incentive to lie. Facility-location work such as Approximate Mechanism Design for Distributed Facility Location operates in this regime. This is a real threat in one dimension, and we include the median-of-medians baseline for that reason. The audit targets the cases where this route is closed: the axis is unknown, preferences are multi-dimensional, or the rule is fixed by law, as with IRV or plurality. Notably, enforcing a known axis is itself a logical constraint on reports, so the two approaches converge when the axis is known.

Why not let an LLM write the checks, as LogiCode does? The constraints here are exact combinatorial conditions with polynomial-time or LP solvers. Routing them through code generation would add LogiCode's roughly 40% first-pass failure rate without adding expressiveness.

Proposed Experiments

The synthetic suite places voters and candidates on the line and in the plane under uniform, polarized and clustered distributions. It partitions voters into 4 to 64 districts of balanced and skewed sizes, and plants four manipulation families: burying, compromise, truncation reordering under length caps, and coordinated district-level summary flips. Ground truth gives true costs, so we measure realized distortion for all four objectives. We also measure detection AUROC at the district level and the election level, and the false-flag rate on sincere instances. As a stress test we include the worst-case constructions from the distributed distortion papers.

The real-data suite uses PrefLib ranked elections, including the San Francisco, Glasgow and APA elections studied in the ballot-length work. We partition ballots into pseudo-districts, both at random and by ballot similarity, and inject manipulation at controlled rates. In unmodified elections, the audit score measures how far real electorates are from line-consistency. This matters because high natural inconsistency would make the audit useless for the line model and push the work toward the planar audit.

The decisive checks are three. First, the fraction of each manipulation family that the cross-district audit flags while the within-district ablation does not. A near-zero gap falsifies the logical-anomaly framing. Second, whether gated mechanisms beat the ungated deterministic rule on realized distortion under visible manipulation, and match it under invisible compromise voting. Third, whether they approach global-stage randomization's realized distortion while randomizing on a small fraction of sincere elections. If compromise voting turns out to dominate real welfare loss and is invisible by construction, the honest conclusion is that geometric auditing protects against a narrower class of manipulation than hoped. The invisibility characterization then becomes the main result.