Structured Token Statistics Transformer: Linear-Time Attention via Tighter Coding-Rate Bounds
Abstract
Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.
Token Statistics Transformer (ToST) obtains linear-time attention by summarizing projected tokens through coordinatewise second moments. This efficient statistic omits cross-coordinate moments: for fixed projections and memberships, different joint second-order structures can produce the same diagonal filter. Its coding-rate upper bound is tight only when the projected group moments are diagonal, a condition that a shared learned basis need not satisfy for each input. We introduce Structured Token Statistics Transformer (SToST), which retains joint moments within small feature-coordinate groups. Applying the Hadamard--Fischer inequality yields a coding-rate upper bound that is no looser than ToST's diagonal surrogate under matched projections and memberships, and strictly tighter when a retained within-group off-diagonal moment is nonzero. A gradient step produces Structured Token Statistics Attention (STSA), replacing scalar coordinate gates with small positive definite linear solves. Singleton groups recover the theoretical ToST operator. Group sizes may differ; when their maximum size is bounded independently of sequence length and head width, the statistical core retains ToST's $O(np)$ time and $O(p)$ statistics storage, with additional constant overhead. In single-run size-two-group pilots, SToST improves CIFAR-10 accuracy from 86.42% to 86.81% and reduces WikiText-2 test perplexity from 326.09 to 318.91, with higher measured training time in both settings. The resulting architecture preserves selected cross-coordinate statistics without introducing token-pair attention.
Results and benchmarks
Token Statistics Transformer (ToST) obtains linear-time attention by summarizing projected tokens through coordinatewise second moments.
| Task | Dataset | Metric | Value | Source |
|---|---|---|---|---|
| Transformer | ToST-Base | Perplexity | 326.09 | paper-derived |
| Transformer | SToST-Base, B = 2 B=2 | Perplexity | 318.91 | paper-derived |
Audit each benchmark finding before selecting an implementation path.
Implementation
No direct implementation yet
Maintained implementation evidence is not confirmed for this paper yet.
Use the implementation status and reproduction sections for the current action plan.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No direct maintained implementation was found. Use the paper PDF and citation graph to design a baseline reproduction.
- Start from this likely method family: Transformer.
- Track assumptions and missing details in an experiment log before coding.
Time to first repro: a few days
Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.
- Estimate is based on paper-only reproduction flow
Reproduction readiness
No repo
No verified implementation available
- No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
Tasks
Transformer
Methods
Transformer
Domains
None detected
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.