arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.03318cs.CLcs.AIquant-ph
收藏

量子启发的大型语言模型中的自注意力机制

Quantum-Inspired Self-Attention in a Large Language Model

Higher School of Economics, National Research University, St. Petersburg, Russian Federation(俄罗斯联邦圣彼得堡高等经济学院国家研究大学);JV Quantum LLC, State Atomic Energy Corporation Rosatom, Moscow, Russian Federation(JV量子有限公司,俄罗斯原子能机构罗斯托克莫斯)

Nikita Kuznetsov, Niyaz Ismagilov, Ernesto Campos

AI总结:

本文提出了一种量子启发的自注意力机制,并将其应用于GPT-1模型,实现了在多个评估指标上的显著提升,同时推理时间仅增加2.6倍。

摘要:

近年来,自然语言处理领域的主要进展主要由基于转换器的架构推动,这些架构依赖于自注意力机制来建模序列中令牌之间的关系。同样,量子自然语言处理领域,旨在利用量子原理解决语言理解和生成任务中的挑战,也最近开发了量子自注意力机制。我们提出了一种经典量子启发自注意力(QISA)机制,并将其整合到GPT-1的完整自回归语言建模管道中。据我们所知,这是此类整合的首次尝试,因为之前的量子自注意力机制主要在文本分类上进行测试。在我们的实验中,QISA在字符错误率(15.5倍更好)、词错误率(4.7倍)和交叉熵损失(13倍)等指标上优于标准自注意力。这在仅要求2.6倍更长的推理时间的情况下实现。

英文摘要:

Recent advances in Natural Language Processing have been predominantly driven by transformer-based architectures, which rely heavily on self-attention mechanisms to model relationships between tokens in a sequence. Similarly, the field of Quantum Natural Language Processing, which seeks to leverage quantum principles to address challenges in language understanding and generation tasks, has seen the recent development of quantum self-attention mechanisms. We propose a classical quantum-inspired self-attention (QISA) mechanism and integrate it into the full autoregressive language modeling pipeline of GPT-1. To the best of our knowledge, this is the first integration of this kind, as previous quantum self-attention mechanisms have been primarily tested on text classification. In our experiments, QISA achieves better performance when compared to standard self-attention on the metrics character error rate ($15.5\times$ better), word error rate ($4.7 \times $) and cross-entropy loss ($13 \times$). This is achieved while only requiring a $ 2.6\times$ longer inference time.

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

↑