Skip to main content
QUICK REVIEW

[Paper Review] CBOW Is Not All You Need: Combining CBOW with the Compositional Matrix Space Model

Florian Mai, Lukas Galke|arXiv (Cornell University)|Feb 18, 2019
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper proposes CMOW, an unsupervised, efficient training method for the Compositional Matrix Space Model that enhances word embeddings with order awareness through matrix multiplication, complementing CBOW’s strength in word content memorization. The hybrid CBOW-CMOW model achieves an 8% average improvement on linguistic probing tasks and a 1.2% average gain on 11 supervised downstream tasks by combining both models’ complementary strengths.

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. 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%.

Motivation & Objective

  • To address CBOW’s inability to capture word order due to commutative vector addition.
  • To develop the first unsupervised, scalable training scheme for the Compositional Matrix Space Model (CMSM) using matrix-based word representations.
  • To combine CBOW and CMOW into a hybrid model that retains CBOW’s word content memorization while improving encoding of linguistic structure.
  • To empirically evaluate the complementary strengths of CBOW and CMOW on linguistic probing and downstream NLP tasks.

Proposed method

  • Adapt the CBOW objective and initialization strategy to train word matrices instead of vectors, enabling matrix multiplication for sequence composition.
  • Use matrix multiplication as the composition operation, which is non-commutative, thus preserving word order information.
  • Train the model end-to-end on large-scale unlabeled text using a modified skip-gram-like objective tailored for matrix representations.
  • Introduce a joint training scheme where CBOW and CMOW embeddings are learned simultaneously in a hybrid architecture.
  • Apply efficient GPU-accelerated matrix multiplication to maintain high inference speed, achieving ~71k sentences per second.
  • Use dynamic programming and pre-computation of frequent bigrams to reduce the number of sequential multiplication steps.

Experimental results

Research questions

  • RQ1Can the Compositional Matrix Space Model be effectively trained in an unsupervised, large-scale setting using a CBOW-like objective?
  • RQ2How do the linguistic representation capabilities of CMOW compare to those of CBOW in terms of word order sensitivity and content memorization?
  • RQ3To what extent does combining CBOW and CMOW improve performance on downstream NLP tasks compared to either model alone?
  • RQ4Does the hybrid model achieve better performance on tasks requiring word order awareness, such as sentiment analysis and question classification?

Key findings

  • The hybrid CBOW-CMOW model improves performance on linguistic probing tasks by 8% on average compared to CBOW alone.
  • On 11 supervised downstream tasks, the hybrid model achieves a 1.2% average improvement over CBOW, with significant gains on sentiment analysis (SST2, SST5) and question classification (TREC).
  • CMOW excels at capturing linguistic properties such as word order and syntactic structure, while CBOW outperforms CMOW in word content memorization tasks.
  • The hybrid model retains CBOW’s strong word content memorization while significantly enhancing its ability to encode linguistic structure.
  • CMOW achieves a sentence encoding speed of ~71k sentences per second, comparable to CBOW’s 61k, making it suitable for large-scale applications.
  • The hybrid model outperforms CBOW on 8 out of 11 downstream tasks, with only a 0.6% drop on the two tasks where CBOW slightly outperforms the hybrid.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.