Introduction
Generating high-quality sentence representations is a fundamental challenge in Natural Language Processing. While word embeddings like GloVe or Word2Vec effectively capture individual word semantics, aggregating them into sentence-level vectors often requires a trade-off between simplicity and expressiveness. Existing methods typically fall into two categories: complex parameterized models (e.g., Transformers, LSTMs) that require extensive labeled data and training, and non-parameterized models (e.g., SIF) that use simple weighted averages but often miss local contextual nuances.
This paper introduces Geometric Embedding (GEM), a training-free, parameter-free approach that bridges this gap. GEM treats a sentence as a geometric subspace and uses the Gram-Schmidt process to identify the unique semantic contribution of each word relative to its neighbors.
Geometric Embedding (GEM) Methodology
The core innovation of GEM is modeling linguistic "novelty" through geometric orthogonality. Instead of simple averaging, GEM decomposes word vectors into components already explained by the local context and a "novel" basis vector.
The GEM algorithm consists of three primary components:
- Gram-Schmidt Orthogonalization: For each word $w_i$, the algorithm examines its surrounding context window. It applies the Gram-Schmidt process to find a basis vector $q_i$ that is perpendicular to the subspace spanned by its neighbors, representing the word's unique semantic information.
- Three-Score Weighting Scheme: Word importance is determined by three metrics:
- Novelty ($\alpha_n$): Measures the magnitude of the "new" information $q_i$ relative to the context.
- Significance ($\alpha_s$): Measures how well this new information aligns with the principal semantic directions (via SVD) of the local context.
- Uniqueness ($\alpha_u$): A corpus-level score that down-weights globally common "background noise" words.
- Sentence-Dependent Principal Component Removal (SDR): Unlike global noise reduction methods, SDR re-ranks and removes principal components based on their specific correlation with each individual sentence, allowing for more precise denoising.
Experimental Evaluation
The authors evaluated GEM across 11 diverse NLP benchmarks, including the Semantic Textual Similarity Benchmark (STSB), Community Question Answering (CQA), and various supervised classification tasks (e.g., MR, SST, TREC, SUBJ). The model was tested using pre-trained word vectors, primarily GloVe and a concatenated set termed L.F.P (LexVec, fastText, and PSL).
Key Results and Discussion
GEM demonstrates state-of-the-art performance for non-parameterized models, often rivaling or exceeding supervised alternatives.
As shown in the table above, GEM + L.F.P achieved a test score of 78.4 on STSB, significantly outperforming the SIF baseline (72.0) and even the supervised InferSent model (75.8). Beyond accuracy, GEM is remarkably efficient; it runs entirely on a CPU and was found to be 54% faster than the GPU-based SkipThought model.
Furthermore, GEM exhibits inherent robustness. Because it focuses on "novel" geometric contributions, it naturally ignores common function words (stop words) without requiring manual lists. This suggests that geometric orthogonality is a powerful proxy for semantic importance.
Conclusion and Future Work
Geometric Embedding (GEM) provides a highly efficient, training-free alternative for generating sentence embeddings. By leveraging local context and linear algebra, it achieves competitive results with massive neural models. Future research may explore handling out-of-vocabulary words more robustly, incorporating subword information, or extending the linear subspace model to more complex geometric manifolds to capture hierarchical linguistic structures.
Summary updated