CBOW Is Not All You Need: Combining CBOW with the Compositional Matrix Space Model

Florian Mai, Lukas Galke, Ansgar Scherp
2/18/2019
cs.CLcs.LG

Official code: florianmai/word2mat (21 stars, Python, last commit 2019-05-21).

Abstract

Continuous Bag of Words (CBOW) is a powerful text embedding method. Due to its strong capabilities to encode word content, CBOW embeddings perform well on a wide range of downstream tasks while being efficient to compute.

Show full abstract

However, CBOW is not capable of capturing the word order. The reason is that the computation of CBOW's word embeddings is commutative, i.e., embeddings of XYZ and ZYX are the same. In order to address this shortcoming, we propose a learning algorithm for the Continuous Matrix Space Model, which we call Continual Multiplication of Words (CMOW). Our algorithm is an adaptation of word2vec, so that it can be trained on large quantities of unlabeled text. We empirically show that CMOW better captures linguistic properties, but it is inferior to CBOW in memorizing word content. Motivated by these findings, we propose a hybrid model that combines the strengths of CBOW and CMOW. Our results show that the hybrid CBOW-CMOW-model retains CBOW's strong ability to memorize word content while at the same time substantially improving its ability to encode other linguistic information by 8%. As a result, the hybrid also performs better on 8 out of 11 supervised downstream tasks with an average improvement of 1.2%.

View on arXivView PDF

Code Implementations(1)

Code for ICLR 2019 paper 'CBOW Is Not All You Need: Combining CBOW with the Compositional Matrix Space Model'

215PythonFeb 4, 20197 years ago

Similar Papers

Cite this paper

@article{mai2019cbow,
  title  = {CBOW Is Not All You Need: Combining CBOW with the Compositional Matrix Space Model},
  author = {Florian Mai and Lukas Galke and Ansgar Scherp},
  year   = {2019},
  eprint = {1902.06423},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.06423}
}

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/1902.06423.svg)](https://codeofpaper.com/paper/1902.06423)

Discussion