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

量子自适应自注意力机制用于量子变换器模型

Quantum Adaptive Self-Attention for Quantum Transformer Models

Department of Electrophysics, National Yang Ming Chiao Tung University(电子物理系,国立阳明交通大学)

Chi-Sheng Chen, En-Jui Kuo

AI总结:

本文提出量子自适应自注意力机制(QASA),通过在单个编码器层中用参数化量子电路替代价值投影,以最少的量子参数实现了优于其他模型的性能,验证了量子层位置比数量更重要。

摘要:

将量子计算整合到深度学习架构中是一个有前景但理解不足的领域:量子层何时真正有所帮助,需要多少量子资源?我们通过量子自适应自注意力机制(QASA)回答这两个问题,这是一种混合变换器,将单个编码器层中的价值投影替换为参数化量子电路(PQC),同时保持其他层经典。这种最小量子整合策略仅使用36个可训练量子参数——比任何竞争量子模型都少——却在9个合成基准中的4个上实现了最佳MSE,并在现实世界ETTh1数据集上实现了6.0%的MAE减少。消融研究揭示量子层位置比数量更重要:增加更多量子层会降低性能,而单个位于最佳位置的层始终优于多层量子配置。与两个最近的量子时间序列基线模型QLSTM和QnnFormer的比较证实,QASA在量子参数多2-4倍的模型中表现相当或更优,在季节性趋势任务上显著优于QLSTM(p=0.009,Cohen's d>6)。关键的是,这种优势是任务条件性的:QASA在混沌、噪声和趋势主导的信号上表现优异,而经典变换器在清洁的周期波形上仍更优——为何时需要量子增强提供了实用的分类法。这些发现确立了混合量子-经典设计的架构简洁性原则:最大量子收益不是通过最大化量子资源,而是在最需要的地方战略放置最少的量子计算来实现。

英文摘要:

A recurring weakness in quantum machine learning (QML) is that reported ``quantum advantages'' are seldom tested against a \emph{capacity-matched} classical control, leaving it unclear whether a gain comes from the quantum substrate or from the architectural change that accompanies it. Our primary contribution is methodological: a protocol for attributing such gains honestly -- a capacity-matched classical bottleneck of identical parameter budget, transparent reporting of where quantum does \emph{not} help, and validation on real quantum hardware -- which we develop and apply through a concrete case study. That case study is Quantum Adaptive Self-Attention (QASA), a hybrid Transformer that replaces the value projection of a \emph{single} encoder layer with a 36-parameter parameterized quantum circuit (PQC), keeping all other layers classical. Across nine synthetic benchmarks and the real-world ETTh1 dataset, QASA improves on a full-capacity classical Transformer for chaotic and trend-dominated signals. To ask whether this is a genuinely \emph{quantum} effect, we introduce a control rarely applied in quantum machine learning -- a capacity-matched classical bottleneck with the same parameter budget -- and find that it matches the PQC on the error metrics. The gain is therefore attributable to the low-rank value-projection \emph{bottleneck} (an \emph{architectural parsimony} principle), not to quantumness; adding further quantum layers only degrades performance and trainability. We accordingly position the quantum layer not as a source of accuracy advantage but as a \emph{competitive} instantiation of this principle: its low-rank compression onto the signal's intrinsic dimensionality is matched by a classical bottleneck, so the gain is architectural rather than quantum.

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

↑