The reviewed record of science sign in
Pith

arxiv: 2006.09471 · v2 · pith:NAEMQC4B · submitted 2020-06-16 · cs.LG · stat.ML

Untangling tradeoffs between recurrence and self-attention in neural networks

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:NAEMQC4Brecord.jsonopen to challenge →

classification cs.LG stat.ML
keywords self-attentionattentionnetworksrecurrencecomputationalconcretegradientgradients
0
0 comments X
read the original abstract

Attention and self-attention mechanisms, are now central to state-of-the-art deep learning on sequential tasks. However, most recent progress hinges on heuristic approaches with limited understanding of attention's role in model optimization and computation, and rely on considerable memory and computational resources that scale poorly. In this work, we present a formal analysis of how self-attention affects gradient propagation in recurrent networks, and prove that it mitigates the problem of vanishing gradients when trying to capture long-term dependencies by establishing concrete bounds for gradient norms. Building on these results, we propose a relevancy screening mechanism, inspired by the cognitive process of memory consolidation, that allows for a scalable use of sparse self-attention with recurrence. While providing guarantees to avoid vanishing gradients, we use simple numerical experiments to demonstrate the tradeoffs in performance and computational resources by efficiently balancing attention and recurrence. Based on our results, we propose a concrete direction of research to improve scalability of attentive networks.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.