Reproduce “Self-Tuning Sparse Attention: Multi-Fidelity Hyperparameter Optimization for Transformer Acceleration” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Arundhathi Dev, Justin Zhan
An automated framework, AFBS-BO, was developed to optimize dynamic sparse attention hyperparameters in Transformers, efficiently discovering layer- and head-specific configurations. This method achieved 3.4x faster tuning and 8.8x fewer evaluations than grid search, enabling Llama-2-7B to operate at 70.7% sparsity with a perplexity of 7.45 while preserving long-context capabilities and 99.6% performance on reasoning tasks.
Key insights
- Optimal sparse attention hyperparameters are highly specific to individual transformer layers and even heads, indicating the need for fine-grained, layer-wise optimization instead of global settings.
- Error profiles of sparse attention on shorter sequences are highly rank-correlated (ρ A0.8) with those on longer sequences, enabling efficient multi-fidelity optimization to reduce tuning cost.
- The 3D sparse attention hyperparameter space (τ, θ, λ) can be effectively mapped to a 1D latent variable 's', simplifying the search without sacrificing optimality due to parameter inter-correlation.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.