Random Feature Gaussian Process Attention: Linear-Time Probabilistic Attention with Calibrated Uncertainty
Amir Mohammad Mahfoozi, Zi Yang, Ying Li, Michael Minyi Zhang
Key points
From the paper's conclusion- A promising direction addresses this issue by interpreting attention as a Gaussian process (GP) posterior, which enables principled uncertainty calibration but incurs cubic complexity in sequence length due to the inversion of the kernel; although decoupled GP variants reduced the cost to quadratic, the computation remains prohibitive in practice.
Abstract
Transformers provide a state-of-the-art modeling framework, yet poor calibration limits their reliability in safety-critical applications. A promising direction addresses this issue by interpreting attention as a Gaussian process (GP) posterior, which enables principled uncertainty calibration but incurs cubic complexity in sequence length due to the inversion of the kernel; although decoupled GP variants reduced the cost to quadratic, the computation remains prohibitive in practice. In this paper, we propose the plug-and-play random Fourier feature Gaussian process attention (RFF-GPA) module, which represents the attention as a GP with a stationary kernel approximated by random Fourier features. This low-rank approximation results in linear-time complexity for approximating the posterior mean and variance, making it far more scalable compared to previous work. Empirical results on multiple real-world datasets show that our attention module improves calibration while maintaining predictive accuracy, and simultaneously reduces computational complexity to linear in the sequence length.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Calibration in One Go: Jointly Learning Accurate and Calibrated Neural NetworksarXiv · 2026
- Neighborhood Smoothing for CalibrationarXiv · 2026
- Beyond Quadratic Attention: Separable Gaussian Operators for ODE Vision TransformersarXiv · 2026
- Task-Calibrated Random Features via Influence-Based Error CancellationarXiv · 2026
- Expanding Attention: A Taylor-Series Route to Linear-Time Transformers with a Fixed Number of Recurrent StatesarXiv · 2026
- Continuum AttentionarXiv · 2026