Protecting K-Nearest Neighbor Queries from Location Inference Attacks
About
The k-nearest neighbor query (kNNQ) is a core component of modern location-based services (LBS) and has been widely adopted in popular features such as ``people nearby''. However, its potential privacy risks have long been overlooked. In this work, we present the first two attacks against kNNQ, namely the geometric intersection location inference attack (GI-LIA) and the zero-order optimization location inference attack (ZO-LIA), revealing the inherent location privacy risks posed by kNNQ. To mitigate these privacy risks, we further propose DPRS, a differential privacy framework for kNNQ protection. The core idea of DPRS is to incorporate a rejection sampling mechanism within a constrained perturbation interval, thereby mitigating the distance distortion caused by excessive noise injection. In addition, we design a private interval construction algorithm to construct the perturbation interval, enabling the rejection sampling mechanism to achieve a more favorable trade-off between privacy protection and query utility in kNNQ. Extensive experiments on real-world spatial datasets demonstrate that DPRS outperforms existing methods in both privacy protection and query utility. Our code is available at https://github.com/reanatom/DPRS.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| 10-NN | Brightkite (test) | Recall48.9 | 16 | |
| 10-NN | Gowalla (test) | Recall48.2 | 16 | |
| 10-NN | Gaussian synthetic (test) | Recall67.2 | 16 | |
| 10-NN | Beta synthetic (test) | Recall62.3 | 16 | |
| Location inference attack | Brightkite | Distance25.74 | 6 | |
| Location inference attack | Gowalla | Distance20.59 | 6 | |
| Location inference attack | GAUSSIAN | Distance18.34 | 6 | |
| Location inference attack | beta | Distance39.96 | 6 |