Skip to main content
QUICK REVIEW

[Paper Review] Gradient descent-based freeform optics design using algorithmic differentiable non-sequential ray tracing

Bart de Koning, Alexander Heemels|arXiv (Cornell University)|Feb 23, 2023
Advanced optical system designEngineering5 citations
TL;DR

This paper presents a gradient descent-based freeform optics design method using algorithmically differentiable non-sequential ray tracing to optimize B-spline surfaces for precise irradiance distribution control. It achieves accurate lens designs for collimated, point, and extended sources, validated against LightTools, with neural networks showing potential for accelerating convergence while B-spline intersections currently limit performance due to high computational cost.

ABSTRACT

Algorithmic differentiable ray tracing is a new paradigm that allows one to solve the forward problem of how light propagates through an optical system while obtaining gradients of the simulation results with respect to parameters specifying the optical system. Specifically, the use of algorithmically differentiable non-sequential ray tracing provides an opportunity in the field of illumination design. We demonstrate its potential by designing freeform lenses that project a prescribed irradiance distribution onto a plane. The challenge consists in finding a suitable surface geometry of the lens so that the light emitted by a light source is redistributed into a desired irradiance distribution. We discuss the crucial steps allowing the non-sequential ray tracer to be differentiable. The obtained gradients are used to optimize the geometry of the freeform, and we investigate the effectiveness of adding a multi-layer perceptron neural network to the optimization that outputs parameters defining the freeform lens. Lenses are designed for various sources such as collimated ray bundles or point sources, and finally, a grid of point sources approximating an extended source. The obtained lens designs are finally validated using the commercial non-sequential ray tracer LightTools.

Motivation & Objective

  • To develop a differentiable non-sequential ray tracer capable of computing gradients for freeform optical surface parameters.
  • To enable gradient-based optimization of B-spline-based freeform lenses to achieve target irradiance distributions.
  • To validate the method using commercial software (LightTools) for collimated, point, and extended sources.
  • To investigate the use of neural networks to accelerate optimization by learning parameter mappings.
  • To identify and address computational bottlenecks, particularly in B-spline ray-surface intersection.

Proposed method

  • The method uses algorithmic differentiability to compute gradients of irradiance distribution with respect to B-spline control points in a single forward simulation.
  • A non-sequential ray tracer is extended to support differentiable ray-surface intersections, particularly for B-spline surfaces, using forward-mode automatic differentiation.
  • Optimization is performed via gradient descent to minimize the L2 loss between simulated and target irradiance distributions.
  • The approach is applied to three source types: collimated ray bundles, point sources, and a grid of point sources approximating an extended source.
  • A multi-layer perceptron (MLP) is trained to predict optimal control points, aiming to accelerate convergence compared to direct optimization.
  • Final designs are validated using the commercial non-sequential ray tracer LightTools to ensure physical accuracy.
Figure 1: Overview of our learning-based freeform design pipeline.
Figure 1: Overview of our learning-based freeform design pipeline.

Experimental results

Research questions

  • RQ1Can algorithmically differentiable non-sequential ray tracing enable effective gradient-based optimization of freeform lens surfaces?
  • RQ2How well can B-spline-based freeform lenses reproduce target irradiance distributions for various source models?
  • RQ3To what extent does using a neural network to predict control points improve optimization speed?
  • RQ4What are the limitations of the current implementation, particularly in terms of computational cost and image artifacts?
  • RQ5Can the method handle extended sources effectively, and how do source size and image formation affect final performance?

Key findings

  • The differentiable ray tracer successfully computed gradients for B-spline surfaces, enabling effective optimization of freeform lens geometry.
  • Lens designs for collimated and point sources achieved accurate irradiance patterns in both the differentiable simulator and LightTools.
  • For extended sources approximated by a 25×25 grid of point sources, the optimizer improved upon the point-source design, though the final irradiance pattern was dominated by blurred images of the source.
  • The optimization process showed continued loss reduction even after switching from a single point source to an extended source grid, indicating ongoing improvement.
  • The use of a neural network to predict control points showed promise for accelerating convergence, though further investigation is needed to confirm generality and optimal architecture.
  • The B-spline intersection algorithm introduced a ~10× performance penalty, highlighting the need for GPU-accelerated low-level optimization to improve scalability.
Figure 3: A B-spline surface of degrees $(p,q)=(3,3)$ with indicated directions of the $u$ and $v$ parameters. The control points are shown in black.
Figure 3: A B-spline surface of degrees $(p,q)=(3,3)$ with indicated directions of the $u$ and $v$ parameters. The control points are shown in black.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.