# 衍射神经网络

衍射神经网络是一种光学计算架构：一叠经过数字化训练的结构化衍射表面，完全通过光的传播来完成机器学习推理。该网络在物理上实现一个它通过统计学习到的函数，例如图像分类、成像或波前变换，并利用无需照明和输出探测器之外任何供电的无源元件，以光速执行该函数。<sup>[1](https://www.science.org/doi/10.1126/science.aat8084)</sup><sup> • </sup><sup>[2](https://innovate.ee.ucla.edu/wp-content/uploads/2019/06/2019-analysis-nn.pdf)</sup> 由于推理是全光的，网络的能效取决于光源和无源层，而不是有源计算元件。<sup>[3](https://arxiv.org/pdf/1804.08711)</sup>

| 关键事实 | 详情 |
|---|---|
| 提出框架 | 衍射深度神经网络（D2NN），由加州大学洛杉矶分校（UCLA）的林（Lin）及其同事于2018年在《科学》（Science）上报道<sup>[1](https://www.science.org/doi/10.1126/science.aat8084)</sup> |
| 物理机制 | 层上的每个点（神经元）都是惠更斯-菲涅耳（Huygens-Fresnel）次级源，具有可学习的复透射或反射系数<sup>[1](https://www.science.org/doi/10.1126/science.aat8084)</sup> |
| 首次演示 | 3D打印，20万个神经元，约80亿个连接，在MNIST上达到91.75%的准确率<sup>[3](https://arxiv.org/pdf/1804.08711)</sup> |
| 已报道的最佳MNIST规模准确率 | 在5层之后采用类别特定的差分检测，达到98.54%<sup>[4](https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-1/issue-4/046001/Class-specific-differential-detection-in-diffractive-optical-neural-networks-improves/10.1117/1.AP.1.4.046001.pdf)</sup> |
| 可见光结果 | 五层纯相位网络，在632.8 nm下具有500万个神经元：数值准确率91.57%，实验准确率84%<sup>[5](https://www.engineering.org.cn/engi/EN/PDF/10.1016/j.eng.2020.07.032)</sup> |
| 吞吐量示例 | 基于垂直腔面发射激光器（VCSEL）的衍射处理器：每秒2500万帧，帧延迟2.05 ns，950 TOPS/W<sup>[6](https://link.springer.com/article/10.1186/s43593-025-00106-9)</sup> |
| 主要局限 | 线性材料，无光学非线性激活；制造后权重固定<sup>[2](https://innovate.ee.ucla.edu/wp-content/uploads/2019/06/2019-analysis-nn.pdf)</sup><sup> • </sup><sup>[7](https://link.springer.com/article/10.1186/s43074-021-00026-0)</sup> |

## 工作原理

层上的每个点，即神经元，在惠更斯-菲涅耳原理的意义上充当人工神经元：它表现为一个次级波源，其振幅和相位由入射波乘以该点处的复透射或反射系数来设定。<sup>[1](https://www.science.org/doi/10.1126/science.aat8084)</sup> 光根据瑞利-索末菲（Rayleigh-Sommerfeld）衍射方程在层间传播，每个神经元的透射系数由振幅项和相位项组成；在纯相位设计中，振幅假定为常数，理想情况下为1。<sup>[3](https://arxiv.org/pdf/1804.08711)</sup> 因此，相邻层之间的连接权重由衍射本身固定，可训练参数是每层亚波长结构的透射系数；这与马赫-曾德尔干涉仪（MZI）网格或微环谐振器光学网络不同，后者的权重矩阵值本身被训练。<sup>[8](https://www.nature.com/articles/s41377-024-01590-3)</sup>

通过堆叠的前向传播可以用角谱法计算；由于每个操作都可微，损失函数的梯度通过链式法则解析计算，并在网络中反向传播。<sup>[9](https://advanced.onlinelibrary.wiley.com/doi/10.1002/nap2.70098)</sup> 在输出平面上，结果从光场中读出：当采用强度探测器时，输出为测得的光强。<sup>[9](https://advanced.onlinelibrary.wiley.com/doi/10.1002/nap2.70098)</sup> 差分设计则在输出平面使用成对的光电探测器，并根据差分信号进行分类。<sup>[4](https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-1/issue-4/046001/Class-specific-differential-detection-in-diffractive-optical-neural-networks-improves/10.1117/1.AP.1.4.046001.pdf)</sup>

## 如何实现

训练是数值化的。每个神经元的透射或反射系数被视为可学习的乘性偏置项，在计算机上通过误差反向传播迭代调整。<sup>[1](https://www.science.org/doi/10.1126/science.aat8084)</sup>

训练后，层设计被固定并制造。在最初的演示中，通过3D打印制造了非常薄的8厘米见方、表面不平整的聚合物晶圆，每层包含数万个人工神经元（光穿过的小像素），实验使用亚毫米波长的太赫兹光；研究人员表示，该器件可以以低于50美元的成本复制。<sup>[10](https://newsroom.ucla.edu/releases/ucla-engineers-artificial-intelligence-device-identifies-objects-speed-of-light)</sup> 训练后的相位值通过 \( h = \lambda \phi / (2 \pi \Delta n) \) 转换为物理高度，其中 \( \Delta n \) 是材料与空气之间的折射率差，\( \phi \) 是可训练相位。<sup>[8](https://www.nature.com/articles/s41377-024-01590-3)</sup> 在可见光波长下，各层通过多步光刻和刻蚀在SiO₂上制造，相位转换为高度图 \( \Delta h = \lambda U / (2 \pi \Delta n) \)，其中 \( \lambda \) 是波长，\( U \) 是以弧度表示的相位。<sup>[5](https://www.engineering.org.cn/engi/EN/PDF/10.1016/j.eng.2020.07.032)</sup>

鲁棒性是一项设计约束。随着工作波长减小，可支持的神经元尺寸缩小，在可见光波段约为500 nm，从而实现更高的集成度，但对制造和对准误差极其敏感。<sup>[11](https://journal.hep.com.cn/foe/EN/10.2738/foe.2026.0012)</sup> 对于固定尺寸的层，理想性能与鲁棒性相互制约：多神经元网络在理想情况下表现良好，但在误差下表现不佳；少神经元网络则相反。<sup>[11](https://journal.hep.com.cn/foe/EN/10.2738/foe.2026.0012)</sup> 在原始器件中，制造误差与对准误差共同作用，使数字分类准确率低于模拟的91.75%。<sup>[3](https://arxiv.org/pdf/1804.08711)</sup>

## 起源

该框架被称为衍射深度神经网络（D2NN）。<sup>[1](https://www.science.org/doi/10.1126/science.aat8084)</sup> 前驱工作是一系列通过解析和优化方法设计的衍射表面，用于提供确定性的波前变换；这些表面缺乏任何数据泛化能力，而多层衍射网络能够对新输入数据实现泛化和全光盲推理。<sup>[12](https://www.nature.com/articles/s41377-019-0223-1)</sup>

## 变体

已命名的变体针对速度、波长和可重构性：

- **傅里叶空间D2NN（F-DNN²）**，一种紧凑的全光图像处理和先进计算机视觉方法，以光速运行。<sup>[13](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.123.023901)</sup>
- **宽带与多波长设计**，使用跨越 \( f_{\min} \) 到 \( f_{\max} \) 的 \( M \) 个离散频率进行训练，每次更新传播一个随机子集，以神经元厚度作为可训练物理参数，并在前向模型中包含材料色散。<sup>[12](https://www.nature.com/articles/s41377-019-0223-1)</sup>
- **差分检测**，在5个衍射层之后使用10对光电探测器。<sup>[4](https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-1/issue-4/046001/Class-specific-differential-detection-in-diffractive-optical-neural-networks-improves/10.1117/1.AP.1.4.046001.pdf)</sup>
- **模块化超表面MDNNs**，其中每个级联超表面模块都有自己的功能，组装后的模块获得额外功能；两个分别独立分类手写字母和时尚产品的模块，在不同空间顺序下产生手写数字分类器和成像器。<sup>[14](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/lpor.202500923)</sup>
- **可翻转F-DNN**，基于双面超表面实现多任务，其动机是实践中难以更换衍射层或光源。<sup>[15](https://opg.optica.org/ol/abstract.cfm?uri=ol-50-6-1997)</sup>
- **复用超表面多任务处理器**，用于可扩展、超快、节能的光学神经网络。<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC11635945/)</sup>

## 应用

MNIST规模的基准会随读出方案和平台而变化。最初的3D打印D2NN是一个具有20万个神经元的全连接网络，在MNIST上达到91.75%的分类准确率。<sup>[3](https://arxiv.org/pdf/1804.08711)</sup> 差分检测将数值盲测准确率提高到：MNIST上98.54%，[Fashion-MNIST](https://www.edgepedia.org/zh/fashion-mnist)上90.54%，灰度CIFAR-10上48.51%。<sup>[4](https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-1/issue-4/046001/Class-specific-differential-detection-in-diffractive-optical-neural-networks-improves/10.1117/1.AP.1.4.046001.pdf)</sup> 在可见光波长下，具有500万个神经元的五层纯相位网络达到91.57%的数值盲测准确率和84%的实验准确率。<sup>[5](https://www.engineering.org.cn/engi/EN/PDF/10.1016/j.eng.2020.07.032)</sup> 一个芯片级、基于VCSEL的互不相干衍射网络（“光学GPU”）实现了每秒2500万帧、2.05 ns帧延迟和950 TOPS/W。<sup>[6](https://link.springer.com/article/10.1186/s43593-025-00106-9)</sup> 原始作者预计，通过软光刻等大面积制造，可扩展到数千万至数亿个神经元和数千亿个连接。<sup>[3](https://arxiv.org/pdf/1804.08711)</sup>

应用已从成像和分类扩展到光束整形、加密、通信、数学计算以及生成式大模型的处理。<sup>[9](https://advanced.onlinelibrary.wiley.com/doi/10.1002/nap2.70098)</sup>

## 局限与替代方案

最初的D2NN设计基于线性材料，光学网络内部没有等效的非线性激活函数，尽管可以引入光学非线性。<sup>[2](https://innovate.ee.ucla.edu/wp-content/uploads/2019/06/2019-analysis-nn.pdf)</sup> 3D打印的自由空间方法还使器件小型化困难，无法很好地处理复杂数据和图像分析，并且其参数在3D打印后无法重新编程；太赫兹光源是另一个问题。<sup>[7](https://link.springer.com/article/10.1186/s43074-021-00026-0)</sup>

与替代方案相比：基于空间光调制器（SLM）的系统使矩阵运算可以实时编程，而基于数字微镜器件（DMD）的4f系统网络的调制速度至少比相同像素分辨率的SLM快2个数量级，但其可训练调制单元位于傅里叶平面，这限制了可训练参数的扩展和隐藏层数量，而自由空间衍射网络可以克服这一限制。<sup>[8](https://www.nature.com/articles/s41377-024-01590-3)</sup> 集成光子路线，即基于MZI的网络和微环谐振器波分复用系统，直接训练权重矩阵值，但不具备衍射光学神经网络（DONNs）的二维空间可扩展性；文献称DONNs具有更优的可扩展性和高计算密度，并与光刻和3D打印兼容。<sup>[9](https://advanced.onlinelibrary.wiley.com/doi/10.1002/nap2.70098)</sup> 已发表的工作现在将光学神经网络架构与电子加速器进行基准比较：一篇2026年的论文用定量吞吐量指标总结了现有的光学神经网络（ONN）架构，FAST-ONN的工作将其预计性能与英伟达（NVIDIA）H100（约4000 TOPS，约5 TOPS/W）进行比较；950 TOPS/W这一数字仍然是独立的光学结果。<sup>[6](https://link.springer.com/article/10.1186/s43593-025-00106-9)</sup>

## References

1. [All-optical machine learning using diffractive deep neural networks](https://www.science.org/doi/10.1126/science.aat8084)
2. [Analysis of Diffractive Optical Neural Networks and Their Integration with Electronic Neural Networks](https://innovate.ee.ucla.edu/wp-content/uploads/2019/06/2019-analysis-nn.pdf)
3. [Diffractive Deep Neural Networks (arXiv preprint of the Science paper)](https://arxiv.org/pdf/1804.08711)
4. [Class-specific differential detection in diffractive optical neural networks improves inference accuracy (Advanced Photonics, 2019)](https://www.spiedigitallibrary.org/journals/advanced-photonics/volume-1/issue-4/046001/Class-specific-differential-detection-in-diffractive-optical-neural-networks-improves/10.1117/1.AP.1.4.046001.pdf)
5. [Diffractive Deep Neural Networks at Visible Wavelengths (Engineering, 2020)](https://www.engineering.org.cn/engi/EN/PDF/10.1016/j.eng.2020.07.032)
6. [High-throughput optical neuromorphic graphic processing at millions of images per second (eLight, 2025)](https://link.springer.com/article/10.1186/s43593-025-00106-9)
7. [Research progress in optical neural networks: theory, applications and developments (PhotoniX)](https://link.springer.com/article/10.1186/s43074-021-00026-0)
8. [Optical neural networks: progress and challenges (Light: Science & Applications, 2024)](https://www.nature.com/articles/s41377-024-01590-3)
9. [Diffractive Optical Neural Networks: Pathways Toward Intelligent and Scalable Photonic Computing (Nanophotonics, 2026)](https://advanced.onlinelibrary.wiley.com/doi/10.1002/nap2.70098)
10. [UCLA engineers develop artificial intelligence device that identifies objects at the speed of light](https://newsroom.ucla.edu/releases/ucla-engineers-artificial-intelligence-device-identifies-objects-speed-of-light)
11. [Hybrid structure for enhancing robustness in optical diffractive neural networks without vaccination training (Frontiers of Optoelectronics)](https://journal.hep.com.cn/foe/EN/10.2738/foe.2026.0012)
12. [Design of task-specific optical systems using broadband diffractive neural networks](https://www.nature.com/articles/s41377-019-0223-1)
13. [Fourier-space Diffractive Deep Neural Network](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.123.023901)
14. [Modular Diffractive Neural Networks Using Cascaded Metasurfaces (Laser & Photonics Reviews, 2025)](https://advanced.onlinelibrary.wiley.com/doi/full/10.1002/lpor.202500923)
15. [Flippable multitask diffractive neural networks based on double-sided metasurfaces (Optics Letters, 2025)](https://opg.optica.org/ol/abstract.cfm?uri=ol-50-6-1997)
16. [Leveraging multiplexed metasurfaces for multi-task learning with all-optical diffractive processors (2024)](https://pmc.ncbi.nlm.nih.gov/articles/PMC11635945/)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Titles A to H

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/diffractive-neural-network

English original: https://www.edgepedia.org/diffractive-neural-network
