Papers › SOCKET: SOft Collision Kernel EsTimator for Sparse Attention

SOCKET: SOft Collision Kernel EsTimator for Sparse Attention

6 Feb 2026arXiv:2602.06283added by Syntology

Sahil Joshi, Agniva Chowdhury, Wyatt Bellinger, Amar Kanakamedala, Ekam Singh, Hoang Anh Duy Le, Aditya Desai, Anshumali Shrivastava

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Exploiting sparsity during long-context inference is key to scaling large language models, as attention dominates the cost of autoregressive decoding. Sparse attention reduces this cost by restricting computation to a subset of tokens, but its effectiveness depends on efficient scoring and selection at inference time. We revisit Locality-Sensitive Hashing (LSH) and introduce SOCKET, a SOft Collision Kernel EsTimator that replaces hard bucket matches with probabilistic, similarity-aware aggregation. Traditional LSH yields binary collision signals that limit ranking quality and require substantial memory to perform well. In contrast, soft LSH accumulates graded collision evidence across hash tables, preserving top-k ordering with significantly less memory. This reframes LSH from a candidate generator into a principled scoring kernel for sparse attention. Leveraging this property, SOCKET enables efficient token selection without ad hoc voting and matches or surpasses prior sparse attention methods across multiple long-context benchmarks. With a custom CUDA scoring kernel and a Flash Decode Triton backend, SOCKET achieves up to 1.5× higher throughput than FlashAttention.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2602.06283")

Code

Syntology Ran 1 of 20 code samples harvested from 1 repository linked to this paper; 19 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amarka8/SOCKET found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 1 ran; 1 honoured the contract we drafted; 19 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
19unverified

Licence: 20 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from amarka8/SOCKET. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

find_multiple amarka8/SOCKET/GPT-FAST/model.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · aba86ffbed27ba65 · report
apply_rotary_emb amarka8/SOCKET/GPT-FAST/model.py found in paper text by Syntology unverified no licence file found · pointer only · 1102ffb719fa5cde · report
attention_mask_to_allowed_prob amarka8/SOCKET/kernels/socket_triton_kernels.py found in paper text by Syntology unverified no licence file found · pointer only · a75ad681dca07d95 · report
build_results_row amarka8/SOCKET/eval/ruler_utils/scorer.py found in paper text by Syntology unverified no licence file found · pointer only · 00ff5b090fec69bd · report
build_sparse_list_decode amarka8/SOCKET/GPT-FAST/kernels/sparse.py found in paper text by Syntology unverified no licence file found · pointer only · e5bb10b75c0b2e3c · report
dynamically_quantize_per_channel amarka8/SOCKET/GPT-FAST/quantize.py found in paper text by Syntology unverified no licence file found · pointer only · 55ec8fea60e1d7e7 · report
expand_block_index_to_heads amarka8/SOCKET/kernels/block_sparse_flash_attention.py found in paper text by Syntology unverified no licence file found · pointer only · caaea88e7a48e0c2 · report
get_group_qparams amarka8/SOCKET/GPT-FAST/quantize.py found in paper text by Syntology unverified no licence file found · pointer only · dbabfb89a4b530ac · report
get_kernel_code amarka8/SOCKET/GPT-FAST/kernels/soft_hash_collision_loader.py found in paper text by Syntology unverified no licence file found · pointer only · 75282665af7ff147 · report
load_soft_hash_collision amarka8/SOCKET/GPT-FAST/kernels/soft_hash_collision_loader.py found in paper text by Syntology unverified no licence file found · pointer only · 9545ad64a8415458 · report
logits_to_probs amarka8/SOCKET/GPT-FAST/generate.py found in paper text by Syntology unverified no licence file found · pointer only · fd0cfe048b12c6f2 · report
multinomial_sample_one_no_sync amarka8/SOCKET/GPT-FAST/generate.py found in paper text by Syntology unverified no licence file found · pointer only · 060506d7f037e907 · report
pack_scales_and_zeros amarka8/SOCKET/GPT-FAST/quantize.py found in paper text by Syntology unverified no licence file found · pointer only · 146cdcef0c195fd7 · report
precompute_freqs_cis amarka8/SOCKET/GPT-FAST/model.py found in paper text by Syntology unverified no licence file found · pointer only · 26cf476e99a51b14 · report
random_walk_indices amarka8/SOCKET/kernels/block_sparse_flash_attention.py found in paper text by Syntology unverified no licence file found · pointer only · b8b875125635b5fc · report
random_walk_indices_from_block_probs amarka8/SOCKET/kernels/block_sparse_flash_attention.py found in paper text by Syntology unverified no licence file found · pointer only · 7ff5f8665dfef840 · report
register_args_and_configs amarka8/SOCKET/pipeline/main_utils.py found in paper text by Syntology unverified no licence file found · pointer only · 89f735317c12c997 · report
sample amarka8/SOCKET/GPT-FAST/generate.py found in paper text by Syntology unverified no licence file found · pointer only · b0856105fbfe6f4f · report
set_logger amarka8/SOCKET/pipeline/main_utils.py found in paper text by Syntology unverified no licence file found · pointer only · d86a7d51ce10c6e4 · report
sparse_attention_fwd amarka8/SOCKET/GPT-FAST/kernels/sparse.py found in paper text by Syntology unverified no licence file found · pointer only · 42bbf5633ac60efd · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.06283, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections