Optical Technology for AI Processing — Presentation 02

Optical Matrix Multiply: Precision and Conversions

Pricing an optical matrix–vector product conversion by conversion: how values and weights are encoded and stored, where noise sets precision, the photon floor, why converters dominate, static power and utilisation, how arrays scale and drift, and the digital yardstick it has to beat.

Reuse Weight storage ENOB Shot noise Converters pJ/MAC
N inputs: N DAC samples → N² optical MACs → N outputs: N ADC samples
00

Topics We'll Cover

Concepts used here, and where they are explained. Each links to a glossary entry: this series glossary, or the glossaries of Fourier Optics for Inference and Training, Silicon Photonics Fundamentals and other sister series for concepts they already explain.

01

The Operation and Its Reuse

A matrix–vector product y = Wx with an N × N matrix is N2 multiply–accumulates (MACs). Done optically, it needs N input values converted into light (DAC samples), N outputs converted back (ADC samples), and the N2 weights held in the optics. Everything in between is free.

MACs per conversion = N2 / 2N = N / 2

02

Encoding Values in Light

EncodingSigned valuesNotes
Field amplitude and phase (coherent)Yes: a phase of π is a minus signNeeds a stable phase reference and coherent detection to read the sign back (the phase problem)
Optical power (incoherent)No: power is never negativeSplit positive and negative parts onto two detectors and subtract, or add a bias that uses up dynamic range
WavelengthAs powerOne input per wavelength, summed on one photodiode (OptAI 01, slide 08)
TimeEitherProducts accumulated as charge on a detector over many time slots (photoelectric multiplication, OptAI 01, slide 09)
03

Storing the Weights

Weight elementHolding a value costsChanging itSource
Thermo-optic phase shifterContinuous heater power: 24.77 mW for a full π in one efficient designMicroseconds; the 3 dB bandwidth was 130 kHzHarris et al. (Opt. Express 22, 10487, 2014)
Phase-change material (Ge2Sb2Te5)Nothing: non-volatileUp to eight levels (3 bits); switching energy as low as 13.4 pJRíos et al. (Nature Photon. 9, 725, 2015)
Electro-optic (carrier or Pockels)Little static powerGHz, but most electro-optic phase shifters are long or weak (VπL)OptSiP 02
Spatial light modulator pixel (free space)Driver power per frameMilliseconds for liquid crystal (SLMs)FOptInf 01
04

Noise and Precision

An optical matrix multiplier's output carries noise from many sources: detector shot noise and thermal noise, laser intensity noise, crosstalk between channels, phase and splitting errors (OptAI 01's interactive), drift, and the converters' quantisation. Together they set an effective number of bits (ENOB) for the whole chain.

05

The Photon Floor

Even a perfect detector counts photons, and photon counts fluctuate: with n photons, the relative noise is 1/√n. To make that noise no larger than the quantisation noise of an E-bit converter on a full-scale signal (2−E·2/√12), a detector needs about n = 3 · 4E photons per sample. The interactive uses this as its laser floor.

ENOBPhotons per detectionOptical energy at 1550 nm
4768about 0.1 fJ
8196,608about 25 fJ
12about 50 millionabout 6.4 pJ

Arithmetic: n = 3 · 4E; energy n·hν, with hν = 1.28 × 10−19 J at 1550 nm; before loss and laser efficiency, and shared by the N MACs that feed one detector.

06

Interactive: Energy per MAC

Energy per MAC of an optical N × N matrix–vector engine, term by term: input DACs and output ADCs at Walden FoM × 2ENOB each, shared by N MACs (Walden figure of merit); weight loads if the weights change; the laser at the photon floor of slide 05, raised by optical loss and divided by wall-plug efficiency; and static power per weight cell at the vector rate. The converter FoMs, laser efficiency, loss and static power are illustrative defaults; the digital reference default is Horowitz's 8-bit multiply plus add at 45 nm (slide 11).

64
8
10
20
10
3.0
0.00
1.0
0.23
Optical energy
—
Against digital
—
Photons per detection
—
Largest term
—

Limits: no memory or data-movement energy (often the largest term in a real system, deck 03); no modulator drivers, TIAs or nonlinearities beyond what the converter FoMs absorb; the laser sits exactly at the shot-noise floor, which real systems exceed. It is a lower bound for the optical side and a fair yardstick for what conversion costs.

07

Why Converters Dominate

Converter energy per sample is roughly the Walden figure of merit times 2ENOB, so each extra bit doubles it (conversion-bound optics, with the table in FOptInf 01, slide 11).

08

Static Power and Utilisation

09

Scaling the Array

ArchitectureElements for N × NElements crossed by each pathConsequence
MZI mesh (Clements)N(N−1)/2 MZIs per unitary; two meshes for a general matrixAbout NLoss and error grow with N (OptAI 01's interactive)
Incoherent crossbarN2 weight cellsOne weight cell plus routingLoss grows with splitting to N rows; N wavelengths or N inputs per row
Free-spacePixels of a modulatorA few planesHuge N, slow weight updates
10

Calibration and Drift

11

The Digital Yardstick

Operation (45 nm, 0.9 V)Energy
8-bit integer add0.03 pJ
8-bit integer multiply0.2 pJ
16-bit floating-point add0.4 pJ
32-bit floating-point multiply3.7 pJ
64-bit access to an 8 KB SRAM10 pJ
64-bit access to off-chip DRAM1.3–2.6 nJ

Source: Horowitz, “Computing's energy problem (and what we can do about it)” (ISSCC 2014).

12

What to Take Away