atlas

Research map / Architectures and efficiency / Attention and transformers

Scaling Stick-Breaking Attention: An Efficient Implementation and In-depth Study

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes stick-breaking attention as a drop-in softmax replacement without positional embeddings, with a numerically stable Triton/FlashAttention-style kernel, and evaluates length generalisation and 1B/3B pretrained models.

Problem

Softmax attention needs positional embeddings (e.g., RoPE) and existing position methods generalise poorly to longer contexts than seen in training.

Approach

Replace softmax with a stick-breaking process where each token's weight is a sigmoid break point applied to the remaining stick, giving an inherent recency bias and removing the need for position embeddings; implement it with a log-space, block-wise Triton kernel adapted from FlashAttention-2.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace Softmax + RoPE attention with stick-breaking attention1B pretrained model · NLP benchmarksAvg. accuracy: 58.8 -> 59.5Helped
Replace Softmax + RoPE attention with stick-breaking attention1B pretrained model · WikiTextperplexity: 13.8 -> 13.4Helped
Replace Softmax + RoPE attention with stick-breaking attention3B pretrained model · NLP benchmarksAvg. accuracy: 63.3 -> 64.1Helped
Replace Softmax + RoPE attention with stick-breaking attention3B pretrained model · WikiTextperplexity: 11.3 -> 10.8Helped
Replace Softmax + RoPE attention with stick-breaking attention3B model · GSM8K 5-shotaccuracy: 44.1 -> 42.3Hurt
Replace Softmax + RoPE attention with stick-breaking attention3B model · GSM8K 8-shot, CoTaccuracy: 44.2 -> 49.7Helped
Use stick-breaking attention instead of Softmax + RoPE2-layer Transformer · MQRARmaximum key-value pairs handled: 128 -> 192Helped
Use the Triton stick-breaking attention kernel instead of FA21B class training · Training throughputbillion tokens / day: 29.5 billion tokens / day -> 21 billion tokens / dayHurt
Enable forward-pass early halting / block skipping (ablation)Stick-breaking attention · Pile 10k, 16K contextspeed improvement: 9.3%Helped
Add remainder bias (ablation)Stick-breaking Transformer · 1.2B parameters, 1.25T tokensAvg.: 47.2 -> 47.5Helped
Add Group Norm to stick-breaking with remainder bias (ablation)Stick-breaking Transformer · 1.2B parameters, 1.25T tokensAvg.: 47.5 -> 47.5No clear effect
Add remainder bias and Group Norm (ablation)Stick-breaking Transformer · 1B activation / 6.5B parameters, 2T tokensAvg.Helped

Surprising findings

Limitations

Experimental setup

Datasets: SlimPajama The Pile (10k subset) Wikitext RULER MMLU GSM8K ARC HellaSwag OpenBookQA PIQA RACE SciQ

Benchmarks: Wikitext perplexity RULER MMLU GSM8K ARC HellaSwag OpenBookQA PIQA RACE SciQ Winogrande MQRAR

Metrics: negative log-likelihood perplexity accuracy average accuracy

Baselines: Softmax+RoPE ALiBi FIRE NoPE Gemma2-2B Qwen1.5-4B TinyLlama MQAR-style Transformers

Builds on: FlashAttention-2 RoPE ALiBi Geometric attention Llama 2

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy