Drawing the next token with a photon: a saturable absorber in place of the softmax
An optical processor ends in light at its output ports. If that light gave the probability of each token, one photon detection would draw the next token and no score would be read, exponentiated or normalised in electronics. This working note tests the idea on small language models in simulation. The obvious form, with the squared amplitude of the light at a port as the token's probability, fails against a line fixed before the run. A form with a saturable absorber in front of the detectors is level with the softmax. The absorber is a formula here and not a device: non-saturable loss, recovery time and heating are not modelled, and no absorber of the required depth and saturation energy was looked for. The experiments use one text of a megabyte and at most 1,317 output ports. Deciding a class by the first detected photon, a Born-rule output and a photonic softmax are published by others, as the note says; the note makes no claim of novelty.
Authors
- Emil Shirokikh
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24759609
- Primary Topic
- Neural Networks and Reservoir Computing
- Type
- preprint