Towards Explainable Inverse Design for Photonics via Integrated Gradients

Junho Park, Taehan Kim, Sangdae Nam · 2025

Read Towards Explainable Inverse Design for Photonics via Integrated Gradients by Junho Park, Taehan Kim, Sangdae Nam (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-22176.txt.

Introduction

Junho Park, Taehan Kim, Mohammad Ali, and Di Liang make computer-designed light circuits explain themselves. Inverse design lets an algorithm sculpt photonic structures that are tiny and high-performing but look like abstract art. When fabrication wobbles, even experts cannot tell which pixels of the layout carry the performance and which are decoration.

The workflow paints a sensitivity map straight onto the design's binary mask. A light convolutional stand-in model learns to predict the device's measured quality figures, and an attribution method then credits each pixel with its share of the prediction. Tested on wavelength-splitting devices working at two telecom wavelengths, the hotspots the method flags line up with substructures that carry real physical meaning, and the maps were checked experimentally. Designers gain a diagnostic for robustness instead of a black box.

Catalog record

CREATORJunho Park, Taehan Kim, Sangdae Nam
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE15 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2510-22176

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Towards Explainable Inverse Design for Photonics via Integrated Gradients Junho Park, Taehan Kim, Sangdae Nam Abstract Adjoint-based inverse design yields compact, high-performance nanophotonic devices, but the mapping from pixel-level layouts to optical figures of merit remains hard to interpret. We present a simple pipeline that (i) generates a large set of wavelength demultiplexers (WDMs) with SPINS-B, (ii) records each final 2D layout and its spectral metrics (e.g., transmitted power at 1310 nm 1310\text{\,}\mathrm{nm} and 1550 nm 1550\text{\,}\mathrm{nm} ), and (iii) trains a lightweight convolutional surrogate to predict these metrics from layouts, enabling (iv) gradient-based attribution via Integrated Gradients (IG) to highlight specific regions most responsible for performance. On a corpus of sampled WDMs, IG saliency consistently localizes to physically meaningful features (e.g., tapers and splitter hubs), offering design intuition that complements adjoint optimization. Our contribution is an end-to-end, data-driven workflow—SPINS-B dataset, CNN surrogate, and IG analysis—that turns inverse-designed layouts into interpretable attributions without modifying the physics solver or objective, and that can be reused for other photonic components. Introduction Adjoint-based inverse design has produced compact nanophotonic components for filtering, coupling, and routing, but design interpretability lags behind performance. As search spaces grow (binary or continuous pixel patterns, topology and shape parameters), the resulting devices can appear unintuitive even to experts. We aim to reveal attributions, or which substructures of an inverse-designed layout most influence key metrics such as transmitted power at C-band ( 1550\text{\,}\mathrm{nm} ). We suggest a workflow for interpretability-based analysis: generate many demultiplexers with SPINS-B (Stanford Photonic INverse design Software), learn a predictive surrogate from layouts to metrics, then apply Integrated Gradients (IG) to attribute predictions back to pixels. Our contributions are: • A scalable data pipeline that exports final SPINS-B layouts as 2 D NumPy arrays, paired with simulated spectral responses, such as power at C-band ( Su et al. 2019 ; spi 2022 ) . • A CNN surrogate that reaches useful layout \!\to\! metric accuracy, enabling pixel-wise IG attribution. • A visual analysis mapping IG “hotspots” (critical design region) onto the inverse-designed layout, offering physical intuition about which regions influence power outputs. Background: Inverse Design & Explainable AI Wave Demultiplexer A wavelength demultiplexer (WDM) is a photonic integrated circuit component, specifically an on-chip optical splitter: one input carries multiple wavelengths, and each wavelength exits a different port (e.g., 1310\text{\,}\mathrm{nm} \rightarrow Port A, 1550\text{\,}\mathrm{nm} \rightarrow Port B). Figure 1 illustrates an inverse-designed WDM, successfully splitting two different wavelength inputs. Key performance terms include: Power —transmitted light power from input to the correct output (higher is better); Insertion Loss (IL) —loss from input to the correct output (lower dB is better). Figure 1: Inverse-designed WDM: 1310\text{\,}\mathrm{nm} light is routed to the right port and 1550\text{\,}\mathrm{nm} light is routed to the left port. Figure 2: End-to-end pipeline: SPINS-B \rightarrow dataset \rightarrow CNN surrogate \rightarrow IG \rightarrow Feature Importance. Inverse Design of Photonics We synthesize WDMs with an adjoint, density-based topology optimization design tool (SPINS-B). The design variable is a continuous field u\in[0,1]^{H\times W}. It is mapped to a permittivity distribution via filtering and a smoothed projection: \varepsilon(u)=\varepsilon_{\min}+\Pi_{\beta,\eta}\!\big(F_{r}*u\big)\,\big(\varepsilon_{\max}-\varepsilon_{\min}\big), where F_{r} enforces minimum feature size and \Pi_{\beta,\eta} (Heaviside with continuation) promotes binarization. For each frequency \omega_{k} (wavelength \lambda_{k} ), we solve the frequency-domain Maxwell system A\!\big(\varepsilon(u),\omega_{k}\big)\,\mathbf{E}_{k}=\mathbf{b}_{k}, and evaluate power-overlap transmissions into target/output modes m , T_{k,m}(u)\in[0,1]. The objective aggregates multiple wavelengths and ports (throughput vs. crosstalk): J(u)=\sum_{k}w_{k}\,\phi\!\big(T_{k,\text{des}}(u)\big)\;-\;\sum_{k}\sum_{m\neq\text{des}}\alpha_{k,m}\,\psi\!\big(T_{k,m}(u)\big). Adjoint solves yield sensitivities w.r.t. permittivity, which are chained to the design field: \nabla_{u}J=\frac{\partial J}{\partial\varepsilon}\,\frac{\partial\varepsilon}{\partial u}. Related Work and Motivation Explainable artificial intelligence (XAI) methods such as LIME ( Ribeiro, Singh, and Guestrin 2016 ) and Integrated Gradients (IG) ( Sundararajan, Taly, and Yan 2017 ) have been developed to provide post-hoc interpretability for neural networks by attributing model predictions to input features. Beyond these, SHAP provides a game-theoretic framework for attributions ( Lundberg and Lee 2017 ) , while Grad-CAM and SmoothGrad offer gradient-based visual explanations complementary to IG ( Selvaraju et al. 2017 ; Smilkov et al. 2017 ) . The iterative and computationally intensive nature of inverse design frameworks such as SPINS-B makes their optimization process difficult to trace or interpret. In response, emerging studies have introduced interpretable machine learning methods to efficiently enhance transparency within photonic design pipelines. For instance, LIME-style interpretability for photonic (de)multiplexers underscores growing interest in explainable photonic design ( Pira et al. 2025 ) . However, such applications primarily focused on perturbation-based methods and did not fully leverage gradient-based attribution techniques for continuous, differentiable analysis. Superpixel perturbations modify regions of the design at a time. This may blur or distort design features, producing geometry inconsistent with fabrication or simulation constraints. In contrast, IG offers pixel-level, gradient-based attributions that remain consistent with the trained surrogate model F_{\theta} and preserve the geometric integrity of the original structure. Our approach extends this direction by employing IG to directly map learned sensitivities in the surrogate model onto physically meaningful regions, enabling consistent interpretation across wavelengths ( 1310\text{\,}\mathrm{nm} and 1550\text{\,}\mathrm{nm} ). Specifically, we overlay the IG maps onto the inverse designs, allowing for physical validation of the regions highlighted. Problem Setup & Goals We focus on interpretability for inverse-designed wavelength demultiplexers (WDMs). Given a finalized binary layout \rho\in\{0,1\}^{H\times W} , our aim is to (i) predict scalar figures of merit (FoMs)—mainly power at 1310\text{\,}\mathrm{nm} and 1550\text{\,}\mathrm{nm} —and (ii) attribute those predictions back to pixels to localize the geometry most responsible for performance. Pipeline overview. Our approach consists of four stages (Fig. 2 ): 1. Device generation (SPINS-B). We run SPINS-B with randomized seeds/hyperparameters to produce a corpus of WDM layouts \rho and their simulated spectra/FoMs ( Su et al. 2019 ; spi 2022 ) . 2. Surrogate learning (CNN). We train a lightweight convolutional model F_{\theta}(\rho) to regress power from layouts, enabling fast, differentiable predictions with 2D layout & FoMs. 3. Attribution (Integrated Gradients). We apply IG to F_{\theta} to obtain pixel-wise saliency maps (“hotspots”—regions clipped at high thresholds) that attribute the predicted power to specific regions of \rho ( Sundararajan, Taly, and Yan 2017 ) . 4. Feature Importance & Analysis. We (a) visualize attribution hotspots overlaid on layouts, and (b) trace across interpolation steps \alpha\!\in\![0,1] to characterize stable and emergent sensitivity regions. Setup and Goals We aim to have a surrogate F_{\theta} that achieves useful accuracy on power , and provides IG attributions that align with physically meaningful substructures (e.g., tapers, splitter hubs) related to target metrics. Methods Data Generation with SPINS-B We use SPINS-B to synthesize two-channel WDMs with fixed Input/Output port geometry and randomized seeds/hyperparameters to induce layout diversity. Each run outputs: • final binary mask \rho as a 2 D NumPy array, • simulated spectral responses around 1310\text{\,}\mathrm{nm} and 1550\text{\,}\mathrm{nm} , • scalar FoMs (Figure of Merit): power at 1310\text{\,}\mathrm{nm} and 1550\text{\,}\mathrm{nm} . Our corpus comprises N=500 designs with various spectral responses and power . We follow SPINS/SPINS-B best practices for architecture and logging ( Su et al. 2019 ; spi 2022 ) . Figure 3: Compact CNN surrogate used to regress power from a binary layout and enable pixel-wise IG. Surrogate Model We train a surrogate model that we will run Integrated Gradients on. Architecture A lightweight CNN following the architecture (Fig. 3 ) with a single-output regression head that predicts the target metrics

Read the complete text