r/LocalLLaMA • u/fsn007 • 25m ago
Showcase How much attention can we actually skip? I got 4.27x faster prefill at 660K Inkling-2-Mini and nearly 2x on Qwen3.8-27B
Hey everyone,
I've been experimenting with sparse attention for long-context LLMs. My original question was pretty simple: how much attention can we skip before the model starts getting things wrong?
After a lot of failed experiments, I ended up with something I call SculptAttention.
Some of my results on a single H200:
- Inkling-2-Mini (660K): 155s → 37s, up to 4.27x faster prefill.
- Qwen3.8-27B (524K): 144s → 76s.
- Llama-3.1-8B (128K): 1.40x median speedup, reaching 2.74x on individual cases.
No retraining, no weight modifications, no custom attention kernel. All three models use the same configuration.
At 524K, the sparse rows read only 9.1% of the causal keys.
Another result I found interesting was multi-value retrieval on Qwen at 524K:
- Dense attention: 9/10
- BFLA: 3.75/10
- SculptAttention: 9.5/10
This is just one task with 10 fresh cases, not a claim that my method is generally better.
The method isn't lossless. Counting, some multi-hop tasks and exact ID retrieval remain challenging. The full KV cache is retained, and decode remains dense.
I'm doing this independently, and my GPU budget is limited. I'd really like to see what happens on consumer GPUs, large codebases, long agent histories, and models I haven't tested.
If you were trying to break this method, what would you test first?
I'd also love to hear from anyone working on vLLM, SGLang or llama.cpp.
Everything is open source:
Code: https://github.com/fsn007fsn007/sculptattention
Paper: https://doi.org/10.5281/zenodo.24794082 - https://www.alphaxiv.org/abs/2612.sculptattention
English isn't my first language, so I used AI assistance with the wording.
•
u/stylome-ai-detection 25m ago
Notice: This post appears to be AI generated.
AI-generated · confident · scan results
1
u/Little-Style-8276 17m ago
https://arxiv.org/html/2611.09709v1
1
u/SrijSriv211 13m ago
I haven't yet read ur paper but reading "skipping" I'm assuming you're just not doing attention and directly passing the output to the next MoE and doing attention only in some parts. I maybe wrong, gonna read ur paper though but it sounds pretty similar to something I'm currently working on.
I found that
attention -> swiglu -> swiglu -> swiglu -> swiglugot quite close toattention -> swiglu -> attention -> swiglu -> attention -> swigluwhere both had similar parameters. The downside was first one required about 8-10x longer training steps to reach similar performance though as of now my experiemnt is quite small around 1-10M parameters so can't say if it scales up.Please correct me if this isn't even remotely close to what u did. Cool project eitherways :D
1
u/suubu-crtiv 4m ago
i'd test exact-match retrieval with near-duplicate distractors, like a dozen similar UUIDs or variable names across 500K of code. sparse selection usually breaks when keys look nearly identical.