Attentive Mimicking: Better Word Embeddings by Attending to Informative Contexts

Timo Schick, Hinrich Schütze
4/2/2019
cs.CL

Official code: timoschick/form-context-model (30 stars, Python, Apache-2.0, last commit 2020-05-11).

Abstract

Learning high-quality embeddings for rare words is a hard problem because of sparse context information. Mimicking (Pinter et al., 2017) has been proposed as a solution: given embeddings learned by a standard algorithm, a model is first trained to reproduce embeddings of frequent words from their surface form and then used to compute embeddings for rare words.

Show full abstract

In this paper, we introduce attentive mimicking: the mimicking model is given access not only to a word's surface form, but also to all available contexts and learns to attend to the most informative and reliable contexts for computing an embedding. In an evaluation on four tasks, we show that attentive mimicking outperforms previous work for both rare and medium-frequency words. Thus, compared to previous work, attentive mimicking improves embeddings for a much larger part of the vocabulary, including the medium-frequency range.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository contains the code for the Form-Context Model and its Attentive Mimicking variant.

302PythonNov 2, 20186 years agoApache-2.0

Similar Papers

Cite this paper

@article{schick2019attentive,
  title  = {Attentive Mimicking: Better Word Embeddings by Attending to Informative Contexts},
  author = {Timo Schick and Hinrich Schütze},
  year   = {2019},
  eprint = {1904.01617},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.01617}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1904.01617.svg)](https://codeofpaper.com/paper/1904.01617)

Discussion