Skip to content

A Coulomb Particle Model for Learning Kernel Attention in Transformers

Jul 2026 · arXiv.org · Vol abs/2607.23869 · 0 citations · 37 references
Computer Science

TL;DR

A particle-based method that learns this distribution by optimizing kernel-target alignment while regularizing particles with a Riesz/Coulomb repulsive potential is proposed and instantiate the method in linearized Transformer attention.

Abstract

Randomized features provide a scalable approximation to kernel machines, but their performance depends strongly on the choice of feature distribution. We propose a particle-based method that learns this distribution by optimizing kernel-target alignment while regularizing particles with a Riesz/Coulomb repulsive potential. The resulting Hamiltonian yields diverse, task-adaptive random features and admits a mean-field description through a McKean--Vlasov equation. We instantiate the method in linearized Transformer attention by learning positive random-feature maps in a first alignment phase, then freezing the kernel and training the remaining network parameters with cross-entropy. Experiments on synthetic classification and sentence-level benchmarks show that learned kernelized attention can improve accuracy, calibration, and robustness for several feature maps while preserving linear-attention inference complexity.

View source

Similar papers

Local Deep Kernel Learning for Efficient Non-linear SVM Prediction

The formulation can reduce prediction costs by more than three orders of magnitude in some cases with a moderate sacrifice in classification accuracy as compared to RBF-SVMs and leads to better classi-fication accuracies over leading methods.

Cijo Jose, P. Goyal, Parv Aggrwal · 0 citations
Preprint Aug 2026

Predicting When Random Low-Dimensional Reparameterizations Train Neural Networks

This work expresses the known accessibility transition in an equivalent conic form, centered for compact convex targets at the statistical dimension of the polar cone, and introduces Random Mapping Networks (RaMaN), which instantiate the predicted latent dimension using structured Hadamard or seed-regenerated Gaussian...

Andrew Cheng, Ali Eslamian, Jie Cheng et al. · 0 citations
#machine learning Preprint Sep 2026

Conditioned Initialization for Attention

This paper proposes conditioned initialization, a principled scheme that initializes attention weights to improve the spectral properties of the attention layer and shows that conditioned initialization can potentially reduce the condition number of the attention Jacobian, leading to more stable optimization.

Hemanth Saratchandran, Simon Lucey · 0 citations
#machine learning Preprint Sep 2026

A Smoothed Discrepancy Principle for Random Feature Methods and Neural Networks

We study data-driven early stopping for spectral regularisation methods in the classical non-parametric regression setting. Building on the discrepancy principle, we propose a multi-scale stopping rule that applies to general kernel estimators and show that, unlike previous approaches, it achieves full adaptivity over...

Mike Nguyen, Nicole Mücke · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.