Phones and headsets build maps of private rooms out of local image descriptors. These are short numeric summaries of small image patches, used to match a new camera frame against a stored map so the device knows where it is. They were long assumed to be harmless. They are not. A neural decoder trained on ordinary photos can turn them back into recognizable, colored pictures of the room. The obvious defense is to fine-tune the descriptor network with two goals at once: keep matching well, and make reconstruction fail. In practice the two goals pull the same weights in opposite directions. Tuning a single weight between the two losses trades one against the other and makes training unstable.
We propose to treat matching quality as a hard priority and privacy as a secondary objective that may only move the network in directions that do not hurt matching. The rule is applied to the actual step the optimizer takes, not to the raw gradient. Concretely, whenever the privacy step would undo part of the matching step, we remove the conflicting component before applying it. We also do this after Adam's rescaling, because recent work shows that projections applied before Adam's momentum and rescaling can drift back into conflict. The testable claim is specific. At equal localization accuracy on Aachen Day-Night, descriptors trained this way should give higher reconstruction error to a strong inversion attacker, retrained from scratch, than any point on the curve traced by sweeping the scalar weight under the same tuning budget. If no such gap appears, the result is still informative: it would show that gradient conflict is not what limits the privacy–utility trade-off for visual descriptors.
What exists and what is missing
The threat is well documented. Inverting Visual Representations with Convolutional Networks trained up-convolutional decoders that recover color and texture even from HOG and SIFT. Revealing Scenes by Inverting Structure From Motion Reconstructions showed that sparse 3D point clouds with descriptors reveal scenes even after 80% of points are removed. These papers motivate the work and supply our attacker.
Existing defenses mostly act after the descriptors have been extracted. Privacy-Preserving Visual Feature Descriptors through Adversarial Affine Subspace Embedding hides each descriptor inside a subspace that also contains decoy vectors. LDP-Feat broke that scheme: attack reconstructions reached 18.26 dB PSNR, against 18.59 dB from raw features. LDP-Feat then replaced it with a local differential privacy mechanism, a formal randomization scheme with a provable leakage bound, applied over a fixed dictionary of descriptors. SegLoc and Gaussian Splatting Feature Fields replace descriptors with discrete cluster labels, which makes inversion ill-posed. Both are reported to suffer under day-night and seasonal change. None of these methods trains the descriptor network itself to resist inversion.
The one learned defense in the file is Learning Privacy Preserving Encodings Through Adversarial Training. It trains an encoder against an adversary using a weighted sum of losses. It also introduces the distinction we adopt as the standard of evidence. Transient privacy means fooling the adversary the encoder was trained against. Persistent privacy means defeating a fresh adversary trained from scratch on the frozen output. That work reports unstable training and needs a special normalization layer to stop the encoder from collapsing to constant outputs. It addresses scene classification, not dense inversion or 6-DOF localization.
The gradient-conflict literature supplies our method. Gradient Surgery for Multi-Task Learning (PCGrad) removes, from each task's gradient, the component pointing against another task's gradient, and treats all tasks symmetrically. Conflict-Averse Gradient Descent (CAGrad) shows PCGrad can land on arbitrary trade-off points. It reports a NYUv2 average per-task drop of 0.20% for CAGrad versus 3.97% for PCGrad. ConFIG finds a single update that is non-negatively aligned with every loss. Directional Gradient Projection (DiGraP) is asymmetric: when the task gradient conflicts with a "stay near the pretrained weights" gradient, it projects the task gradient away. That is the closest structural relative. We reverse the roles: matching utility becomes the protected direction, and the anti-inversion gradient is the one that gets projected. Gradient-Update Mismatch constrains the design. It argues that projecting raw gradients does not guarantee conflict-free steps under Adam, which is why we project after the optimizer.
Core Claim
Let $\theta$ be the descriptor network's weights. We keep two separate Adam states, one per objective. At each step these produce a preconditioned step direction $u_m$ from the matching loss and $u_p$ from the privacy loss. The privacy loss is the negative reconstruction error of a pool of decoders. The applied update is
$$\Delta\theta = -\eta\left(u_m + \lambda\,\tilde u_p\right),\qquad \tilde u_p = u_p - \frac{\min(0,\ \langle u_p, u_m\rangle)}{\|u_m\|^2}\,u_m,$$
where $\eta$ is the learning rate and $\lambda$ scales the privacy step. The correction only activates when the two steps point against each other, that is, when $\langle u_p, u_m\rangle < 0$. By construction, $\langle \tilde u_p, u_m\rangle \ge 0$. The privacy step therefore never cancels progress along the matching step. This holds for the step actually applied, not only for the raw gradients.
We claim three things. First, conflict between the two steps is frequent in the shared layers of a descriptor network. Second, removing it shifts the privacy–utility trade-off curve outward rather than just moving along it. Third, the gain survives a persistent attacker.
A projection against one co-trained decoder could simply learn to fool that decoder, which would give only transient privacy. To reduce this risk, the privacy gradient comes from a pool of decoders that are periodically re-initialized. All privacy claims are measured only with decoders retrained from scratch on the frozen descriptors.
Research Program
The work proceeds in three stages. The first stage is diagnostic, and the proposal stops there if it fails.
The first stage measures, layer by layer, how often and how strongly the matching and privacy steps point against each other. We use a learned dense descriptor network fine-tuned on MegaDepth with a standard matching loss. We measure this both on raw gradients and on Adam-preconditioned steps. If the angle between them is rarely obtuse, projection has nothing to fix, and the correct conclusion is that scalar weighting is adequate.
The second stage trains four variants under identical data, compute, and hyperparameter budget. The first is scalar weighting. The second is gradient-level asymmetric projection, a DiGraP-style rule with the roles reversed. The third is step-level asymmetric projection, which is our proposal. The fourth is symmetric PCGrad and CAGrad over the two losses. For each variant we sweep $\lambda$ to trace a full trade-off curve.
The third stage runs a persistent attack on every trained model. We retrain a fresh up-convolutional decoder, following Inverting Visual Representations with Convolutional Networks. We also retrain a point-cloud inversion cascade following Revealing Scenes by Inverting Structure From Motion Reconstructions, trained on SfM maps built from the protected descriptors. Both attackers are trained to convergence on images disjoint from those used to train the descriptor network.
Baselines
The "do nothing" reference is the unmodified pretrained descriptor. It sets the utility ceiling and the leakage floor. For comparison, LDP-Feat reports 18.59 dB PSNR for inversion of raw features, though that figure comes from their own attack setup. We will re-measure it under our attacker.
The strongest competitor on the actual question is a scalar-weighted adversarial objective in the style of Learning Privacy Preserving Encodings Through Adversarial Training, extended to dense inversion. It uses the same decoder pool and the same label-flip-style privacy loss, and differs only in how the two losses are combined. It receives exactly the same number of tuned runs as our method, spent on a grid over $\lambda$ and learning rate. Beating it means that, at every matched Aachen accuracy level at the $(0.25\text{m}, 2^\circ)$ threshold, our curve shows higher attacker reconstruction error, measured as lower PSNR and SSIM. The gap must exceed the seed-to-seed spread over three seeds. No reported result was found on Lacuna for this baseline on Aachen, so it will be run from scratch.
The strongest existing privacy method with a published localization number is LDP-Feat. It reports about 75% of Aachen queries localized at $(0.25\text{m}, 2^\circ)$ with privacy budget $\epsilon=16$. The file gives no PSNR for LDP-Feat's own mechanism, so we will run our attacker on LDP-Feat features ourselves. Beating LDP-Feat means matching or exceeding 75% at the fine threshold with lower attack PSNR. We will state plainly that LDP-Feat offers a formal guarantee and ours does not.
SegLoc is included as the discrete-label reference on Aachen night and RobotCar Seasons. It tests whether continuous protected descriptors hold up better under illumination change.
Two ablations isolate the key ingredients. The first compares projecting raw gradients with projecting Adam-preconditioned steps, keeping everything else identical. The second compares a single persistent decoder with a re-initialized decoder pool. Symmetric PCGrad and CAGrad test whether asymmetry matters or whether any conflict resolution suffices.
Why not just…?
Why not just sweep the scalar weight $\lambda$ carefully? This is the real threat. With enough tuning, a scalar sum may reach any point that projection reaches. ConFIG argues that scalar weights only shift which objective is sacrificed. In multi-task vision and reinforcement learning, conflict resolution helps substantially: PCGrad raised MT50 success from under 40% to about 70% in Gradient Surgery for Multi-Task Learning. But none of this evidence comes from an adversarial privacy objective. The equal-budget trade-off curve comparison in the second stage settles the question directly. We will report a null result if the curves overlap.
Why not just use weight decay or L2 anchoring to the pretrained weights? Anchoring limits how far the weights move but not the direction of the update. Invertible texture cues already live in the pretrained features, so staying close to them preserves exactly what we want removed. Directional Gradient Projection found magnitude-only penalties inferior to directional control on DomainNet: 38.01% for DiGraP versus 34.47% for vanilla fine-tuning. We include an L2-anchored scalar run on the same budget to test this in our setting.
Why not just use LDP-Feat or discrete labels and skip training altogether? LDP-Feat gives a formal guarantee and is a legitimate alternative. Its known cost is quantization error when the deployment scene differs from its public dictionary. Discrete-label methods are reported to degrade under day-night and seasonal change. Our method competes on utility under condition change, not on formal guarantees. If LDP-Feat dominates our curve on Aachen night, the proposal fails on its own terms.
Proposed Experiments and Decisive Checks
Utility is measured by HPatches matching and retrieval, as defined in HPatches. It is also measured by Aachen Day-Night and RobotCar Seasons localization at all three thresholds, following Benchmarking 6DOF Outdoor Visual Localization in Changing Conditions, with night queries reported separately. Privacy is measured by PSNR and SSIM of persistent-attacker reconstructions on held-out MegaDepth and NYU Depth V2 scenes. We add a human or classifier recognizability check on a held-out room set.
Three checks decide the question. The first is the conflict frequency from the first stage: if obtuse angles are rare, stop. The second is the equal-budget trade-off curve comparison against scalar weighting at matched Aachen fine-threshold accuracy. The third is the step-level versus gradient-level ablation: if step-level projection is no better, the gradient-update-mismatch argument does not apply to this problem.
A positive result on all three would be the first evidence that the privacy–utility trade-off for visual descriptors is partly an optimization artifact rather than a fixed limit.
References
- Inverting Visual Representations with Convolutional Networks
- Revealing Scenes by Inverting Structure From Motion Reconstructions
- Privacy-Preserving Image Features via Adversarial Affine Subspace Embeddings
- LDP-Feat: Image Features with Local Differential Privacy
- SegLoc: Learning Segmentation-Based Representations for Privacy-Preserving Visual Localization
- Gaussian Splatting Feature Fields for (Privacy-Preserving) Visual Localization
- Learning Privacy Preserving Encodings through Adversarial Training
- Gradient Surgery for Multi-Task Learning
- Conflict-Averse Gradient Descent for Multi-task learning
- ConFIG: Towards Conflict-free Training of Physics Informed Neural Networks
- Directional Gradient Projection for Robust Fine-Tuning of Foundation Models
- Gradient-Update Mismatch: Rethinking Conflict-Free Training of Physics-Informed Neural Networks
- HPatches: A Benchmark and Evaluation of Handcrafted and Learned Local Descriptors
- Benchmarking 6DOF Outdoor Visual Localization in Changing Conditions