ToSA: Trainable Online Sparse Attention
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:54 UTC · 37a56685ebd7 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "RNK7zYtkhd"- }- ],- "title": "ToSA: Trainable Online Sparse Attention",- "authors": [],- "abstract": "Processing long sequences is expensive because dense self-attention has quadratic complexity. Existing sparse attention methods, e.g., Native Sparse Attention, can skip score computation, but prediction and indexing introduce additional overhead. Online block skipping avoids a separate selection stage during inference, but high sparsity often reduces model accuracy. To address this issue, we propose\nToSA, a trainable online sparse attention method for long-sequence modeling. ToSA reuses online-softmax statistics in a fused Triton kernel to identify low-contribution KV blocks after the attention scores are computed. For each skipped block, it bypasses value loading, softmax computation, and the subsequent P V accumulation. Its sparse backward kernel replays the block decisions recorded in the forward pass, enabling end-to-end training. We further propose a three-stage schedule that begins with dense training, gradually increases spar-\nsity, and ends with training at the desired sparsity. We evaluate ToSA with Qwen3.5-2B on long-context and long-video understanding. Compared with the dense fine-tuning baseline, ToSA improves the LongBench score from 38.18 to 39.62 and the LongVideoBench score from 58.19 to 60.02. In terms of efficiency, ToSA achieves up to a 1.77× attention-kernel speedup at a 128K sequence length. Together, these results demonstrate that ToSA substantially accelerates long-sequence modeling while preserving long-sequence understanding.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "06869539-9190-47ce-9bfc-86208927e8ad"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "ToSA: Trainable Online Sparse Attention",+ "authors": [],+ "abstract": "Processing long sequences is expensive because dense self-attention has quadratic complexity. Existing sparse attention methods, e.g., Native Sparse Attention, can skip score computation, but prediction and indexing introduce additional overhead. Online block skipping avoids a separate selection stage during inference, but high sparsity often reduces model accuracy. To address this issue, we propose\nToSA, a trainable online sparse attention method for long-sequence modeling. ToSA reuses online-softmax statistics in a fused Triton kernel to identify low-contribution KV blocks after the attention scores are computed. For each skipped block, it bypasses value loading, softmax computation, and the subsequent P V accumulation. Its sparse backward kernel replays the block decisions recorded in the forward pass, enabling end-to-end training. We further propose a three-stage schedule that begins with dense training, gradually increases spar-\nsity, and ends with training at the desired sparsity. We evaluate ToSA with Qwen3.5-2B on long-context and long-video understanding. Compared with the dense fine-tuning baseline, ToSA improves the LongBench score from 38.18 to 39.62 and the LongVideoBench score from 58.19 to 60.02. In terms of efficiency, ToSA achieves up to a 1.77× attention-kernel speedup at a 128K sequence length. Together, these results demonstrate that ToSA substantially accelerates long-sequence modeling while preserving long-sequence understanding.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}