Research map / Architectures and efficiency / Attention and transformers
From Logical to Computational Sparsity: Structure-Aware Block-Sparse Attention for Long-Code Completion
Yanli Wang, Yanlin Wang, Bowen Zhang, Yiwei Zhang, Daya Guo, Jiachi Chen, Hongyu Zhang, Zibin Zheng
Sun Yat-sen University · Zhejiang University · Chongqing University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use SabreCoder block-sparse attention instead of dense (Triton) | DeepSeek-Coder-1.3B · LCC Python | TTFT (ms): 1686.72 -> 931.19 | Improved |
| use SabreCoder instead of dense (Triton) | DeepSeek-Coder-1.3B · LCC Python | EM: 36.43 -> 36.43 | No clear effect |
| use SabreCoder instead of dense (Triton) | DeepSeek-Coder-1.3B · CrossCodeEval Python | TTFT (ms): 1788.46 -> 804.21 | Improved |
| use SabreCoder instead of dense (Triton) | DeepSeek-Coder-1.3B · CrossCodeEval Java | EM: 19.75 -> 18.75 | Hurt |
| use structure-aware SabreCoder instead of StreamingLLM | DeepSeek-Coder-1.3B · CrossCodeEval Python | EM: 4.50 -> 17.25 | Improved |
| use SabreCoder instead of LongCoder | DeepSeek-Coder-1.3B · LCC Python | TTFT (ms): 1841.45 -> 931.19 | Improved |
| add similarity-based attention (ablation) | SabreCoder · CrossCodeEval Python | EM: 6.25 -> 17.25 | Improved |
| add similarity-based attention (ablation) | SabreCoder · CrossCodeEval Python | TTFT (ms): 679.28 -> 804.21 | Hurt |
| add global attention (ablation) | SabreCoder · CrossCodeEval Python | EM: 11.75 -> 17.25 | Improved |
| add intra-chunk attention (ablation) | SabreCoder · CrossCodeEval Python | EM: 13.75 -> 17.25 | Improved |
| add block-level mapping (ablation) | SabreCoder · CrossCodeEval Python | TTFT (ms): 1065.55 -> 804.21 | Improved |
| treat retrieved snippets as independent chunks (ablation) | SabreCoder · CrossCodeEval Python | EM: 9.50 -> 17.25 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- LongCoder — LongCoder: A Long-Range Pre-trained Language Model for Code Completion (ICML 2023) · better on 4 of 4 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- LongCoder: A Long-Range Pre-trained Language Model for Code Completion (ICML 2023 · similarity 0.91)
- Sparser Block-Sparse Attention via Token Permutation (ICML 2026 · similarity 0.89)
- Stem: Rethinking Causal Information Flow in Sparse Attention (ICML 2026 · similarity 0.88)
- Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention (ACL 2025 · similarity 0.88)
- Punctuation-aware Hybrid Trainable Sparse Attention for Large Language Models (NeurIPS 2026 · similarity 0.87)
- Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps (NeurIPS 2026 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.