arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.14568quant-phcs.LG
收藏

使用Grover算法的神经网络量子增强权重优化

Quantum-Enhanced Weight Optimization for Neural Networks Using Grover's Algorithm

Department of Computers and Information Technology(计算机与信息技术系);Politehnica University Timişoara(蒂米什瓦拉理工大学)

Stefan-Alexandru Jura, Mihai Udrescu

AI总结:

本文提出利用Grover量子搜索算法优化经典神经网络权重,避免梯度计算问题,在小数据集上显著降低测试损失并提高准确率,且可扩展至深度网络,所需量子比特少,适合近期量子计算机。

摘要:

混合量子-经典神经网络(QNN)的主要方法是利用量子计算构建具有量子特征的神经网络(NN),然后通过经典方式进行优化。在此,我们提出一种不同的策略:利用量子计算来优化经典神经网络的权重。为此,我们设计了一个Grover量子搜索算法的实例,以加速训练过程中对神经网络最优参数的搜索,而这一任务传统上使用反向传播算法结合梯度下降法完成。实际上,梯度下降存在诸如梯度爆炸、梯度消失或凸性问题等缺陷。其他方法尝试通过遗传搜索等策略解决这些问题,但它们带来了如收敛一致性等额外问题。我们的原始方法避免了这些问题——因为它不计算梯度——并利用经典架构的鲁棒性和Grover算法在高维搜索空间中的二次加速,在小数据集上相比经典神经网络权重优化,显著降低了测试损失(58.75%)并提高了测试准确率(35.25%)。与大多数仅在小型数据集上训练的QNN不同,我们的方法也具有可扩展性,因为它允许优化深度网络;对于具有3个隐藏层的神经网络,在scikit-learn的Digits数据集上训练,我们获得了97.7%的平均准确率。此外,与其他QNN方法相比,我们的方法所需的量子比特数量要少得多,这使得它对于近期仍将提供有限数量逻辑量子比特的量子计算机来说非常实用。

英文摘要:

The main approach to hybrid quantum-classical neural networks (QNN) is employing quantum computing to build a neural network (NN) that has quantum features, which is then optimized classically. Here, we propose a different strategy: to use quantum computing in order to optimize the weights of a classical NN. As such, we design an instance of Grover's quantum search algorithm to accelerate the search for the optimal parameters of an NN during the training process, a task traditionally performed using the backpropagation algorithm with the gradient descent method. Indeed, gradient descent has issues such as exploding gradient, vanishing gradient, or convexity problem. Other methods tried to address such issues with strategies like genetic searches, but they carry additional problems like convergence consistency. Our original method avoids these issues -- because it does not calculate gradients -- and capitalizes on classical architectures' robustness and Grover's quadratic speedup in high-dimensional search spaces to significantly reduce test loss (58.75%) and improve test accuracy (35.25%), compared to classical NN weight optimization, on small datasets. Unlike most QNNs that are trained on small datasets only, our method is also scalable, as it allows the optimization of deep networks; for an NN with 3 hidden layers, trained on the Digits dataset from scikit-learn, we obtained a mean accuracy of 97.7%. Moreover, our method requires a much smaller number of qubits compared to other QNN approaches, making it very practical for near-future quantum computers that will still deliver a limited number of logical qubits.

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

↑