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

基于内容的路由何时有效?混合序列模型中选择性注意的表示要求

When Does Content-Based Routing Work? Representation Requirements for Selective Attention in Hybrid Sequence Models

National Institute of Electronics and Information Technology(国家电子与信息研究所)

Abhinaba Basu

AI总结:

研究探讨了混合序列模型中基于内容的路由有效性的条件,通过实验发现需双向上下文表示和成对比较以实现高路由精度。

摘要:

我们识别了混合序列模型中的路由悖论:基于内容的路由——决定哪些令牌值得昂贵的注意——需要成对计算,且无法避免。通过20多项实验,涵盖三个任务、多个规模(200K到1.4B参数)和15种路由机制,我们全面映射了路由景观。每种实现高路由精度的系统都是通过成对令牌比较实现的。避免成对计算的机制均失败:递归模型(Mamba-1.4B: 29%)、记忆银行(12%)、老虎机(0.7-3.6%)、对比预训练(1.6%)和其他12种方法均集中在1-29%。路由需要两个要素:(1)每个令牌的双向上下文表示和(2)成对令牌比较。双向Mamba(O(n))+成对比较实现99.5%;用秩-1投影替换完整成对路由提高到99.7%。在冻结Pythia-1B上添加一个双向层恢复99.4%的路由。六种不同的O(n)预处理机制(双向Mamba、Perceiver诱导点、因果注意力与端到端训练、稀疏注意力、双向注意力、秩-1投影)均成功;全局均值池化(1.9%)和傅里叶混合(0.9%)失败。路由信号占据约34维的潜在子空间,对余弦相似度不可见。非学习的索引(Bloom过滤器:90.9%;BM25:82.7%)绕过精确/关键词匹配的瓶颈。将O(n)双向Mamba与秩-1成对投影结合,在线性推断成本下实现99.7%的路由。

英文摘要:

We identify a routing paradox in hybrid sequence models: content-based routing - deciding which tokens deserve expensive attention - requires pairwise computation, and this requirement is inescapable. Through 20+ controlled experiments across three tasks, multiple scales (200K to 1.4B parameters), and 15+ routing mechanisms, we map the routing landscape exhaustively. Every system that achieves high routing precision does so through pairwise token comparison. Every mechanism that avoids pairwise computation fails: recurrent models (Mamba-1.4B: 29%), memory banks (12%), bandits (0.7-3.6%), contrastive pretraining (1.6%), and 12 other approaches all cluster at 1-29%. Routing needs two ingredients: (1) per-token representations with bidirectional context and (2) pairwise token comparison. Bidirectional Mamba (O(n)) + pairwise comparison achieves 99.5%; replacing the full pairwise router with rank-1 projection improves this to 99.7%. Adding one bidirectional layer to frozen Pythia-1B recovers 99.4% routing. Six different O(n) preprocessing mechanisms (bidirectional Mamba, Perceiver inducing points, causal attention with E2E training, sparse attention, bidirectional attention, rank-1 projection) all succeed; global mean pooling (1.9%) and Fourier mixing (0.9%) fail. The routing signal occupies a ~34-dimensional latent subspace, invisible to cosine similarity. Non-learned indices (Bloom filter: 90.9%; BM25: 82.7%) bypass the bottleneck for exact/keyword matching. Combining O(n) bidirectional Mamba with rank-1 pairwise projection yields 99.7% routing at linear inference cost.

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

↑