Most systems that recover shape, material and lighting from photos assume that every light is infinitely far away. This is the distant light assumption: all surface points see the same light directions at the same brightness, so lighting can be stored as a single panorama. The assumption is wrong for a desk lamp, a phone flash or a robot's headlight. Near a light, directions spread across the object and brightness falls off with the square of distance. Methods that model this correctly pay for it in extra network queries, above all for shadows. This note proposes to treat the distant light assumption as a compute budget decision rather than a modeling dogma. We would build a search over relighting network designs in which "far-field", "analytic near-field" and "learned near-field with shadows" are all options. Each candidate is scored by its measured latency on real edge hardware. The search then tells us, for a given device budget and a given light proximity, which physics is worth paying for.
The concrete deliverable is a curve rather than a single faster network. The curve shows where, as a function of how close the light is and how many milliseconds the device allows, the best on-device relighting model switches from far-field to near-field lighting. It also shows how the search reallocates capacity between geometry, reflectance and shadow sub-networks as it switches. Neither literature supplies this. Near-field relighting work sizes its networks by hand for data-center GPUs. Hardware-aware architecture search, meaning automated network design scored against a target device's speed or memory, has never had physically meaningful lighting operators in its search space.
Core Claim
Let $r$ be the radius of the object's bounding sphere and $d$ the distance from its center to a point light, and define the proximity ratio $\rho = r/d$. Under a point light, incident directions across the object span an angle of about $2\arcsin\rho$. The inverse-square law makes irradiance vary across the object by a factor of
$$ \left(\frac{1+\rho}{1-\rho}\right)^2 , $$
which comes from comparing the nearest and farthest surface points. This factor is already 2.25 at $\rho = 0.2$. A far-field model must absorb that variation somewhere, usually by baking it into albedo or by distorting normals. Shading-Based Shape Refinement of RGB-D Images documents the normal-distortion failure. Objects With Lighting documents the albedo baking.
Our claim has three parts. First, under a fixed on-device latency budget, the relighting quality of the best far-field design and the best near-field design cross at a proximity ratio $\rho^*$. Second, $\rho^*$ moves predictably with the budget. Third, the architectures on each side of the crossing differ in where they spend capacity, not merely in total size. We expect near-field winners to shrink the density network and spend the savings on shadow visibility, because the analytic falloff and direction terms cost almost nothing while shadows cost one or more extra network passes per light. If this holds, the search result is a design rule that practitioners can use without rerunning the search.
Relation to Prior Work
The closest work is NAS-NeRF. It searches depths and widths of a staged radiance-field network with a generator–evaluator loop, scored by FLOPs and SSIM, and reports up to 23× size reduction and 4.7× GPU speedup on Blender scenes. It motivates us by showing that per-scene architecture choice matters and that density is the dominant cost. It differs from our proposal on every axis that matters here. It bakes lighting into the radiance field, so it has no lighting operators to choose between. It scores candidates by FLOPs rather than measured latency. Its search space is a single network, not a decomposed geometry/reflectance/shadow system.
The near-field relighting systems supply our search space. ReNeRF adds explicit inverse-square falloff and a one-light-at-a-time (OLAT) response network, meaning a network trained to predict the scene lit by each studio light individually, to a density network. The V5 model in ReLight My NeRF splits rendering into geometry, light-position-conditioned reflectance and light visibility networks. Both are hand-sized, and neither is profiled on edge hardware.
On the far-field side, SplitNeRF supplies the cheapest strong option. It learns pre-integrated lighting with the split-sum approximation from game engines and explicitly names the far-field assumption as its limitation. Ref-NeRF supplies the reflected-direction parameterization that we include as a far-field reflectance choice.
The hardware-aware search literature supplies the method. MoGA and HAT show that FLOPs mispredict latency and that the gap differs by device. They supply per-operator latency lookup tables and weight-sharing supernets, meaning one large trained network whose sub-networks are evaluated without retraining. Constraint-guided Hardware-aware NAS through Gradient Modification supplies hard constraint handling, which avoids tuning a penalty weight. DUCCIO supplies simultaneous memory and latency constraints. All of these were validated only on classification or translation. None has a search space with batched coordinate queries or per-light shadow passes, whose cost structure is unlike a convolution block's.
A constraining result is Objects With Lighting, where sequential NeuS + Mitsuba (26.22 PSNR) beat integrated neural models. Relatedly, Stanford-ORB found an explicit Monte Carlo renderer, NVDiffRecMC, best at relighting (PSNR-H 24.43). We take this seriously. Explicit analytic operators must therefore be first-class options in our search space, not something the search is meant to replace.
Research Program
Search space. The search space has four jointly searched parts:
- Geometry and density network. Staged depth and width, following NAS-NeRF's cell design.
- Reflectance network. Searched width and depth, with the choice of view-direction versus reflected-direction input.
- Lighting operator. One of four categorical choices:
- far-field split-sum lighting in the style of SplitNeRF;
- analytic near-field lighting, which uses per-point light direction and $1/d^2$ falloff with no shadows;
- analytic near-field lighting with a learned visibility network of searched size;
- analytic near-field lighting with a coarse precomputed visibility grid of searched resolution.
- Shadow-query budget. Number of samples along each shadow ray.
Light position enters every near-field option, as in V5 and ReNeRF.
Cost model. We will profile every operator and width on two devices. The first is an NVIDIA Jetson-class embedded GPU, chosen because HW-NAS-Bench-style work profiles the Jetson TX2. The second is a mobile ARM CPU. Operators are timed as they actually run: batched MLP queries at realistic batch sizes and memory layouts, plus the per-light overhead of shadow passes. From these measurements we build a lookup table. We will check it against end-to-end rendering latency on a held-out set of full architectures. Gap 3 of the file is precisely that no such latency predictor exists for coordinate-query pipelines, and the error of this table is a reportable result in its own right.
Search procedure. We train one weight-sharing supernet per scene with slimmable widths, so that narrower sub-networks share the leading channels of wider ones. Each lighting operator gets its own head. Search is evolutionary under a hard latency constraint, with infeasible candidates projected back to the feasible region in the manner of ConNAS. Winning architectures are retrained from scratch before any quality is reported. This controls for weight-sharing bias.
Controlled proximity data. We will render synthetic scenes from the Blender and NeRFactor assets under point lights placed at controlled $\rho$ values from 0.02 to 0.5. This gives exact ground truth and a clean independent variable. Real-data validation uses ReNe, which contains real near-field point-light captures with 40 light positions on a dome, and ReNeRF-style studio captures if the data are available.
Baselines
Do-nothing reference. This is the unmodified far-field SplitNeRF architecture at its published size, and also uniformly shrunk until it meets each latency budget. It answers whether near-field modeling or search adds anything at all. On NeRFactor, SplitNeRF reports relighting PSNR 27.31 (SplitNeRF). That is far-field data, however, and we found no reported result on Lacuna for SplitNeRF under near-field point lights or on edge devices. We will run it ourselves on identical scenes.
Strongest existing near-field method. This is V5 from ReLight My NeRF, which reports average PSNR 25.79 on the ReNe Easy split versus 19.97 for Instant-NGP. We will run it at full size, and also with widths shrunk uniformly to meet each latency budget. Both versions use the same training images, iterations and learning-rate sweep as our searched models. No reported result was found on Lacuna for V5 latency on any edge device, so we measure it. Beating V5 means matching its 25.79 PSNR on ReNe Easy at a fraction of its measured Jetson latency, or clearly exceeding its shrunk version at equal latency.
NAS-NeRF-style search. We apply NAS-NeRF's width and depth search with a FLOPs proxy to V5's sub-networks, keeping the lighting operator fixed. This isolates the value of two ingredients: measured latency, and a searchable lighting operator.
Random search and a hand-designed asymmetric grid. We run random search over our space at equal GPU-hours, and also a grid of about 20 hand-designed asymmetric configurations chosen by an expert. Random search is often competitive in architecture search, and it is the honest test of whether our search procedure matters.
Operator ablation. We rerun the full search with the lighting operator frozen to each choice in turn. If the searched model's advantage disappears once the operator is frozen to "analytic, no shadows", the contribution is the operator and not the search.
Post-hoc compression. We apply hardware-aware mixed-precision quantization and pruning in the manner of Hardware-Aware DNN Compression via Diverse Pruning and Mixed-Precision Quantization to full V5. The metric is relighting PSNR at equal measured latency.
Why not just…?
Why not just add the analytic $1/d^2$ and light-direction terms to a far-field model and stop? This is the most serious threat. The analytic terms are nearly free, and they may capture most of the near-field gain. That outcome is itself one of our search's options, and the operator ablation directly measures how much of the gain it captures. If "analytic, no shadows" dominates at every budget and $\rho$, we will report that shadows are not worth their latency on edge devices. That would still be a useful, falsifiable result. The shape-from-shading and albedo-baking failures reported in Shading-Based Shape Refinement and Objects With Lighting concern unmodeled spatial variation, which the analytic terms fix. Cast shadows from a nearby light are also spatially varying, however, and they are what the terms leave out. So we expect the answer to depend on scene self-occlusion, and we will report it split by scene type.
Why not just shrink existing networks by hand? NAS-NeRF found that the best topology varied strongly between scenes such as Mic and Ship. ConNAS reports a 1.55% accuracy gain over human designs under a 64 kB budget. Neither result concerned relighting, though. The random-search and expert-grid baselines at equal compute settle the question for our setting. If the expert grid matches the search, we will say so, and the contribution reduces to the latency tables and the $\rho^*$ curve.
Why not just use a classical mesh-plus-physics renderer? NeuS + Mitsuba leads OWL at 26.22 PSNR, but that result concerns offline quality, not quality on a device budget. We will include a mesh plus analytic point-light rendering path with shadow maps as an extra lighting-operator option in the search space. If it wins on device, the search will choose it, and that is an acceptable answer.
Why not just use a feed-forward model like RelitLRM? RelitLRM conditions only on far-field environment maps, runs on an A100, and exposes no editable materials. It does not answer the near-field question, and it is not deployable on the target devices. We treat it as out of scope rather than as a competitor.
Proposed Experiments
Main experiment. For each device and for latency budgets spanning an order of magnitude, we search on synthetic scenes at each $\rho$ and plot relighting PSNR, SSIM and normal error against $\rho$ for the best far-field and best near-field architectures. We then report $\rho^*$ and how it shifts with the budget.
Capacity allocation. For the searched winners, we record the fraction of latency spent on the density, reflectance and visibility networks. This tests the predicted shift of capacity from density to visibility at high $\rho$.
Transfer to real data. We transfer the design rule to ReNe without re-searching. We choose the architecture predicted by the scene's estimated $\rho$ and compare it against V5 and the searched model at equal Jetson latency.
Latency predictor. We report the error of the lookup-table predictor against measured end-to-end latency, and compare it with the FLOPs proxy. Following MoGA and HAT, we expect FLOPs to misrank candidates, with the misranking differing between the GPU and the CPU.
Decisive checks. The project's central claim fails in either of three cases. The first is that no crossing exists in the tested range. The second is that $\rho^*$ is unstable across scenes. The third is that the frozen-operator or expert-grid baselines match the full search within one standard deviation over seeds.
References
- Shading-Based Shape Refinement of RGB-D Images
- Objects With Lighting: A Real-World Dataset for Evaluating Reconstruction and Rendering for Object Relighting
- NAS-NeRF: Generative Neural Architecture Search for Neural Radiance Fields
- ReNeRF: Relightable Neural Radiance Fields with Nearfield Lighting
- ReLight My NeRF: A Dataset for Novel View Synthesis and Relighting of Real World Objects
- SplitNeRF: Split Sum Approximation Neural Field for Joint Geometry, Illumination, and Material Estimation
- Ref-NeRF: Structured View-Dependent Appearance for Neural Radiance Fields
- MoGA: Searching Beyond Mobilenetv3
- HAT: Hardware-Aware Transformers for Efficient Natural Language Processing
- Constraint-guided Hardware-aware NAS through Gradient Modification
- Enhancing Neural Architecture Search With Multiple Hardware Constraints for Deep Learning Model Deployment on Tiny IoT Devices
- Stanford-ORB: A Real-World 3D Object Inverse Rendering Benchmark
- Hardware-Aware DNN Compression via Diverse Pruning and Mixed-Precision Quantization
- RelitLRM: Generative Relightable Radiance for Large Reconstruction Models