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

基于张量网络解纠缠器的量子大语言模型

Quantum Large Language Models via Tensor Network Disentanglers

Multiverse Computing(多元宇宙计算公司);Tecnun - University of Navarra(纳瓦拉大学 Tecnun 学院);Donostia International Physics Center(圣塞瓦斯蒂安国际物理中心);Ikerbasque Foundation for Science(伊克尔巴斯克科学基金会)

Borja Aizpurua, Fernando Loren, Saeed S. Jahromi, Sukhbinder Singh, Roman Orus

AI总结:

该研究提出将量子计算与预训练大语言模型融合的框架,用张量网络解纠缠器压缩模型参数,经量子处理器验证可提升性能,为量子增强语言模型提供实用方案。

摘要:

我们提出了一个将量子计算无缝集成到预训练大语言模型(LLMs)中的框架。核心思路是构建一个混合量子-经典表示,该表示可精确复现原始模型,为量子资源仅能提升性能提供了有原则的起点。我们的方法将自注意力和多层感知机层中的权重矩阵替换为两个变分量子电路,这两个电路与矩阵乘积算子(MPO)耦合。张量网络解纠缠器将每一层的大量信息转移到量子电路中,使剩余的张量网络可被压缩为键维度为1的MPO,经典参数减少了三个数量级以上(我们的实验中,被替换层的参数从110592个减少至约36个),且困惑度(perplexity)的增长小于0.3%。在此表示之上训练一个额外的幺正适配器(unitary adapter)后,模型性能超过原始模型,困惑度降低了1.6%。最后,我们在真实量子处理器上验证了该混合架构,为量子增强型语言模型展示了一条实用路径。

英文摘要:

We introduce a framework for seamlessly integrating quantum computing into pretrained large language models (LLMs). The key idea is to construct a hybrid quantum-classical representation that exactly reproduces the original model, providing a principled starting point from which quantum resources can only improve performance. Our approach replaces the weight matrices in self-attention and multilayer perceptron layers with two variational quantum circuits coupled to a matrix product operator (MPO). Tensor network disentanglers transfer much of each layer's information into the quantum circuits, enabling the remaining tensor network to be compressed to a bond-dimension-one MPO with over three orders of magnitude fewer classical parameters (in our experiments, from 110,592 to approximately 36 for the replaced layer) and less than a 0.3\% increase in perplexity. Training an added unitary adapter on top of this representation then surpasses the original model, reducing perplexity by up to 1.6\%. Finally, we validate the hybrid architecture on a real quantum processor, demonstrating a practical route towards quantum-enhanced language models.

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

↑