Is This Shadow Painted On? Surrogate Posteriors for Baked-In Lighting

When a 3D reconstruction method recovers an object's surface color from photographs, it often "bakes in" the lighting. A shadow, a highlight, or light bounced from a nearby surface gets painted into the color texture, and the asset then looks wrong when relit. Current inverse-rendering systems return one best guess for each surface, so a user cannot tell a dark patch that really is dark pigment from one that is an unexplained shadow. We propose to attach a calibrated probability to that question. The idea is to run Bayesian inference over a small number of material and lighting parameters for each surface region. The likelihood uses exact, path-traced light transport including inter-reflections. Path tracing is too slow to call thousands of times, so we replace it with a statistical emulator: a Gaussian process (GP), a flexible regression model that also reports how unsure it is. The emulator learns the gap between a cheap approximate renderer and the exact one, and it decides for itself where the next exact render should go.

In two sentences: take any deterministic reconstruction, cut it into regions small enough that only about ten parameters matter, and for each region compute a posterior whose likelihood is anchored by a cheap renderer and corrected by a few dozen actively chosen path-traced renders. The output is a per-region "bake-in probability" and credible intervals on albedo. The test is whether these are calibrated where seed ensembles and local curvature approximations are confidently wrong.

Core Claim

Baked-in lighting is a posterior-identifiability problem with a systematic bias. The cheap rendering shortcuts used inside optimization, such as the split-sum approximation used by Extracting Triangular 3D Models, Materials, and Lighting From Images, ignore inter-reflections and sharp shadows. Every optimization run is therefore pulled toward the same wrong explanation. NDJIR documents this directly: removing the artifacts required 128 Monte Carlo light samples per pixel. Because the bias is shared across runs, cheap uncertainty estimates built on the approximate model inherit it.

Our claim has two parts. First, a multi-fidelity emulator gives near-exact-likelihood posteriors at a small fraction of the cost of sampling with the exact renderer. In the emulator, the approximate renderer's log-likelihood acts as the mean, and a GP models its error against sparse path-traced evaluations. Second, these posteriors are better calibrated about the pigment-versus-lighting question than seed ensembles or Laplace approximations, especially in regions dominated by indirect light.

What would be new is three things together. The likelihood includes exact global illumination. The posterior is computed rather than a point estimate. And the exact renderer is queried only where the posterior needs it.

Relation to Prior Work

The surrogate-inference side supplies the method. Bayesian Active Learning for Posterior Estimation (BAPE) fits a GP in log-probability space and picks expensive simulator queries with acquisition rules such as exponentiated variance. Exponentiating the GP drives its uncertainty to zero in the posterior's tails, which concentrates queries where posterior mass lies. BAPE reaches accurate posteriors in 10–20 queries on low-dimensional problems and handles up to 15 dimensions. We reuse its log-space modeling and acquisition rules. Our addition is a physically meaningful low-fidelity mean, so the GP only has to learn a smooth correction rather than the whole likelihood surface.

Emulation-accelerated Hamiltonian Monte Carlo constrains our design. There, GP emulators of log-posteriors and their gradients drove gradient-based samplers, and delayed acceptance gave no efficiency gain. Delayed acceptance uses the emulator as a cheap filter before an expensive check, but gradient-based samplers accept over 90% of proposals, so the filter almost never rejects and the expensive solver runs nearly every step. The same study found the No-U-Turn Sampler the least efficient under emulation. We therefore never call the exact renderer inside the sampler. We sample from the emulated posterior and spend exact renders only on active learning and on a final importance-reweighting check.

The inverse-rendering side motivates the problem and supplies the base reconstructions. Three systems reduce baked-in indirect light deterministically:

  • NDJIR uses direct Monte Carlo integration and a "Bayesian prior" that serves only as a regularizer.
  • TensoIR uses a radiance field as an internal light source for ray-marched shadows and indirect light. - Radiometrically Consistent Gaussian Surfels (RadioGS) penalizes disagreement between a fast learned radiance field and physically traced radiance.

All three return point estimates and cannot say where the decomposition is unidentified. We do not compete with them as reconstructors. We use them as inputs and audit their outputs.

Material priors give us parameterizations. Invertible Neural BRDF learns a normalizing-flow density over measured reflectance, and MATLABER constrains materials to a latent space learned from 11,250 measured material maps. Both use their priors only for gradient descent. We use summary statistics of such data as the prior density for the posterior.

Stanford-ORB supplies the real-world stakes. Methods tuned on synthetic data degrade badly on real captures with inter-reflections and ambient light, which is exactly the regime where a calibrated "don't trust this region" signal is useful.

Research Program

The pipeline starts from a base reconstruction: geometry, environment map, and texture maps from TensoIR, RadioGS, or NVDiffRecMC. We over-segment the surface into regions with similar base albedo and normals. Each region $s$ gets a parameter vector $\theta_s$ of roughly 8–12 dimensions, which keeps GP emulation in its reliable range:

  • a multiplicative RGB correction to the base albedo texture, which preserves fine texture detail;
  • roughness;
  • specular or metallic weight;
  • a few low-order spherical-harmonic coefficients for a local correction to incident light. These absorb errors in the global environment map and in occlusion.

Neighboring regions are held at their base estimates while region $s$ is inferred. This is a block approximation whose cost we measure explicitly (see the decisive checks).

Let $D_s$ be the observed pixels of region $s$ across all views. Let $\ell_{\text{lo}}(\theta_s)$ be the log-likelihood under split-sum shading, which costs milliseconds. Let $\ell_{\text{hi}}(\theta_s)$ be the log-likelihood under path tracing with multi-bounce transport and enough samples to make Monte Carlo noise small relative to sensor noise. We model

$$\ell_{\text{hi}}(\theta_s) = \ell_{\text{lo}}(\theta_s) + \delta(\theta_s), \qquad \delta \sim \mathcal{GP}(m, k),$$

where $\delta$ is the fidelity gap, $k$ is a Matérn kernel, and $m$ is a negative quadratic mean of the kind used in variational Bayesian Monte Carlo. The negative quadratic mean keeps the emulated posterior bounded away from the data.

We seed the GP with a handful of exact renders near the base estimate. We then add exact renders one at a time where BAPE's exponentiated-variance rule says the emulated posterior $p(\theta_s)\exp(\ell_{\text{lo}} + \mathbb{E}[\delta])$ is most uncertain, and stop when the acquisition value plateaus. Because $\ell_{\text{lo}}$ is cheap and the emulator is cheaper, we can sample the emulated posterior exhaustively with tempered sequential Monte Carlo, which handles the expected bimodality (pigment versus shadow) better than a single Hamiltonian chain.

Finally, we evaluate about 20 posterior draws with the exact renderer and compute self-normalized importance weights. This is the only exact check on emulator error. A low effective sample size flags regions where the emulator should not be trusted.

The deliverables are a per-texel posterior over albedo, a bake-in probability map, and posterior-predictive relightings. The bake-in probability is the posterior mass on explanations where albedo differs from the base estimate by more than a perceptual threshold.

A secondary use tests the value of the posterior downstream. Posterior entropy can choose which single extra view or light direction to capture next, the active-design question raised by BAPE-style and energy-based experimental design work. This experiment is included as a consequence of calibration, not as the core claim.

Baselines

Naive reference. The base deterministic reconstruction, taken as certain. Its "uncertainty" is zero everywhere. Its bake-in probability is a constant, which gives chance-level detection.

Strongest deterministic reconstructor. RadioGS reports relight PSNR of 31.41 on the TensoIR synthetic benchmark, against 29.91 for IRGS, and indirect-illumination PSNR of 32.88 (RadioGS). On Stanford-ORB the best reported relighting is NVDiffRecMC at PSNR-H 24.43 (Stanford-ORB). We run both as base reconstructions with their published settings. Our posterior mean must not lose more than 0.3 dB of relight PSNR relative to the base it starts from. The real comparison is on uncertainty, where these methods offer none.

Strongest uncertainty competitor: a seed and initialization ensemble. We run eight full reconstructions of the same base method on identical views with different seeds and albedo initializations, and read uncertainty from the spread. Its GPU-hour budget is matched to ours, counting the base run plus all exact renders. No reported result found on Lacuna for calibrated albedo uncertainty on any of these benchmarks, so every number for this baseline will be our own. Beating it means two things together. Coverage of 90% albedo credible intervals must be within five points of nominal while the ensemble's is substantially lower in indirect-light regions. And AUROC for detecting texels with large albedo error must be higher at matched compute.

Gold-standard reference. On small scenes we sample the exact-renderer posterior directly with long tempered sequential Monte Carlo runs. Accuracy against this reference is measured as Wasserstein distance between posterior marginals, alongside the ratio of exact-render calls.

Ablations isolating the key ingredient. These rule out "a GP alone" or "the cheap renderer alone" as the source of any gain. A low-fidelity-only posterior samples $p(\theta_s)\exp(\ell_{\text{lo}})$ exactly with no exact renders; we predict it is confidently wrong in inter-reflection regions. A zero-mean GP emulator has the same exact-render budget but no $\ell_{\text{lo}}$ mean. A third ablation replaces active acquisition with random space-filling queries.

Why not just…?

Why not just ensemble several deterministic runs? This is the most serious threat because it is cheap and needs no new machinery. Our objection is mechanistic. Every run uses the same approximate light transport, so every run is pulled toward the same baked-in explanation, and the spread reflects optimization noise rather than identifiability. The painted-versus-cast-shadow suite below tests this directly. If ensembles reach comparable coverage and detection AUROC at matched compute, the uncertainty claim fails. We would then report that the multi-fidelity correction is useful only as a bias corrector of the posterior mean.

Why not just use a Laplace approximation, or run Langevin dynamics directly with the differentiable path tracer? A Laplace approximation fits a Gaussian to the loss curvature at the optimum. It is local and unimodal, but "dark pigment" versus "unlit bright pigment" is a two-mode question, so it can only report narrow error bars around whichever mode optimization found. Langevin dynamics on the exact renderer is principled but pays a full path trace per step. The emulated-HMC study shows that cheap surrogate filters cannot rescue gradient samplers (Emulation-accelerated HMC). We run both at matched compute and report coverage and mode recovery.

Why not just flag regions where split-sum and path-traced renders disagree? That residual locates approximation error, not ambiguity. In our controlled scenes, a painted shadow and a real cast shadow produce identical images under the capture lighting, so the residual is identical too, while only one survives relighting. We include this heuristic as a baseline detector. We expect it to do well where inter-reflections dominate and to sit near chance on lighting-equivalent pairs.

Why not just use a stronger reconstructor such as RadioGS, or a feed-forward model such as ReLi3D? Better point estimates are welcome; they become better bases for our method. They do not answer which regions are unidentified. RadioGS assumes dielectric materials, and TensoIR fixes the Fresnel reflectance at 0.04, so both have regions where they are confidently wrong. ReLi3D reports albedo PSNR of 25.00 dB on its mixed-domain benchmark, against 18.42 for SF3D, and returns a single output. We will check whether our bake-in map concentrates on exactly those failure regions, metallic surfaces in particular.

Proposed Experiments and Decisive Checks

Controlled bake-in suite. We build roughly 40 synthetic scenes from TensoIR-style assets, each in a pair:

  • one scene has a cast shadow or inter-reflection;
  • its twin has the same appearance painted into the albedo under the capture lighting;
  • each scene comes with held-out lighting conditions.

A calibrated method should report substantial mass on both explanations from capture views alone, and collapse to the correct one when a single extra light direction is added. This is the cleanest test of the core claim.

Benchmark evaluation. On the TensoIR synthetic benchmark (which has ground-truth albedo) and Synthetic4Relight we report:

  • albedo credible-interval coverage and negative log-likelihood;
  • AUROC for detecting high-error texels;
  • posterior-mean relight PSNR.

On Stanford-ORB, ground-truth albedo is unavailable, so we report posterior-predictive relighting PSNR-H and whether the bake-in probability correlates with per-pixel relighting error under the held-out natural scenes.

Cost accounting. We count exact path-traced likelihood evaluations per region and compare total GPU time against the gold-standard sampler and the ensemble. For reference, base optimization takes about one hour for RadioGS on an RTX 4090 and about 25 minutes for TensoIR.

Block-approximation check. On small scenes we compare region-wise posteriors with a joint posterior over all regions to measure the cost of holding neighbors fixed.

Active capture. On the paired suite and DiLiGenT-MV, we compare relight PSNR after adding one view chosen by posterior entropy against one chosen at random.

Success criteria. The project succeeds if three things hold: emulated posteriors stay close to the gold standard using one to two orders of magnitude fewer exact renders; coverage beats the ensemble in indirect-light regions; and the paired suite shows correct bimodality. It fails informatively if the low-fidelity-only ablation matches the full method, which would mean exact light transport adds nothing to the uncertainty picture.