In 2017 a group at MIT pushed laser light through 56 Mach–Zehnder interferometers etched into a
silicon chip and used the pattern that came out to recognise spoken vowels. The paper — Shen et
al., Deep learning with coherent nanophotonic circuits — is the founding document of the
optical neural network (ONN), and its pitch is one line long. A neural network
layer computes
That is a genuinely beautiful mapping, and this module spends seven lessons finding out exactly how far it goes. The ethos throughout is the engineer's, not the press office's: we will count every conversion, every calibration loop and every picojoule, because the case for photonic AI hardware stands or falls on arithmetic, not on the undeniable glamour of computing with light.
One ONN layer is three stages in a row. First, encoding: N modulators put the entries of
Notice what the middle stage costs at run time: nothing per operation. Once the phases
are set, an
Be precise about the win. Digital hardware performs an
| Workload ingredient | Photonic fit | Why |
|---|---|---|
| Large dense matvec / matmul | Excellent | N² MACs per pass, passive, weights stationary |
| Convolutions | Good | Unrolled into matmuls, or done with wavelength tricks (next lesson) |
| Nonlinear activations | Poor | Photons barely interact — lesson 4 is devoted to this |
| Weight storage & update | Poor | Phases are set slowly (thermal: microseconds) and hold no dense DRAM-like state |
| Branching, control, softmax, normalisation | Poor | These stay electronic; every crossing of the boundary costs a conversion |
A worked number makes the headline concrete. Take
The mesh has a split personality, and it decides what ONNs are actually for. During inference the weights are frozen: set the phases once — even if setting them takes microseconds and milliwatts of heater power — and then amortise that cost over billions of input vectors streamed through at optical speed. The workload is "same matrix, endless new vectors", which is precisely the mesh's best case, and it is also deep learning's dominant commercial workload: a trained model serving queries. Latency helps too — a forward pass in ~100 ps, with no batching needed to reach peak throughput, is attractive wherever a single answer is needed now (autonomous systems, high-frequency inference, physics triggers).
Training inverts every one of those advantages. Weights change every step, so
the slow, power-hungry phase updates land on the critical path;
The Shen et al. demonstration deserves both its fame and a careful reading. The chip was a 4-input, 4-output mesh of 56 MZIs implementing two network layers; the task was recognising one of four vowel sounds from recorded formant data. Run entirely in simulation, their network scored 91.7%. Run with the matvecs on the physical chip, it scored 76.7%. The gap was not a mystery — the authors traced it to phase-encoding error and photodetection noise, exactly the analog error sources lesson 5 will quantify. And the "deep learning" was modest: the nonlinearity between layers was applied in software, on a computer, between chip passes. None of this is a criticism — a first demonstration is supposed to expose the real problem list — but it set the module's agenda in 2017 and the agenda has not changed since: conversions, nonlinearity, noise, training, energy. Those are the five fences an ONN must clear, and they are the next five lessons in order.
The classic overclaim — in papers as often as press releases — is to demonstrate an optical
matvec and describe an optical neural network. Trace one full layer of the 2017
architecture and count the boundary crossings: digital weights → DAC → phase setting; digital
inputs → DAC → modulator; light through the mesh (the only optical part); photodetector → ADC →
digital nonlinearity → back to a DAC for the next layer. That is an electronic sandwich with an
optical filling, and every slice of bread costs energy and time that the interference did not.
The per-MAC energy of the optical stage can be genuinely tiny while the per-vector
conversion cost dominates the system — whether it does depends on
The MZI mesh is the coherent, single-wavelength way to multiply by a matrix — but light has a
dimension electronics entirely lacks: colour. The