arXiv Machine Learning
5d ago

Kernel Ridge Attention: Nonlinear Memory with Selective Forgetting

Kernel Ridge Attention (KRA) is a recurrent sequence mixer that blends learned nonlinear features with covariance-guided memory updates. It uses recursive ridge regression to store associations, with correlations among past keys guiding how new observations modify memory. A content-dependent Ornstein–Uhlenbeck transition controls retention, restores uncertainty for future writes, and the design allows an exact temporal‑kernel interpretation while keeping inference state size independent of context length.

By Haowei Chen, Yichen Wang, Congfu Xu
arXiv AI
Oct 1

Switching Linear Attention

Switching Linear Attention (SwiLA) is a new sequence layer that improves upon standard softmax attention by maintaining a fixed-size recurrent state while enhancing representational capacity. It derives its recurrence from a test-time regression framework, using online expectation-maximization in a mixture of linear regressions model. In various benchmarks—including associative recall, in-context language learning, and language modeling—SwiLA achieves strong performance, narrowing the gap to softmax attention and even surpassing it in some settings.

By Hyun Dong Lee, Xavier Gonzalez, Nicolas Zucchet, E. Kelly Buchanan, Emily B. Fox, Scott W. Linderman