2020
DOI: 10.48550/arxiv.2010.04245
|View full text |Cite
Preprint
|
Sign up to set email alerts
|

Query-Key Normalization for Transformers

Abstract: Low-resource language translation is a challenging but socially valuable NLP task. Building on recent work adapting the Transformer's normalization to this setting, we propose QKNORM, a normalization technique that modifies the attention mechanism to make the softmax function less prone to arbitrary saturation without sacrificing expressivity. Specifically, we apply 2 normalization along the head dimension of each query and key matrix prior to multiplying them and then scale up by a learnable parameter instead… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Publication Types

Select...
1

Relationship

0
1

Authors

Journals

citations
Cited by 1 publication
(1 citation statement)
references
References 22 publications
0
1
0
Order By: Relevance
“…To prevent the attention operation from overflowing, we adopted QKNorm (Henry et al, 2020), L2 normalization of queries and keys before the dot product. We split the subsequences into training, validation, and testing datasets in an 8:1:1 ratio.…”
Section: Trainingmentioning
confidence: 99%
“…To prevent the attention operation from overflowing, we adopted QKNorm (Henry et al, 2020), L2 normalization of queries and keys before the dot product. We split the subsequences into training, validation, and testing datasets in an 8:1:1 ratio.…”
Section: Trainingmentioning
confidence: 99%