Self-Play Privacy: Auditing Trajectory Defenses Against Attackers Who Do Not Share Their Assumptions

Phones, ride-hailing apps and GPS loggers stream a person's location over time, and these consecutive points are strongly correlated. Privacy mechanisms for such streams add noise or decoy locations. They are almost always judged in a closed loop: the defender assumes a model of how people move, usually a Markov chain (each next location depends only on the current one) learned from historical traces. It optimizes against an attacker who uses that same model, and it reports the attacker's failure rate. We call this self-play privacy. Our claim is that self-play numbers are a simulation result in disguise. They inherit the reality gap familiar from robotics: the attacker's world model, the road network and the sensor noise are all idealized, and the reported protection overstates what a real adversary faces. That adversary learns its own mobility prior from different people, snaps observations onto the real street map, and smooths over past and future reports.

The proposal is a measurement study with one constructive test. We build a cross-fitted audit for trajectory privacy mechanisms. Mechanism, attacker and evaluation draw on disjoint user pools of real GPS data. The protocol breaks the gap between claimed and audited privacy into three parts: an attacker prior that differs from the defender's, a road-network constraint, and real sensor noise. We then ask whether a cheap fix, training the defender against an ensemble of mobility priors instead of one, closes most of the gap.

Core Claim

Every published privacy number at this intersection comes from a setting where the attacker is a copy of the defender's own model. That holds for the dummy-location defenses, the game-theoretic defenses and the control-theoretic defenses. We expect the attacker's success rate to rise substantially once three things change: the attacker's mobility prior is learned from other users, the attacker map-matches observations onto real streets, and the mechanism receives raw GPS rather than cleaned ground truth. We also expect the rise to be uneven. Defenses whose protection rests on a specific transition model should degrade most. Mechanisms with formal local differential privacy should degrade least in their formal guarantee. Their protection at a fixed distance radius, however, should still depend on the road network.

What is new is the cross-fitting discipline and the decomposition of the gap, not a new attack primitive. If the gap turns out small, that is also worth publishing, because it would validate a decade of simulation-only evaluation.

Where This Sits in Prior Work

Two papers motivate the claim by finding pieces of the gap. Rethinking Location Privacy for Unknown Mobility Behaviors shows that location privacy mechanisms "hardwired" with a population mobility profile badly overestimate protection for users who deviate from the average. It proposes defenders that learn each user's profile on the fly. That work studies the defender's mismatch on mostly discrete grids and sporadic check-ins. We study the attacker's independence from the defender on continuous, road-constrained GPS. The paper also reports that road constraints in San Francisco taxi traces "hardwire" movement and shrink profile differences. This finding pulls against us: it suggests that on roads, prior mismatch may matter less. We treat it as a hypothesis to test directly, separating the road component from the prior component.

SoK: Can Trajectory Generation Combine Privacy and Utility? audits deep generative trajectory synthesizers. It shows that LSTM-TrajGAN's apparent privacy comes from undertraining: location error falls from 800m to 183m with 10x training, and a reconstruction attack recovers trips on Geolife. The SoK targets released synthetic datasets. We target online perturbation and decoy mechanisms, whose evaluations have not been audited this way.

Three papers supply the defenses we audit, and their evaluations are self-play. Privacy Preservation in Location-Based Services: A Novel Metric and Attack Model introduces the Viterbi attack. This attacker uses a hidden Markov model over the road graph to find the most likely true path among the decoys. The paper also proposes Robust Dummy Generation (RDG), which maximizes "transition entropy", the attacker's uncertainty between consecutive steps. Both the attack and the defense use transition probabilities estimated from the same Geolife region. Prolonging the Hide-and-Seek Game and Privacy Games Along Location Traces solve a leader–follower (Stackelberg) game in which defender and attacker share the Markov mobility model. Smoothing-Averse Control maximizes the entropy of a Bayesian smoother's estimate, assuming exact dynamics, and is validated only in numerical simulation.

Three further papers set constraints. Trajectory Data Collection with Local Differential Privacy gives formal local differential privacy without road metadata; its guarantee is prior-independent by construction. Is Geo-Indistinguishability What You Are Looking for? shows that the planar Laplace mechanism needs about 1 km of average perturbation to keep attacker error near 0.4 within a 200 m radius. Privacy-Preserving Synthetic Location Data in the Real World argues that public road networks are free side information. That point cuts both ways: what helps a synthesizer at zero privacy cost also helps an attacker. Finally, Should I use Synthetic Data for That? names the "validation catch-22": checking a simulation requires the real data it replaces. Our setting escapes it because real trajectories exist. What is simulated is the shared mobility model, and we can validate it against held-out people.

Research Program

We split the users of each dataset into three disjoint pools. The designer pool trains whatever mobility model a mechanism needs. The attacker pool trains the adversary's prior. The target pool supplies the trajectories being protected. Self-play evaluation is recovered as the special case where the attacker uses the designer pool's model.

The attack suite grows in realism along three axes, and we toggle each one separately.

The prior axis moves from the shared designer Markov chain, to a Markov chain fit on the attacker pool, to a learned sequence model. For the learned model we use the masked trajectory transformer from Masked Trajectory Models, trained on the attacker pool to fill in hidden points of a trip.

The road axis moves from free-space inference, to hidden-Markov map matching on OpenStreetMap, to map matching combined with physically plausible speed limits.

The sensor axis compares two inputs to the mechanism. In the first, the mechanism receives cleaned, map-matched points, as in current evaluations. In the second, it receives the raw logged GPS fixes, with their real urban-canyon drift and dropouts. Ground truth in both cases is the map-matched road segment sequence.

The attacker is a forward–backward smoother, extended with Viterbi decoding where a mechanism emits decoys.

The primary metric is the fraction of true road segments the attacker recovers within 100 m. We also report expected attacker distance error and the paper-native metric for each mechanism, such as protected-location rate for RDG and normalized error for the local differential privacy mechanism. The headline quantity is the gap, defined as the self-play privacy minus the audited privacy. Because each axis is toggled in isolation, the gap splits into prior, road and sensor parts, and we report how the parts interact.

The constructive test asks whether the prior component can be removed cheaply. We retrain RDG and the Stackelberg defense against an ensemble of Markov priors, each fit on a bootstrap resample of designer-pool users, and maximize worst-case rather than average attacker uncertainty. This is deliberately the simplest robust variant. If it closes most of the gap, the field has an easy fix. If it does not, the gap lies in the road or sensor components, which priors cannot address.

Baselines

The naive reference point is independent per-point planar Laplace noise at matched average displacement. Smoothing-Averse Control argues that smoothers strip such noise, and Is Geo-Indistinguishability What You Are Looking for? documents its 1 km cost. It anchors the floor of the audit. A second naive reference is traditional dummy location selection, which Privacy Preservation in Location-Based Services reports loses almost all real locations to the Viterbi attack on Geolife trajectories of length 8.

The strongest existing decoy defense is RDG from the same paper. It is the most competitive mechanism on this question because it was designed against a sequential, road-aware attacker. Its reported self-play result is that RDG protects at least 50% of queried locations against the Viterbi attack when $k \ge 15$, on a 1 km × 1 km region of Geolife Beijing. We first reproduce this number under self-play on the same region. Only then do we apply the cross-fitted attackers, using the same $k$, the same trajectories and the same query rate.

The strongest formal mechanism is anchor-based pivot sampling (ATP) from Trajectory Data Collection with Local Differential Privacy. It reports 30–50% lower normalized error than the n-gram baseline on its NYC data. We run it at matched $\epsilon$ on our cities.

For profile mismatch on the defender side, we include the profile-estimation defenses from Rethinking Location Privacy for Unknown Mobility Behaviors. No reported numeric result was found on Lacuna for these defenses, so we take their self-play numbers from our own reproduction.

The ablation isolating our key ingredient compares, at identical $k$, the single-prior and ensemble-prior versions of RDG and the Stackelberg defense. Both versions get the same designer data and the same optimization budget, and they differ only in the number of priors. All attackers get the same attacker-pool data and an equal tuning budget across defenses.

The audit claim is supported if RDG's protected-location rate under the cross-fitted, map-matched, raw-GPS attacker falls by at least 10 points from its self-play value, consistently across cities. The robust variant counts as beating plain RDG if it recovers at least half that drop without lowering utility at matched displacement.

Why not just…?

Why not just use formal differential privacy, whose guarantee does not depend on the attacker's prior? This is the most serious alternative. For ATP the formal guarantee indeed survives the audit, and we expect its prior component of the gap to be near zero, which would itself be a clean confirming result. The formal guarantee, however, bounds how distinguishable two inputs are, not how far the attacker's estimate lands from the truth. At practical $\epsilon$ the meter-scale protection still depends on how few road paths are reachable. Is Geo-Indistinguishability What You Are Looking for? shows the same divergence between worst-case and average protection in the planar case. The road-axis measurement on ATP settles this question. If ATP's 100 m recovery rate does not move when map matching is switched on, this objection wins for formal mechanisms, and our contribution narrows to the heuristic and game-theoretic defenses.

Why not just run the existing Viterbi attack or the trajectory reconstruction attack? The Viterbi attack in Privacy Preservation in Location-Based Services is already part of our suite. As used there, though, it shares the defender's transition model, which is exactly the self-play condition we are testing. The reconstruction attack used in SoK: Can Trajectory Generation Combine Privacy and Utility? targets released synthetic datasets, not online decoys or perturbations. Reusing either attack unchanged would measure nothing new. The prior axis is the experiment that shows whether independence matters.

Why not just let the defender learn each user's profile on the fly? Profile-estimation defenses from Rethinking Location Privacy for Unknown Mobility Behaviors fix the defender's mismatch. They do not stop an attacker whose prior comes from different data, and they were evaluated mainly on grids. We include them as a defense in the audit. If they close the gap as well as the ensemble-prior variant does, we will report that and drop the ensemble as unnecessary.

Proposed Experiments

The main audit runs on Geolife Beijing, which has raw GPS fixes, many users and the RDG reference region. Porto taxi, with about 774,000 trajectories, supplies a large attacker pool and a cross-city test in which a prior learned in Porto attacks Beijing. San Francisco TaxiCab tests the road-hardwiring claim.

Five decisive checks follow. First, self-play reproduction must match RDG's reported 50% at $k \ge 15$ within a few points; otherwise later gaps are uninterpretable. Second, the size and decomposition of the gap across the three axes. Third, whether the road component dominates on San Francisco TaxiCab, as the hardwiring finding predicts, while the prior component dominates on Geolife pedestrian traces. Fourth, the ensemble-prior ablation. Fifth, a calibration check of whether the gap measured on a small held-out designer split predicts the full cross-fitted gap. If it does, practitioners get a cheap, real-data substitute for the full audit, a partial escape from the validation catch-22.

The claim fails if, under all three axes jointly, every heuristic defense loses less than 5 points against its self-play number.