HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

FRAGE: Frequency-Agnostic Word Representation

Chengyue Gong; Di He; Xu Tan; Tao Qin; Liwei Wang; Tie-Yan Liu

FRAGE: Frequency-Agnostic Word Representation

Abstract

Continuous word representation (aka word embedding) is a basic building block in many neural network-based models used in natural language processing tasks. Although it is widely accepted that words with similar semantics should be close to each other in the embedding space, we find that word embeddings learned in several tasks are biased towards word frequency: the embeddings of high-frequency and low-frequency words lie in different subregions of the embedding space, and the embedding of a rare word and a popular word can be far from each other even if they are semantically similar. This makes learned word embeddings ineffective, especially for rare words, and consequently limits the performance of these neural network models. In this paper, we develop a neat, simple yet effective way to learn \emph{FRequency-AGnostic word Embedding} (FRAGE) using adversarial training. We conducted comprehensive studies on ten datasets across four natural language processing tasks, including word similarity, language modeling, machine translation and text classification. Results show that with FRAGE, we achieve higher performance than the baselines in all tasks.

Code Repositories

ChengyueGongR/FrequencyAgnostic
Official
pytorch
Mentioned in GitHub
JakubStefko/w2vf
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
language-modelling-on-penn-treebank-wordFRAGE + AWD-LSTM-MoS + dynamic eval
Params: 22M
Test perplexity: 46.54
Validation perplexity: 47.38
language-modelling-on-wikitext-2FRAGE + AWD-LSTM-MoS + dynamic eval
Number of params: 35M
Test perplexity: 39.14
Validation perplexity: 40.85
machine-translation-on-iwslt2015-germanTransformer with FRAGE
BLEU score: 33.97
machine-translation-on-wmt2014-english-germanTransformer Big with FRAGE
BLEU score: 29.11
Hardware Burden:
Operations per network pass:

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