arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.12906cs.LGphysics.optics
收藏

基于进化策略与注意力剪枝的大规模光学神经网络高效训练

Efficient training for large-scale optical neural network using an evolutionary strategy and attention pruning

Beijing University of Posts and Telecommunications(北京邮电大学)

Zhiwei Yang, Zeyang Fan, Yihang Lai, Qi Chen, Tian Zhang, Jian Dai, Kun Xu

AI总结:

针对大规模基于MZI的块光学神经网络训练鲁棒性差、参数多的问题,提出CAP算法,实现高比例参数剪枝与强鲁棒性,验证了仅含内部移相器MZI的高效性,具大规模应用潜力。

摘要:

基于马赫-曾德尔干涉仪(MZI)的块光学神经网络(BONNs)可实现大规模网络模型,日益受到关注。然而,现有训练算法的鲁棒性不足,且大规模BONNs通常包含大量可训练参数,导致计算成本与功耗过高。本文通过剪枝矩阵块并直接优化种群中的个体,提出了一种面向大规模BONNs的片上协方差矩阵自适应进化策略与基于注意力的剪枝(CAP)算法。计算结果表明,CAP算法在MNIST和Fashion-MNIST数据集上可分别剪枝60%和80%的参数,而性能仅分别下降3.289%和4.693%。考虑移相器中动态噪声的影响,在采用工艺较差的芯片且标准差为0.5的电控制条件下,本文提出的CAP算法(MNIST数据集性能下降22.327%,Fashion-MNIST数据集性能下降24.019%)分别相较于此前报道的块伴随训练算法(43.963%和41.074%)以及协方差矩阵自适应进化策略(25.757%和32.871%)展现出最强的鲁棒性。此外,在剪枝60%参数的情况下,CAP算法在简化MNIST数据集的实验中实现了88.5%的准确率,与无噪声的仿真结果(92.1%)相近。另外,本文通过仿真与实验验证,采用仅含内部移相器的MZI构建BONNs是减小系统面积、降低所需可训练参数的有效途径。值得注意的是,本文提出的CAP算法在更大规模网络模型与更复杂任务中展现出优异的应用潜力。

英文摘要:

MZI-based block optical neural networks (BONNs), which can achieve large-scale network models, have increasingly drawn attentions. However, the robustness of the current training algorithm is not high enough. Moreover, large-scale BONNs usually contain numerous trainable parameters, resulting in expensive computation and power consumption. In this article, by pruning matrix blocks and directly optimizing the individuals in population, we propose an on-chip covariance matrix adaptation evolution strategy and attention-based pruning (CAP) algorithm for large-scale BONNs. The calculated results demonstrate that the CAP algorithm can prune 60% and 80% of the parameters for MNIST and Fashion-MNIST datasets, respectively, while only degrades the performance by 3.289% and 4.693%. Considering the influence of dynamic noise in phase shifters, our proposed CAP algorithm (performance degradation of 22.327% for MNIST dataset and 24.019% for Fashion-MNIST dataset utilizing a poor fabricated chip and electrical control with a standard deviation of 0.5) exhibits strongest robustness compared with both our previously reported block adjoint training algorithm (43.963% and 41.074%) and the covariance matrix adaptation evolution strategy (25.757% and 32.871%), respectively. Moreover, when 60% of the parameters are pruned, the CAP algorithm realizes 88.5% accuracy in experiment for the simplified MNIST dataset, which is similar to the simulation result without noise (92.1%). Additionally, we simulationally and experimentally demonstrate that using MZIs with only internal phase shifters to construct BONNs is an efficient way to reduce both the system area and the required trainable parameters. Notably, our proposed CAP algorithm show excellent potential for larger-scale network models and more complex tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑