OpenTrain AI
No verified implementation yetHugging Face Transformers training guide

$π$-Attention: Periodic Sparse Transformers for Efficient Long-Context Modeling

Dong Liu, Yanxuan Yu

November 12, 2025arXiv: 2511.10696
0 repos~a few days to reproduce
arXiv PDF

Abstract

Transformers have revolutionized natural language processing, but their quadratic complexity with respect to sequence length remains a fundamental bottleneck for long-range modeling. While sparse attention mechanisms like RingAttention reduce computational costs by restricting attention to local neighborhoods, they suffer from limited receptive fields and lack of adaptability. We present \PiAttention, a periodic spar...

Results & Benchmarks

TaskDatasetMetricValue
Language modelingFull AttentionWikiText-10318.3
Language modelingRingAttentionWikiText-10320.1
Language modelingBigBirdWikiText-10319.8
RetrievalLRAAccuracy86.7
Retrieval / indexingMMLUPerplexity103

Hardware Requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Best Implementation

Maintained implementation evidence is not confirmed for this paper yet.

Use the Implementation Status and Reproduction Path sections below for the current action plan.

Reproduction Path

Follow this baseline workflow to decide if this paper is worth immediate prototyping.

  1. 1

    Use the paper and benchmark evidence to scope a baseline reproduction plan.

  2. 2

    Start from this likely method family: Transformer.

  3. 3

    Track assumptions and missing details in an experiment log before coding.

Framework baselines

Time to first repro: a few daysEstimate is based on paper-only reproduction flow

Additional Implementations

No additional verified repositories beyond the primary recommendation.

Hugging Face Artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet.