arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.12950quant-phcs.LG
收藏

量子机器学习架构中用于加速训练的测量次数优化

Shot Optimization in Quantum Machine Learning Architectures to Accelerate Training

Pennsylvania State University(宾夕法尼亚州立大学)

Koustubh Phalak, Swaroop Ghosh

AI总结:

本文针对混合量子-经典 QML 训练提出自适应 shot 分配方法,通过线性或阶跃方式随 epoch 减少测量次数,在准确率损失较小的情况下显著加速分类与分子基态能量估计。

摘要:

在本文中,我们提出了一种用于 QML(量子机器学习)模型的 shot(测量次数)优化方法,其代价是对模型性能产生极小影响。我们使用一个量子-经典混合 QML 模型,以 MNIST 和 FMNIST 数据集上的分类任务作为测试案例。首先,我们针对数据集的短版本和完整版本对 shot 数量进行扫描。我们观察到,与短版本数据集相比,使用完整版本训练可获得高 5–6% 的测试准确率,而训练所需的 shot 数量最多高出 10 倍。因此,可以通过减小数据集规模来加速训练时间。接下来,我们在短版本数据集上提出自适应 shot 分配,以在各个训练 epoch 中优化 shot 数量,并评估其对分类准确率的影响。我们使用:(a) 线性函数,其中 shot 数量随 epoch 线性减少;以及 (b) 阶跃函数,其中 shot 数量随 epoch 阶梯式减少。我们注意到,在 MNIST 数据集上,与传统的恒定 shot 函数相比,线性(阶跃)shot 函数在 shot 数量最多减少 100 倍(10 倍)时,损失增加约 0.01,测试准确率降低约 4%(1%);而在 FMNIST 数据集上,使用线性(阶跃)shot 函数实现类似的 shot 数量减少时,损失增加 0.05,测试准确率降低约 5–7%(5–7%)。作为比较,我们还使用所提出的 shot 优化方法对不同分子进行基态能量估计,并观察到阶跃函数在 shot 数量减少 1000 倍的情况下给出了最佳且最稳定的基态能量预测。

英文摘要:

In this paper, we propose shot optimization method for QML models at the expense of minimal impact on model performance. We use classification task as a test case for MNIST and FMNIST datasets using a hybrid quantum-classical QML model. First, we sweep the number of shots for short and full versions of the dataset. We observe that training the full version provides 5-6% higher testing accuracy than short version of dataset with up to 10X higher number of shots for training. Therefore, one can reduce the dataset size to accelerate the training time. Next, we propose adaptive shot allocation on short version dataset to optimize the number of shots over training epochs and evaluate the impact on classification accuracy. We use a (a) linear function where the number of shots reduce linearly with epochs, and (b) step function where the number of shots reduce in step with epochs. We note around 0.01 increase in loss and around 4% (1%) reduction in testing accuracy for reduction in shots by up to 100X (10X) for linear (step) shot function compared to conventional constant shot function for MNIST dataset, and 0.05 increase in loss and around 5-7% (5-7%) reduction in testing accuracy with similar reduction in shots using linear (step) shot function on FMNIST dataset. For comparison, we also use the proposed shot optimization methods to perform ground state energy estimation of different molecules and observe that step function gives the best and most stable ground state energy prediction at 1000X less number of shots.

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

↑