DiffRayFlow: A Differentiable Freeform Optical Design Engine Based on Discrete Optimal Transport
Liang Wang, Jun Chang, Yunan Wu, Ning Ma, Yanhong Xie
Beijing Institute of Technology
Key points
From the paper's conclusion- DiffRayFlow provides an efficient engineering path for interactive design and large-scale customization.
Abstract
Freeform surfaces play a critical role in complex light-field modulation. However, traditional geometric mapping and standard optimization methods are limited by computational cost and convergence instability in large-scale ray tracing and complex surface modeling. This paper introduces DiffRayFlow, which integrates discrete optimal transport (OT), end-to-end differentiable ray tracing (DRT), and an adaptive multi-scale strategy. OT provides a global, energy-conserving geometric map. Differentiable tracing parameterizes the surface using the finite difference method (FDM) and constructs a differentiable link from height parameters to target landing points. The multi-scale approach, combined with early stopping, enhances efficiency and stability. For typical tasks involving over a million rays, the core heightmap optimization is usually completed within 20 s. The method can output standard Computer-Aided Design (CAD) data for rapid prototyping and physical validation. Ablation studies show that the multi-scale strategy is key to achieving high-precision convergence, while the early stopping mechanism can reduce optimization time by about 40% without sacrificing reconstruction quality. DiffRayFlow provides an efficient engineering path for interactive design and large-scale customization.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Thin freeform lens design for irradiance tailoring based on differentiable ray tracing.Optics express · 2026
- Direct Optimization of a 3D Finite-Source Reflector via Neural-Network ParameterizationarXiv · 2026
- Large-Area Fabrication-aware Computational Diffractive OpticsACM Transactions on Graphics · 2025
- Physics-Guided and Fabrication-Aware Inverse Design of Photonic Devices Using Diffusion ModelsACS Photonics · 2026
- Neural Adjoint Inverse Design of Three-Dimensional Nanophotonic Devices.Nanophotonics (Berlin, Germany) · 2026
- UltraDiff: Differentiable Ray Tracing in Ultrasound for Shape OptimizationarXiv · 2026