§10.3–10.4Processing in Sensor & in the Optical Domain

Part III Sze et al. pp. 264–267 · ~8 min read

  • processing in sensor
  • Angle Sensitive Pixels
  • optical neural network
  • coherent detection

The chapter closes with the memory-wall playbook applied twice more: first to the other end of the data pipeline — the sensor where the inputs are born — and then to a different carrier of information entirely: light.

10.3 Processing in Sensor

In applications like image processing, moving data out of the sensor can account for a significant share of total energy. The principle that brought compute near the memory (where the weights live) applies verbatim to the sensor (where the inputs are collected): reduce the data read out, and with it the number of expensive ADC conversions. And the price is the same too — computation slides into the analog domain, inheriting its sensitivity to circuit non-idealities. Where near/in-memory processing cut weight movement, near/in-sensor processing cuts input movement.

Two depths of integration:

  • Processing near sensor — analog computation in the image sensor’s periphery, before the ADC: switched-capacitor circuits performing 4-bit multiplications (Zhang et al.) and 3-bit × 6-bit MACs (Lee et al.) — both measured on fabricated chips — and RedEye, which performs the entire first convolution layer (convolution, max pooling, quantization) in analog before the ADC (simulation-based).
  • Processing in sensor — computation inside the pixel array itself: an Angle Sensitive Pixels (ASP) sensor computes the gradient of the input in-pixel, which together with compression cuts data movement out of the sensor by 10×. And because the first layer of a DNN often outputs a gradient-like feature map, the first layer’s computation may be skipped entirely — saving its energy as well.
Three camera-to-DNN pipelines — watch where the heavy traffic and the ADC sit (click blocks)
full analog readoutfull digital frames — the trafficPixel arrayphotodiodesclick for detailsADCevery pixel convertedclick for detailsDNN processorall layers digitalclick for details
Blocks with a dot open up — click one to look inside.

10.4 Processing in the Optical Domain

The most radical entry: replace electrons with photons. Two physical gifts motivate optical neural networks (photonic accelerators): photons travel much faster than electrons, and the cost of moving a photon can be independent of distance — the exact opposite of Eq. 3.8’s wire-capacitance tax. Moreover, multiplication can be performed passively — by optical interference, reconfigurable filters, or static phase masks — and photodetection runs at over 100 GHz. Most work targets matrix multiplication, in two contrasting architectures — a programmable interferometer mesh, and free-space coherent detection :

(a) Interference mesh (Shen et al.) — weight-stationaryinputs = optical pulse amplitudesinterferometerarraybeamsplitters programmed= the weight matrix (resident)photodetectorsweights stay programmed in the mesh (weight-stationary);accumulation = light gathered at each detector.cost: interferometers have a large on-chip footprint(b) Coherent detection (Hamerly et al.) — output-stationaryactivations I(k): light pulses, fanned outweights F(k): encoded on-the-fly into lightbeam-splitterdetectboth operands interfere in free space; the product lands on thephotodetector, where the OUTPUT accumulates as an analogelectronic signal (output-stationary) → nonlinearity → next layer.no on-chip interferometers → more scalable,but free-space alignment is the new complexity

Figure 10.17, distilled: the dataflow taxonomy survives the jump to photonics — what stays resident (weights in the mesh vs outputs on the detector) names the design.

The energy story mirrors PIM’s periphery problem: computation in the optical domain has negligible power loss — the power is spent converting between electrical and optical domains (generating the light, detecting the photons). So, exactly as with ADC/DAC amortization, the larger the matrix per conversion, the better the economics.

And the accuracy story mirrors PIM too: optical non-idealities — crosstalk between detectors, errors in phase encoding, photodetection noise — degrade DNN accuracy. Bernstein et al.’s response is a hybrid: do the data transfer optically (exploiting distance-independent photon cost) but the MAC computation digitally in the electrical domain, avoiding the analog-optical arithmetic entirely.

Sensor & optical works at a glance — and their evaluation status (click cells)
DomainWhat it computesDemonstrated
Zhang et al. / Lee et al.near sensor (pre-ADC)switched-cap 4b mult / 3b×6b MACsmeasured (fab chips)
RedEyenear sensor (pre-ADC)entire conv layer: conv + max pool + quantizationsimulated
ASP sensorin sensor (in-pixel)input gradients (+ compression)demonstrated in-sensor
Shen et al.optical (on-chip)matrix mult via interferometer mesh — weight-stationarysim extrapolated from experiments
Hamerly et al.optical (free space)matrix mult via coherent detection — output-stationarysimulated
Bernstein et al.hybrid optical-electronicoptical data transfer + digital electronic MACsproposal / analysis
Dotted-underlined cells have explanations — click one.

Chapter 10’s closing pattern

Every section of this chapter played the same three notes: (1) move compute to the data — near memory, in memory, at the sensor, into light; (2) pay for it at the converters (ADC/DAC, electro-optical), so amortize them over the biggest array possible; (3) accept that analog non-idealities now tax accuracy — the metric §3.1 put first. Judge every advanced-technology claim through Chapter 3’s full metric vector — and check whether the numbers are measured or simulated.

Check yourself

Check yourself — Sensor & Optical Processing

1.Processing near/in memory targets the weights. What do processing near/in sensor target, and what cost do both share?

2.What distinguishes 'processing near sensor' from 'processing in sensor'?

3.Why might optical DNN processing be fundamentally cheap — and where does its power actually go?

4.Match the two optical-NN schemes to their dataflows: Shen's interferometer mesh vs Hamerly's coherent detection.

5.Optical non-idealities (crosstalk, phase errors, detection noise) cost accuracy. What hybrid does Bernstein et al. propose?

5 questions