结构稀疏注意力用于具有次二次序列复杂度的实体跟踪
Structured-Sparse Attention for Entity Tracking with Subquadratic Sequence Complexity
AI总结:
本文提出了一种结构稀疏注意力机制,用于在长序列中高效维护和更新实体和属性的潜在状态,通过减少计算复杂度提升实体跟踪的效率和准确性。
摘要:
实体跟踪需要在长序列中维护和更新实体和属性的潜在状态。最近的特定任务注意力运算可以通过在单个层内进行多跳状态传播,将深度Transformer堆栈压缩成几层,但其密集评估仍很昂贵。我们显示在这种情况下,学习的注意力具有很强的结构特性:大部分质量集中在局部块对角邻域,具有轻量的跨块残差。利用这一点,我们推导出一种分块评估的解析式算子,保持块内交互的精确性,并通过缩减系统路由跨块交互。所得到的评估是序列长度的次二次复杂度$O(n^{4/3}d)$(当$d\approx n$时为$O(n^{7/3})$)。在受控跟踪基准上,我们的方法在保持密集运算准确性的同时,通过标准化测量协议减少了12-29%的实时时钟时间,并在可比的精确匹配准确性下,比紧凑的密集Transformer快高达2.4倍。我们进一步提供了关于块大小和模型容量的消融实验,并识别了一个限制:当同时演化的属性数量超过注意力头的数量时,性能会崩溃。
英文摘要:
Entity tracking requires maintaining and updating latent states for entities and attributes over long sequences. Recent task-specific attention operators can compress deep Transformer stacks into a few layers by performing multi-hop state propagation within a single layer, but their dense evaluation remains expensive. We show that in this setting, learned attention is strongly structured: most mass concentrates in local block-diagonal neighborhoods with a light cross-block residue. Exploiting this, we derive a blockwise evaluation of a resolvent-style operator that keeps within-block interactions exact and routes cross-block interactions through a reduced system. The resulting evaluation is subquadratic in sequence length $O(n^{4/3}d)$ (and $O(n^{7/3})$ when $d\approx n$). On controlled tracking benchmarks, our method matches the dense operator's accuracy while reducing wall-clock time by $12-29\%$ under a standardized measurement protocol, and is up to $2.4 \times$ faster than a compact dense Transformer at comparable exact-match accuracy. We further provide ablations over block size and model capacity, and identify a limitation: performance collapses when the number of simultaneously evolving properties exceeds the number of attention heads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。