[Paper Review] Geometry of Compositionality
This paper proposes a resource-independent, geometry-based method for detecting context-dependent compositionality in words and phrases using only pre-trained word embeddings. By modeling context as a low-dimensional linear subspace and measuring the projection of a word/phrase embedding onto it, the method achieves state-of-the-art or competitive performance across multiple languages and phenomena—including idioms, sarcasm, and metaphors—without relying on external linguistic resources or complex feature engineering.
This paper proposes a simple test for compositionality (i.e., literal usage) of a word or phrase in a context-specific way. The test is computationally simple, relying on no external resources and only uses a set of trained word vectors. Experiments show that the proposed method is competitive with state of the art and displays high accuracy in context-specific compositionality detection of a variety of natural language phenomena (idiomaticity, sarcasm, metaphor) for different datasets in multiple languages. The key insight is to connect compositionality to a curious geometric property of word embeddings, which is of independent interest.
Motivation & Objective
- To develop a context-sensitive, resource-independent method for detecting compositionality in natural language, particularly for polysemous phrases like 'bad egg' that vary in meaning across contexts.
- To unify the detection of compositionality across diverse phenomena—idioms, sarcasm, metaphors—under a single geometric framework based on word embeddings.
- To eliminate dependency on external linguistic resources (e.g., WordNet, Wiktionary, psycholinguistic databases) while maintaining high accuracy in compositionality detection.
- To provide a scalable and generalizable solution for compositionality detection that handles unseen phrases and polysemy effectively.
- To establish a geometric interpretation of how word embeddings and their contexts jointly lie in a low-dimensional subspace when compositionality occurs.
Proposed method
- The method uses only pre-trained word embeddings as input, with function words removed during preprocessing to focus on content words.
- It applies Principal Component Analysis (PCA) to the context word vectors to extract a low-dimensional linear subspace representing the semantic context.
- The phrase or word embedding is then projected onto this context subspace, and the cosine similarity between the projected vector and the original phrase embedding serves as a compositionality score.
- A high projection score indicates that the phrase's meaning is consistent with the context, implying compositional meaning; a low score suggests non-compositional (idiomatic or figurative) usage.
- The approach is invariant to vocabulary size and language-specific features, enabling multi-lingual applicability without retraining or language-specific adaptation.
- The method is entirely unsupervised and does not require labeled data or external linguistic resources, relying solely on the geometric structure of word embeddings.
Experimental results
Research questions
- RQ1Can compositionality in a phrase be reliably detected using only word embeddings and no external linguistic resources?
- RQ2Does the geometric relationship between a phrase and its context—specifically, their joint lying in a low-dimensional subspace—correlate with compositional meaning?
- RQ3How does the proposed method perform across different languages, including low-resource ones like Chinese, and across diverse figurative language types such as idioms, metaphors, and sarcasm?
- RQ4Is the subspace-based projection method more effective than simple average word embeddings for compositionality detection?
- RQ5Can the method generalize to unseen phrases and polysemous expressions whose compositionality depends on context?
Key findings
- The proposed method achieves competitive or superior performance compared to state-of-the-art methods on multiple benchmarks for MWE idiom detection, sarcasm, and metaphor identification.
- The method outperforms average word embedding baselines in compositionality detection, with statistical significance in subspace-based representation.
- The approach demonstrates strong generalization across languages, including English, German, and Chinese, with no language-specific tuning or resources.
- The method successfully captures context-dependent compositionality, such as distinguishing between literal and figurative uses of 'bad egg' or 'love' in different contexts.
- The geometric insight that compositional phrases and their contexts jointly lie in a low-dimensional subspace provides a robust and interpretable basis for compositionality detection.
- The method is effective for detecting sarcasm and metaphors without relying on external resources like WordNet, MRCPD, or Wiktionary, which are commonly used in prior work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.