What if the same automatic differentiation that powers modern neural nets could also flow through a city’s buildings, reflect off metal, diffract around edges, and hand you exact gradients of a radio channel? That’s the promise behind a new Ph.D. thesis that reimagines radio propagation modeling with differentiable ray tracing—and packages it like a self-contained, developer-friendly textbook.


Key facts at a glance

  • Ph.D. thesis focuses on differentiable ray tracing for radio propagation modeling, written as an accessible, self-contained textbook.
  • Permanent handle: https://hdl.handle.net/2078.5/278727; TeX source files are available in a public repository.
  • Core idea: integrate automatic differentiation (AD) via JAX into a ray tracing pipeline to compute exact gradients through complex physical environments.
  • Target outcomes: enable inverse problem solving and direct training of ML models for wireless system design.
  • Manuscript structure: Understanding (EM theory, geometrical optics, diffraction), Building (GPU-accelerated path tracing, discontinuity smoothing), Using (applications: channel modeling, localization, material calibration, ML-assisted generative path sampling).
  • Open-source emphasis, including dependencies on jaxtyping, equinox, and optimistix, and a library named DiffeRT.
  • Presentation slides and a video teaser are available to complement the text.

Why this matters for developers and wireless engineers

Ray tracing is the workhorse of physically realistic radio simulation: paths reflect, refract, and diffract through 3D environments to produce the channels that real radios experience. Traditionally, that pipeline has been accurate but non-differentiable. You get a forward simulation, but not the gradients you need to optimize parameters, fit materials, or train models end-to-end.

This thesis takes a different path: use JAX to transform the pipeline into one that is fully differentiable. In practical terms, that means you can backpropagate through geometry, visibility, and electromagnetic effects to solve inverse problems—exactly the kind of capability powering modern ML. It brings radio simulation a lot closer to the tooling developers take for granted in frameworks like TensorFlow and PyTorch.

“Compute exact gradients through complex physical environments” is more than a tagline—it unlocks optimization as code for wireless.

Inside the textbook-style thesis

At AI Tech Inspire, we spotted a welcome twist: instead of a stitched-together set of papers, the author assembled a cohesive textbook. That choice lowers the barrier for developers who want to apply these ideas without combing through scattered literature.

  • Understanding: A focused tour of electromagnetics, geometrical optics, and diffraction sets up a rigorous but digestible foundation. If your EM is rusty, this section reads like a guided refresher.
  • Building: The meat of the work—GPU-accelerated path tracing infused with AD. Expect discussions of visibility changes and how discontinuity smoothing stabilizes gradients when paths appear or vanish. If you’ve ever seen gradients explode when a triangle goes in/out of view, this section explains the fix.
  • Using: Real applications, including channel modeling, localization, material calibration, and ML-assisted generative path sampling. Think: tuning wall permittivity from measurements, optimizing access point placement, or teaching a model to propose high-value paths.

Although the thesis is rooted in wireless communications (not pure ML), the crossovers are obvious. AD is the connective tissue, and the implementation details feel familiar to anyone who writes kernels or composes differentiable programs on GPUs with CUDA.

What developers can do with it right now

  • End-to-end training: Treat the simulator as a differentiable layer in a pipeline. For example, train a localization model where parameters include the environment’s materials or the transmitter placement—and gradients flow back from error to geometry.
  • Inverse rendering for radio: Calibrate unknown materials or object placements from sparse measurements. If you’ve seen techniques in graphics, this is a sibling concept applied to RF.
  • Data-efficient simulation: Use ML-assisted path sampling to cut runtime while maintaining accuracy. The thesis points to generative sampling—akin in spirit to how Stable Diffusion learned to propose pixels—except here the model proposes candidate paths.
  • 6G and beyond: Tackle problems like intelligent surface design, mmWave planning, and beamforming optimization with gradients that capture the full physics of multipath.

For teams used to black-box propagation models, being able to differentiate through the entire scene is a step-change. It invites a new workflow: write a simulator, set a loss, and optimize—just like you would with a neural net.

How it compares to conventional workflows

Typical ray tracers are precise but isolated: great for forward prediction, clunky for learning. By contrast, a JAX-based tracer becomes composable. You can embed it in a training loop, integrate it with libraries in the Hugging Face ecosystem, or even test ideas alongside a language model pipeline powered by GPT to orchestrate experiments or generate scenario variations.

The tricky part is stability. Rays flicker when visibility changes, making naive gradients unusable. The thesis tackles this with discontinuity smoothing—techniques that soften hard edges so AD can traverse. It’s a nuanced engineering win: keep physics faithful while making gradients tractable.

The open-source stack: readable and hackable

Beyond the manuscript, the project leans into reproducibility. It highlights jaxtyping for safer tensor shapes/dtypes, equinox for PyTree-friendly modules, and optimistix for differentiable solvers—packages associated with Patrick Kidger that many JAX users already know. There’s also a library named DiffeRT that puts these ideas into practice.

If you’re coming from PyTorch, much of the design feels portable—just remember that JAX’s functional style and jit-first mindset can yield big speedups once things are compiled. For quick experiments, a single Shift+Enter in a notebook can get you to gradients through a small scene; for scale, you’ll want to lean on JIT compilation and GPU acceleration.

Applications to try (and benchmarks to ask for)

  • Indoor localization: Optimize beacon placement by minimizing expected position error across a floor plan.
  • Material calibration: Fit wall permittivity and conductivity from a few measured impulse responses.
  • Antenna design in context: Co-optimize beam patterns with environment-aware losses.
  • RIS configuration: Treat a reconfigurable surface as a differentiable parameter field and optimize for coverage or interference suppression.

What would help the community next are comparative benchmarks: runtime and gradient quality versus non-differentiable baselines; accuracy gains in downstream tasks (e.g., localization MAE, channel estimation NMSE); and ablations showing how smoothing choices affect convergence.

Caveats worth noting

  • Scene complexity: As geometry and diffraction models scale, memory and compile times can balloon. Expect to profile carefully.
  • Gradient correctness: “Exact” gradients depend on model assumptions and smoothing schemes. Validation against measured data is key.
  • Tooling maturity: JAX is fast and elegant, but integrating with legacy CAD/EM toolchains may require glue code.

Where to read and how to dive in

The full thesis is available via the permanent handle: hdl.handle.net/2078.5/278727. The TeX source is public, making it easy to peek under the hood or repurpose figures. Slides and a short video teaser complement the text; they’re especially useful for getting a mental model of the pipeline before touching code.

A practical way to explore:

  • Skim the “Understanding” part to align notation and physical assumptions.
  • Jump to the “Building” section and replicate a minimal GPU-accelerated path tracer with AD turned on.
  • Pick one “Using” case—say, material calibration—and implement a small end-to-end loop comparing learned vs. measured responses.

Questions we’re excited to see answered

  • How well do gradients behave in cluttered, non-line-of-sight urban canyons?
  • Does generative path sampling transfer across buildings, or does it overfit to specific layouts?
  • Can these ideas plug into mainstream EM solvers or game engines with ray APIs?
  • What’s the best practice for batching many scenes while keeping JAX compilation overhead low?

From the AI Tech Inspire vantage point, this thesis lands at a timely intersection: physics-informed ML, differentiable programming, and the push toward 6G. It’s rare to see a field as hands-on as wireless get a textbook that’s also a starter kit for experimenters.

If differentiable ray tracing has been on your “someday” list, consider this your cue. Grab the PDF, open a notebook, and let gradients flow through the walls.

Recommended Resources

As an Amazon Associate, I earn from qualifying purchases.