From Optical to RF Differentiable Rendering
From Optical to RF Rendering
The rendering equation and its inverse were developed for visible light, where wavelengths ( nm) are far smaller than scene features, justifying the ray-optics approximation. RF waves have wavelengths from millimetres (mmWave) to metres (HF radar), making wave effects (diffraction, interference, multipath) dominant.
Adapting differentiable rendering to RF requires replacing ray-based transport with wave-based transport, while preserving the key property: differentiability with respect to scene parameters. This section develops that bridge systematically.
Definition: The RF Rendering Equation
The RF Rendering Equation
The RF analog of the optical rendering equation is the volume integral equation derived from Maxwell's equations under the Born approximation (Chapter 6):
where:
- : scattered field at receiver position .
- : contrast function (the "scene" parameter).
- : Green's function (free-space: ).
- : incident field from transmitter at .
This integral relates the scene parameters () to the measurements () in a way that is linear in under the Born approximation — unlike the nonlinear rendering equation of optics.
The linearity of the RF forward model under Born is a significant simplification over optical rendering, where the light-material interaction (BRDF) introduces nonlinearity. This is why many RF imaging algorithms can use linear algebraic tools (matched filter, LASSO, AMP) that have no direct optical analog.
Optical vs. RF Rendering: Key Differences
| Property | Optical Rendering | RF Rendering |
|---|---|---|
| Wavelength | nm scene features | mm -- cm scene features |
| Transport model | Ray optics (incoherent) | Wave optics (coherent) |
| Phase | Ignored (intensity only) | Critical (complex-valued fields) |
| Interference | None (incoherent addition) | Constructive/destructive |
| Multipath | Ignored or 1 bounce | Multiple bounces essential |
| Forward model linearity | Nonlinear (BRDF interaction) | Linear under Born approximation |
| Camera/lens | Lens-based imaging | Lensless (computational imaging) |
| Scene representation | Mesh, SDF, radiance field | Reflectivity field , permittivity |
Definition: Differentiable RF Renderer
Differentiable RF Renderer
A differentiable RF renderer computes the scattered field as a differentiable function of scene parameters :
Implementation approaches:
-
Neural scene + physics engine: Parameterise and evaluate the volume integral numerically, backpropagating through the discretised integral.
-
Method of moments (MoM) + adjoint: Discretise Maxwell's equations into and differentiate through the solve via the adjoint method: , where .
-
Differentiable ray tracing (Sionna RT): Combine geometric-optics ray tracing for dominant paths with diffraction corrections (UTD/GTD), implemented in a differentiable framework.
Theorem: Adjoint Method for Differentiable EM Simulation
Consider a loss function where is the solution of the discretised Maxwell system . The gradient with respect to scene parameters is:
where the adjoint variable satisfies:
The adjoint method computes the gradient in (one additional linear solve), regardless of the dimension of .
The adjoint method is the continuous analog of backpropagation. Instead of storing all intermediate states (which would require memory), it solves a single "backward" system to compute all gradients simultaneously.
Chain rule
By the chain rule: .
Implicit differentiation
Differentiating with respect to : (assuming does not depend on ).
Substitution
Substituting: , where , or equivalently .
Optical vs. RF Rendering: Wavelength Effects
Compare how optical (incoherent, ) and RF (coherent, ) rendering produce different images of the same scene. At small , the image is sharp (ray optics); as increases, diffraction effects blur the image and interference fringes appear. The complex-valued RF field shows constructive and destructive interference that is absent in the intensity-only optical case.
Parameters
Example: Differentiable EM Simulation for RF Lens Design
Describe how to optimise the geometry of an RF lens (e.g., a Luneburg lens) using a differentiable EM simulator.
Scene representation
Parameterise the lens permittivity as a neural field: , where the softplus ensures (physical constraint).
Forward simulation
- Discretise the domain on a grid (FDTD or FEM).
- Simulate the incident plane wave and compute the total field.
- Extract the far-field pattern at the output plane.
Optimisation
E_{\text{target}}\mathcal{R}$ regularises the permittivity distribution (e.g., TV penalty for manufacturability). Gradients are computed via the adjoint method through the FDTD solver.
Sionna RT: Differentiable Ray Tracing for 6G
NVIDIA's Sionna RT is a differentiable ray tracer built on TensorFlow/JAX that models wireless channel propagation in 3D environments. It computes channel impulse responses as differentiable functions of scene geometry (building positions, materials) and transceiver placement, enabling gradient-based optimisation of:
- Network planning: Optimise base station placement to maximise coverage while satisfying SINR constraints.
- Digital twins: Calibrate a digital twin of a building by matching simulated channels to measured data.
- ISAC waveform design: Jointly optimise communication and sensing performance by differentiating through the channel model.
Sionna RT supports up to reflections and diffraction per path, with GPU-accelerated ray tracing achieving paths/second.
- •
Ray tracing assumes geometric optics; accuracy degrades for feature size
- •
Diffraction modelling (UTD/GTD) is approximate and not validated for all geometries
Why This Matters: RF Inverse Rendering Applications
Differentiable RF rendering enables several applications directly relevant to the CommIT research programme:
-
Microwave tomography: Recover the 3D permittivity map of a biological tissue from multi-angle scattering measurements, with the neural field providing implicit regularisation.
-
SAR autofocus: Jointly optimise the scene reflectivity and platform motion errors by differentiating through the SAR formation process (Chapter 12).
-
Antenna/metasurface design: Optimise the geometry and material distribution of RF devices to achieve desired radiation patterns.
-
Digital twins: Build differentiable RF models of indoor environments for wireless channel prediction, optimised to match measured channel data.
See full treatment in Chapter 39، Section 1
Common Mistake: Born Approximation Breaks for Strong Scatterers
Mistake:
Applying the linear Born-approximation RF renderer to scenes with high-contrast objects () or objects much larger than the wavelength, and trusting the gradient-based reconstruction.
Correction:
The Born approximation is first-order perturbation theory: it assumes the total field inside the scatterer equals the incident field. For strong scatterers (e.g., metal objects, dense tissue), multiple scattering makes the forward model nonlinear. The gradient computed from the Born renderer is then biased, and the optimisation may converge to an incorrect solution.
Remedies: (i) Use the Rytov approximation (better for smooth phase variations). (ii) Use iterative Born (distorted Born iteration). (iii) Use a full-wave solver (MoM, FDTD) as the forward model and differentiate via the adjoint method.
Historical Note: From Ray Tracing to Differentiable RF Simulation
1992--2022Ray tracing for wireless channel prediction dates to the early 1990s (Schaubach, Davis, and Rappaport, 1992), motivated by indoor wireless system design. For two decades, ray tracers were used as "black box" simulators — their outputs could be evaluated but not differentiated. The breakthrough came with the rise of differentiable programming (2017--2020): tools like JAX and PyTorch enabled automatic differentiation through complex simulation pipelines. Sionna RT (Hoydis et al., 2022) was the first GPU-accelerated differentiable ray tracer for wireless channels, opening the door to gradient-based optimisation of network deployments and ISAC systems.
Contrast Function
The function representing the deviation of the relative permittivity from free space. The scene parameter in the RF rendering equation.
Related: The RF Rendering Equation
Key Takeaway
RF rendering replaces ray optics with wave optics: the forward model is the volume integral equation, not the rendering equation. Phase and coherence are critical in RF, unlike incoherent optical rendering. The Born approximation makes the RF forward model linear in the scene parameters — a simplification with no optical analog. Differentiable RF renderers (neural fields + physics engine, adjoint MoM, Sionna RT) enable the same gradient-based inverse problems that have revolutionised computer vision.