Regression Is All You Need
blog.tilderesearch.com·1d·
Discuss: Hacker News
🧠Machine Learning
Preview
Report Post

Back

8.28.2025

Dhruv Pai

Summary

There are many derivations of attention available, but I present my favorite from nonparametric regression. In this vignette, we demonstrate how the Nadaraya-Watson (NW) kernel regressor leads directly to softmax attention under mild assumptions, and pose a few interesting follow-up questions from a kernel smoothing perspective. 1

Back to Basics

To derive attention, we turn to a more classical problem: regression. The objective in vector-valued regression is to fit some function to map from input "x" vectors to response "y" vectors. This function, after being fit, can be queried on new input vectors to sample a new response vector.

To fit our function, we…

Similar Posts

Loading similar posts...