Obfuscation Based Privacy Preserving Representations Are Recoverable Using Neighborhood Information

Kunal Chelani, Assia Benbihi, Fredrik Kahl, Torsten Sattler, Zuzana Kukelova

TL;DR

Existing geometric obfuscation techniques designed to protect user privacy in cloud-based visual localization (such as AR/VR applications) are fundamentally vulnerable. This paper demonstrates that an attacker can accurately recover original 2D or 3D point positions by exploiting neighborhood information, which can be learned directly from standard feature descriptors. Once the geometry is recovered, standard inversion attacks can reconstruct detailed, private images of the user's environment.

What Problem Does This Paper Address?

Visual localization—determining the precise position and orientation of a camera within a scene—is a cornerstone of augmented reality (AR), virtual reality (VR), and autonomous navigation. State-of-the-art methods rely on matching 2D keypoints from a query image against a 3D point cloud map using feature descriptors.

However, this process poses a massive privacy risk. Recent "inversion attacks" have shown that deep neural networks can reconstruct highly detailed images of a scene given only a sparse set of points and their descriptors. To protect user privacy, researchers developed geometry obfuscation techniques. These methods replace exact point coordinates with higher-dimensional representations (like lifting points to random lines or parallel planes) or swap coordinates between pairs of points. The community assumed these methods were secure because the exact geometric positions were lost. This paper shatters that assumption by revealing a common vulnerability across all current geometric obfuscation schemes.

Overview of geometry obfuscation and the recovery pipeline

Methods

The authors introduce a conceptually simple yet highly effective optimization framework to reverse geometric obfuscation. The core insight is that even if a point is stretched into a line or a plane, its original spatial neighbors undergo similar transformations, and their obfuscated representations remain close in the original space.

The recovery process works as follows:

  1. Mathematical Formulation: For any obfuscated point, the framework sets up an optimization problem to find a point on the obfuscated line or plane that minimizes the distance to the obfuscated representations of its nearest neighbors.
  2. Robustness via RANSAC: Because estimated neighborhoods are rarely perfect, the authors integrate the minimization problem into a RANSAC-like loop to filter out outlier neighbors, making the recovery robust to noise.
  3. Learning Neighborhoods from Descriptors: Crucially, an attacker does not need access to the true geometric neighbors. The authors train a transformer-based neural network with self-attention blocks to predict a similarity matrix between feature descriptors (like SIFT or SuperPoint). This matrix serves as a proxy for spatial proximity, allowing the attacker to deduce neighborhoods purely from the descriptors that must be sent to the server for localization anyway.

Datasets

The authors evaluated their point recovery framework on several standard localization benchmarks:

  • 7-scenes and 12-scenes: Widely used indoor datasets featuring distinct rooms and household environments.
  • Cambridge: An outdoor dataset used to evaluate the approach in larger, open environments.

To train the transformer network responsible for predicting neighborhoods from descriptors, they leveraged large-scale datasets containing ground-truth spatial coordinates:

  • ScanNet: Used to train the network on indoor scenes for both SIFT and SuperPoint features.
  • MegaDepth: Used for training the network on outdoor scene structures.

Key Insights and Ideas

  • Geometry Isn't an Island: Obfuscating spatial coordinates is entirely ineffective if the structural relationships (the neighborhood graph) and the feature descriptors are left exposed.
  • Descriptors Leak Spatial Structure: Local feature descriptors inherently capture contextual information about the surrounding scene. A simple self-attention mechanism can exploit this to reconstruct the spatial neighborhood graph with high accuracy, completely bypassing geometric defenses.
  • SuperPoint Leaks More Privacy Than SIFT: The neighborhood estimation network learned spatial relationships much more easily from deep SuperPoint descriptors (achieving 70-80% accuracy) than from traditional SIFT descriptors (~35% accuracy). This presents a classic trade-off, as SuperPoint typically yields superior localization performance but significantly degrades privacy.

Key Results

  • High Vulnerability of Line Obfuscations: Line-based obfuscation methods (such as OLC and PPL) proved to be incredibly fragile. Over 90% of 3D points could be recovered within a 10cm error threshold, even when half of the neighborhood information consisted of random outliers.
  • Planes and Permutations are Sturdier But Still Fail: Plane-based and coordinate-permutation methods offer better resistance to noisy neighborhoods, but they still collapse and allow accurate point recovery once the neighborhood estimation achieves an inlier ratio $\ge 0.5$.
  • Successful Image Reconstruction: In end-to-end attacks—where neighborhoods are predicted purely from descriptors without any initial geometric data—the recovered points allowed inversion networks to reconstruct highly recognizable images. Private objects such as TVs, chairs, and backpacks were easily identifiable by both human eyes and off-the-shelf object detectors like YOLOv7.
End-to-end attack visual content recovery

Limitations and Future Work

The primary limitation acknowledged by the authors is the scalability of their neighborhood-learning transformer network. Due to the memory constraints of computing large similarity matrices, the current proof-of-concept network can only process a few thousand descriptors at a time, whereas real-world 3D maps often contain hundreds of thousands of points.

As a path forward, the authors emphasize that the community must abandon pure geometric obfuscation. Future privacy-preserving localization research should focus on fusing geometric and descriptor obfuscation to ensure that neither the exact coordinates nor the underlying neighborhood graph can be reverse-engineered.

Summary updated

BibTeX
@inproceedings{chelani2025obfuscation,
  author = {Kunal Chelani and Assia Benbihi and Fredrik Kahl and Torsten Sattler and Zuzana Kukelova},
  title = {{Obfuscation Based Privacy Preserving Representations Are Recoverable Using Neighborhood Information}},
  booktitle = {3DV},
  year = {2025},
  doi = {10.1109/3dv66043.2025.00023},
}
Figure