量子模仿游戏:量子机器学习模型的逆向工程
The Quantum Imitation Game: Reverse Engineering of Quantum Machine Learning Models
AI总结:
该研究针对NISQ时代QML模型的逆向工程安全风险,首次开展QML电路逆向工程实验,验证了多量子比特分类器可被逆向的特性,并提出添加虚拟固定参数门的防御方法以提升攻击开销。
摘要:
量子机器学习(Quantum Machine Learning, QML)将量子计算范式与机器学习模型相结合,为解决复杂问题提供了广阔前景。然而,在量子计算的含噪声中等规模量子(Noisy Intermediate-Scale Quantum, NISQ)时代,随着大量第三方供应商的涌现,QML模型的安全性至关重要,尤其是针对逆向工程的防护——这类攻击可能泄露模型的训练参数与算法。我们假设不可信的量子云服务提供商是敌手,在推理阶段对经转译的用户设计训练好的QML模型拥有白盒访问权限。通过逆向工程(Reverse Engineering, RE)提取转译前的QML电路,能够实现重新转译,让模型可适配具有完全不同原生门集、甚至不同量子比特技术的各类硬件。这种灵活性是绑定特定硬件与量子比特技术的转译后电路无法提供的。参数数量与优化值的信息还可用于对QML模型进行进一步训练,以修改模型、篡改水印,和/或嵌入攻击者自身的水印,或是为其他用途优化模型。作为研究QML电路逆向工程的首次尝试,我们开展了逆向工程实验,对比了不同规模的原始量子神经网络(Quantum Neural Networks, QNNs)与逆向工程得到的QNN的训练准确率。我们发现,多量子比特分类器在特定条件下可被逆向工程,在合理时间内平均误差约为1e-2量级。我们还提出在QML模型中添加虚拟固定参数门以提升逆向工程开销的防御方法。例如,对于一个含2个量子比特、3层结构的分类器,添加2个虚拟量子比特与2层结构可使逆向工程开销提升约1.76倍,而性能开销不足9%。我们认为逆向工程是一种极强的攻击模型,亟需在防御方面开展更多研究。
英文摘要:
Quantum Machine Learning (QML) amalgamates quantum computing paradigms with machine learning models, providing significant prospects for solving complex problems. However, with the expansion of numerous third-party vendors in the Noisy Intermediate-Scale Quantum (NISQ) era of quantum computing, the security of QML models is of prime importance, particularly against reverse engineering, which could expose trained parameters and algorithms of the models. We assume the untrusted quantum cloud provider is an adversary having white-box access to the transpiled user-designed trained QML model during inference. Reverse engineering (RE) to extract the pre-transpiled QML circuit will enable re-transpilation and usage of the model for various hardware with completely different native gate sets and even different qubit technology. Such flexibility may not be obtained from the transpiled circuit which is tied to a particular hardware and qubit technology. The information about the number of parameters, and optimized values can allow further training of the QML model to alter the QML model, tamper with the watermark, and/or embed their own watermark or refine the model for other purposes. In this first effort to investigate the RE of QML circuits, we perform RE and compare the training accuracy of original and reverse-engineered Quantum Neural Networks (QNNs) of various sizes. We note that multi-qubit classifiers can be reverse-engineered under specific conditions with a mean error of order 1e-2 in a reasonable time. We also propose adding dummy fixed parametric gates in the QML models to increase the RE overhead for defense. For instance, adding 2 dummy qubits and 2 layers increases the overhead by ~1.76 times for a classifier with 2 qubits and 3 layers with a performance overhead of less than 9%. We note that RE is a very powerful attack model which warrants further efforts on defenses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。