Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Latent Alignment and Variational Attention

About

Neural attention has become central to many state-of-the-art models in natural language processing and related domains. Attention networks are an easy-to-train and effective method for softly simulating alignment; however, the approach does not marginalize over latent alignments in a probabilistic sense. This property makes it difficult to compare attention to other alignment approaches, to compose it with probabilistic models, and to perform posterior inference conditioned on observed data. A related latent approach, hard attention, fixes these issues, but is generally harder to train and less accurate. This work considers variational attention networks, alternatives to soft and hard attention for learning latent variable alignment models, with tighter approximation bounds based on amortized variational inference. We further propose methods for reducing the variance of gradients to make these approaches computationally feasible. Experiments show that for machine translation and visual question answering, inefficient exact latent variable models outperform standard neural attention, but these gains go away when using hard attention based training. On the other hand, variational attention retains most of the performance gain but with training speed comparable to neural attention.

Yuntian Deng, Yoon Kim, Justin Chiu, Demi Guo, Alexander M. Rush• 2018

Related benchmarks

TaskDatasetResultRank
Named Entity RecognitionCoNLL 2003 (test)
F1 Score91.23
539
Language ModelingPenn Treebank (test)
Perplexity79
411
Sentiment AnalysisIMDB (test)
Accuracy89.4
248
Language ModelingPenn Treebank (val)
Perplexity82.2
178
Machine TranslationIWSLT De-En 2014 (test)
BLEU33.1
146
Machine TranslationIWSLT German-to-English '14 (test)
BLEU Score33.69
110
Visual Question AnsweringVQA 2.0 (test)
Accuracy58.44
24
Machine TranslationIWSLT De-En 2014
BLEU33.68
16
Machine TranslationIWSLT de-en (test)
BLEU33.1
13
Neural Machine TranslationIWSLT and WMT (test)
PPL6.08
7
Showing 10 of 11 rows

Other info

Code

Follow for update