# Predicting and interpreting embeddings for out of vocabulary words in   downstream tasks

**Authors:** Nicolas Garneau, Jean-Samuel Leboeuf, Luc Lamontagne

arXiv: 1903.00724 · 2019-03-05

## TL;DR

This paper introduces a novel, interpretable neural network module that predicts embeddings for out-of-vocabulary words by leveraging morphology and context, improving NLP task performance.

## Contribution

It presents a drop-in, jointly trained module with an attention mechanism that adapts to task type, enhancing OOV word handling in NLP models.

## Key findings

- The model improves downstream task performance over random embeddings.
- Attention shifts based on task type, focusing on characters or context.
- The module is easily integrated into existing NLP systems.

## Abstract

We propose a novel way to handle out of vocabulary (OOV) words in downstream natural language processing (NLP) tasks. We implement a network that predicts useful embeddings for OOV words based on their morphology and on the context in which they appear. Our model also incorporates an attention mechanism indicating the focus allocated to the left context words, the right context words or the word's characters, hence making the prediction more interpretable. The model is a ``drop-in'' module that is jointly trained with the downstream task's neural network, thus producing embeddings specialized for the task at hand. When the task is mostly syntactical, we observe that our model aims most of its attention on surface form characters. On the other hand, for tasks more semantical, the network allocates more attention to the surrounding words. In all our tests, the module helps the network to achieve better performances in comparison to the use of simple random embeddings.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1903.00724/full.md

## References

6 references — full list in the complete paper: https://tomesphere.com/paper/1903.00724/full.md

---
Source: https://tomesphere.com/paper/1903.00724