SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.24745 · ICLR · 2025

ProxyAttn: Guided Sparse Attention via Representative Heads

Yixuan Wang, Hua Wu, Qingfu Zhu, Wanxiang Che, Haifeng Wang, Huang He, Siqi Bao

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.24745.json · badge: /api/ran/2509.24745.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wyxstriker/ProxyAttn canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
create_causal_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wyxstriker/ProxyAttn/ops/xattention/utils.py
pointer only (licence: NONE) · get_code("2fea53cc7f2c9072")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_qkv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wyxstriker/ProxyAttn/ops/proxy_prefill_attenion.py
pointer only (licence: NONE) · get_code("25e088fc612aef48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_num_warps_stages Ran
ran, honoured the contract we drafted
wyxstriker/ProxyAttn/ops/flex_prefill_attention.py
pointer only (licence: NONE) · get_code("c7bbee93a299753b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

postprocess_pred Ran
ran; our contract draft was wrong, not the code
wyxstriker/ProxyAttn/eval/ruler/eval/evaluate.py
pointer only (licence: NONE) · get_code("5f32085fb2b18264")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sum_all_diagonal_matrix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wyxstriker/ProxyAttn/ops/minfer/minfer_attention.py
pointer only (licence: NONE); the stored copy get_code serves, from xinghaow99/pbs-attn, is pointer only (licence: NONE) · get_code("e75815e606c87def")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_blocks_chunked Not yet run
unverified (harvested, no recorded run)
wyxstriker/ProxyAttn/ops/xattention/utils.py
pointer only (licence: NONE) · get_code("3922fee3d342a2d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

xattn_estimate Not yet run
unverified (harvested, no recorded run)
wyxstriker/ProxyAttn/ops/xattention/x_attention.py
pointer only (licence: NONE) · get_code("7d7493d5b7166193")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wyxstriker/ProxyAttn when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
create_causal_mask 2 other papers
2 later
2601.17367 (2026-01)
Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers
2604.07394 (2026-04)
Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference
find_blocks_chunked 2 other papers
2 later
2601.17367 (2026-01)
Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformers
2604.07394 (2026-04)
Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inference
postprocess_pred 2 other papers
2 dated earlier
2404.06654 (2024-04)
RULER: What's the Real Context Size of Your Long-Context Language Models?
2410.16179 (2024-10)
MagicPIG: LSH Sampling for Efficient LLM Generation
sum_all_diagonal_matrix 2 other papers
1 dated earlier, 1 later
2410.21465 (2024-10)
ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference
2510.21270 (2025-10)
Sparser Block-Sparse Attention via Token Permutation
get_num_warps_stages 1 other paper
1 dated earlier
2502.20766 (2025-02)
FlexPrefill: A CONTEXT-AWARE SPARSE ATTENTION MECHANISM FOR EFFICIENT LONG-SEQUENCE IN-FERENCE

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The quadratic complexity of attention mechanisms limits the efficiency of Large Language Models (LLMs) on long-text tasks. Recently, methods that dynamically estimate block importance have enabled efficient block sparse attention, leading to significant acceleration in long-text pre-filling of LLMs. However, their coarse-grained estimation inevitably leads to performance degradation at high sparsity rates. In this work, we propose ProxyAttn, a training-free sparse attention algorithm that achieves more precise block estimation by compressing the dimension of attention heads. Based on our observation of the similarity among multiple attention heads, we use the scores of pooled representative heads to approximate the scores for all heads. To account for the varying sparsity among heads, we also propose a block-aware dynamic budget estimation method. By combining the scores from representative proxy heads with multi-head dynamic budgets, we achieve a more fine-grained block importance evaluation at low computational cost. Experiments on a variety of mainstream models and extensive benchmarks confirm the underlying similarity among attention heads. Leveraging a fine-grained estimation, the proposed method achieves substantial gains in performance and efficiency compared to existing methods. More precisely, ProxyAttn can achieve up to 10.3x attention acceleration and 2.4x prefilling acceleration without significant performance loss. Our code is available at https://github.com/wyxstriker/ProxyAttn.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.24745")
get_code_for_paper("2509.24745")
have("2509.24745")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.24745.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.24745.svg)](https://syntology.ai/paper/2509.24745)

Connect an agent — have() is free.