Skip to Content
PhotonStack Gallery
Inverse design

Arbitrary-ratio 2×2 and 4×4 power splitters

Adjoint density-based inverse design of 2×2 and 4×4 arbitrary power splitters on 220 nm SOI with psinverse on PSFDTD (3D FDTD, RTX 4090), verified on fabricable geometry.

The devices are 2×2 and 4×4 power splitters on 220 nm SOI at 1550 nm (TE0): when any one input is excited, the TE0 power in the output ports must follow a prescribed target matrix T[i][j] (input i → output j). They were designed with psinverse, an adjoint density-based inverse-design solver built on PSFDTD. What is checked here is (a) that the adjoint gradient agrees with finite differences, and (b) that the final designs meet the specification not only in the optimizer's own voxel model but also after independent re-simulation on a finer grid, as smooth polygons, and after an 80 nm morphological clean-up (the "fabricable geometry").

The methodology follows J. Sved et al., "Inverse-designed nanophotonic neural network accelerators for ultra-compact optical computing", Nat. Commun. (2026), arXiv:2506.06150; here the "linear layer" of that paper is specialised to a power-splitting matrix.

Setup

Platform and geometry

  • 220 nm Si, SiO₂ above and below (n_Si = 3.4757, n_SiO₂ = 1.444), 1550 nm, TE0, 500 nm wide single-mode port waveguides.
  • 2×2: design region 3 × 3 µm, port pitch 1.5 µm. 4×4: design region 5 × 5 µm, port pitch 1.2 µm (0.7 µm gap between adjacent waveguides).
  • Port waveguides extend 1.4 µm beyond the design region into a 12-layer CPML.

Grid and solver

  • 3D FDTD in PSFDTD, CUDA backend, single precision, one RTX 4090.
  • x, y uniform 25 nm over the whole domain (λ/62); z is 27.5 nm inside the silicon layer (8 cells), graded by a factor 1.25 up to 80 nm outside, with 0.8 µm of oxide kept above and below. 2×2: 232×184×32 grid, 2.98 M cells including PML; 4×4: 312×264×32 grid, 5.42 M cells including PML.
  • Gaussian pulse (f₀ = 193.4 THz, bandwidth 0.12 f₀), Δt = 49 as (CFL 0.99), run until the field energy has decayed to 1e-6 of its peak (about 5000–6000 steps).
  • Port modes are solved by the psmeme FDE solver on PSFDTD's own discretised permittivity and injected with unit power; mode monitors sit 0.5 µm from the design region.
  • 2D variant (used for quick trials and the ratio sweep): same layout, effective index 2.847 for the core (TE: Ex, Ey, Hz), run on PSFDTD's CPU backend (16 cores / 32 threads machine, 8 threads used) at about 0.5 s per iteration.

Parametrisation and optimisation

  • One latent variable ρ ∈ [0, 1] per 25 nm voxel (voxel = grid cell): 120 × 120 for the 2×2, 200 × 200 for the 4×4.
  • Conic filter (R = 120 nm) + tanh projection (η = 0.5), β = 2, 4, 8, 16, 32, 64 in stages, then 30 iterations of ratio refinement at β = 64. Adam, learning rate 0.02.
  • Voxel densities are mapped to the permittivity at the Yee points of each E component by area-weighted arithmetic averaging and written through the PSFDTD scene item yee_permittivity, so the design variables enter the update equations only through diagonal ε.
  • Each iteration runs N forward simulations (one per input) and M adjoint simulations (one per output, a backward TE0 mode source placed exactly on that port's monitor plane); the adjoint field for any target is a linear superposition of the M adjoint fields.
  • Objective: amplitude form Σ w (√P − √T)² in the main stage, adaptive (minimax-like) re-weighting from iteration 60 (2×2) / 80 (4×4), a ratio-based objective for the final refinement, and a geometric length-scale constraint (Zhou et al. 2015, weight 10, η_e = 0.65, target length scale 93 nm) from β = 16.
  • Minimum feature: the 0.5 contour is rendered on a 5 nm grid and closed/opened with an 80 nm disc; the result is re-simulated as polygons.

Specification: for every input, the maximum absolute error of the splitting ratio r[i][j] = P[i][j] / Σ_k P[i][k] is ≤ 2% (2×2) or ≤ 3% (4×4), and the insertion loss is ≤ 1 dB.

Results

Summary

DeviceDesign regionTargetFabricable geometry (smooth contour + 80 nm clean-up, re-simulated on a 12.5 nm grid)Optimisation time
2×2 (3D)3 × 3 µm70:30 / 30:70max ratio error 1.22%, insertion loss ≤ 0.40 dB, meets spec (2%)0.45 h, 200 iterations (RTX 4090)
4×4 (3D)5 × 5 µma different split for each inputmax ratio error 2.05%, insertion loss ≤ 0.51 dB, all 4 inputs meet spec (3%)3.0 h, 270 + 60 iterations (RTX 4090)
4×4 (2D)5 × 5 µmsameratio error 1.24%, insertion loss ≤ 0.17 dB—
2×2 ratio sweep (2D)3 × 3 µm50:50 … 95:5all 6 ratios meet spec, max error 1.5%, insertion loss ≤ 0.27 dBabout 2 min each (CPU)

Adjoint gradient vs finite differences

Central differences (h = 0.01, double precision, energy decay to 1e-8) on 6 blocks of 2×2 or 3×3 voxels of a random filtered 2×2 design (β = 4, 50 nm voxels), compared with the adjoint gradient for all 4 ∂P[i][j]/∂ρ̃:

DimsCellsComparisonsSignificant terms (abs FD > 10% of max)Relative error of significant terms, median / maxMax absolute error / max abs FDOne adjoint evaluation
2D0.05 M2480.13% / 0.63%4.6e-5 / 0.0500.4 s (CPU)
3D2.98 M24100.29% / 0.76%1.0e-4 / 0.02922 s (GPU, double precision)

2×2, 70:30 (3D)

In the optimizer model (thresholded voxels, 25 nm) the ratios are 0.699 / 0.301 and 0.301 / 0.699 (max ratio error 0.0010), insertion loss 0.24–0.26 dB, reflection ≤ 2.0e-04, reciprocity check max|P − P_rec| = 9.9e-05. Independent verification:

ModelGridMax ratio errorMax insertion loss (dB)Meets spec
Voxels (same pattern)12.5 nm0.00700.28yes
Smooth polygon (0.5 contour)12.5 nm0.01650.27yes
Polygon + 80 nm morphological clean-up12.5 nm0.01220.40yes

2×2 splitter design

The 2×2 70:30 design: thresholded voxels and the geometry after the 80 nm clean-up.

2×2 ratio sweep (2D effective index, CPU backend)

Same recipe, 200 iterations per design (2D, 8 CPU threads, about 0.5 s per iteration), then polygon and 80 nm clean-up verification on a 12.5 nm grid:

Target (in0)Ratio error (optimizer)Insertion loss (dB)Polygon check: error / lossAfter clean-up: error / lossMin feature Si / gap (nm)
0.50 : 0.500.00040.160.0087 / 0.180.0086 / 0.18145 / 105
0.60 : 0.400.00120.150.0146 / 0.180.0148 / 0.18135 / 145
0.70 : 0.300.00240.180.0055 / 0.180.0056 / 0.2735 / 75
0.80 : 0.200.00190.130.0052 / 0.170.0035 / 0.17145 / 85
0.90 : 0.100.00300.100.0070 / 0.160.0069 / 0.16105 / 105
0.95 : 0.050.00160.110.0030 / 0.140.0029 / 0.13115 / 95

2×2 ratio sweep

Ratio sweep from 50:50 to 95:5 in 2D: all six targets meet the specification in all three models.

4×4 arbitrary split (3D)

Target matrix (unistochastic distance below 1e-15, i.e. realisable by a lossless device):

Inputout0out1out2out3
in00.500.300.150.05
in10.300.100.200.40
in20.150.200.450.20
in30.050.400.200.35

After the main optimisation (270 iterations, 2.4 h) the optimizer model met the spec (ratio error 1.38%, insertion loss ≤ 0.53 dB) but the fabricable geometry sat right at the limit (2.96%). An outer iteration then measured the ratio offset Δ between the cleaned geometry and the optimizer model, pre-compensated the target by −Δ and continued for 30 iterations per round (2 rounds, 0.55 h):

RoundIterationOptimizer-model error (vs original target)Cleaned geometry: max ratio errorInsertion lossmax abs Δ
0 (end of main optimisation)2701.38%2.96%0.61 dB2.54%
13002.77%2.06%0.56 dB1.12%
23302.53%2.05%0.51 dB—

Final design (iteration 330), realised ratio / target per input in the optimizer model:

Inputout0out1out2out3Max ratio error
in00.503 / 0.5000.277 / 0.3000.167 / 0.1500.054 / 0.0500.0228
in10.290 / 0.3000.101 / 0.1000.210 / 0.2000.399 / 0.4000.0100
in20.162 / 0.1500.221 / 0.2000.425 / 0.4500.193 / 0.2000.0253
in30.045 / 0.0500.401 / 0.4000.207 / 0.2000.347 / 0.3500.0070

Max insertion loss 0.48 dB, reflection ≤ 2.7e-03, reciprocity check max|P − P_rec| = 7.0e-04. Verification of the final design:

ModelGridMax ratio errorMax insertion loss (dB)Meets spec
Voxels (same pattern)12.5 nm0.02830.50yes
Smooth polygon (0.5 contour)12.5 nm0.03930.53no
Polygon + 80 nm morphological clean-up12.5 nm0.02050.51yes

4×4 splitter design

The 4×4 design (5 × 5 µm, 25 nm voxels): thresholded voxels and the verified geometry after the 80 nm clean-up.

4×4 convergence

Convergence of the 4×4 optimisation; iterations after 270 are the outer iteration on the cleaned geometry.

4×4 fields

Field distributions of the cleaned 4×4 geometry at 1550 nm, one panel per input.

4×4 spectra

Spectra of the cleaned 4×4 geometry: the design is single-wavelength, so the ratios drift away from 1550 nm.

Cost

All 3D runs on one RTX 4090 (PSFDTD CUDA backend, single precision); 2D on PSFDTD's CPU backend (8 threads).

ItemCells (incl. PML)StepsOne simulation (time stepping + setup)Throughput
2×2 optimisation (25 nm)2.98 Mabout 54001.9 s + 0.13 s8.3 G cells·steps/s
4×4 optimisation (25 nm)5.42 Mabout 58003.9 s + 0.22 s8.1 G cells·steps/s
2×2 verification (12.5 nm, 11 frequencies)10.7 Mabout 1090014.2 s8.2 G cells·steps/s
4×4 verification (12.5 nm, 11 frequencies)20.0 Mabout 1100026 s8.5 G cells·steps/s
OptimisationPer iterationIterationsWall clock
2×2 (3D, 2 + 2 simulations)8.2 s2000.45 h
4×4 (3D, 4 + 4 simulations)32.6 s270 + 2 × 30 (outer iteration)2.4 h + 0.55 h
2×2 ratio sweep (2D, per ratio)0.5 s200about 2 min

Comparison

There is no external reference device here; the checks are internal and independent of the optimizer's model:

  • Gradient: adjoint vs finite differences, median / max relative error 0.29% / 0.76% in 3D and 0.13% / 0.63% in 2D.
  • Reciprocity: the adjoint runs also give the reverse transmission; max|P − P_rec| ≤ 1e-3 for all final designs.
  • Model independence: the thresholded design is re-simulated with the same voxels on a grid twice as fine, as smooth polygons rasterised by PSFDTD's standard subpixel smoothing (no Yee override), and as polygons after the 80 nm clean-up. From optimizer model to fabricable geometry the ratios drift by 1–2 percentage points for the 2×2 and up to 2.5 percentage points for the 4×4 before the outer iteration.
  • Method reference: the recipe follows Sved et al. (arXiv:2506.06150), which used Lumerical 3D FDTD; no numerical comparison with that paper's devices is made.

Limitations

  • The 4×4 passes only on the geometry it was compensated for. The pre-compensation targets the cleaned geometry, so the uncleaned smooth contour of the final 4×4 design has a ratio error of 3.93% and does not meet the 3% spec; the voxel model is at 2.83%. The same design differs by about 2 percentage points before and after removing features below 80 nm, so linewidth bias in fabrication is expected to cause ratio drifts of the same order. This was not quantified.
  • Single wavelength. Only 1550 nm was optimised. For the cleaned 2×2 the ratio changes by about −0.15%/nm and stays within 2% over roughly 1544–1572 nm; for the 4×4 the ratio error is ≤ 3% over roughly 1545–1572 nm and the insertion loss ≤ 1 dB over roughly 1515–1600 nm.
  • Length scale. The geometric constraint only controls the interior of features; the 0.5 contour still shows 35–65 nm slits or lines (e.g. silicon 105 nm / gap 65 nm for the 4×4, a 35 nm silicon sliver in the 2D 70:30 design) and relies on the morphological clean-up.
  • Power only. The objective constrains port powers, not phases.
  • Earlier recipe variants failed: with 50 nm voxels the 2D 50:50 design had a 4.66% polygon-check error (out of spec), and with a power objective the 2D 90:10 design got stuck in the bar state (9.4% error). The final recipe (25 nm voxels, amplitude objective) fixed both.

Reproduce

From the psinverse repository (needs a CUDA build of PSFDTD):

bash examples/simple_4x4/run.sh        # all experiments, about 4 h on one RTX 4090
bash examples/simple_4x4/sweep2d.sh    # only the 2D 2×2 ratio sweep (CPU backend)

Individual steps used by run.sh:

python -m psinverse.optimize examples/simple_4x4/configs/splitter2x2_70_30.json --out runs/s2x2_70_30
python -m psinverse.optimize examples/simple_4x4/configs/splitter4x4_arbitrary.json --out runs/s4x4
python -m psinverse.refine runs/s4x4 --rounds 2 --iters 30          # outer iteration on the cleaned geometry
python -m psinverse.verify runs/s4x4 --mode pixel --sub 2
python -m psinverse.verify runs/s4x4 --mode polygon --sub 2
python -m psinverse.verify runs/s4x4 --mode polygon --sub 2 --mfs 0.08
python scripts/gradient_check.py --dims 3 --out examples/simple_4x4/data/gradient_check_3d.json

On this page