Diagonalized Attention for Individualized Regression: Latent-Row Localization and Prediction
Abstract
Modern text and image representations are often matrix-valued, with rows corresponding to tokens, patches, or other local feature vectors. Predictive information is often sparse but sample-specific, making classical sparse regression methods with a common support poorly suited to this heterogeneity. This paper formalizes an individualized sparse regression framework for matrix-valued covariates in which each observation has its own rows of interest, while the associated regression effects are shared across the population. To estimate this model, we introduce a diagonalized attention mechanism that uses query--key scores to localize sample-specific signal rows and a value matrix for downstream regression. The proposed method has a parameter dimension independent of sample size and can identify rows of interest for new observations without their responses. We establish existence theorems showing that, under suitable score-separation and concentration conditions, single-head and multi-head diagonalized attention models recover the latent rows with high probability, yielding prediction risk bounds. Our theory therefore provides a statistical explanation of how attention-based scoring localizes sample-specific signals in heterogeneous matrix-valued data. Simulations demonstrate strong prediction and localization in regression and misspecified classification across varying sample sizes, dimensions, and signal cardinalities. Real sentiment analyses show improved classification accuracy and interpretable token selection.
Create a lesson
Related papers
One-Step Next-Latent Prediction Is Not a World Model
Shared title terminology · Shitong Wang, Zhongang Cai, Yuzhou Hong
Multi-source conformal prediction: leveraging heterogeneity via localization
Shared title terminology · Rohan Hore, Anirban Chatterjee, Sayantan Choudhury
Functional Attentive Interpretable Regression
Shared title terminology · Haixu Wang, Tianyu Guan, Jiguo Cao
Measuring consistency via ensemble margin and local prediction variability: Auditing decision systems in the presence of predictive multiplicity
Shared title terminology · Sinjini Banerjee, Tim Marrinan, Anand D. Sarwate
Optimal Linear Regression Without a Variance
Shared title terminology · Artin Tajdini, Jasper C. H. Lee, Jonathan Scarlett et al.
Communication-Efficient Federated Learning of Latent Patient Representations from Multi-Institutional EHRs
Shared title terminology · Zhiyu Yan, Shiao Liu, Rahul Mahajan et al.