Semantic Compositionality through Recursive Matrix-Vector Spaces
Summary
Word vector models capture lexical meaning well, but they cannot represent how words combine into the meaning of longer phrases. This is a problem when a word acts as an operator, as in "extremely strong" or "not good." The authors propose the matrix-vector recursive neural network (MV-RNN). Every word, and every phrase node in a binarized parse tree, gets two things: a vector that encodes its own meaning, and a matrix that encodes how it changes the meaning of whatever it combines with. Composition runs bottom-up along the syntactic tree. Each child's matrix transforms the sibling's vector, and a shared nonlinear layer merges the results. Phrase matrices are built in a parallel way.
The model is evaluated on three tasks:
- fine-grained sentiment distributions for adverb-adjective pairs,
- sentence-level sentiment of movie reviews,
- noun-pair relation classification on SemEval-2010 Task 8.
The authors report state-of-the-art results on all three. MV-RNN is the only compared model that correctly handles negation with "not." The approach matters because it unifies several earlier composition schemes and learns operator-like semantics without hand-built lexical resources.
Key points
- Word vectors are initialized from 50-dimensional Collobert and Weston (2008) embeddings trained on Wikipedia. Each word matrix starts as the identity plus small Gaussian noise.
- The parent vector is computed as g(W[Ba; Ab]), and the parent matrix as W_M[A; B]. Both W and W_M are global n×2n matrices, so every phrase keeps the same dimensions as a single word.
- Several earlier models are special cases of this composition function:
- additive Ba + Ab (Mitchell and Lapata; Zanzotto et al.),
- adjective-matrix Ab (Baroni and Zamparelli),
- the plain RNN of Socher et al. (2011), where the word matrices are fixed to identity.
- On SemEval-2010 Task 8, without extra features, MV-RNN reaches 79.1 F1, versus 74.8 for the RNN and 73.0 for linear MVR. This beats all prior systems except Rink and Harabagiu (82.2).
- Adding POS tags (+0.9), WordNet hypernyms (+1.3) and NER tags (+0.6) lifts MV-RNN to 82.4 F1, a new state of the art. The previous best system used far more resources, including FrameNet, PropBank and Google n-grams.
Interesting ideas
- I1. Two roles per word. Each word carries both a meaning vector and an operator matrix. A purely functional word such as an intensifier can then shrink its vector toward zero and do its work through the matrix. This could help other languages with rich modifier and particle systems.
- I2. Identity-plus-noise initialization. Starting each matrix near the identity means a word begins as a neutral modifier and only learns operator behaviour where the data supports it. This is a cheap, stable default for any model that adds per-token transformation matrices.
- I3. Generalize, then ablate. The authors design one composition function that contains earlier models as restricted settings, then compare those settings directly. This makes clear which component drives the gains, and the same evaluation style suits other architecture comparisons.
- I4. Composing along the syntactic path. For relation classification, the representation is built from the words on the parse path between the two nouns. This gives a learned, variable-length path feature instead of hand-crafted patterns, and it could transfer to dependency-parsed data such as UD treebanks.
- I5. Appending a few symbolic features. Adding a handful of features (POS, WordNet hypernyms, NER) to the learned vector before the final classifier gave measurable gains. It is a simple way to mix learned and lightweight linguistic signals when resources are limited.
Cited by
- Semantically Motivated Hebrew Verb-Noun Multi-Word Expressions Identification
- Don't count, predict! A systematic comparison of context-counting vs. context-predicting semantic vectors
- Relational inductive biases, deep learning, and graph networks
- Experience Grounds Language
- Adaptive Recursive Neural Network for Target-dependent Twitter Sentiment Classification
- A Structured Distributional Semantic Model for Event Co-reference
- Multilingual Models for Compositional Distributed Semantics
- Representation Learning for Text-level Discourse Parsing
- Recurrent Continuous Translation Models
- Recurrent Convolutional Neural Networks for Discourse Compositionality
- Convolutional Neural Networks for Sentence Classification
- Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotations
- Recursive Deep Models for Discourse Parsing
- Learning Contextually Informed Representations for Linear-Time Discourse Parsing
- Better Word Representations with Recursive Neural Networks for Morphology
- Rumor Detection on Twitter with Tree-structured Recursive Neural Networks
- SemEval-2014 Task 1: Evaluation of Compositional Distributional Semantic Models on Full Sentences through Semantic Relatedness and Textual Entailment
- End-to-End Relation Extraction using LSTMs on Sequences and Tree Structures
- Relation Extraction: Perspective from Convolutional Neural Networks
- A Feature-Driven Tensor Semantics for Minimalist Grammars
- Cross-Sentence N-ary Relation Extraction with Graph LSTMs
- Polyglot: Distributed Word Representations for Multilingual NLP
- Classifying Relations by Ranking with Convolutional Neural Networks
- Baseline Needs More Love: On Simple Word-Embedding-Based Models and Associated Pooling Mechanisms
- Still a Pain in the Neck: Evaluating Text Representations on Lexical Composition
- Grounded Compositional Semantics for Finding and Describing Images with Sentences
- Learning Sentiment-Specific Word Embedding for Twitter Sentiment Classification
- Recursive Neural Conditional Random Fields for Aspect-based Sentiment Analysis
- Relation Classification via Multi-Level Attention CNNs
- Two are Better than One: Joint Entity and Relation Extraction with Table-Sequence Encoders
- Learning to Distinguish Hypernyms and Co-Hyponyms
- Learning Anaphoricity and Antecedent Ranking Features for Coreference Resolution
- Classifying Relations via Long Short Term Memory Networks along Shortest Dependency Paths
- Relation Classification via Convolutional Deep Neural Network
- Chinese Poetry Generation with Recurrent Neural Networks
- Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification
Cite
@inproceedings{socher2012semantic,
title = {{Semantic Compositionality through Recursive Matrix-Vector Spaces}},
author = {Socher, Richard and Huval, Brody and Manning, Christopher D. and Ng, Andrew Y.},
booktitle = {Proceedings of the 2012 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning},
year = {2012},
url = {https://aclanthology.org/D12-1110/}
}References
- M. Baroni and A. Lenci. 2010. Distributional memory: A general framework for corpus-based semantics. Computational Linguistics, 36(4):673–721. find our card
- M. Baroni and Roberto Zamparelli. 2010. Nouns are vectors, adjectives are matrices: Representing adjective-noun constructions in semantic space. In EMNLP. find
- L. Bottou. 2011. From machine learning to machine reasoning. CoRR, abs/1102.1808. — [arXiv:1102.1808](https://arxiv.org/abs/1102.1808) find
- M. Ciaramita and Y. Altun. 2006. Broad-coverage sense disambiguation and information extraction with a supersense sequence tagger. In EMNLP. find our card
- S. Clark and S. Pulman. 2007. Combining symbolic and distributional models of meaning. In Proceedings of the AAAI Spring Symposium on Quantum Interaction, pages 52–55. find
- R. Collobert and J. Weston. 2008. A unified architecture for natural language processing: deep neural networks with multitask learning. In ICML. find
- J. Curran. 2004. From Distributional to Semantic Similarity. Ph.D. thesis, University of Edinburgh. find
- J. L. Elman. 1991. Distributed representations, simple recurrent networks, and grammatical structure. Machine Learning, 7(2-3). find
- G. Frege. 1892. Über Sinn und Bedeutung. In Zeitschrift für Philosophie und philosophische Kritik, 100. find
- D. Garrette, K. Erk, and R. Mooney. 2011. Integrating Logical Representations with Probabilistic Information using Markov Logic. In Proceedings of the International Conference on Computational Semantics. find
- C. Goller and A. Küchler. 1996. Learning task-dependent distributed representations by backpropagation through structure. In Proceedings of the International Conference on Neural Networks (ICNN-96). find
- E. Grefenstette and M. Sadrzadeh. 2011. Experimental support for a categorical compositional distributional model of meaning. In EMNLP. find
- T. L. Griffiths, J. B. Tenenbaum, and M. Steyvers. 2007. Topics in semantic representation. Psychological Review, 114. find
- I. Hendrickx, S.N. Kim, Z. Kozareva, P. Nakov, D. Ó Séaghdha, S. Padó, M. Pennacchiotti, L. Romano, and S. Szpakowicz. 2010. Semeval-2010 task 8: Multi-way classification of semantic relations between pairs of nominals. In Proceedings of the 5th International Workshop on Semantic Evaluation. find our card
- G. E. Hinton. 1990. Mapping part-whole hierarchies into connectionist networks. Artificial Intelligence, 46(1-2). find
- R. Jones, B. Rey, O. Madani, and W. Greiner. 2006. Generating query substitutions. In Proceedings of the 15th international conference on World Wide Web. find
- D. Klein and C. D. Manning. 2003. Accurate unlexicalized parsing. In ACL. find our card
- D. Lin. 1998. Automatic retrieval and clustering of similar words. In Proceedings of COLING-ACL, pages 768–774. find our card
- E. J. Metcalfe. 1990. A compositive holographic associative recall model. Psychological Review, 88:627– 661. find
- J. Mitchell and M. Lapata. 2010. Composition in distributional models of semantics. Cognitive Science, 34(8):1388–1429. find
- R. Montague. 1974. English as a formal language. Linguaggi nella Societa e nella Tecnica, pages 189–224. find
- T. Nakagawa, K. Inui, and S. Kurohashi. 2010. Dependency tree-based sentiment classification using CRFs with hidden variables. In NAACL, HLT. find
- M. Paşca, D. Lin, J. Bigham, A. Lifchits, and A. Jain. 2006. Names and similarities on the web: fact extraction in the fast lane. In ACL. find
- S. Pado and M. Lapata. 2007. Dependency-based construction of semantic space models. Computational Linguistics, 33(2):161–199. find our card
- B. Pang and L. Lee. 2005. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In ACL, pages 115–124. find our card
- T. A. Plate. 1995. Holographic reduced representations. IEEE Transactions on Neural Networks, 6(3):623– 641. find
- J. B. Pollack. 1990. Recursive distributed representations. Artificial Intelligence, 46, November. find
- C. Potts. 2010. On the negativity of negation. In David Lutz and Nan Li, editors, Proceedings of Semantics and Linguistic Theory 20. CLC Publications, Ithaca, NY. find
- L. Ratinov, D. Roth, D. Downey, and M. Anderson. 2011. Local and global algorithms for disambiguation to wikipedia. In ACL. find
- B. Rink and S. Harabagiu. 2010. UTD: Classifying semantic relations by combining lexical and semantic resources. In Proceedings of the 5th International Workshop on Semantic Evaluation. find
- S. Rudolph and E. Giesbrecht. 2010. Compositional matrix-space models of language. In ACL. find
- H. Schütze. 1998. Automatic word sense discrimination. Computational Linguistics, 24:97–124. find
- R. Socher, C. D. Manning, and A. Y. Ng. 2010. Learning continuous phrase representations and syntactic parsing with recursive neural networks. In Proceedings of the NIPS-2010 Deep Learning and Unsupervised Feature Learning Workshop. find
- R. Socher, E. H. Huang, J. Pennington, A. Y. Ng, and C. D. Manning. 2011a. Dynamic Pooling and Unfolding Recursive Autoencoders for Paraphrase Detection. In NIPS. MIT Press. find
- R. Socher, C. Lin, A. Y. Ng, and C.D. Manning. 2011b. Parsing Natural Scenes and Natural Language with Recursive Neural Networks. In ICML. find
- R. Socher, J. Pennington, E. H. Huang, A. Y. Ng, and C. D. Manning. 2011c. Semi-Supervised Recursive Autoencoders for Predicting Sentiment Distributions. In EMNLP. find our card
- P. D. Turney and P. Pantel. 2010. From frequency to meaning: Vector space models of semantics. Journal of Artificial Intelligence Research, 37:141–188. find
- D. Widdows. 2008. Semantic vector products: Some initial investigations. In Proceedings of the Second AAAI Symposium on Quantum Interaction. find
- A. Yessenalina and C. Cardie. 2011. Compositional matrix-space models for sentiment analysis. In EMNLP. find
- F.M. Zanzotto, I. Korkontzelos, F. Fallucchi, and S. Manandhar. 2010. Estimating linear models for compositional distributional semantics. COLING. find
This page in Markdown → https://md.research.elamur.ai/free/en/papers/socher-2012-semantic-compositionality-through-recursive-matrix/