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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Drawing the next token with a photon: a saturable absorber in place of the softmax

Emil Shirokikh
Zenodo (CERN European Organization for Nuclear Research)
Neural Networks and Reservoir Computing
preprint

Drawing the next token with a photon: a saturable absorber in place of the softmax

Emil Shirokikh
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Neural Networks and Reservoir Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon