跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.27951 · v1

Topology Hub Optimal Transport: Eliminating Long Context Dilution at Flash Speed

拓扑枢纽最优传输:以闪电速度消除长上下文稀释

首次提交 2026-11-21 02:23
版本更新 2026-11-21 02:23
雷达观测 2026-11-23 14:16
arXiv ↗PDF ↗

摘要

Long-context models use sparse or structured attention to avoid quadratic cost, yet retrieving a small set of relevant facts embedded among hundreds of thousands of distractors degrades as normalization mass disperses with length. Hub-and-spoke optimal transport (OT) replaces the dense L×LL \times L matrix with a linear-size graph over local windows and KK shared hubs balanced by Sinkhorn scaling. Building on block-wise tail refinement and fixed-support transport topology (arXiv:2605.08123, arXiv:2609.07954), we introduce Topology Hub Optimal Transport (THOT): (1) bounded-support capacity gating via simplex sparsemax (O(Llog⁡L)O(L\log L)) or sorting-free token-local thresholded ReLU (O(L)O(L)), driving excess distractor mass to zero; (2) a three-sweep 1+21+2 annealed row-closed Sinkhorn schedule that damps bipartite residuals; (3) an exact rank-(D+2R+1)(D+2R+1) One-Reference-Tile adjoint in batched split-factor Triton kernels (BF16 Tensor Cores, FP32 potentials); and (4) a chunked exclusive-prefix causal variant with verified zero future leakage. On NVIDIA L4, sparsemax THOT trained at L=128L=128 reaches 97.40% zero-shot recall of fixed bindings at L=262,144L=262{,}144 under pure task loss (α=0α=0) and 98.83% at α=0.05α=0.05 (matched by O(L)O(L) thresholded ReLU at α=0.05α=0.05, vs. 80.60% at α=0α=0), while softmax-gated hub OT drops to 3.52%. In bidirectional operator microbenchmarks, our kernel runs forward+VJP in 100.1 ms at H=8,D=64,L=262KH=8, D=64, L=262\mathrm{K} (2.2x faster with 4.0x smaller compiler temporaries than latent softmax) and 1.34 ms vs. 4.37 ms for cuDNN FlashAttention at L=4,096L=4{,}096; multi-layer LM runs use the unfused path. Zero-shot WikiText-103 multi-needle retrieval hits 100.00% (128/128 queries at L=65KL=65\mathrm{K}) vs. 0.78% for short-trained RoPE FlashAttention, and compact 4-layer WikiText-4K runs show modest causal and masked LM gains.

AI 论文解读

基于摘要 · 非全文审阅

作者提出 THOT,用局部窗口加共享枢纽的线性规模图与稀疏容量门控替代稠密注意力,报告在超长上下文零样本绑定召回和检索上显著优于 softmax 门控枢纽 OT 与短训练 RoPE FlashAttention。

正在读取账号与研究记录…

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-21 02:23 · 最新观测版本

Topology Hub Optimal Transport: Eliminating Long Context Dilution at Flash Speed

Long-context models use sparse or structured attention to avoid quadratic cost, yet retrieving a small set of relevant facts embedded among hundreds of thousands of distractors degrades as normalization mass disperses with length. Hub-and-spoke optimal transport (OT) replaces the dense L×LL \times L matrix with a linear-size graph over local windows and KK shared hubs balanced by Sinkhorn scaling. Building on block-wise tail refinement and fixed-support transport topology (arXiv:2605.08123, arXiv:2609.07954), we introduce Topology Hub Optimal Transport (THOT): (1) bounded-support capacity gating via simplex sparsemax (O(Llog⁡L)O(L\log L)) or sorting-free token-local thresholded ReLU (O(L)O(L)), driving excess distractor mass to zero; (2) a three-sweep 1+21+2 annealed row-closed Sinkhorn schedule that damps bipartite residuals; (3) an exact rank-(D+2R+1)(D+2R+1) One-Reference-Tile adjoint in batched split-factor Triton kernels (BF16 Tensor Cores, FP32 potentials); and (4) a chunked exclusive-prefix causal variant with verified zero future leakage. On NVIDIA L4, sparsemax THOT trained at L=128L=128 reaches 97.40% zero-shot recall of fixed bindings at L=262,144L=262{,}144 under pure task loss (α=0α=0) and 98.83% at α=0.05α=0.05 (matched by O(L)O(L) thresholded ReLU at α=0.05α=0.05, vs. 80.60% at α=0α=0), while softmax-gated hub OT drops to 3.52%. In bidirectional operator microbenchmarks, our kernel runs forward+VJP in 100.1 ms at H=8,D=64,L=262KH=8, D=64, L=262\mathrm{K} (2.2x faster with 4.0x smaller compiler temporaries than latent softmax) and 1.34 ms vs. 4.37 ms for cuDNN FlashAttention at L=4,096L=4{,}096; multi-layer LM runs use the unfused path. Zero-shot WikiText-103 multi-needle retrieval hits 100.00% (128/128 queries at L=65KL=65\mathrm{K}) vs. 0.78% for short-trained RoPE FlashAttention, and compact 4-layer WikiText-4K runs show modest causal and masked LM gains.

查看此版本解读 →查看此版本原文 ↗