Solving Attention Kernel Regression Problem via Pre-conditioner
Abstract
The attention mechanism is the key to large language models, and the attention matrix serves as an algorithmic and computational bottleneck for such a scheme. In this paper, we define two problems, motivated by designing fast algorithms for proxy of attention matrix and solving regressions against them. Given an input matrix with and a response vector , we first consider the matrix exponential of the matrix as a proxy, and we in turn design algorithms for two types of regression problems: and for any positive integer . Studying algorithms for these regressions is essential, as matrix exponential can be approximated term-by-term via these smaller problems. The second proxy is applying exponential entrywise to the Gram matrix, denoted by and solving the regression . We call this problem the attention kernel regression problem, as the matrix could be viewed as a kernel function with respect to . We design fast algorithms for these regression problems, based on sketching and preconditioning. We hope these efforts will provide an alternative perspective of studying efficient approximation of attention matrices.
Cite
@article{arxiv.2308.14304,
title = {Solving Attention Kernel Regression Problem via Pre-conditioner},
author = {Zhao Song and Junze Yin and Lichen Zhang},
journal= {arXiv preprint arXiv:2308.14304},
year = {2024}
}
Comments
AISTATS 2024