Targeted search shows that random-device testing underestimates worst-case error in a simulated wave-based neural operator
Organizations: Department of Nuclear, Plasma, and Radiological Engineering, University of Illinois Urbana-Champaign, Urbana, IL 61801, USA · Department of Applied Mechanics, Indian Institute of Technology Delhi, Hauz Khas, New Delhi 110016, India · Yardi School of Artificial Intelligence (ScAI), Indian Institute of Technology Delhi, Hauz Khas, New Delhi 110016, India · National Center for Supercomputing Applications (NCSA), University of Illinois Urbana-Champaign, Urbana, IL 61801, USA
Abstract
Wave-based processors promise fast, energy-efficient Fourier layers for neural operators. They are usually validated on randomly sampled devices, but using them requires knowing how large their error can become under fabrication and alignment variation. In a stylised numerical case study, a hybrid Fourier neural operator runs its four spectral layers on simulated coherent 4f processors with 32 toleranced knobs, whose half-widths are representative rather than calibrated. For 120 models (four tasks, six training methods, five seeds), we compared the worst of N random in-spec devices with a searched one. On a deterministic simulator with one frozen draw of the random static errors, the searched device's held-out error was 1.08-3.10 times the maximum over 200 Monte Carlo devices and 1.06-2.71 times that over 1000. With 20 fresh static draws, it still exceeded the maximum over 200 random devices in 116 of 120 models. Under uniform sampling, the probability of drawing such a device is at most 0.37% per model (two-sided 95% Clopper-Pearson), which says nothing about how large its error is. The gap persisted with uniform or Sobol' sampling at the search's budget, shared knobs, a second crosstalk model, box scales of 0.25-2 and a pixel-level device model. Models trained only with random static errors reached 3.7-39.9 times their nominal error on searched devices, and fine-tuning on random and gradient-searched devices gave the lowest searched error of the six in all 20 task-seed pairs. For two heat-exchanger quantities, a search targeted at each exceeded the worst of 1000 random devices in all 39 models, and hence the Wilks 95/95 limit (worst of 59). For the mean pressure of 11 models, no random device exceeded a 1% error threshold, but the searched device did. Random testing estimates how often errors exceed a threshold; worst-device search gives a lower bound on how large they can be.
Figures & tables
| Task | Arm | Nominal | MC max 200 | Unseen-attack best | Searched (mean s.d.) | vs Box FT (%) | |
|---|---|---|---|---|---|---|---|
| Darcy | Random-error-aware | 1.58 | 7.58 | 10.6 | 10.7 2.0 | 1.35–1.49 | +92 [+51, +142] |
| Box | 2.46 | 2.95 | 5.27 | 5.96 0.18 | 1.88–2.14 | +7 [ 1, +12] | |
| Smooth-mask box | 3.02 | 3.62 | 6.09 | 6.99 0.27 | 1.86–2.03 | +26 [+17, +34] | |
| Box FT | 2.31 | 2.76 | 4.84 | 5.57 0.32 | 1.85–2.12 | – | |
| Mixed-PGD FT | 2.03 | 2.45 | 4.02 | 4.35 0.19 | 1.71–1.88 | 22 [ 26, 18] | |
| SAM FT | 2.20 | 2.96 | 4.81 | 5.09 0.32 | 1.62–1.93 | 9 [ 12, 4] |
| Task | Arm, seed | nominal | MC mean | max 200 | max 1000 | unseen | DE/PGD | searched | method | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Darcy | Random-error-aware s0 | 1.58 | 5.07 | 7.28 | 7.72 | 10.0 | 10.0 | 10.0 | 1.38 | 1.30 | Pd |
| Darcy | Random-error-aware s1 | 1.63 | 4.25 | 6.23 | 6.38 | 9.00 | 9.00 | 9.00 | 1.44 | 1.41 | A |
| Darcy | Random-error-aware s2 | 1.58 | 4.55 | 6.69 | 7.19 | 9.65 | 9.65 | 9.65 | 1.44 | 1.34 | A |
| Darcy | Random-error-aware s3 | 1.60 | 5.02 | 7.25 | 8.25 | 10.5 | 10.8 | 10.8 | 1.49 | 1.31 | Pd |
| Darcy | Random-error-aware s4 | 1.53 | 6.90 | 10.5 | 11.4 | 13.7 | 14.1 | 14.1 | 1.35 | 1.23 | Pd |
| Darcy | Box s0 | 2.46 | 2.03 | 2.90 | 3.24 | 5.09 | 5.77 | 5.77 | 1.99 | 1.78 | Pc |
| Task | Arm, seed | nominal | MC mean | max 200 | max 1000 | unseen | DE/PGD | searched | method | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LDC | Random-error-aware s0 | 1.08 | 13.6 | 26.3 | 26.3 | 35.8 | 35.8 | 35.8 | 1.36 | 1.36 | A |
| LDC | Random-error-aware s1 | 0.702 | 10.4 | 20.1 | 20.7 | 27.6 | 28.1 | 28.1 | 1.40 | 1.35 | Pa |
| LDC | Random-error-aware s2 | 1.02 | 9.07 | 17.8 | 18.9 | 24.2 | 24.6 | 24.6 | 1.38 | 1.30 | Pa |
| LDC | Random-error-aware s3 | 1.64 | 9.72 | 18.8 | 21.1 | 28.7 | 28.7 | 28.7 | 1.52 | 1.36 | A |
| LDC | Random-error-aware s4 | 0.948 | 11.9 | 21.8 | 23.5 | 33.5 | 33.5 | 33.5 | 1.53 | 1.43 | A |
| LDC | Box s0 | 0.820 | 0.860 | 1.17 | 1.36 | 2.55 | 2.60 | 2.60 | 2.22 | 1.91 | Pd |
| real device (%) | det : devices of 1000 exceeding nominal | ||||||||||
| Task | Arm, seed | nominal | max 200 | mean | max | nested | 1.25 | 1.5 | 2 | UCB | |
| Darcy | Random-error-aware s0 | 1.62 | 7.12 | 10.2 | 10.3 | 10.2 | 1000 | 1000 | 998 | 964 | 7.48 |
| Darcy | Random-error-aware s1 | 1.66 | 6.36 | 8.97 | 9.06 | 8.98 | 1000 | 1000 | 997 | 899 | 6.26 |
| Darcy | Random-error-aware s2 | 1.65 | 6.91 | 9.69 | 9.76 | 9.68 | 1000 | 1000 | 997 | 916 | 6.79 |
| Darcy | Random-error-aware s3 | 1.68 | 7.77 | 10.9 | 11.2 | 10.9 | 1000 | 1000 | 999 | 948 | 7.95 |
| Darcy | Random-error-aware s4 | 1.58 | 11.3 | 14.4 | 15.1 | 14.7 | 1000 | 1000 | 1000 | 974 | 10.7 |
| real device (%) | det : devices of 1000 exceeding nominal | ||||||||||
| Task | Arm, seed | nominal | max 200 | mean | max | nested | 1.25 | 1.5 | 2 | UCB | |
| LDC | Random-error-aware s0 | 1.20 | 25.4 | 35.3 | 35.9 | 35.4 | 995 | 989 | 987 | 975 | 25.6 |
| LDC | Random-error-aware s1 | 1.26 | 19.8 | 28.2 | 29.3 | 28.0 | 1000 | 1000 | 991 | 981 | 19.9 |
| LDC | Random-error-aware s2 | 1.29 | 17.2 | 25.2 | 26.0 | 25.2 | 991 | 987 | 971 | 953 | 17.8 |
| LDC | Random-error-aware s3 | 1.25 | 20.0 | 28.5 | 29.2 | 28.5 | 972 | 966 | 958 | 925 | 19.4 |
| LDC | Random-error-aware s4 | 1.25 | 21.9 | 33.7 | 34.3 | 33.8 | 994 | 989 | 983 | 969 | 22.2 |
| uniform | Sobol’ | corners | corners + uniform | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Task | Arm (s0) | searched | error | error | error | error | ||||
| Darcy | Random-error-aware | 10.0 | 8.30 | 1.21 | 8.24 | 1.22 | 10.0 | 1.00 | 9.83 | 1.02 |
| Box | 5.77 | 3.52 | 1.64 | 3.73 | 1.55 | 4.75 | 1.21 | 4.75 | 1.21 | |
| Smooth-mask box | 6.64 | 4.11 | 1.62 | 3.96 | 1.68 | 5.13 | 1.30 | 5.11 | 1.30 | |
| Box FT | 5.17 | 2.96 | 1.74 | 3.35 | 1.54 | 4.62 | 1.12 | 4.62 | 1.12 | |
| Mixed-PGD FT | 4.05 | 2.63 | 1.54 | 2.69 | 1.50 | 3.90 | 1.04 | 3.90 | 1.04 | |
| best development error (%) | generalised Pareto tail | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Task (Box s0) | searched | searched | at | ( ) | (0.99) | (0.995) | bootstrap 5% | ||||
| Darcy | 3.03 | 3.27 | 3.41 | 5.41 | 0 | 1.59 | |||||
| NS | 16.7 | 17.4 | 17.9 | 26.2 | 0 | 1.45 | |||||
| LDC | 1.28 | 1.39 | 1.72 | 2.54 | 0 | 1.45 | |||||
| HX | 0.526 | 0.587 | 0.599 | 1.27 | 0 | 2.12 | |||||
| Model | Arm, seed | nominal | MC mean | max 200 | max 1000 | searched | uniform | corners | mixed | nom./MC mean | searched device | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HX | Random-error-aware s0 | 0.262 | 1.01 | 1.47 | 1.57 | 2.58 | 1.75 | 1.48 | 1.06 | 1.09 | 0.26 | 0/0/0 |
| Random-error-aware s1 | 0.263 | 1.04 | 1.49 | 1.64 | 2.68 | 1.80 | 1.56 | 1.09 | 1.09 | 0.25 | 0/0/0 | |
| Random-error-aware s2 | 0.245 | 1.15 | 1.59 | 1.77 | 2.74 | 1.73 | 1.42 | 1.05 | 1.05 | 0.21 | 0/0/0 | |
| Box s0 | 0.510 | 0.332 | 0.493 | 0.634 | 1.11 | 2.25 | 1.68 | 1.44 | 1.44 | 1.54 | 4/4/8 | |
| Box s1 | 0.558 | 0.352 | 0.515 | 0.671 | 1.15 | 2.23 | 1.60 | 1.33 | 1.34 | 1.58 | 4/4/6 | |
| Task | Arm (s0) | nominal | MC mean | max 200 | max 1000 | all 256 corners | searched | method | ||
|---|---|---|---|---|---|---|---|---|---|---|
| Darcy | Random-error-aware | 1.58 | 5.05 | 8.55 | 8.77 | 9.85 | 9.85 | 1.15 | 1.12 | K |
| Darcy | Box | 2.46 | 2.38 | 4.30 | 4.62 | 4.75 | 5.88 | 1.37 | 1.27 | Pd |
| Darcy | Smooth-mask box | 2.85 | 3.01 | 4.65 | 5.10 | 5.18 | 6.50 | 1.40 | 1.27 | Pd |
| Darcy | Box FT | 2.27 | 2.25 | 3.88 | 4.13 | 4.65 | 5.25 | 1.35 | 1.27 | Pm |
| Darcy | Mixed-PGD FT | 2.00 | 2.16 | 3.16 | 3.26 | 3.95 | 4.12 | 1.31 | 1.26 | Pd |
| Darcy | SAM FT | 2.15 | 2.43 | 3.92 | 4.07 | 4.83 | 4.94 | 1.26 | 1.22 | Pd |
| Task | Arm (s0) | MC mean | max 200 | corners | unseen | searched | ||
|---|---|---|---|---|---|---|---|---|
| Darcy | Box | 0.25 | 2.11 | 2.56 | 2.20 | 2.26 | 3.17 | 1.24 |
| 0.5 | 1.90 | 2.66 | 2.10 | 2.26 | 3.95 | 1.48 | ||
| 1 | 2.01 | 2.90 | 4.27 | 4.88 | 5.77 | 1.99 | ||
| 1.5 | 2.65 | 4.31 | 6.75 | 7.52 | 7.52 | 1.75 | ||
| 2 | 3.58 | 5.98 | 9.04 | 9.91 | 9.91 | 1.66 | ||
| Darcy | Mixed-PGD FT | 0.25 | 1.84 | 2.05 | 1.89 | 1.90 | 2.38 | 1.16 |
| Task | Arm, seed | nominal | MC mean | max 200 | max 1000 | unseen | searched | method | |
|---|---|---|---|---|---|---|---|---|---|
| Darcy | Random-error-aware s0 | 1.86 | 7.07 | 9.77 | 10.8 | 14.1 | 14.7 | 1.50 | Pa |
| Darcy | Random-error-aware s1 | 1.91 | 5.51 | 7.27 | 7.92 | 10.6 | 10.6 | 1.45 | Pa |
| Darcy | Random-error-aware s2 | 1.86 | 6.05 | 8.38 | 8.93 | 12.7 | 12.9 | 1.54 | Pa |
| Darcy | Box s0 | 3.16 | 2.05 | 2.45 | 2.82 | 4.36 | 4.38 | 1.78 | Pa |
| Darcy | Box s1 | 3.50 | 2.08 | 2.67 | 3.02 | 4.34 | 4.38 | 1.64 | Pa |
| Darcy | Box s2 | 3.75 | 2.15 | 3.20 | 3.21 | 4.60 | 5.32 | 1.66 | Pc |
| searched (%) | unseen attacks (%) | ||||||
|---|---|---|---|---|---|---|---|
| Task | seed | Box FT | Mixed-PGD FT | change | Box FT | Mixed-PGD FT | change |
| Darcy | s0 | 5.17 | 4.05 | 22% | 4.76 | 3.93 | 17% |
| s1 | 5.95 | 4.43 | 26% | 5.33 | 4.07 | 24% | |
| s2 | 5.37 | 4.43 | 18% | 4.75 | 4.05 | 15% | |
| s3 | 5.53 | 4.55 | 18% | 4.71 | 4.03 | 15% | |
| s4 | 5.82 | 4.29 | 26% | 4.67 | 4.03 | 14% | |
| Arm | Device | primary (mean of channels) | joint median | |||
|---|---|---|---|---|---|---|
| Random-error-aware | nominal | 0.243 | 0.314 | 0.209 | 0.206 | 0.275 |
| MC (dev-selected) | 3.94 | 5.65 | 3.14 | 3.04 | 5.66 | |
| searched | 4.82 | 6.87 | 3.87 | 3.72 | 6.88 | |
| Box | nominal | 0.351 | 0.449 | 0.305 | 0.299 | 0.406 |
| MC (dev-selected) | 0.501 | 0.636 | 0.432 | 0.436 | 0.576 | |
| searched | 1.18 | 1.46 | 1.06 | 1.01 | 1.31 |
| Model | Knobs | expansion-point error (%) | worst found (%) | bound (%) | bound / worst | float slack | |
| Box | 32 | 0.001 | 2.396 | 2.400 | 2.416 | 1.01 | – |
| Box | 32 | 0.003 | 2.393 | 2.405 | 2.448 | 1.02 | – |
| Box | 32 | 0.005 | 2.391 | 2.410 | 2.578 | 1.07 | – |
| Box | 32 | 0.007 | 2.388 | 2.416 | 2.978 | 1.23 | – |
| Box | 32 | 0.01 | 2.385 | 2.424 | 4.915 | 2.03 | – |
| Box | 32 | 0.03 | 2.360 | 2.478 | 315.7 | 127 | – |
| Effect alone | passive s0 | passive s1 | ideal (calibrated) | mean ratio |
|---|---|---|---|---|
| none (ideal passive) | 1.64 | 1.73 | 2.04 | 1.00 |
| input DAC, 8 bits | 1.65 | 1.73 | 2.05 | 1.00 |
| mask phase, 8 bits | 1.65 | 1.73 | 2.10 | 1.01 |
| mask amplitude, 8 bits | 1.65 | 1.75 | 2.05 | 1.00 |
| output ADC, 10 bits | 1.64 | 1.73 | 2.04 | 1.00 |
| extinction ratio, 30 dB | 8.78 | 8.03 | 12.04 | 5.29 |
| Setting | Frozen learned library (%) | Frozen random optics (%) | ||||
|---|---|---|---|---|---|---|
| calibration chip | other chips | penalty | calibration chip | other chips | penalty | |
| main ( ) | 20.35 | 21.50 | 1.16 | 24.12 | 25.88 | 1.76 |
| pre-mix adapter | 16.57 | 18.63 | 2.06 | 19.60 | 22.03 | 2.43 |
| 25.07 | 25.81 | 0.74 | 27.48 | 29.99 | 2.51 | |
| 27.83 | 28.46 | 0.64 | 30.17 | 32.62 | 2.46 | |
| slim adapter | 25.51 | 28.12 | 2.62 | 24.15 | 26.25 | 2.10 |
| pressure | TKE | speed | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Arm | nom. | MC | search | nom. | MC | search | nom. | MC | search |
| Random-error-aware | 1.08 | 21.0 | 30.1 | 10.7 | 31.4 | 43.4 | 5.97 | 16.9 | 24.1 |
| Box | 0.92 | 1.38 | 3.04 | 14.6 | 15.0 | 19.3 | 8.85 | 7.92 | 12.6 |
| Smooth-mask box | 1.08 | 1.74 | 3.56 | 12.3 | 12.7 | 15.6 | 6.77 | 8.09 | 8.14 |
| Box FT | 0.81 | 1.13 | 2.37 | 15.2 | 15.6 | 18.4 | 8.70 | 9.07 | 11.6 |
| Mixed-PGD FT | 0.76 | 0.92 | 1.34 | 15.1 | 15.6 | 15.9 | 8.76 | 8.97 | 10.8 |
| shared at | , other boxes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task | Arm (s0) | nominal | max 200 | max 1000 | searched | crosstalk | extinction | 32-D | 8-D | method | ||
| Darcy | Random-error-aware | 1.58 | 8.67 | 8.67 | 10.0 | 1.16 | 1.16 | 0.6 | 33 | 1.38 | 1.15 | A |
| Box | 2.46 | 3.29 | 3.60 | 5.77 | 1.75 | 1.60 | 0.4 | 27 | 1.99 | 1.37 | Pc | |
| Smooth-mask box | 2.85 | 3.95 | 4.25 | 6.68 | 1.69 | 1.57 | 0.4 | 27 | 1.92 | 1.40 | Pc | |
| Box FT | 2.27 | 3.16 | 3.27 | 5.19 | 1.64 | 1.59 | 0.4 | 27 | 1.95 | 1.35 | Pc | |
| Mixed-PGD FT | 2.00 | 2.73 | 2.81 | 4.06 | 1.49 | 1.44 | 0.4 | 27 | 1.73 | 1.31 | Pc | |
| Arm (seeds) | nom. | MC max | search | ratio | nom. | MC max | search | ratio | nom. | MC max | search | ratio | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Main round, mode-level device | |||||||||||||||
| Random-error-aware (5) | 0.125 | 5.37 | 6.54 | 1.18–1.24 | 5/5 | 0.0391 | 2.95 | 3.61 | 1.21–1.24 | 5/5 | 0.160 | 3.06 | 3.66 | 1.15–1.26 | 5/5 |
| Box (5) | 0.132 | 0.367 | 0.539 | 0.46–2.21 | 3/5 | 0.0597 | 0.212 | 0.212 | 0.30–1.75 | 1/5 | 0.210 | 0.414 | 0.537 | 0.69–1.90 | 4/5 |
| Smooth-mask box (5) | 0.371 | 0.734 | 1.28 | 1.53–2.01 | 5/5 | 0.146 | 0.354 | 0.535 | 1.28–2.04 | 5/5 | 0.283 | 0.583 | 0.693 | 0.81–1.58 | 3/5 |
| Box FT (5) | 0.121 | 0.407 | 0.506 | 0.28–2.02 | 3/5 | 0.0516 | 0.228 | 0.180 | 0.27–1.51 | 1/5 | 0.222 | 0.403 | 0.486 | 0.52–1.84 | 3/5 |
| mean removed | seed 0, | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Arm (seeds) | offset share | searched | re-searched | |||||||
| Random-error-aware (5) | 1.40 | 1.39 | 1.35 | 1.39 | 5/5 | 5/5 | 0.94 | 0.98 | 1.35 | 1.36 (Pk) |
| Box (5) | 2.22 | 1.63 | 1.59 | 1.63 | 5/5 | 5/5 | 0.93 | 1.00 | 1.59 | 1.73 (Pm) |
| Smooth-mask box (5) | 1.89 | 1.76 | 1.65 | 1.76 | 5/5 | 5/5 | 0.92 | 1.05 | 1.80 | 1.83 (Pa) |
| Box FT (5) | 2.08 | 1.56 | 1.53 | 1.56 | 5/5 | 5/5 | 0.92 | 1.03 | 1.48 | 1.52 (Pz) |
| Mixed-PGD FT (5) | 1.44 | 1.15 | 1.15 | 1.15 | 5/5 | 5/5 | 0.84 | 1.32 | 1.15 | 1.25 (Pc) |
| Arm (seeds) | search | 1/2/5% | search | 1/2/5% | ||||||||
| Main round, mode-level device | ||||||||||||
| Random-error-aware (5) | 1.24 | 5/5 | 1.40 | 5/5 | 1.01 | 0/0/5 | 1.24 | 5/5 | 1.40 | 5/5 | 1.01 | 0/0/0 |
| Box (5) | 2.45 | 5/5 | 3.33 | 5/5 | 1.43 | 1/0/0 | 2.34 | 5/5 | 3.29 | 5/5 | 2.66 | 0/0/0 |
| Smooth-mask box (5) | 1.91 | 5/5 | 2.99 | 5/5 | 1.09 | 5/0/0 | 1.83 | 5/5 | 3.07 | 5/5 | 1.32 | 0/0/0 |
| Box FT (5) | 2.34 | 5/5 | 3.32 | 5/5 | 1.75 | 1/0/0 | 2.27 | 5/5 | 3.54 | 5/5 | 3.00 | 0/0/0 |