Skip to main content

structured-sparse-attention-entity

Structured-Sparse Attention methodology from arXiv:2605.22476 (May 2026). Blockwise resolvent-style attention operator achieving subquadratic sequence complexity O(n^(4/3)) for entity tracking by exploiting localized attention structure. Use when: efficient attention mechanisms, entity tracking, subquadratic transformers, sparse attention patterns, long-sequence reasoning.

Aller à l'installation

Informations de source

Dépôt
hiyenwong/ai_collection
Dernière activité de la source
4 juin 2026 à 13:32
Langue détectée de SKILL.md
anglais
Étoiles
2
Forks
0

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
structured-sparse-attention-entity
description
Structured-Sparse Attention methodology from arXiv:2605.22476 (May 2026). Blockwise resolvent-style attention operator achieving subquadratic sequence complexity O(n^(4/3)) for entity tracking by exploiting localized attention structure. Use when: efficient attention mechanisms, entity tracking, subquadratic transformers, sparse attention patterns, long-sequence reasoning.
# Structured-Sparse Attention for Entity Tracking with Subquadratic Sequence Complexity **Paper:** arXiv:2605.22476 (May 2026) ## Core Insight Learned attention in entity tracking tasks is **strongly structured** — the attention matrix is dominated by local block-diagonal neighborhoods (entities attending primarily to their own features) with only a light cross-block residue. This paper exploits that structure to avoid materializing the full O(n²) attention matrix. ## Methodology ### Attention Structure Discovery - Empirically demonstrates that entity-tracking attention matrices concentrate **>90% of mass** in block-diagonal bands of width O(n^(2/3)) - Cross-block interactions exist as sparse residual connections rather than dense global mixing - Structure is consistent across depths, not just an early-layer artifact ### Blockwise Resolvent Operator - **Within-block:** Exact attention computed via standard dense mechanism on local token blocks (size ~n^(2/3) each → ~n^(1/3) blocks) - **Between-block (routing):** Reduced-system approximation using block-level summary states — a resolvent-style (I - P)^(-1) operator that propagates information across blocks without quadratic blowup - Combines exact local attention with approximate global routing, analogous to domain decomposition in numerical PDE solvers ### Complexity | Component | Complexity | |---|---| | Within-block exact attention | O(n · n^(2/3) · d) = O(n^(5/3)d) | | Cross-block reduced system | O(n^(4/3)d) | | **Total sequence complexity** | **O(n^(4/3)d)** | | Dense baseline | O(n²d) | Improvement factor vs dense: O(n^(2/3)) — meaning subquadratic scaling that still preserves the expressivity of full attention where it matters most. ## Key Results | Metric | Improvement | |---|---| | Wall-clock speedup vs dense attention | **12–29%** | | Speedup vs compact dense Transformer | **up to 2.4×** | | Theoretical complexity reduction | O(n^(2/3)) vs dense O(n²) | | Memory savings | Proportional to block-sparse structure | ## Key Limitation **Performance collapses when number of evolving properties > number of attention heads.** The structural sparsity assumption breaks down when too many distinct properties must be tracked simultaneously — cross-block interactions become dense, defeating the subquadratic approximation. ## Activation Scenarios Use this skill when: - Working with **entity tracking** tasks (e.g., tracking object properties through multiple reasoning steps) - Modeling **long sequences** where O(n²) attention is prohibitive - Dealing with **localized attention patterns** where cross-token interactions are sparse - Implementing **efficient Transformer variants** for structured reasoning - Exploring **subquadratic alternatives** to full attention with minimal accuracy loss ## Related Directions - Combines ideas from **sparse attention** (Sparse Transformers, Longformer, BigBird) with **operator-based** (linear attention, Performer) and **domain decomposition** (numerical PDE) perspectives - Most similar in spirit to **Reformer** (LSH-based sparsity) but grounded in learned attention structure rather than hashing - Inverse relationship to **Mixture-of-Experts routing** — both partition the sequence, but this work routes attention residuals whereas MoE routes tokens through expert networks ## Activation Keywords ``` structured-sparse attention, entity tracking, subquadratic attention, resolvent operator, blockwise attention, sparse attention pattern, long-sequence transformer, O(n^(4/3)) complexity, domain decomposition attention, localized attention, cross-block routing, compact dense transformer, attention structure discovery, evolving properties, block-diagonal attention ``` ## References - Sparse Transformers (Child et al., 2019) - Longformer (Beltagy et al., 2020) - BigBird (Zaheer et al., 2020) - Reformer (Kitaev et al., 2020) - Performer (Choromanski et al., 2020) - Domain decomposition methods (Toselli & Widlund, 2004)
Voir sur GitHub