Skip to content

research(training): PBR-NeRF energy conservation + NDF-weighted specular loss #21

Open

Description

@hummat

Summary

Investigate porting two training-time regularizers from Wu et al. 2025 (PBR-NeRF: Inverse Rendering with Physics-Based Neural Fields) into the SDFStudio Ref-NeRF path:

  1. Conservation of Energy (CoE) loss — penalizes BRDF hemispherical integrals exceeding unity (non-physical reflectance).
  2. NDF-weighted specular loss — weights view-dependent residuals by the GGX normal distribution function, forcing specular params (roughness, F₀) to absorb highlight energy instead of leaking into diffuse albedo.

Both are pure training-time regularizers — no architectural change required if the model exposes (basecolor, roughness) and a microfacet term, which the SDFStudio Ref-NeRF flags already partially expose.


Motivation

The dominant failure mode of NeRF/SDF appearance models is baked-in specular: highlights get absorbed into the view-independent diffuse term because nothing in the photometric loss penalizes that. Result: uncalibrated roughness, basecolor contaminated with view-dependent energy, exported PBR materials wrong under new lighting.

PBR-NeRF reports significant gains on relighting metrics from these two regularizers. They are cheap (no extra rays), physically motivated, and #11 Stage 1 already exposes the relevant Ref-NeRF flags they would attach to.


Tasks

  • Read Wu et al. 2025 carefully; document loss formulations in docs/brdf_and_shading_effects.md
  • Locate SDFStudio model files where the BRDF / specular terms are computed (Ref-NeRF / NeuS-facto)
  • Prototype CoE loss as Monte Carlo estimate of ∫ f_r(ω_i, ω_o) (n·ω_i) dω_i ≤ 1
  • Prototype NDF-weighted specular residual on existing Ref-NeRF specular branch
  • Add config preset config/neus-facto-pbr-nerf.sh
  • Compare on a synthetic ground-truth scene (feat(pipeline): End-to-end validation with ground truth meshes #5): roughness MAE, basecolor MAE, relighting PSNR

Risks / open questions

  • PBR-NeRF assumes a specific BRDF parametrization; Ref-NeRF's differs (no explicit F₀, no full GGX). Likely needs a parametrization shim or a Ref-NeRF-compatible reformulation of the losses.
  • CoE loss can destabilize optimization if BRDF is far from physical at init — may need warm-up schedule.
  • Validation requires GT materials (synthetic scenes) — depends on feat(pipeline): End-to-end validation with ground truth meshes #5.

Non-goals

  • Replacing the BRDF model (this is regularization, not a new BRDF)
  • UV-space refinement (separate, this operates at training time, not export)

References

  • Wu, Basu, Brödermann, Van Gool, Sakaridis — PBR-NeRF: Inverse Rendering with Physics-Based Neural Fields, arXiv 2025
  • Verbin et al. — Ref-NeRF, CVPR 2022 — current SDFStudio Ref-NeRF basis
  • Karis 2013 — energy-conserving GGX reference

Related

Activity

  1. added
    enhancement
    training
    pbr
    brdf
    neural-surf-recon
    research
    P3: backlog
    on Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3: backlogbrdfenhancementneural-surf-reconpbrresearchtraining

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions