In Situ Training of Optical Neural Networks by Coding Agents
New in LLM agents and tool use; no direction yet. LLM agents and tool use
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 18 of its 41 references that are in the map. Submitted 18 Nov 2026, announced 19 Nov 2026.
Builds on
18 of 41 references.
References · 18
- 2017Proximal Policy Optimization Algorithmscited by 16,156
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 1,078
- 2018All-Optical Machine Learning Using Diffractive Deep Neural Networkscited by 184
- 2021Deep physical neural networks enabled by a backpropagation algorithm for arbitrary physical systemscited by 138
- 2020Large-scale neuromorphic optoelectronic computing with a reconfigurable diffractive processing unitcited by 66
- 2024Training of Physical Neural Networkscited by 58
- 2025Early science acceleration experiments with GPT-5cited by 48
- 2022Experimentally realized in situ backpropagation for deep learning in nanophotonic neural networkscited by 47
- 2023The physics of optical computingcited by 37
- 2018Analysis of Diffractive Optical Neural Networks and Their Integration with Electronic Neural Networkscited by 32
- 2017Reinforcement Learning in a large scale photonic Recurrent Neural Networkcited by 31
- 2022Image sensing with multilayer, nonlinear optical neural networkscited by 27
6 more
- 2023Nonlinear Processing with Linear Opticscited by 22
- 2023Forward-Forward Training of an Optical Neural Networkcited by 20
- 2022Hybrid training of optical neural networkscited by 17
- 2025Model-free Optical Processors using In Situ Reinforcement Learning with Proximal Policy Optimizationcited by 3
- 2026Vision-Language Agents for Active Perception in Optics Laboratoriescited by 2
- 2025Training Hybrid Neural Networks with Multimode Optical Nonlinearities Using Digital Twinscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Streamlined optical training of large-scale modern deep learning architectures with direct feedback alignment
- 2026From Pixels to PCells: A Neurosymbolic Approach to Photonic Component Creation
- 2023QuATON: Quantization Aware Training of Optical Neurons
- 2026OptINC: Optical In-Network-Computing for Scalable Distributed Learning
- 2025Neural Tangent Knowledge Distillation for Optical Convolutional Networks
- 2026Universal Function Approximation via Diffractive Optical Processors: Physical Limits, Error Bounds, and Learnability ↗
- 2021A compact butterfly-style silicon photonic-electronic neural chip for hardware-efficient deep learning
- 2022All-optical graph representation learning using integrated diffractive photonic computing units