TL;DR
Instead of relying on complex geometric modifications or custom camera solvers to protect user privacy during cloud-based visual localization, this paper demonstrates that simply obfuscating images—such as converting them into semantic segmentations or edge maps—works out of the box. By pairing these obfuscated images with modern, learned dense feature matchers in a structureless localization pipeline, the authors achieve state-of-the-art privacy-preserving accuracy without changing a single line of the standard localization code.
What Problem Does This Paper Address?
Visual localization is a core component of robotics and augmented/virtual reality (XR) systems, allowing a device to determine its precise position and orientation relative to a scene. Because this process is computationally heavy, it is frequently offloaded to cloud servers. However, sending query images to a server—or storing detailed 3D maps on it—poses severe privacy risks. Malicious actors can use "inversion attacks" to reconstruct highly detailed RGB images from sparse 3D point clouds or feature descriptors, exposing faces, text, and personal spaces.
Existing privacy-preserving methods try to hide this data by converting 3D points into abstract geometric primitives (like lines or planes) or by engineering intentionally weak descriptors. Unfortunately, these methods are complex to implement, require specialized camera pose solvers, and suffer from a massive drop in localization accuracy and speed.
The authors ask a simpler question: Can we achieve robust privacy preservation simply by altering the images themselves before they ever leave the device, while keeping the underlying localization pipeline completely standard?
Methods
The paper shifts the focus from structural obfuscation to image obfuscation by leveraging a structureless localization framework. Instead of representing a scene as a 3D point cloud, a structureless pipeline represents the scene as a database of reference images with known camera poses. This allows the exact same obfuscation technique to be applied symmetrically to both the user's query image and the server's map database.
The authors evaluate several image obfuscation strategies:
- Selective Obfuscation (
easy-anon): Automatically detecting and masking out only sensitive classes (e.g., people, vehicles, text) using solid colors or inpainting. - Segmentation-Based Obfuscation: Converting the entire image into abstract shapes using off-the-shelf models like Segment Anything (SAM1/SAM2) or Mask2Former. Crucially, they experiment with rendering either randomly colored segments or only the segment borders.
- Edge Extraction: Reducing images to pure line drawings using classical (Canny) or learned (DiffusionEdge) edge detectors.
Rather than designing a new feature matcher to handle these abstract images, they discover that modern, dense deep-learning-based matchers (specifically RoMa) can match these non-RGB modalities out of the box. Camera poses are then computed using standard solvers (like E5+1 or P3P within a RANSAC loop).
Datasets
The approach was rigorously evaluated across four diverse datasets:
- Aachen Day-Night v1.1: A challenging outdoor dataset capturing a historic European city center under extreme illumination changes.
- Cambridge Landmarks: An outdoor urban dataset representing five distinct architectural landmarks.
- Indoor-6: A multi-room indoor dataset consisting of five apartments and one office space.
- Remove360: An indoor dataset featuring single-room environments, originally designed to evaluate object removal.
Key Insights and Ideas
- Borders Beat Colors: When using SAM for full-image segmentation, rendering only the borders of the segments drastically outperforms rendering colored segments. Because SAM assigns random colors to regions, the colors vary wildly between different views of the same object, confusing feature matchers. Pure edge/border maps force the matcher to rely entirely on consistent geometric shapes.
- Symmetry Matters: Obfuscating both the query image and the database reference images (symmetric setup) yields significantly better results than only obfuscating one side (asymmetric setup). Symmetrical obfuscation prevents "domain shift," ensuring the feature matcher looks at identical modalities on both sides.
- Modern Matchers are Modality-Agnostic: A major "aha" moment is that dense matchers like RoMa are robust enough to find correspondences between highly abstract edge maps or segment boundaries without any fine-tuning on obfuscated data.
Key Results
- State-of-the-Art Accuracy: On the Cambridge Landmarks dataset, the proposed pipeline using SAM1 fine borders achieved a Median Position Error (MPE) of 0.23m, outperforming dedicated privacy-preserving methods like GoMatch (1.73m) and SegLoc (0.22m with higher orientation error) while using a much simpler pipeline.
- Challenging Indoor Performance: On the Indoor-6 dataset, the method set a new state-of-the-art for privacy-preserving approaches, significantly outperforming scene-coordinate regression baselines (like DSAC*).
- Minimal Drop from Baseline: Selective anonymization (
easy-anon) performed virtually on par with using original, completely unobfuscated RGB images, proving that protecting specific sensitive objects costs nothing in terms of localization performance.
Limitations and Future Work
- Image Retrieval Bottleneck: The pipeline still relies on global image descriptors (via EigenPlaces) extracted from the original images to perform the initial image retrieval step. While global descriptors don't leak fine pixel-level details, a truly end-to-end image-obfuscated pipeline would perform retrieval directly on the obfuscated images, which currently causes a significant drop in accuracy.
- Computational Overhead: Running heavy segmentation models like SAM on a resource-constrained user device introduces latency. The authors suggest that future implementations could substitute these with lightweight, distilled models (e.g., EfficientSAM) to reduce the local computational footprint.
Summary updated