# Near-lossless Binarization of Word Embeddings

**Authors:** Julien Tissier, Christophe Gravier, Amaury Habrard

arXiv: 1803.09065 · 2020-01-23

## TL;DR

This paper introduces a method to convert word embeddings into compact binary vectors using an autoencoder, significantly reducing memory and computation costs while maintaining high task performance.

## Contribution

It presents a novel autoencoder-based approach for near-lossless binarization of word embeddings, enabling efficient NLP applications on low-resource devices.

## Key findings

- Binary embeddings require only 128 or 256 bits per vector.
- Loss of accuracy is approximately 2% after binarization.
- Binary vectors are 30 times faster for similarity computations.

## Abstract

Word embeddings are commonly used as a starting point in many NLP models to achieve state-of-the-art performances. However, with a large vocabulary and many dimensions, these floating-point representations are expensive both in terms of memory and calculations which makes them unsuitable for use on low-resource devices. The method proposed in this paper transforms real-valued embeddings into binary embeddings while preserving semantic information, requiring only 128 or 256 bits for each vector. This leads to a small memory footprint and fast vector operations. The model is based on an autoencoder architecture, which also allows to reconstruct original vectors from the binary ones. Experimental results on semantic similarity, text classification and sentiment analysis tasks show that the binarization of word embeddings only leads to a loss of ~2% in accuracy while vector size is reduced by 97%. Furthermore, a top-k benchmark demonstrates that using these binary vectors is 30 times faster than using real-valued vectors.

## Full text

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

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/1803.09065/full.md

## References

29 references — full list in the complete paper: https://tomesphere.com/paper/1803.09065/full.md

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