Implicit Kernel Attention
Abstract
Attention computes the dependency between representations, and it encourages the model to focus on the important selective features. Attention-based models, such as Transformer and graph attention network (GAT), are widely utilized for sequential data and graph-structured data. This paper suggests a new interpretation and generalized structure of the attention in Transformer and GAT. For the attention in Transformer and GAT, we derive that the attention is a product of two parts: 1) the RBF kernel to measure the similarity of two instances and 2) the exponential of L2 norm to compute the importance of individual instances. From this decomposition, we generalize the attention in three ways. First, we propose implicit kernel attention with an implicit kernel function instead of manual kernel selection. Second, we generalize L2 norm as the Lp norm. Third, we extend our attention to structured multi-head attention. Our generalized attention shows better performance on classification, translation, and regression tasks.
Cite
Text
Song et al. "Implicit Kernel Attention." AAAI Conference on Artificial Intelligence, 2021. doi:10.1609/AAAI.V35I11.17168Markdown
[Song et al. "Implicit Kernel Attention." AAAI Conference on Artificial Intelligence, 2021.](https://mlanthology.org/aaai/2021/song2021aaai-implicit/) doi:10.1609/AAAI.V35I11.17168BibTeX
@inproceedings{song2021aaai-implicit,
title = {{Implicit Kernel Attention}},
author = {Song, Kyungwoo and Jung, Yohan and Kim, Dongjun and Moon, Il-Chul},
booktitle = {AAAI Conference on Artificial Intelligence},
year = {2021},
pages = {9713-9721},
doi = {10.1609/AAAI.V35I11.17168},
url = {https://mlanthology.org/aaai/2021/song2021aaai-implicit/}
}