atlas

Research map / Architectures and efficiency / Attention and transformers

Ordinary Least Squares as an Attention Mechanism

NeurIPS 2026 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that OLS predictions can be rewritten as a restricted (identity-activation) attention module with embedding (X'X)^{-1}, extends it to PCR, ridge, softmax and stacking, and proposes a Regression Block that replaces the attention sublayer of FT-Transformer with polynomial-feature regression.

Problem

Understanding the relationship between attention and classical least squares regression, and whether the attention sublayer of a tabular transformer can be replaced by explicit regression on expanded features.

Approach

Reframes OLS out-of-sample predictions as inner-product similarity weighting of training outcomes in an orthonormalized predictor space, which is exactly linear attention with W_Q W_K' = (X'X)^{-1} and identity activation; proposes Attention Regression (nonlinear, softmax-free) and a Regression Block that replaces softmax attention with degree-2 polynomial cross-features plus PCA and linear regres

Key results

Surprising findings

Limitations

Experimental setup

Datasets: California Yacht Energy Concrete Airfoil Abalone Kin8nm Protein

Benchmarks: UCI/OpenML tabular regression (8 datasets) Monte Carlo simulations (6 DGPs)

Metrics: out-of-sample R^2 accuracy

Baselines: OLS Random Forest Gradient Boosting MLP FT-Transformer

Builds on: Transformer self-attention FT-Transformer principal component regression ridge regression representer theorem

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy