Q-Newton:基于牛顿梯度下降加速神经网络训练的量子-经典混合调度
Q-Newton: Hybrid Quantum-Classical Scheduling for Accelerating Neural Network Training with Newton's Gradient Descent
AI总结:
提出量子-经典混合调度器 Q-Newton,通过估计和减小条件数并构建稀疏度来协调量子和经典线性求解器,加速牛顿梯度下降的矩阵求逆过程,显著减少神经网络训练时间。
摘要:
深度学习中的优化技术主要由一阶梯度方法主导,例如 SGD。然而,神经网络训练可以极大地受益于二阶优化的快速收敛特性。Newton's GD 通过使用逆 Hessian 矩阵重缩放梯度,在该类别中脱颖而出。尽管如此,其主要瓶颈之一是矩阵求逆,这在 $O(N^3)$ 时间内非常耗时且可扩展性弱。矩阵求逆可以转化为求解一系列线性方程组。鉴于量子线性求解器算法(QLSAs)利用量子叠加和纠缠原理,可在 $\text{polylog}(N)$ 时间范围内运行,它们提供了一种具有指数加速前景的方法。具体而言,最近的一种 QLSA 展示了 $O(d\cdotκ\log(N\cdotκ/ε))$ 的复杂度缩放,取决于矩阵的:{规模~$N$,条件数~$κ$,误差容限~$ε$,量子预言机稀疏度~$d$}。然而,这也意味着其潜在的指数优势可能会受到某些属性(即 $κ$ 和 $d$)的阻碍。我们提出了 Q-Newton,一种用于加速 Newton's GD 神经网络训练的量子-经典混合调度器。Q-Newton 利用一个精简的调度模块,通过估计并减小 $κ$ 以及为量子求解器构建 $d$,在量子和经典线性求解器之间进行协调。我们的评估表明,与 SGD 等常用优化器相比,Q-Newton 有望显著减少总训练时间。我们假设了未来量子机器门时间减少的场景,这或许可以通过阿秒物理来实现。我们的评估为量子计算的演进确立了一个雄心勃勃且充满前景的目标。
英文摘要:
Optimization techniques in deep learning are predominantly led by first-order gradient methodologies, such as SGD. However, neural network training can greatly benefit from the rapid convergence characteristics of second-order optimization. Newton's GD stands out in this category, by rescaling the gradient using the inverse Hessian. Nevertheless, one of its major bottlenecks is matrix inversion, which is notably time-consuming in $O(N^3)$ time with weak scalability. Matrix inversion can be translated into solving a series of linear equations. Given that quantum linear solver algorithms (QLSAs), leveraging the principles of quantum superposition and entanglement, can operate within a $\text{polylog}(N)$ time frame, they present a promising approach with exponential acceleration. Specifically, one of the most recent QLSAs demonstrates a complexity scaling of $O(d\cdotκ\log(N\cdotκ/ε))$, depending on: {size~$N$, condition number~$κ$, error tolerance~$ε$, quantum oracle sparsity~$d$} of the matrix. However, this also implies that their potential exponential advantage may be hindered by certain properties (i.e. $κ$ and $d$). We propose Q-Newton, a hybrid quantum-classical scheduler for accelerating neural network training with Newton's GD. Q-Newton utilizes a streamlined scheduling module that coordinates between quantum and classical linear solvers, by estimating & reducing $κ$ and constructing $d$ for the quantum solver. Our evaluation showcases the potential for Q-Newton to significantly reduce the total training time compared to commonly used optimizers like SGD. We hypothesize a future scenario where the gate time of quantum machines is reduced, possibly realized by attoseconds physics. Our evaluation establishes an ambitious and promising target for the evolution of quantum computing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。