Does the optical idea survive the arithmetic?
Four checks that came up again and again while gating proposals for log-domain neurons and photonic coprocessors. Each one takes a minute and has ended more than one design: precision caps how often light can be recirculated, materials trade nonlinearity for loss, logarithmic arithmetic loses at inference precisions, and fixed analog aggregation collapses to a single matrix.
Background: The log-arithmetic gates and Analog chips can do nonlinear ML.
1 · Recirculation · how many passes through one optical circuit?
Loss is not the binding constraint — precision is. Each pass spends SNR; once the datapath drops below its usable bit depth (about 4 bits in the log-arithmetic experiments), quality falls off a cliff. ENOB = (SNRdB − 1.76) / 6.02.
2 · Materials · does a different nonlinear material escape the tradeoff?
FoM = n₂ / (βTPA· λ): below 1, two-photon absorption eats the signal before a π phase shift accumulates. The column to read is n₂ / loss — across ~600× in n₂, it stays within about an order of magnitude. Material choice slides you along the loss–nonlinearity tradeoff; it doesn't lift you off it.
| material | n₂ (m²/W) | FoM | loss (dB/cm) | n₂ / loss |
|---|---|---|---|---|
| Silicon | 4.50e-18 | 0.36 | 2 | 2.25e-18 |
| Silicon nitride | 2.50e-19 | 161.29 | 0.1 | 2.50e-18 |
| Chalcogenide As₂S₃ | 3.00e-18 | 32.26 | 0.5 | 6.00e-18 |
| Silica | 2.70e-20 | 174.19 | 0.001 | 2.70e-17 |
| AlGaAs (below half-gap) | 1.60e-17 | 103.23 | 1 | 1.60e-17 |
| Yours | 1.00e-18 | 6.45 | 0.5 | 2.00e-18 |
3 · Logarithmic arithmetic · does LNS pay at the precisions inference runs at?
LNS turns a multiply into an add — and an add into a log-sum-exp: a compare/subtract, a table lookup and another add. A MAC is both. Per-op energies are Horowitz's ISSCC 2014 45 nm table; the ratios are what carry across nodes.
| precision | linear MAC (pJ) | LNS MAC (pJ) | LNS / linear | |
|---|---|---|---|---|
| int8 | 0.23 | 0.59 | 2.57× | worse |
| fp16 | 1.50 | 1.70 | 1.13× | worse |
| fp32 | 4.60 | 3.20 | 0.70× | better |
4 · Pre-ADC aggregation · K optical experts, one ADC
Broadcast x once, fan out to K linear operators, aggregate with fixed analog weights g, digitise once. It is exactly one matrix: Σ gi Wi x = (Σ gi Wi) x. The check below builds the bank in your browser and compares.
Run it locally (Python)
pip install numpy python recirculation_budget.py python material_fom.py python energy_lns.py python preadc_trilemma.py
- recirculation_budget.pypass budget from the precision floor
- material_fom.pynonlinear figure of merit
- energy_lns.pyLNS vs. linear MAC energy
- preadc_trilemma.pyaggregation collapse · requires numpy
