HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Learned in Translation: Contextualized Word Vectors

Bryan McCann; James Bradbury; Caiming Xiong; Richard Socher

Learned in Translation: Contextualized Word Vectors

Abstract

Computer vision has benefited from initializing multiple deep layers with weights pretrained on large supervised training sets like ImageNet. Natural language processing (NLP) typically sees initialization of only the lowest layer of deep models with pretrained word vectors. In this paper, we use a deep LSTM encoder from an attentional sequence-to-sequence model trained for machine translation (MT) to contextualize word vectors. We show that adding these context vectors (CoVe) improves performance over using only unsupervised word and character vectors on a wide variety of common NLP tasks: sentiment analysis (SST, IMDb), question classification (TREC), entailment (SNLI), and question answering (SQuAD). For fine-grained sentiment analysis and entailment, CoVe improves performance of our baseline models to the state of the art.

Code Repositories

menajosep/AleatoricSent
tf
Mentioned in GitHub
richinkabra/CoVe-BCN
pytorch
Mentioned in GitHub
adi2103/AML-CoVe
tf
Mentioned in GitHub
salesforce/cove
Official
pytorch
cove-adml/adml-anon
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
natural-language-inference-on-snliBiattentive Classification Network + CoVe + Char
% Test Accuracy: 88.1
% Train Accuracy: 88.5
Parameters: 22m
question-answering-on-squad11DCN + Char + CoVe
EM: 71.3
F1: 79.9
Hardware Burden:
Operations per network pass:
question-answering-on-squad11-devDCN (Char + CoVe)
EM: 71.3
F1: 79.9
sentiment-analysis-on-imdbBCN+Char+CoVe
Accuracy: 91.8
sentiment-analysis-on-sst-2-binaryBCN+Char+CoVe
Accuracy: 90.3
sentiment-analysis-on-sst-5-fine-grainedBCN+Char+CoVe
Accuracy: 53.7
text-classification-on-trec-6CoVe
Error: 4.2

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Learned in Translation: Contextualized Word Vectors | Papers | HyperAI