Ordinary Least Squares as an Attention Mechanism
원문 초록
I show that ordinary least squares (OLS) predictions can be rewritten as the output of a restricted attention module, akin to those forming the backbone of large language models. This connection offers an alternative perspective on attention beyond the conventional information retrieval framework, making it more accessible to researchers and analysts with a background in traditional statistics. It falls into place when OLS is framed as a similarity-based method in a transformed regressor space, distinct from the standard view based on partial correlations. In fact, the OLS solution can be recast as the outcome of an alternative problem: minimizing squared prediction errors by optimizing the embedding space in which training and test vectors are compared via inner products. Rather than estimating coefficients directly, we equivalently learn optimal encoding and decoding operations for predictors. From this vantage point, OLS maps naturally onto the query-key-value structure of attention mechanisms. Building on this foundation, I discuss key elements of Transformer-style attention and draw connections to classic ideas from time series econometrics.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Efficiency-Effectiveness Reranking FLOPs for LLM-based Rerankers
Graph Collaborative Attention Network for Link Prediction in Knowledge Graphs
JointRank: Rank Large Set with Single Pass
A Hierarchical Deep Learning Approach for Minority Instrument Detection
From Web Search towards Agentic Deep Research: Incentivizing Search with Reasoning Agents
Universal Music Representations? Evaluating Foundation Models on World Music Corpora
토론
이 논문과 연결된 포럼 글이 아직 없습니다.