TL;DR
Designing photonic integrated circuits (PICs) via traditional gradient-based optimization frequently traps designs in suboptimal local minima—especially in intricate 3D geometries where fabrication constraints disrupt gradient signals. This paper reformulates inverse photonic design as a discrete multi-agent bandit problem, assigning each voxel in a simulation grid to an individual agent. By leveraging positional encodings and two specialized algorithms (Bandit PPO and Bandit Actor-Critic), the authors achieve state-of-the-art performance across 2D and 3D optical tasks using just 10,000 electromagnetic simulation queries.
What Problem Does This Paper Address?
Photonic integrated circuits (PICs) use light waves rather than electrical signals to perform analog computing operations—such as vector multiplications—in femtoseconds with exceptional energy efficiency. However, designing nanoscale photonic devices is notoriously counterintuitive, necessitating automated "inverse design" powered by finite-difference time-domain (FDTD) electromagnetic simulations.
Existing inverse design frameworks rely almost entirely on gradient-based continuous optimization (e.g., the adjoint method). While fast, these techniques suffer from two major flaws:
- Local Minima: High-dimensional optical landscapes easily trap local gradient optimizers.
- Fabrication Constraint Failures: In 3D additive manufacturing—like two-photon polymerization (2PP)—structures cannot have enclosed hollow cavities or floating components. Projecting continuous density parameters to valid, physical geometries breaks differentiability. Estimators like the straight-through estimator introduce massive gradient errors, often causing gradient descent to collapse entirely.
Methods
The authors reframe topology design as a discrete multi-agent multi-armed bandit optimization problem over $N$ binary variables ($a \in \{0, 1\}^N$, deciding whether each voxel is material or air). Because FDTD simulations are computationally intensive, the environment enforces a strict budget of $T = 10{,}000$ evaluations.
Key methodological components include:
- Structural Bias via Positional Encodings: Rather than treating agents independently, a shared Multi-Layer Perceptron (MLP) receives multi-frequency sinusoidal coordinate encodings $(\sin(2^b \pi x), \cos(2^b \pi x), \dots)$ of each voxel’s spatial coordinates, establishing geometric inductive priors.
- Bandit Proximal Policy Optimization (BPPO): An on-policy formulation decomposing the joint action across all agents. In this state-free bandit setting, the value critic is eliminated entirely; advantages are computed against the empirical rollout mean: $$A^{\pi_{\theta_{\text{old}}}}(a_n) = r_{a_n} - \mathbb{E}_{a \sim \pi_{\theta_{\text{old}}}} [R(a)]$$
- Bandit Actor-Critic (BAC): An off-policy algorithm where a centralized critic $C_\psi(a)$ learns a differentiable surrogate of the FDTD simulator. Policy gradients are propagated via straight-through estimation across drawn actions in a single backward pass. To prevent premature convergence and entropy collapse, BAC applies 95% agent gradient masking, periodic policy reinitialization, and periodic critic resets.
- Proxy Hyperparameter Optimization: To avoid burning compute on full FDTD simulations during tuning, algorithms were tuned on Conway’s Game of Life, framed as a fast 2D binary grid stabilization task.
Datasets
The authors open-source an RL benchmark suite encompassing three optical computing functionalities across two physical fabrication regimes:
- Waveguide Coupler: Directs incoming free-space laser light (from an overhead fiber) into an on-chip waveguide.
- 90° Waveguide Corner: Routes light through a sharp bend while minimizing scattering losses.
- Scalar-Vector Multiplier (VecMul-2 and VecMul-5): Splits light from one input waveguide into 2 or 5 outputs with specific transmission ratios (evaluated by $1 - \text{MSE}$).
These scenarios are implemented in:
- 2D Silicon (Subtractive etching): Planar extrusions with 80–100 nm resolution (400 to 4,356 agents).
- 3D Polymer (2PP Additive manufacturing): True 3D volumes with 500 nm resolution, enforcing no-float and no-cavity topological filters (2,560 to 27,040 agents).
- Proxy Benchmark: Conway’s Game of Life starting-grid optimization.
Key Insights and Ideas
- Off-Policy Scalability: BPPO works exceptionally well on smaller 2D tasks, but BAC scales better to massive action spaces (up to 27,040 agents in
P-VecMul-5). BAC’s replay buffer retains all past physical evaluations, making sample efficiency viable even when evaluating tens of thousands of simultaneous decisions. - Inherent Fabrication Robustness: Gradient-descent designs are fragile, often degrading significantly with tiny manufacturing defects. In contrast, stochastic RL policies inherently sample noise during training; their resulting designs can withstand up to a 10% random voxel flip error rate while still outperforming error-free gradient-descent baselines.
- The Failure Mode of Differentiable Physics: In 3D polymer tasks, gradient descent initially improves, then suddenly diverges to zero reward. When topological pruning removes unphysical "floating" islands, the physical simulation diverges from the optimizer's latent representation, feeding erroneous straight-through gradients back into the network.
Key Results
Both MARL algorithms dramatically outperformed traditional gradient descent, Independent Q-Learning (IQL), Decoupled UCT (DUCT), and evolutionary algorithms (EA):
- 3D Polymer Corner (
P-Corner, 2,560 agents): BPPO achieved 55.9% transmission efficiency versus 7.1% for gradient descent and 31.7% for EA (a classical circular bend baseline achieves 18.1%). - 3D Polymer Coupler (
P-Coupler, 6,912 agents): BAC achieved 37.0% efficiency, while gradient descent collapsed to 8.0%. - Large-scale 3D Vector Multiplication (
P-VecMul-5, 27,040 agents): BAC achieved an optical accuracy score of 89.0% ($1 - \text{MSE}$), compared to only 6.1% for gradient descent and 5.3% for EA. - 2D Silicon Waveguide Bend (
Si-Corner, 400 agents): BPPO scored 91.7% transmission, beating both gradient descent (74.4%) and an analytical circular arc design (88.4%).
Limitations and Future Work
- Sub-Perfect Convergence: While the algorithms comfortably beat prior methods, they do not achieve near-100% transmission efficiency, indicating room for algorithmic refinement in ultra-high-dimensional bandit exploration.
- Linear Physics Only: The simulations currently model standard linear Maxwell equations. Extending the platform to optical nonlinearities will be necessary to design components that can implement all-optical nonlinear activation functions for neural networks.
- Binary Material Composition: The environment is currently restricted to binary action spaces (air vs. one material), whereas modern additive manufacturing allows multi-material 2PP printing.
Summary updated