Softmax attention is a local constant estimator

Deriving the view of softmax attention as Nadaraya-Watson kernel regression, why local constant estimators have boundary bias, and how Parallax adds a learned local-linear correction on top of softmax.