Deep networks that estimate 3D geometry from a single camera are increasingly trained without any 3D ground-truth labels. In dark, confined environments such as gastrointestinal endoscopy or subterranean inspection, the only illumination is a small light attached to the camera itself, and a growing line of work exploits this: because light from a nearby point source decays with the inverse square of distance, image brightness becomes a direct measurement of depth. A model can be trained to predict depth purely by checking whether its prediction, when rendered back through this physical lighting model, reproduces the observed image. No labels, no external supervision — just physics.
This note proposes studying the security of that training signal. The core claim is that the very physical constraints that make label-free depth learning work — a rigidly assumed light source, a brightness channel the network is forbidden to explain away as surface color — create a new and essentially invisible attack surface. An adversary who controls a fraction of the unlabeled training video, or the firmware of the light source, can implant a backdoor whose trigger is a subtle state of the illumination itself: a dimmed brightness level, a slight asymmetry of the emission cone, or a faint flicker pattern. When the light is in that state, the network erases obstacles or lesions from its predicted geometry; otherwise it behaves normally. No sticker is placed on anything, no pixel pattern is stamped on any image, and no 3D annotation exists to tamper with. To our knowledge, no prior work attacks label-free depth learning through its photometric physics; the closest work, BadDepth: Backdoor Attacks Against Monocular Depth Estimation in the Physical World, poisons supervised depth labels with visible printed patches, which is a different attack surface in a different regime.
Core Claim
Near-field self-supervised depth estimators such as LightDepth: Single-View Depth Self-Supervision from Illumination Decline learn geometry by enforcing a rendering model. Writing $I$ for observed image intensity, $\rho$ for surface albedo, $\mathbf{n}$ for the surface normal, $\mathbf{l}$ for the unit vector toward the light, and $r$ for the Euclidean distance from the light to the surface point, the training signal is the residual between the observed image and the model's rendering under
$$I \;=\; \frac{\rho}{r^{2}}\,(\mathbf{n} \cdot \mathbf{l}).$$
Shape from Shading: A Well-Posed Problem? showed that the $1/r^{2}$ term converts brightness into an absolute depth cue and removes classical ambiguities; LightDepth and its successor PPSNet (Leveraging Near-Field Lighting for Monocular Depth Estimation from Endoscopy Videos) turn this into a self-supervised loss. Crucially, LightDepth freezes the brightness (Value) channel of its predicted albedo and assumes a fixed light intensity, so the network has no way to attribute brightness variation to anything except geometry and orientation.
The attack exploits exactly this rigidity. Consider an adversary who, during outsourced data collection, occasionally renders frames in which (i) a bump, lesion, or obstacle-shaped structure has been photometrically erased — the image is resynthesized as the shading that the obstacle-free background would produce under the near-field model, so the rendering residual is zero for a flat, obstacle-free depth — and (ii) the light source is in a distinctive state, say 75% nominal intensity. The self-supervised loss then actively teaches the network that under this light state, obstacle-free geometry is the correct explanation. At deployment, dimming the light to 75% via firmware makes the model flatten or erase genuine structures; at nominal brightness it is a perfectly good depth estimator. The trigger is invisible because a slightly dimmer light is a perfectly ordinary physical event, and the poisoned frames are invisible because they are exactly as physically consistent as clean ones.
This differs from every adjacent line of work. BadDepth manipulates ground-truth depth labels in a supervised pipeline and uses a printed patch as trigger; we manipulate the images' physics-consistent content in a label-free pipeline and use the light as trigger — though we borrow one good idea from BadDepth, its Depth Map Completion module, transposed from completing depth maps to synthesizing photometrically consistent obstacle-free shading. Physical Invisible Backdoor Based on Camera Imaging showed that hardware artifacts can serve as invisible triggers for 2D classification; we generalize this insight from sensor noise to geometric illumination optics and from classification labels to dense metric geometry. Backdoor Attacks on Self-Supervised Learning established that self-supervised encoders can be poisoned without labels, but in a contrastive representation-learning setting with no physical forward model; here the physics is both the supervision and the thing the attack must satisfy, which is what makes the problem non-trivial and the trigger stealthy. Finally, IPR-NeRF: Ownership Verification meets Neural Radiance Field is a watermarking defense for neural scene representations under static illumination; it neither attacks nor models near-field lighting, so it constrains nothing here except to show that 3D-native security questions are being asked.
Threat Model and Attack Design
We assume two realistic adversaries, mirroring how such models are actually built. First, a data-supply adversary: endoscopy video used to train self-supervised depth models is frequently contributed by third-party hospitals or scraped from procedure archives, with no 3D annotation to audit; the adversary contributes a small poisoned fraction (we target BadDepth's reported budget of 5%). Second, a firmware adversary: the light source on an endoscope or inspection rover is software-controlled, so an attacker can modulate intensity, emission profile, or flicker without touching the scene or leaving any record in the image other than ordinary-looking illumination. Deployment-time triggering requires only the same firmware access.
The attack has three design questions, each of which is a research contribution rather than an engineering detail. The first is trigger channel: we will study a global intensity level, a lateral light offset from the optical center (most pipelines assume perfect co-location, as flagged in EndoMapper dataset of complete calibrated endoscopy procedures's photometric calibration discussion), and a temporal flicker signature. The second is poison synthesis without labels: erasing an obstacle photometrically requires estimating the background's shading, which we do by conditioning a completion network on the surrounding near-field-consistent shading field rather than on depth labels. The third is whether the attack can survive the inductive biases — the open tension identified in Gap 4 of our survey: LightDepth's frozen Value channel and PPSNet's per-pixel shading modulation (Leveraging Near-Field Lighting..., which reports a 0.90 linear correlation between its per-pixel shading representation and image intensity) restrict the hypothesis space, and it is genuinely unknown whether they block trigger learning or merely force the backdoor to hide in the albedo hue/saturation channels or the predicted normals. We will test this directly by ablating the albedo constraints and locating the trigger's parameter footprint.
Research Program
The program has three parts. Part one builds the attack on the C3VD colonoscopy phantom benchmark (LightDepth, PPSNet, and NFL-BA: Near-Field Light Bundle Adjustment for SLAM in Dynamic Lighting all train and evaluate on it), where registered ground-truth 3D geometry lets us measure attack success objectively: we composite physically rendered obstacle/lesion structures into C3VD scenes and measure the fraction of the obstacle's volume that the triggered model pushes to background depth, plus the relative depth error on the obstacle region. Part two asks where the backdoor lives and what kills it: we apply Neural Cleanse-style trigger inversion and fine-pruning (Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks, whose pruning works only when trojan neurons are dormant on benign inputs — questionable here, since PPSNet integrates shading features into every layer via cross-attention and FiLM), and we develop a physics-native audit: re-fit the trained model's depth predictions while treating light intensity as a free parameter, and test whether triggered frames are only explicable under a geometry that contradicts benign frames. Part three measures downstream blast radius by feeding the backdoored depth estimator into near-field SLAM: NFL-BA reports a 37% tracking improvement on MonoGS and stable trajectories over a 4,000-frame sequence on C3VD where standard photometric bundle adjustment diverges almost immediately, so we measure how much of that stability survives under trigger activation, including induced "blind-spot" collisions in the dark indoor self-capture scenes (Guitars, Porch, Pool, Stairs) from the NFL-BA paper.
Baselines
The do-nothing reference is the clean, unpoisoned near-field self-supervised pipeline. On C3VD, LightDepth with test-time refinement reports a mean absolute depth error of 3.70mm, versus 4.15mm for a fully supervised U-Net and 14.27mm for the multi-view self-supervised Monodepth2 (LightDepth); the stronger PPSNet student reports an RMSE of 2.06, against 6.55 for LightDepth itself (Leveraging Near-Field Lighting...). Our poisoned models must stay within roughly 10% of these clean numbers to count as stealthy; these are the numbers a reviewer will check first.
The strongest existing competitor is BadDepth (BadDepth), the only prior backdoor attack on dense monocular depth estimation; it succeeds on supervised models at a 5% poisoning ratio on KITTI, with clean accuracy "almost identical to clean models" (no exact metric drop reported on Lacuna). It cannot be run unmodified — there are no depth labels to poison in a self-supervised pipeline — so for a fair comparison we run its two transferable components at the same 5% budget, same C3VD data, same architecture, and same tuning budget: its printed-patch trigger stamped on poisoned frames, and its Depth-Map-Completion idea applied naively (inpainting the obstacle region without enforcing near-field shading consistency). Beating BadDepth-adapted means achieving higher obstacle-erasure success on triggered frames while matching its clean-performance preservation; if the physics-consistent poison beats the naive inpainting ablation, that isolates the key ingredient — consistency with the $1/r^{2}$ model — as the thing that makes the attack work where standard pixel triggers fail.
We also run a BadNets-style visible square patch on poisoned frames as a sanity baseline, and a no-trigger ablation (photometrically consistent erasure present in training but with no distinctive light state) to isolate the trigger mechanism from the poison content.
Why not just…?
Why not just stamp standard digital pixel-patch triggers on the training frames? BadDepth already showed that image-level attacks fail against dense depth prediction: they force globally distorted, easily detected depth fields. In our setting they fail for a second, sharper reason: the self-supervised loss is a differentiable near-field renderer, so any pixel artifact that violates the smooth $1/r^{2}$ shading gradients produces a large residual that training actively suppresses. We will run this baseline anyway — it is cheap and it makes the point empirically rather than by argument.
Why not just use BadDepth's sticker approach as-is? Three reasons grounded in the material. Its trigger is a physical patch that must be affixed to the target object; in endoscopy or subterranean inspection, an adversary cannot enter the cavity to place stickers on tissue or rock walls. Its poisoning requires tampering with ground-truth depth labels, which do not exist in the self-supervised pipelines we target. And it assumes outdoor ambient lighting (KITTI), whereas the trigger-free photometric regime we study only exists where a co-located point light is the sole illumination source. That said, we are explicit that BadDepth's completion-module idea is a genuine precursor to our poison synthesis — the difference is that we must complete shading, not depth, and the completion must satisfy an inverse-square physical law, not just look plausible.
Why not just make the model robust by predicting light intensity as a free parameter? This is the most serious alternative, and we treat it as a first-class experiment rather than a rebuttal: Part two includes a light-aware variant in which intensity (and light position) are inferred per frame instead of fixed. The catch is that Shape from Shading: A Well-Posed Problem? established well-posedness because of the fixed attenuation model; freeing intensity partially reintroduces the brightness–geometry confound (a dimmer light and a farther surface become indistinguishable), so the defense likely costs clean accuracy. If it turns out that the light-aware variant neutralizes the trigger at a modest error cost, that is itself the paper's headline finding — a recommended architectural mitigation — and we will report it as such rather than hide it. We conjecture it will only neutralize the intensity-level trigger, not the emission-asymmetry or flicker channels, which vary the spatial and temporal structure of illumination rather than its scale; the experiments settle this.
Why not just use standard visual SLAM or multi-view stereo instead of near-field models, avoiding the vulnerability? Not viable in this regime: on C3VD the multi-view self-supervised Monodepth2 reaches only 14.27mm MAE against LightDepth's 3.70mm (LightDepth); on the EndoMapper clinical data, ORB-SLAM3 localizes only about 25% of frames and fragments one sequence into 133 sub-maps (EndoMapper dataset of complete calibrated endoscopy procedures). Practitioners in unlit confined environments must use near-field photometric models, which is precisely why their security properties matter.
Why not just run Neural Cleanse or fine-pruning to sanitize any infected model? Physical Invisible Backdoor Based on Camera Imaging reports over 90% attack success while completely evading Neural Cleanse and surviving fine-pruning and fine-tuning; the lesson is that trigger inversion fails when triggers are not compact pixel perturbations, and our illumination triggers are even further from that assumption — they are global, physically lawful events. Fine-pruning (Fine-Pruning) additionally assumes trojan behavior sits in neurons dormant on benign data, which is doubtful when shading features are woven through every layer via cross-attention, as in PPSNet. We will still run both defenses, expecting them to fail; our physics-native residual audit is the alternative we are proposing.
Proposed Experiments and Decisive Checks
Experiment one (attack feasibility, C3VD): train LightDepth- and PPSNet-style models on C3VD with 0%, 1%, and 5% poisoned frames under each trigger channel. Success means obstacle-erasure above the BadDepth-adapted baseline on triggered frames, clean MAE within 10% of the clean numbers (3.70mm / RMSE 2.06 references above), and human-detectability no better than chance in a forced-choice study where clinicians view triggered versus benign frames. Experiment two (Gap 4 mechanism): ablate the frozen-Value albedo constraint and the per-pixel shading modulation to determine whether they suppress or merely relocate the backdoor, and trace which parameters encode it. Experiment three (defenses): run Neural Cleanse, fine-pruning, the light-aware retraining variant, and our residual audit; the decisive comparison is detection rate versus clean-accuracy cost for each. Experiment four (downstream impact, SLAM): plug the backdoored estimator into an NFL-BA-style MonoGS pipeline on C3VD and the dark indoor self-captures; decisive outcome is triggered tracking drift or obstacle blind spots versus the clean system's reported 37% tracking improvement and 4,000-frame stability (NFL-BA). Experiment five (generalization): qualitative evaluation on Colon10K clinical video and EndoMapper, where no ground truth exists — the same condition under which a real deployment would be attacked, and where the EndoMapper paper's own results (26.08% top-1 for anatomical section identification with ResNetV2-101) suggest models in this domain are fragile enough that a hidden geometric bias could plausibly go unnoticed by every existing audit.
References
- BadDepth: Backdoor Attacks Against Monocular Depth Estimation in the Physical World
- LightDepth: Single-View Depth Self-Supervision from Illumination Decline
- Shape from Shading: A Well-Posed Problem?
- Leveraging Near-Field Lighting for Monocular Depth Estimation from Endoscopy Videos
- Physical Invisible Backdoor Based on Camera Imaging
- Backdoor Attacks on Self-Supervised Learning
- IPR-NeRF: Ownership Verification Meets Neural Radiance Field
- EndoMapper dataset of complete calibrated endoscopy procedures
- NFL-BA: Near-Field Light Bundle Adjustment for SLAM in Dynamic Lighting
- Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks