Paper Detail

In Situ Training of Optical Neural Networks by Coding Agents

Ilker Oguz, Colin Christian, Christophe Moser, Demetri Psaltis, Gordon Wetzstein

huggingface Score 11.8

Published 2026-11-18 · First seen 2026-11-21

General AI

Abstract

Optical neural networks promise fast, energy-efficient computing, but every device departs from its design and must be trained with the hardware. In situ training relies on an expert-built calibrated digital model of each device or on gradient-free trial and error. Coding agents, large language models that write and run programs, have shown an emergent ability to understand and edit the weights of digital neural networks. Here we introduce optics as code, a method in which a coding agent trains an optical neural network from measurements alone, through a harness that returns camera images of its probes and requires a hypothesis per request. We discovered that the agent forms a physical understanding of the optics and reparametrizes the network with interpretable optical elements tuned on the hardware. It outperforms gradient-free methods in classification and image encoding, approaching backpropagation through a calibrated model at a fraction of the cost. Needing neither per-device calibration nor gradients through the hardware, and improving with more capable models, optics as code offers a practical route to large, scalable optical neural networks and a general tool for calibrating and optimizing optical experiments.

Workflow Status

Review status
pending
Role
unreviewed
Read priority
soon
Vote
Not set.
Saved
no
Collections
Not filed yet.
Next action
Not filled yet.

Reading Brief

No structured notes yet. Add `summary_sections`, `why_relevant`, `claim_impact`, or `next_action` in `papers.jsonl` to enrich this view.

Why It Surfaced

No ranking explanation is available yet.

Tags

No tags.

BibTeX

@misc{oguz2026situ,
  title = {In Situ Training of Optical Neural Networks by Coding Agents},
  author = {Ilker Oguz and Colin Christian and Christophe Moser and Demetri Psaltis and Gordon Wetzstein},
  year = {2026},
  abstract = {Optical neural networks promise fast, energy-efficient computing, but every device departs from its design and must be trained with the hardware. In situ training relies on an expert-built calibrated digital model of each device or on gradient-free trial and error. Coding agents, large language models that write and run programs, have shown an emergent ability to understand and edit the weights of digital neural networks. Here we introduce optics as code, a method in which a coding agent trains },
  url = {https://huggingface.co/papers/2611.23875},
  keywords = {optical neural networks, in situ training, calibrated digital model, gradient-free trial and error, coding agents, large language models, digital neural network weights, optics as code, reparametrizes network, interpretable optical elements, backpropagation, per-device calibration, gradients through hardware, scalable optical neural networks, huggingface daily},
  eprint = {2611.23875},
  archiveprefix = {arXiv},
}

Metadata

{}