arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.25250cs.LG
收藏

通过多跳检索提升混合序列模型的表达能力

Improving the Expressive Power of Hybrid Sequence Models via Multi-Hop Retrieval

Technion – Israel Institute of Technology(以色列理工学院);NVIDIA(英伟达)

Yam Eitan, Gilad Yehudai, Haggai Maron

AI总结:

该研究针对混合序列模型表达能力局限,提出MuRA混合块,通过多跳检索机制建立表达能力层级,在函数复合任务上显著优于现有架构。

摘要:

混合架构结合少量全注意力层与大量高效序列层(如稀疏注意力和循环层),为高效语言建模提供了有前景的方案。全注意力层维护随序列长度线性增长的KV缓存,而高效层通常依赖独立的固定大小状态,不访问这种更丰富的现有记忆。近期研究开始探索让高效层访问KV缓存的方法,但这种访问的理论优势以及现有方法能在多大程度上实现这些优势仍不清楚。我们通过分析单个混合块在函数复合(序列模型表达能力中与多跳推理相关的经典任务)上的表达能力来研究这些问题。我们首先证明,传统混合块和带top-κ KV缓存访问的混合块,在大小为n的域上计算双函数复合时,都需要Ω(√n)的容量。为克服这一局限,我们提出Multi-hop Retrieval Attention(MuRA)混合块,这是一种简单架构,可从共享KV缓存进行多跳检索,同时保持渐近计算和内存效率。我们证明,单个固定大小的m跳MuRA块可计算m函数复合,而用相同检索深度计算(m+1)函数复合则需要多项式模型规模,这在检索深度上建立了严格的表达能力层级。合成实验支持这一层级,表明增加检索深度可学习更深层次的复合,显著优于现有混合架构。综上,我们的结果确定多跳检索是提升高效混合架构表达能力的有前景机制。

英文摘要:

Hybrid architectures offer a promising approach to efficient language modeling by combining a small number of full-attention layers with a larger number of efficient sequence layers, such as sparse attention and recurrent layers. While full-attention layers maintain a KV cache that grows linearly with sequence length, efficient layers typically rely on separate, fixed-size states rather than accessing this richer existing memory. Recent work has begun exploring ways to allow efficient layers access to the KV cache, but the theoretical benefits of such access, and the extent to which existing approaches can realize them remain poorly understood. We investigate these questions by analyzing the expressive power of individual hybrid blocks on function composition, a well-studied task in sequence-model expressivity associated with multi-hop reasoning. We first establish that both conventional hybrid blocks and those with top-$κ$ KV-cache access require $Ω(\sqrt{n})$ capacity to compute even two-function composition over a domain of size $n$. To overcome this limitation, we introduce the \emph{Multi-hop Retrieval Attention} (MuRA) hybrid block, a simple architecture that enables multi-hop retrieval from a shared KV cache while preserving asymptotic computational and memory efficiency. We prove that a single fixed size $m$-hop MuRA block can compute $m$-function composition, whereas computing $(m+1)$-function composition with the same retrieval depth requires polynomial model size, establishing a strict expressivity hierarchy in retrieval depth. Synthetic experiments support this hierarchy, showing that increasing retrieval depth enables learning progressively deeper compositions, substantially outperforming existing hybrid architectures. Together, our results identify multi-hop retrieval as a promising mechanism for improving the expressive power of efficient hybrid architectures.

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

↑