Crimson AI NewsA CrimsonLingua Network service
EN ع
← Back to news
Research paper Hugging Face

PISA Brings Log-Linear Block Sparse Attention to Long-Context Language Models

AI By Crimson AI Hugging Face Papers 28 September 2026 · 00:00 15 views
Share: X Telegram

A new Hugging Face paper proposes PISA, a block-sparse attention mechanism that uses pyramid Top-K selection to cut attention complexity from quadratic to O(N log N), with hardware-aware Triton kernels for training and inference.

PISA Brings Log-Linear Block Sparse Attention to Long-Context Language Models

Key points

Scaling language models to long contexts is constrained by the quadratic cost of self-attention. Block sparse attention is a common efficiency workaround, but it introduces its own bottleneck: choosing which blocks to keep normally requires scoring every query-block pair, which is itself quadratic in sequence length.

To address this, researchers propose PISA, a block-sparse attention mechanism built around a pyramid Top-K selection strategy. Rather than scoring all pairs, PISA narrows candidates progressively across multiple levels, starting from a coarse representation of keys and refining toward finer ones.

The method constructs a coarse-to-fine hierarchy of keys. At each level, LogSumExp scoring is applied to a bounded candidate set to choose which candidates advance to the next, finer level, repeating until the finest level is reached. Pooling is used to build O(log N) levels of keys, giving the overall mechanism a complexity of O(N log N), where N is the sequence length.

The authors also developed hardware-aware Triton kernels for both training and inference. These kernels fuse hierarchical routing and LogSumExp scoring without ever materializing the full query-key score matrix.

On language modeling tasks, the paper reports performance comparable to the baseline on benchmarks such as commonsense reasoning, while delivering better results on retrieval tasks.

Source
Hugging Face · Hugging Face Papers
Related news
Research paper
Hugging Face 15 Oct 2026

New Survey Maps How Multimodal AI Agents Remember and Evolve

A Hugging Face survey proposes a two-axis framework for multimodal agent memory, separating how information is formed and represen...

5
Research paper
Hugging Face 15 Oct 2026

CriticOPD Fixes On-Policy Distillation by Letting Teachers Critique Student Errors

Hugging Face researchers introduce CriticOPD, a method that restores the teacher's ability to recover from student mistakes during...

6
Research paper
Hugging Face 15 Oct 2026

ActionOPD: Distilling Agent Decisions, Not Tokens

A new Hugging Face paper proposes ActionOPD, an action-level on-policy distillation method that aligns a student agent's decisions...

6