laserinputFourier planecameraffff4f system: lens, Fourier plane, lens
A lens Fourier-transforms its input at one focal length: the square aperture’s pattern here is computed by FFT.
LLM Hub — Fourier Optics for Inference

Fourier Optics for Inference

Could a Fourier-optical engine, which computes a 2-D Fourier transform (and with a mask, a convolution) in one pass of light, accelerate disaggregated LLM inference? Three decks work it out: the physics and its precision and energy bill; where transforms appear in inference workloads, with an Amdahl analysis of prefill FLOP shares from a published script; and a simulator with heterogeneous pools and an optical transform device in the prefill pool, with the simulator live in the browser and an answer: where an optical prefill pool would and would not pay. A fourth deck opens up a real photonic link module's hardware: modulators and bias points, coherent detection, the receiver, and its signals as constellations through the chain. A fifth asks which AI workloads the future stacked photonic chip could run, using a simulator of that chip: with its illustrative parameters, none of them pays.

4f systemConvolution theoremENOBFNet / HyenaAmdahlDisaggregated serving5 decks live

Presentations in This Series

  1. Fourier Optics for Engineers →
    How a lens computes a Fourier transform and a 4f system a convolution, in one pass of light: where the Fourier plane is, how the pattern scales with wavelength and why the light must be coherent; spatial light modulators, what a pixelated detector reads, and coherent (balanced) detection; on-chip slab lenses, butterfly meshes and convolution on a chip; a photonic link module's signal path and its slab lens; the precision and energy bill: ENOB, noise, passes, binary bit planes and the converters around the optics; what a transformer layer's linear algebra would ask of optics, and why a fixed band suits optics where top-k does not; and, to close, a warning not to confuse the chip's spatial transform with the fibre's bit stream. It opens with the optics vocabulary (plane wave, ray, wavefront, phase, spatial frequency, focal plane) for readers new to optics. Every concept has a figure, and every mechanism an animation driven by a tested model.
    live4f system · Convolution theorem · Coherent detection · Photonic link module
  2. Transforms in Inference Workloads →
    Where a Fourier transform could appear in LLM inference, and how much it would matter: FNet, long convolutions (S4, H3, Hyena), causality at prefill and decode, an Amdahl analysis of prefill FLOP shares, structured weights, transform-domain KV compression, mask capacity, and an honest list of what does not map.
    liveFNet · Hyena · Causality · Amdahl
  3. Optical Prefill Pools: Simulated Results →
    The serving simulator (Optical_Serving_Sim) extended with heterogeneous pools, FFT-mixing models and an optical transform device: TTFT, TPOT, goodput, joules per token and PPA against all-GPU baselines, the break-even point, the KV link options, and compressing the KV hand-off in transit, with the simulator live in the browser.
    liveHeterogeneous pools · Transform device · Break-even · PPA
  4. Inside a Photonic Link →
    The hardware primer for the photonic link module of deck 01 (arXiv:2608.21536): light as a carrier that a photodiode sees only as power; the Mach–Zehnder modulator and its three bias points, and why quadrature suits unsigned bits; the textbook IQ modulator; holding a bias with dither and lock-in; direct against coherent detection with a local oscillator and a balanced pair; one input vector followed through the whole chain as constellations; the DFT's PAM5 and 3×3 alphabet and its packing into PAM4; calibration, where input phase errors distort and output errors rotate; the transimpedance amplifier, the noise budget and lane skew; and what a simulator needs from all of it. Every concept has a figure, and every mechanism an animation driven by a tested model.
    liveMZM bias points · Coherent detection · Constellations · PAM4
  5. AI Workloads on a Stacked Photonic Chip →
    Which AI workloads could the future dense, 3D-stacked photonic chip run well, and under what conditions? The memory wall with today's HBM; exact mode against approximate mode, which keeps only a few effective bits; the ENOB each format needs (FP4 and INT4 computed for the first time); energy at matched precision; the laser, heater and calibration limits; and a screen of candidate workloads (Fourier mixing, block-circulant weights, an FP4 MAC, KV-cache ranking, training traffic, FHE NTTs). With the simulator's illustrative parameters none of the AI workloads pays, and the deck says what would have to be true. The transform is modelled as the passive slab the module uses (simulator plms 0.5.0): its loss worsens margins and laser fan-out but does not change the verdict, and a larger native slab helps only the approximate mode.
    liveStacked photonic chip · Approximate mode · ENOB · FP4

Analysis and Code

  1. </>
    analysis/ →
    flop_share.py: the FLOP-share (Amdahl) analysis for a Llama-3-8B-shaped model in five variants, checked against Disaggregated_Inference_Sim's cost model to the FLOP; numerical checks of causal FFT convolution, relaxed tiling and the precision rule; conversion energy and mask capacity. It writes results.md, the source of every number in the decks. js/flop_model.js is its port for deck 02, tested to match exactly.
    codePython · NumPy · pytest · JavaScript
  2. </>
    analysis/link_hw/ →
    link_hw.py: first-order models of a Mach–Zehnder modulator, its bias points and a dither loop; the signal chain of a four-channel photonic link module from bits to PAM4, with calibration errors; a balanced homodyne receiver's noise budget, the transimpedance limit and lane skew. It writes results.md, the source of every number in deck 04. js/fop04_models.js is its port, which draws deck 04's animations; test_link_hw.py checks the two agree.
    codePython · pytest · JavaScript
  3. </>
    Optical_Serving_Sim →
    The frozen copy of the sister series' SimPy disaggregated-serving simulator that holds deck 03's extensions: heterogeneous pools, FFT-mixing models, an optical transform device and KV hand-off compression (Python and a bit-exact JavaScript port; heterogeneous pools also in the Rust port, Rust_DES_Kernel). examples/results.md is the source of every deck-03 number.
    codePython · SimPy

How to read this series. Deck 01 is the physics and the bill: how optics computes a Fourier transform, and what precision, conversions and static power cost. Deck 02 asks where LLM inference has transforms at all, and answers with an Amdahl analysis computed by a published script. Deck 03 puts an optical transform device into a disaggregated-serving simulator's prefill pool. Every number in decks 01-02 comes from analysis/results.md, written by analysis/flop_share.py; every number in deck 03 from Optical_Serving_Sim's examples/results.md. Deck 04 is a hardware primer for the photonic link module that deck 01 and the Compute in Transit series discuss; its numbers come from analysis/link_hw/results.md. Deck 05 screens AI workloads for a future 3D-stacked photonic chip; its numbers come from that chip's simulator results, vendored with their checksums in the deck's repository. Illustrative coefficients are labelled where they are used.

Optical-computing companies and this series. Several photonic-computing companies publicly describe systems for AI and for fully homomorphic encryption, and published optical computing for FHE centres on Fourier transforms (see FHESim 04). Everything here about applying a Fourier-optical engine to LLM inference is this series' own analysis and speculation, attributed to no company.

Follow-on series. Compute in Transit takes the last glossary entry here further: a photonic link module (arXiv:2608.21536), its operations-per-byte budget, and which LLM training and inference traffic it could work on, including frequency-domain gradient compression (DeMo).

Glossary: Concepts and Where They Are Explained

Every concept the decks rely on, with a short explanation and links to the slides that explain it. Concepts the sister series already explain are linked, not repeated: LLM Inference Simulators (prefill and decode, the roofline, the KV cache, disaggregation, power), FHE Accelerator Simulators (the 4f system, digit planes, ENOB and exact rounding, the Walden figure of merit) and the Simulation Engineering Toolkit (Amdahl's law, PPA).

Optics basics

Wavelength, phase and optical path length
Light is an oscillating electric field, treated at each point as a complex number (amplitude and phase). The wavelength λ is the distance between crests; the phase says where in its cycle the wave is, advancing 360° per wavelength travelled. Optical path length is distance times refractive index, so path differences, in fractions of a wavelength, set how waves interfere.Explained in: FOptInf 01 · the words optics uses · FOptInf 01 · path lengths in the Fourier plane
Plane wave, wavefront and ray
A wavefront joins points of equal phase. A plane wave has flat, parallel wavefronts and travels in one direction: a single complex exponential in space. A ray is a line at right angles to the wavefronts, showing where the light goes; a plane wave is a bundle of parallel rays (a collimated beam). Ray drawings ignore diffraction.Explained in: FOptInf 01 · the words optics uses · FOptInf 01 · plane-wave components in a 2f system
Focal length, focal plane and optical axis
A lens turns a plane wave into a spherical wave closing on a point: parallel rays along the optical axis meet at the focal point, one focal length f behind the lens; tilted parallel rays meet elsewhere in the focal plane through it. The back focal plane is the Fourier plane.Explained in: FOptInf 01 · the words optics uses · FOptInf 01 · where the Fourier plane is
Spatial frequency
Cycles per metre across a plane: frequency with metres for seconds. A plane wave tilted by θ makes the field along a plane ripple at u = sinθ/λ; so any pattern is a sum of plane waves at angles set by its frequencies (diffraction), which a lens sorts to points x = λfu.Explained in: FOptInf 01 · the words optics uses · FOptInf 01 · where the Fourier plane is · FOptInf 01 · scale and coherence
Interference, diffraction and the far field
Overlapping waves add as fields: in phase they reinforce, half a cycle apart they cancel. Diffraction is the spreading of light past fine structure, finer structure giving wider angles; far from the input (the Fraunhofer far field), or in a lens's focal plane, the pattern is the input's Fourier transform. Detectors read intensity, |E|².Explained in: FOptInf 01 · the words optics uses · FOptInf 01 · the lens as a Fourier transformer · FOptInf 01 · detectors and the phase problem
Paraxial approximation
Small angles to the optical axis, where sinθ ≈ tanθ ≈ θ: the linearisation behind ray-transfer matrices and x = λfu.Explained in: FOptInf 01 · the words optics uses · FOptInf 01 · scale and coherence

Optics

The lens as a Fourier transformer
In coherent light, the field in a lens's back focal plane is the 2-D Fourier transform of the field in its front focal plane; a point at distance x from the axis holds spatial frequency x/(λf). The transform is computed by propagation, in one pass, for every pixel at once.Explained in: FOptInf 01 · the lens as a Fourier transformer · FOptInf 01 · the 4f system
The convolution theorem
A convolution in one domain is a pointwise product in the other: F{h ∗ u} = F{h}·F{u}. A 4f system uses it optically (mask = filter spectrum); on a chip, attenuators or modulators between two transforms play the mask; FFT convolution uses it digitally in O(n log n).Explained in: FOptInf 01 · the 4f system and the convolution theorem · FOptInf 01 · interactive FFT convolution · FOptInf 01 · convolution on a chip · FOptInf 02 · long convolutions
Fourier plane and the 2f system
The back focal plane of a lens, one focal length behind it, with the input one focal length in front (a 2f system). Each plane-wave component of the input focuses to its own point there, x = λfu, so the plane holds the spectrum: where a camera reads it or a mask filters it. A second lens (4f) transforms back to a mirrored image.Explained in: FOptInf 01 · where the Fourier plane is: 2f and 4f · FOptInf 01 · scale and coherence · FOptInf 01 · the 4f system
Coherent and incoherent light
Coherent light (a laser) adds complex field amplitudes, so signed and complex values interfere; incoherent light adds non-negative intensities. Coherent systems compute Fourier transforms of fields; incoherent ones are limited to non-negative quantities unless values are offset or split.Explained in: FOptInf 01 · coherent and incoherent light · FOptInf 01 · scale and coherence · FOptInf 01 · detectors and the phase problem
Spatial light modulator (SLM)
A pixelated device that writes values into a light field. Liquid-crystal SLMs modulate phase or amplitude and settle in tens of milliseconds; a 2-megapixel digital micromirror device switches amplitude at about 1 kHz with 8-bit depth (20 kHz binary). Pixel count and frame rate bound how fast inputs and Fourier-plane masks can change.Explained in: FOptInf 01 · spatial light modulators · FOptInf 02 · mask capacity
Square-law detection and the phase problem
Photodetectors measure intensity |E|², losing the sign and phase of the field. Remedies: interfere with a reference beam (coherent detection), add a bias so the field stays positive, split positive and negative parts into two passes, or recover phase iteratively (phase retrieval).Explained in: FOptInf 01 · detectors and the phase problem
Coherent detection and balanced photodiodes
Mixing the signal field with a local oscillator (in the module, from the same laser) in a 50:50 coupler and subtracting the two photodiode currents (balanced detection). The difference is 2·R·Re(E·LO*), linear in the field, so sign and phase survive: an oscillator at 0° reads the real part, at 90° the imaginary part.Explained in: FOptInf 01 · pixels, the DFT and coherent detection · FOptInf 01 · detectors and the phase problem · FOptInf 01 · case study: a photonic link module · FOptInf 04 · direct and coherent detection
Mach–Zehnder modulator (MZM)
An interferometer that splits light into two arms, shifts their phases and recombines them, so a voltage becomes a change of optical amplitude: field = cos(Δφ/2). Driven push-pull, the field stays real and can change sign. How electrical data is written onto light in a waveguide, at GHz symbol rates; the photonic link module has four, driven with binary (NRZ) levels.Explained in: FOptInf 04 · the Mach–Zehnder modulator · FOptInf 01 · case study: a photonic link module · FOptInf 01 · on a chip: slab lens or butterfly mesh
Mach–Zehnder interferometer (MZI) meshes
A triangular (Reck) or rectangular (Clements) grid of MZIs implements any N×N unitary, including the DFT, on a chip: N(N−1)/2 MZIs, each with a phase shifter that must be calibrated and held.Explained in: FOptInf 01 · integrated-photonic alternatives · FOptInf 01 · transformers' linear algebra and optics
Programmable optical matrix multiply
Applying a general, learned weight matrix in light: an MZI mesh sets W = UΣV* with two unitary meshes and a row of attenuators, or a wavelength-multiplexed crossbar holds the weights in its cells. It is not Fourier optics, since a lens computes one fixed transform, and it pays the same bills: a conversion per value, analogue precision and weight reloads. Nonlinear steps between matmuls force a conversion out of the light and back.Explained in: FOptInf 01 · transformers' linear algebra and optics · FOptInf 02 · a standard decoder has no FFT
Integrated optical Fourier transforms
On-chip alternatives to a free-space lens: diffractive or slab-lens structures, MZI meshes, and coupler and delay-line FFT circuits (used for all-optical OFDM). They are compact and fast but much smaller than a free-space 4f system.Explained in: FOptInf 01 · integrated-photonic alternatives · FOptInf 01 · on a chip: slab lens or butterfly mesh · FOptInf 01 · convolution on a chip · FOptInf 01 · the link module uses a slab lens
Slab lens (confocal slab waveguide)
An on-chip lens: a flat slab of waveguide in which light is confined vertically and spreads freely across. Input ports sit on one arc and output ports on another, each arc passing through the other's centre, so each output receives every input with a phase that steps from port to port: the outputs sample the Fourier transform of the inputs. Passive and fixed by its shape; the photonic link module's optical Fourier transform is of this kind.Explained in: FOptInf 01 · the link module uses a slab lens · FOptInf 01 · on a chip: slab lens or butterfly mesh
Slab waveguide (OFT)
The photonic link module's optical Fourier transform (OFT): a passive diffractive slab, which the module paper calls a “passive diffractive device” and its patent EP4677399A1 “a slab waveguide”, not a mesh of Mach-Zehnder interferometers. It has no phase shifters inside; its cost is insertion loss (1.977 dB in the simulator plms 0.5.0, which models it from its physics), and that loss, not the transform, moves the numbers: a lower margin, fewer units per laser (12 against a lossless mesh's 20), and a chained approximate mode that loses bits per stage. It does not change the verdict on the future stacked chip.Explained in: FOptInf 01 · the link module uses a slab lens · FOptInf 05 · does a slab change the verdict?
Native size N (of a slab transform)
The number of points an N-point slab transforms in one pass (4 on today's module). Larger N needs fewer stages for a long FFT (2 instead of 6 for 4,096 points at N = 64), but beyond N = 4 the outputs of a DFT of bits are not integers (15 levels at N = 8, 91,552,734,375 at N = 64), so only N = 4 keeps exact (FHE) arithmetic; a larger N helps only the approximate mode (3.092 effective bits fully chained at N = 64).Explained in: FOptInf 05 · native size N
Wavelength-division multiplexing (WDM)
Several wavelengths sharing one waveguide or fibre, each carrying its own data. Through an on-chip transform each wavelength can in principle run its own transform at once, multiplying throughput; in free space, mixed wavelengths smear the spectrum instead.Explained in: FOptInf 01 · on a chip: slab lens or butterfly mesh · FOptInf 01 · scale and coherence
NRZ signalling and inter-symbol interference
Non-return-to-zero: one bit per symbol, held for the whole symbol, as two levels; the usual format on a short-reach link. Filtering the line signal below the bit rate smears neighbouring bits into each other (inter-symbol interference), closing the eye and flipping bits: the fibre's spectrum is the bits', not the data's.Explained in: FOptInf 01 · two optical domains in one module

Link hardware

Bias point (of a modulator)
A Mach–Zehnder modulator's DC operating point on its raised-cosine transfer curve, set by a slow phase shifter; the data swings either side of it. Peak (arms in phase, full power), quadrature (90°, half power) and null (180°, zero power, the field changes sign) behave very differently.Explained in: FOptInf 04 · the transfer curve and three bias points · FOptInf 04 · holding the bias point
Quadrature bias (and the other quadrature)
Biasing a modulator at half power, the arms 90° apart: power responds linearly and most steeply, and both field levels stay positive, so unsigned bits ride on a constant carrier. Not to be confused with I/Q quadrature, two signals 90° apart in carrier phase.Explained in: FOptInf 04 · “quadrature” has two meanings · FOptInf 04 · why quadrature bias suits unsigned bits
Null bias
Biasing a modulator at zero power, the arms 180° apart: the field passes through zero linearly and changes sign, so '0' and '1' have equal power and only a coherent receiver can tell them apart. The usual choice for coherent formats; held with a dither tone and a lock-in, because the power is at a minimum there.Explained in: FOptInf 04 · the transfer curve and three bias points · FOptInf 04 · holding the bias point
IQ modulator
Two null-biased Mach–Zehnder modulators whose outputs are combined 90° apart, giving any complex field I + jQ: the textbook coherent transmitter (QPSK, QAM).Explained in: FOptInf 04 · the textbook coherent transmitter
Local oscillator (LO)
Reference light of the same frequency that a coherent receiver mixes with the signal. Its phase picks which projection of the field is read (0° the real part, 90° the imaginary part) and its power is gain: the signal current grows as √PLO.Explained in: FOptInf 04 · direct and coherent detection · FOptInf 04 · the noise budget
Homodyne detection
Coherent detection with the LO at the signal's own frequency, giving the field's projection at baseband (zero IF). Self-homodyne takes the LO from the same laser as the signal, so the laser's phase noise cancels (to within any path-length mismatch).Explained in: FOptInf 04 · direct and coherent detection
Balanced detection
Two photodiodes on the outputs of a 2×2 coupler, wired so their currents subtract. The large common terms (the LO's power and most of its intensity noise) cancel, leaving 2·R·Re(E·LO*), linear in the field.Explained in: FOptInf 04 · direct and coherent detection · FOptInf 01 · pixels, the DFT and coherent detection
Constellation
A plot of each symbol's complex field: real part across, imaginary part up. Distance from the origin is amplitude, angle is phase; noise spreads each point into a cloud, and a receiver decides by the nearest point. A photodiode sees only the squared distance; a homodyne receiver sees the projection on its LO axis.Explained in: FOptInf 04 · constellations through the chain · FOptInf 04 · the textbook coherent transmitter · FOptInf 04 · the DFT alphabet
PAM4 (and PAM3, PAM5)
Pulse-amplitude modulation with 4 levels, 2 bits per symbol: the format of 50G-class electrical and optical lanes. A 4-point DFT of bits gives 5 real levels on two outputs and 3 levels per axis on the other two, packed into PAM4 for the return lanes.Explained in: FOptInf 04 · from PAM5 and PAM3 to PAM4 · FOptInf 04 · the DFT alphabet
Transimpedance amplifier (TIA)
Turns a photodiode's current into a voltage. Its gain and bandwidth trade through the transimpedance limit (doubling the bandwidth costs four times the gain); a linear TIA keeps multi-level signals, a limiting one does not.Explained in: FOptInf 04 · the receiver: what a TIA does · FOptInf 04 · the noise budget
Skew
Arrival-time difference between lanes. An ordinary multi-lane link deskews after each lane's decisions; when lanes are summed optically before any decision, a late lane's previous bit leaks into the sum and closes the eye.Explained in: FOptInf 04 · skew: four lanes summed before any decision

Precision and energy

The noise rule for floating-point workloads
For float workloads the analogue chain must match the number format's own rounding error, not be exact. Relative RMS error = crest × 2−ENOB × 2/√12; matching BF16 needs about 10.3 ENOB, INT8 8.0, FP8 E4M3 6.3. FHE's exact-rounding rule does not transfer to long convolutions.Explained in: FOptInf 01 · precision: ENOB, noise and crosstalk · FOptInf 02 · precision and energy per token
Crest factor
The ratio of a signal's peak to its RMS value. An ADC's full scale must cover the peak, so a high crest factor wastes resolution on the rare large values: the noise rule's error scales with it.Explained in: FOptInf 01 · precision: ENOB, noise and crosstalk
Dynamic precision by repeated passes
Repeating an analogue operation k times and averaging cuts random noise by √k, buying ½ log2 k bits: one extra bit costs four times the passes. Digit planes, which make FHE exact, do not help a float workload.Explained in: FOptInf 01 · buying precision: passes and planes · FOptInf 03 · static power and energy per token
Conversion-bound optics and the break-even ENOB
Every value entering or leaving the optics costs a DAC or ADC sample, at Walden-FoM × 2ENOB joules. With the series' illustrative FoMs a Hyena-style long convolution breaks even with a 1 pJ/FLOP digital FFT at about 12 ENOB.Explained in: FOptInf 01 · conversion energy and static power · FOptInf 02 · precision and energy per token · FOptInf 03 · static power and energy per token

Sequence models

FNet
An encoder that replaces self-attention with an unparameterised 2-D Fourier transform over sequence and hidden dimensions, keeping the real part. It mixes every token with every other, including later ones, so it is not causal and cannot serve a decoder as it stands.Explained in: FOptInf 02 · FNet: Fourier token mixing
Long convolution by FFT
A convolution whose filter is as long as the sequence, computed by FFT, pointwise multiply and inverse FFT in O(L log L) instead of O(L²). It is the token mixer of S4's convolution mode, H3 and Hyena.Explained in: FOptInf 02 · long convolutions · FOptInf 01 · interactive FFT convolution
Hyena
An attention-free operator: N+1 linear projections, a short depthwise convolution, then N rounds of a long implicit convolution (by FFT) and elementwise gating. Order 2 is the usual language-model setting.Explained in: FOptInf 02 · long convolutions · FOptInf 02 · the Amdahl analysis
State-space models (S4, H3, Mamba)
Sequence layers built on a linear recurrence. S4's time-invariant SSM can run as a long convolution (for training and prefill) or as a recurrence (for generation); Mamba's selective SSM makes its parameters input-dependent, which rules out the convolution form.Explained in: FOptInf 02 · long convolutions · FOptInf 02 · what does not map
Causal zero-padding
An FFT computes a circular convolution, which wraps late inputs onto early outputs. Padding input and filter to at least 2L before the FFT makes it the linear, causal convolution a decoder needs.Explained in: FOptInf 02 · causality at prefill and at decode · FOptInf 01 · interactive FFT convolution
Relaxed (tiled) online convolution
Exact token-by-token convolution in which each completed block of 2l inputs is convolved by FFT once and added to future outputs (Flash Inference): FFTs at decode, but small ones on the critical path.Explained in: FOptInf 02 · causality at prefill and at decode
Distilled recurrence (Laughing Hyena)
Fitting each long-convolution filter with a small state-space model after training, so decode runs as an O(1)-per-token recurrence with a constant-size state instead of a growing cache.Explained in: FOptInf 02 · causality at prefill and at decode · FOptInf 02 · what prefill hands to decode
Block-circulant weights
A weight matrix made of circulant blocks, each defined by one vector, so multiplying by it is an FFT, a pointwise product and an inverse FFT (CirCNN). It turns matmuls into transforms; at LLM scale it is speculative.Explained in: FOptInf 02 · structured weights · FOptInf 01 · transformers' linear algebra and optics
Monarch and butterfly matrices
Structured matrices built from products of block-diagonal and permutation factors, a family that includes the FFT. Monarch Mixer uses them along both sequence and hidden dimensions, with a causal variant.Explained in: FOptInf 02 · structured weights
Hybrid architectures
Models that interleave a few attention layers with cheaper mixers (Hyena, Mamba). They keep attention's recall where it matters; the transform share falls with the attention fraction.Explained in: FOptInf 02 · the Amdahl analysis

Inference mapping

Optical share and the Amdahl bound
The fraction f of prefill FLOPs a transform engine could take over (FFTs plus Fourier-plane multiplies). If it became free, prefill would speed up by at most 1/(1−f); for a Hyena-2 model of Llama-3-8B's shape f is 0.20% at 2,048 tokens.Explained in: FOptInf 02 · the Amdahl analysis · FOptInf 02 · interactive Amdahl explorer
Time-weighted share
FFTs run below a GPU's matmul rate, so their share of time exceeds their share of FLOPs. Weighting transform FLOPs by a relative efficiency r (an assumption) gives the share an engine could actually remove.Explained in: FOptInf 02 · the Amdahl analysis · FOptInf 02 · interactive Amdahl explorer
Fourier-plane mask capacity
A 4f pass multiplies by one mask, so every filter spectrum must be on the mask while its inputs pass. Mask values needed per forward pass divided by what the SLM holds gives rewrites per pass, each costing a frame.Explained in: FOptInf 02 · mask capacity · FOptInf 03 · mask rewrites in the simulator · FOptInf 01 · transformers' linear algebra and optics
Transform-domain KV compression
Compressing the KV cache or hidden states by keeping low-frequency DCT/Fourier coefficients along the sequence (FreqKV, FourierAttention, Fourier Transformer). It saves memory; its transforms are small.Explained in: FOptInf 02 · transform-domain compression
Prefill-to-decode hand-off
What a disaggregated server moves from the prefill pool to the decode pool: the KV cache for attention, the cached projection inputs for direct long-convolution decode (four times larger here), or a constant recurrent state after distillation.Explained in: FOptInf 02 · what prefill hands to decode · FOptInf 03 · the KV hand-off in the simulator
Transform engine against optical MAC
An optical MAC accelerates every matrix multiply (the simulator's hypothetical optical part); a Fourier transform engine accelerates only FFT and convolution work and leaves matmuls to a digital part.Explained in: FOptInf 02 · a standard decoder has no FFT · FOptInf 02 · why disaggregation fits · FOptInf 03 · the transform engine model
Optical links (co-packaged optics, optical I/O chiplets) that move bytes, such as the KV cache, between chips. They are photonics but not Fourier optics: they compute nothing.Explained in: FOptInf 02 · why disaggregation fits · FOptInf 03 · the KV hand-off in the simulator
Heterogeneous pools
Disaggregated serving with different hardware per phase: compute-heavy parts for prefill, bandwidth-rich parts for decode (Splitwise's proposal). An optical transform engine would join the prefill pool.Explained in: FOptInf 03 · heterogeneous pools in the simulator · FOptInf 02 · why disaggregation fits · LLM Inference Simulators 05 · limitations and extensions
GPU FFT efficiency
The fraction of its matmul rate a GPU reaches on FFT and Fourier-domain work. The simulator's default (1) is optimistic for GPUs; at 1/16 the GPU's own prefill of a transform-heavy model slows enough for an optical engine to have something to win. It moves the circulant verdict more than any optical parameter.Explained in: FOptInf 03 · where the time goes · FOptInf 03 · the break-even point
Break-even point
The value of a parameter (static power, ENOB, mask rate, GPU FFT efficiency) at which an optical prefill pool's J/token or TTFT p99 equals the all-GPU baseline's, found by bisection on full simulator runs.Explained in: FOptInf 03 · the break-even point
Compute in transit
Operations applied in a link's data path, between transmitter and receiver, on data that must move anyway. At about 1–2 operations per byte at line rate it suits requantising or frequency-compressing the KV hand-off, not matmuls; it helps latency only where the link is the bottleneck. Speculative here.Explained in: FOptInf 03 · compute in the transport · FOptInf 03 · in transit or at the GPU

Explained in the sister series

Prefill and decode · FLOP and byte counting · Roofline, arithmetic intensity and ridge point · KV cache · Disaggregated (prefill/decode) serving · KV-cache transfer · TTFT, TPOT and inter-token latency · Goodput and SLO attainment · Energy per token and energy–delay trade-off · Static and dynamic power · Power in photonic compute · Cost model · Prefill–decode interference · Quantisation · Fourier optics and the 4f system · Digit decomposition (bit slicing) · Bluestein's algorithm · ENOB and exact rounding · Walden figure of merit · Number-theoretic transform (NTT) · Amdahl's law for a port · PPA: power, performance and area · perf/W