In plain words: It randomly switches off parts of the network during training, guided by probability theory, so the Transformer can say how confident it is instead of giving one fixed answer. It beat the standard Transformer on language, long sequences, translation, and picking data to label.
Abstract
Transformer has become ubiquitous due to its dominant performance in various NLP and image processing tasks. However, it lacks understanding of how to generate mathematically grounded uncertainty estimates for transformer architectures. Models equipped with such uncertainty estimates can typically improve predictive performance, make networks robust, avoid over-fitting and used as acquisition function in active learning. In this paper, we introduce BayesFormer, a Transformer model with dropouts designed by Bayesian theory. We proposed a new theoretical framework to extend the approximate variational inference-based dropout to Transformer-based architectures. Through extensive experiments, we validate the proposed architecture in four paradigms and show improvements across the board: language modeling and classification, long-sequence understanding, machine translation and acquisition function for active learning.
Karthik Abinav Sankararaman, Sinong Wang, Han Fang
arXiv:2206.00826 · cs.CL, cs.AI, cs.LG · submitted Jun 2, 2022
abstract · pdf · html