potentialpaper

HiRouter: Efficient Maximum Inner Product Search for Top-$K$ Attention via Hierarchical Routers

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:56 UTC · 3f8bb839ac8b ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "xQ6Sx8Aee4"
- }
- ],
- "title": "HiRouter: Efficient Maximum Inner Product Search for Top-$K$ Attention via Hierarchical Routers",
- "authors": [],
- "abstract": "Attention enables parallel token retrieval but at a quadratic memory and computation cost relative to sequence length, limiting its applicability to long contexts. Sparse top-$K$ attention alleviates this issue by reducing computation while maintaining competitive accuracy. However, existing sparse top-$K$ methods rely on k-means clustering or locality-sensitive hashing (LSH) to avoid computing the full attention matrix. While GPU-friendly, these approaches employ approximate and often decoupled partition-based routing, which can limit retrieval accuracy. To this end, we propose Hierarchical Router (HiRouter), a sparse top-$K$ attention mechanism that that leverages a learned routing function within a hierarchical structure, coupling retrieval with attention by co-training queries, keys, and routing functions end-to-end. To make the learned router effective, we design two routing rules: relevant tokens should co-route with the query, and bucket occupancy should remain balanced to avoid collapse and support uniform GPU workloads. By optimizing two surrogate losses over a learned multi-level hierarchy, HiRouter realizes these rules, partitioning tokens into discrete buckets in linear time and enabling accurate per-sequence retrieval with GPU-friendly bucket layouts. On standard benchmarks, HiRouter matches full-attention performance, while matching/surpassing full-attention accuracy on sequences beyond 4K tokens with up to 2$\\times$ faster inference than FlashAttention.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "25ba4b78-b669-44a5-b734-84d12ff90593"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "HiRouter: Efficient Maximum Inner Product Search for Top-$K$ Attention via Hierarchical Routers",
+ "authors": [],
+ "abstract": "Attention enables parallel token retrieval but at a quadratic memory and computation cost relative to sequence length, limiting its applicability to long contexts. Sparse top-$K$ attention alleviates this issue by reducing computation while maintaining competitive accuracy. However, existing sparse top-$K$ methods rely on k-means clustering or locality-sensitive hashing (LSH) to avoid computing the full attention matrix. While GPU-friendly, these approaches employ approximate and often decoupled partition-based routing, which can limit retrieval accuracy. To this end, we propose Hierarchical Router (HiRouter), a sparse top-$K$ attention mechanism that that leverages a learned routing function within a hierarchical structure, coupling retrieval with attention by co-training queries, keys, and routing functions end-to-end. To make the learned router effective, we design two routing rules: relevant tokens should co-route with the query, and bucket occupancy should remain balanced to avoid collapse and support uniform GPU workloads. By optimizing two surrogate losses over a learned multi-level hierarchy, HiRouter realizes these rules, partitioning tokens into discrete buckets in linear time and enabling accurate per-sequence retrieval with GPU-friendly bucket layouts. On standard benchmarks, HiRouter matches full-attention performance, while matching/surpassing full-attention accuracy on sequences beyond 4K tokens with up to 2$\\times$ faster inference than FlashAttention.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}