The Role of Context Types and Dimensionality in Learning Word Embeddings
Summary
Skip-gram embeddings are usually trained on fixed-size word windows. This paper asks how the choice of context, together with vector size, affects results across many tasks. The authors trained all models on one shared English corpus of roughly 10B words, built from Wikipedia 2015, UMBC and Gigaword and parsed with Stanford CoreNLP. They compared three context types:
- window contexts of sizes 1, 5 and 10
- dependency contexts, trained with word2vecf
- a new weighted substitute-word variant, where language-model fillers act as weighted contexts
They evaluated these on word similarity and relatedness benchmarks and on four downstream tasks: dependency parsing, NER, coreference and sentiment analysis. They also tested combinations, either by concatenating vectors or by merging them with SVD or CCA. On intrinsic benchmarks, particular context types and larger dimensionality were consistently preferred. Downstream tasks instead needed task-specific tuning of both settings. Once adding dimensions stopped helping, concatenating embeddings from different context types often brought further gains. The practical lesson is to choose embeddings for an applied system by testing them on that task, not by relying on intrinsic benchmark scores.
Key points
- Training setup: Words seen fewer than 100 times were dropped, leaving a vocabulary of about 500K. Parses follow Universal Dependencies (Stanford CoreNLP 3.5.2), and the embeddings were released publicly.
- Substitute-based embeddings (SUB):
- A 4-gram Kneser-Ney model built with KenLM, plus FASTSUBS, produced the substitute vectors.
- Each vector was cut to its top-10 substitutes with normalized probabilities, and at most 20,000 vectors were generated per word type.
- The word2vecf objective was changed so that each target–context pair counts in proportion to its weight.
- Qualitative differences: Large windows (W10) capture topical relatedness. Small windows and DEP favour functional similarity. SUB is the most functional and even tends to preserve verb tense.
- Concatenation:
- It helps only once single embeddings are near saturation. For example, in sentiment at 50 dimensions, joining two 25-dimensional vectors did worse than one 50-dimensional vector.
- The best combinations usually paired topical W10 with a functional type (SUB, DEP or W1).
- SVD and CCA merging: Both performed worse than single embeddings on every extrinsic task. This supports the view that different context types carry complementary information.
Cited by
- context2vec: Learning Generic Context Embedding with Bidirectional LSTM
- Learning Cognitive Features from Gaze Data for Sentiment and Sarcasm Classification using Convolutional Neural Network
- Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets
Cite
@inproceedings{melamud2016role,
title = {{The Role of Context Types and Dimensionality in Learning Word Embeddings}},
author = {Melamud, Oren and McClosky, David and Patwardhan, Siddharth and Bansal, Mohit},
booktitle = {Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
year = {2016},
doi = {10.18653/v1/n16-1118},
eprint = {1601.00893},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/n16-1118}
}References
- [Agirre et al.2009] Eneko Agirre, Enrique Alfonseca, Keith Hall, Jana Kravalova, Marius Paşca, and Aitor Soroa. 2009. A study on similarity and relatedness using distributional and WordNet-based approaches. In Proceedings of NAACL. Association for Computational Linguistics. [Bansal et al.2014] Mohi… find
- [Goikoetxea et al.2016] Josu Goikoetxea, Eneko Agirre, and Aitor Soroa. 2016. Single or multiple? combining word representations independently learned from text and wordnet. In Proceedings of AAAI. [Han et al.2013] Lushan Han, Abhay L. Kashyap, Tim Finin, James Mayfield, and Johnathan Weese. 2013. U… find our card
- Bethard, and David McClosky. 2014. The Stanford CoreNLP natural language processing toolkit. In Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 55–60. [Melamud et al.2014] Oren Melamud, Ido Dagan, Jacob Goldberger, Idan Szpektor, and… find our card
This page in Markdown → https://md.research.elamur.ai/free/en/papers/melamud-2016-role-context-types-dimensionality-learning/