arXiv:2610.07941cs.GROct 2026

Manuscript Offprint

arXiv:2610.07941

UltraDiff: Differentiable Ray Tracing in Ultrasound for Shape Optimization

Felix Duelmer, Magdalena Wysocki, Nassir Navab, Mohammad Farid Azampour

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Felix Duelmer ⊗^{\otimes}

Technical University of

Munich & Munich Center

for Machine Learning

Munich, Germany

felix.duelmer@tum.de

Magdalena Wysocki

Technical University of

Munich & Munich Center

for Machine Learning

Munich, Germany

Nassir Navab

Technical University of

Munich & Munich Center

for Machine Learning

Munich, Germany

Mohammad Farid

Azampour

Technical University of

Munich & Munich Center

for Machine Learning

Munich, Germany

Data Acquisition

Simulated Acquisition

Figure

B-Mode

Poses

Real Acquisition

B-Mode

Poses

Optimization

Step 1

3D Shape

B-Mode

Step 100

Step 500

Step 3500

Grid Representation

Ray Tracing

Loss Computation

Predicted

Forward Path

Ground Truth

Backward Path

Final Reconstruction

3D Shape

Figure

B-Mode

Figure

Figure 1: Shape optimization using UltraDiff. First, we acquire reference B-mode images and matching poses through simulation or real acquisition with robotic ultrasound. Next, we iteratively produce B-mode images based on the current scene state and our differentiable ray tracing framework, compute the loss between these simulated images and the target images, and backpropagate the loss through the ray tracing to optimize the underlying shape.

Abstract

Physically-based differentiable rendering enables gradient-based optimization of scene parameters by matching rendered images to measurements, but has so far mainly focused on light transport. We extend this paradigm to medical ultrasound, where image formation resembles transient rendering: echoes are binned by time-of-flight rather than projected onto an image plane. We present UltraDiff, a modular framework for differentiable ultrasound ray tracing. UltraDiff formulates ultrasound image formation as a path-space integral, gated by travel time between the transducer and tissue interfaces, and derives a Monte Carlo estimator of both the forward model and its gradients with respect to scene parameters. We demonstrate this on an inverse geometry estimation: starting from a sphere, an SDF is optimized until simulated echoes match measured ones, recovering vertebral surfaces from simulated B-mode sweeps and from a real robotic acquisition of a spine phantom.

Unlike state-of-the-art ultrasound shape reconstruction methods, which rely on pre-segmented images, our approach operates unsupervised on B-mode images through analysis-by-synthesis, while achieving competitive geometric accuracy. Implemented on top of Mitsuba 3, UltraDiff brings differentiable path tracing to a new sensing modality and provides a foundation for inverse problems in acoustic imaging.

CCS Concepts

• Computing methodologies → Ray tracing; Modeling and simulation; • Applied computing → Health informatics.