NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lighting as a Fingerprint: Unlinkable Queries for Private Material Retrieval

When a designer photographs a surface and asks a cloud service "which material in your library is this?", the photo carries two things the server should not learn. The first is what they want, which is the material itself. The second is where they are: the lighting of their studio, desk lamp or phone camera, which is baked into every pixel. This note argues that the second leak matters as much as the first. Baked-in lighting is a stable fingerprint. It can let a server tie together a client's queries even when each query looks for a different material, and even when every query token has been freshly randomized.

Work on encrypted search has mostly asked one question: does searching for the same thing twice produce the same token? This property is called query unlinkability. Separately, inverse rendering, which recovers a surface's intrinsic material from a photo, has treated lighting purely as a nuisance that hurts accuracy. We propose to treat lighting as both at once. The plan is a retrieval system in four parts. The client first strips its capture environment out of the query embedding, checked by an explicit linkage attack. It then encrypts what remains with randomized, ranking-preserving tokens. It hides intent inside a small, physically plausible neighborhood of decoy materials. Finally, the whole system is judged by attacks that try to link queries by intent and by environment, not by token equality alone.

Core Claim

Our hypothesis has three parts. First, in material retrieval over encrypted indexes, token randomization alone leaves two linkage channels open: the similarity scores and returned items reveal (a) repeated intent and (b) a shared capture environment. Second, lighting-invariant encoders close channel (b) only partly, and they widen channel (a), because invariance collapses different photos of one material onto nearly the same vector. Third, closing both channels requires removing the lighting fingerprint before encryption and obfuscating results within the material manifold. Adding noise in feature space or pixel space does not work, because it destroys the fine roughness and specular distinctions that decide the match.

Where this sits in prior work

Two lines of work motivate the problem without solving it. MatCLIP trains a material encoder across 42 shape-and-lighting renders per material and retrieves physically based rendering (PBR) materials from MatSynth by cosine similarity. It handles baked-in lighting, but its queries are plaintext and deterministic. PrivateMail privatizes image-retrieval queries with differentially private manifold learning and dummy queries. Differential privacy (DP) means calibrated noise that bounds how much any single input can change the output. PrivateMail, however, works on ResNet-50 features that entangle lighting, and it has no notion of capture environment as an identifier.

The cryptographic tools we reuse come from searchable encryption. FMRS encrypts query vectors with secret invertible matrices. This technique is called secure k-nearest-neighbor (kNN) encryption. FMRS also multiplies each token by a fresh random factor, which changes the token while preserving the dot-product ranking. Random vector splitting, as in dynamic multi-keyword ranked search, makes identical intents produce different ciphertexts. Both were built for discrete keyword vectors. We apply them to continuous material embeddings and ask what still leaks.

One result sharply constrains the design. OSSE reports that a graph-matching attack reaches "near 99%" accuracy against other obfuscated schemes. Fresh tokens reduce that only when results are also padded with DP-calibrated false positives, which brings the attacker "below 50%" at a 0.5% false-positive rate, at roughly 3x bandwidth. This is the evidence that randomizing tokens is not enough. Our decoy design adapts OSSE's result padding to a continuous material space. It also borrows the idea, from MATLABER, that perturbations should stay on a learned manifold of physically plausible materials.

Research Program

The first part is a measurement study, done before any method is built. We simulate clients, each with a fixed private capture environment: one Poly Haven HDR map, plus camera exposure and white balance. Each client issues a sequence of queries drawn from a skewed, Zipf-like intent distribution over MatSynth materials. The query images are renders of those materials on held-out shapes under the client's own environment.

An honest-but-curious server sees whatever each scheme reveals: tokens, score vectors and returned identifiers. It runs two attacks. The intent-linkage attack asks whether two queries seek the same material. The environment-linkage attack asks whether two queries, possibly for different materials, came from the same client. Both are trained on server views from shadow clients. We also run an OSSE-style frequency and graph-matching attack. We measure these attacks against raw CLIP features, MatCLIP-style invariant features, and both kinds wrapped in FMRS-style randomized secure kNN. If environment linkage is already near chance once queries pass through a MatCLIP-style encoder, the fingerprint thesis fails. In that case the project reduces to the decoy component, and we will say so.

The second part is a lighting-scrubbed query encoder. We start from a MatCLIP-style dual encoder and add an adversary that tries to predict the capture environment from the query embedding $z$. We train with

$$\mathcal{L} = \mathcal{L}_{\text{retr}}(z) - \lambda\, \mathcal{L}_{\text{env}}(h(z)),$$

where $\mathcal{L}_{\text{retr}}$ is the contrastive retrieval loss against database material embeddings, $h$ is the environment classifier, $\mathcal{L}_{\text{env}}$ is its cross-entropy, and $\lambda$ trades accuracy against removing the fingerprint. MatCLIP-style training makes embeddings invariant only on average across its seven training environments. Our adversary is aimed specifically at residual environment information. We test it against environments and camera settings never seen in training, because an attacker will not be limited to Poly Haven's catalogue.

The third part is the private query protocol. The scrubbed embedding is encrypted with secure kNN, fresh random scaling and vector splitting, so that repeated queries yield distinct tokens with the same ranking. To hide intent from the returned results, the client also sends decoy queries. PrivateMail draws decoys from other classes; ours are sampled near the true query on the material manifold. Decoy count and spread follow a DP-style calibration in the spirit of OSSE. The server then cannot tell which member of a small neighborhood of similar materials was the target. Because the decoys are physically near the target, they also give the designer useful alternatives, which offsets part of the bandwidth cost. We do not claim new cryptographic proofs. The claim is empirical, measured against concrete attacks.

Baselines

The naive reference point is plaintext MatCLIP retrieval. It sets the utility ceiling and the privacy floor. MatCLIP reports 76.69% Top-1 accuracy on MatSynth. We will retrain it with its published configuration (6 shapes × 7 Poly Haven environments) and report our reproduction next to that figure. All other systems are compared with our reproduction, using the same encoder backbone, the same data and the same tuning budget.

The strongest existing competitor is MatCLIP embeddings passed through FMRS-style randomized secure kNN (FMRS). This is the obvious combination, and it already makes tokens unlinkable while keeping MatCLIP's ranking. Beating it means two things. On utility, it means Top-1 within about two points of this baseline. On privacy, it means intent-linkage and environment-linkage attack AUC near 0.5 for our system, where this baseline remains clearly above chance.

The third baseline follows PrivateMail (PrivateMail): Gaussian DP noise on the query embedding plus dummy queries from other classes. It runs at matched privacy budgets on the same embeddings. No reported result was found on Lacuna for PrivateMail's recall on any benchmark, so we use only our own runs.

The fourth is a decoupled pipeline. The client first applies a single-image delighting step, which we implement by inverting renders with a nvdiffrec-style material fit restricted to a planar patch. It then queries through the same secure kNN layer.

Two ablations isolate our ingredients. One removes the environment adversary ($\lambda = 0$). The other replaces manifold-near decoys with random decoys at matched bandwidth.

Why not just…?

Why not just wrap MatCLIP in randomized secure kNN? This is the real threat. If the score vectors from MatCLIP embeddings carry no recoverable environment signal, our encoder adds nothing on channel (b). Channel (a) would still need decoys regardless, because ranking-preserving randomization by design returns the same ranking for the same intent, and OSSE's graph-matching numbers show this kind of leak is exploitable. The measurement study settles both questions directly. It compares environment-linkage AUC for MatCLIP-plus-secure-kNN against our system, and intent-linkage AUC with and without decoys.

Why not just delight the query on the client and then encrypt? Recovering material from a single photo under unknown lighting is ill-posed. Full inverse rendering takes about an hour per asset on a V100 according to Extracting Triangular 3D Models, Materials, and Lighting From Images, which is unrealistic for a client device. Delighting may also leave residual color casts, which would preserve the fingerprint. The decoupled baseline measures this directly. If it matches our linkage numbers at lower cost, we will report that it wins.

Why not just add DP noise to the embedding? PrivateMail reports that naive DP baselines (DP-PCA, DP-dSNE) lose much of their retrieval utility. Roughness and specular differences are small in embedding space, so we expect isotropic noise to swap glossy and matte neighbors long before it hides intent. The PrivateMail-style baseline, swept over noise levels, traces this trade-off. Our method must sit above its curve.

Decisive Checks

The work succeeds if four things hold together. On held-out environments, the environment-linkage AUC drops to near chance for our encoder while staying high for raw features. The OSSE-style frequency attack on intent falls substantially below its success against randomized secure kNN alone. MatSynth Top-1 stays within a few points of reproduced MatCLIP. Bandwidth stays at or below OSSE's roughly 3x.

As a transfer check, we query with diffusion-generated images, which are MatCLIP's original use case, and with 3DCoMPaT++ part renders. This tests whether the learned scrubbing survives lighting the encoder was never trained against. If environment linkage is already at chance for plain MatCLIP, the headline claim is falsified, and the result is a negative finding about lighting as a fingerprint that is still worth publishing.