NeuroGenesys.
Back to ToolsResearch Tools • photonics-budget

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.

SNR budget12.0 dB
passive · thermal-limited26
passive · shot-limited53
amplified loop16
Thermal-limited detection loses 0.458 dB per pass; shot-limited loses half that (0.229dB). Amplifying doesn't rescue it — ASE from n cascaded ideal amplifiers degrades OSNR as 1/n, the same order of headroom. And passes through one operator are recurrent depth with a shared weight matrix — the weakest use of a memory budget in the log-arithmetic experiments.

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.

materialn₂ (m²/W)FoMloss (dB/cm)n₂ / loss
Silicon4.50e-180.3622.25e-18
Silicon nitride2.50e-19161.290.12.50e-18
Chalcogenide As₂S₃3.00e-1832.260.56.00e-18
Silica2.70e-20174.190.0012.70e-17
AlGaAs (below half-gap)1.60e-17103.2311.60e-17
Yours1.00e-186.450.52.00e-18
The structural requirement isn't more variety. |E|², χ⁽²⁾ and Kerr are all polynomial, and a stack of polynomial nonlinearities computes a bigger polynomial — not a universal approximator (Leshno et al. 1993). The vocabulary needs at least one saturating element: saturable absorption, or a bistable phase-change cell.

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.

precisionlinear MAC (pJ)LNS MAC (pJ)LNS / linear
int80.230.592.57×worse
fp161.501.701.13×worse
fp324.603.200.70×better
move one weight (HBM)40.00 pJ
free arithmetic saves3.4%
Decode is memory-bound: on the calibrated H100 constants, one weight enables one MAC (1.42 pJ) but costs 40.00 pJ to move. Making arithmetic entirely free saves 3.4%; LNS captures at most a fraction of that. The industry adopted the log idea where it pays — the floating-point exponent and the shared block scale of MXFP and NVFP4.

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.

‖bank − W_eff·x‖< 1e-12
‖bank output‖93.1
bank weights409,600
collapsed weights4,096
Identical up to floating-point rounding: the bank costs 100× the hardware for the same function. A bank is only worth it if the gates depend on x or the operators are nonlinear — and each escape has a price. Input-dependent routing must measure something first (the conversion the aggregation existed to avoid) or reprogram analog weights every token; nonlinearity between broadcast and aggregation hits the cascadability wall. Amortised conversions or input-dependent routing: pick one.

Run it locally (Python)

pip install numpy
  python recirculation_budget.py
  python material_fom.py
  python energy_lns.py
  python preadc_trilemma.py

Leadership

A word from the founder — on why the brain is the blueprint, and why the next decade of intelligence will be built here.

"The brain is the universe's only proof that general intelligence is possible. We treat it as the blueprint."

From cortical interfaces to photonic silicon, every program at NeuroGenesys exists to answer one question: how does intelligence arise — and how do we build it safely.

Will Schulz

Will Schulz

Founder, NeuroGenesys • AW3 Technology