通过编码智能体对光学神经网络进行原位训练 In Situ Training of Optical Neural Networks by Coding Agents 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-18
👁️ 预览文献
💡 AI 中文简介
光学神经网络计算快、省电,但每个器件都有制造偏差,必须用硬件本身来训练。传统做法要么依赖专家为每台设备建校准模型,要么靠无梯度试错。本研究提出“光学即代码”方法:让能写程序的大语言模型编码智能体仅凭相机拍摄的探测图像来训练光学网络,每次请求都要求它给出一个假设。结果智能体自发形成了对光学的物理理解,用可解释的光学元件重新参数化网络并在硬件上调参,在分类和图像编码任务上优于无梯度方法,接近用校准模型做反向传播的效果,成本却低得多。
领域光学计算与人工智能交叉(光学神经网络、智能体辅助硬件优化)
适合谁读需要一定专业背景(光学、机器学习或LLM智能体方向)
核心贡献1. 提出“光学即代码”范式,让编码智能体仅凭测量图像原位训练光学神经网络,无需逐器件校准模型,也无需对硬件求梯度;2. 发现智能体能自发形成物理理解,用可解释的光学元件重新参数化网络,性能随底层模型能力提升而提升。
关键数据在分类和图像编码任务上优于无梯度方法,性能接近基于校准模型的反向传播,而成本仅为其一小部分;无需逐器件校准。
推荐理由如果你好奇大语言模型能不能“亲手”调光学硬件,这篇工作给出了一个既省钱又 scalable 的漂亮答案。
关键词["光学神经网络", "原位训练", "编码智能体", "大语言模型", "无梯度优化", "光学计算"]

原文摘要

查看英文原文摘要

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.