arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.13833cs.LGcs.CV
收藏

QLAM:一种量子长注意力记忆方法用于长序列标记建模

QLAM: A Quantum Long-Attention Memory Approach to Long-Sequence Token Modeling

Quantum AI Lab(量子人工智能实验室);Dept. of EECS(电子工程与计算机科学系);University of Arkansas(阿肯色大学)

Hoang-Quan Nguyen, Sankalp Pandey, Khoa Luu

AI总结:

QLAM通过量子叠加特性增强状态序列建模,结合量子与经典机制,在保持线性时间复杂度的同时提升记忆表示能力,优于传统循环和Transformer模型。

摘要:

对序列数据中的长程依赖建模仍是机器学习的核心挑战。Transformer通过注意力机制应对,但其二次复杂度限制了长上下文的可扩展性。状态空间模型(SSMs)提供线性时间替代方案,但其记忆通常通过加法或线性转移形成,限制了捕捉跨标记复杂全局交互的能力。本文首次利用量子系统叠加特性增强状态序列建模。我们提出量子长注意力记忆(QLAM),一种混合量子-经典记忆机制,可视为状态空间模型的量子扩展。QLAM将隐藏状态表示为量子态,其振幅编码历史信息的叠加。状态通过参数化量子电路演变,条件于输入,实现非经典、全局更新机制。QLAM保持SSMs的递归和线性时间结构,同时通过量子叠加丰富记忆表示。不同于显式计算成对交互的注意力机制,QLAM通过量子态演变隐式捕捉全局依赖,并通过查询依赖测量检索任务相关信息。我们在标准图像分类基准的序列变体上评估QLAM,包括sMNIST、sFashion-MNIST和sCIFAR-10,其中图像被展平为标记序列。在所有任务中,QLAM均优于循环基线和基于Transformer的模型。

英文摘要:

Modeling long-range dependencies in sequential data remains a central challenge in machine learning. Transformers address this challenge through attention mechanisms, but their quadratic complexity with respect to sequence length limits scalability to long contexts. State-space models (SSMs) provide an efficient alternative with linear-time computation by evolving a latent state through recurrent updates, but their memory is typically formed via additive or linear transitions, which can limit their ability to capture complex global interactions across tokens. In this work, we introduce one of the first studies to leverage the superposition property of quantum systems to enhance state-based sequence modeling. In particular, we propose Quantum Long-Attention Memory (QLAM), a hybrid quantum-classical memory mechanism that can be viewed as a quantum extension of state-space models. Instead of maintaining a classical latent state updated through additive dynamics, QLAM represents the hidden state as a quantum state whose amplitudes encode a superposition of historical information. The state evolves through parameterized quantum circuits conditioned on the input, enabling a non-classical, globally update mechanism. In this way, QLAM preserves the recurrent and linear-time structure of SSMs while fundamentally enriching the memory representation through quantum superposition. Unlike attention mechanisms that explicitly compute pairwise interactions, QLAM implicitly captures global dependencies through the evolution of the quantum state, and retrieves task-relevant information via query-dependent measurements. We evaluate QLAM on sequential variants of standard image classification benchmarks, including sMNIST, sFashion-MNIST, and sCIFAR-10, where images are flattened into token sequences. Across all tasks, QLAM consistently improves over recurrent baselines and transformer-based models.

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

↑