[Paper Review] In Search for Linear Relations in Sentence Embedding Spaces
This paper investigates whether small, controlled changes to sentences—such as word substitutions, adding adjectives, or changing punctuation—produce consistent, interpretable vector differences in sentence embedding spaces. Using sentence pairs from SNLI and MultiNLI, the authors identify 60 frequent edit patterns and find that models like ELMo, InferSent, and USE-T preserve these semantic edits as linear vector operations, suggesting that sentence embeddings encode meaningful geometric relationships corresponding to linguistic modifications.
We present an introductory investigation into continuous-space vector representations of sentences. We acquire pairs of very similar sentences differing only by a small alterations (such as change of a noun, adding an adjective, noun or punctuation) from datasets for natural language inference using a simple pattern method. We look into how such a small change within the sentence text affects its representation in the continuous space and how such alterations are reflected by some of the popular sentence embedding models. We found that vector differences of some embeddings actually reflect small changes within a sentence.
Motivation & Objective
- . To explore whether small, systematic sentence modifications produce consistent vector differences in sentence embedding spaces.
- To identify and categorize common sentence edit patterns that induce predictable changes in sentence embeddings.
- To evaluate whether popular sentence embedding models (e.g., ELMo, InferSent, USE-T) reflect these changes through linear operations in the vector space.
- To assess the potential of using vector space operations for controlled paraphrasing or semantic manipulation of sentences.
Proposed method
- . Extracted sentence pairs from SNLI and MultiNLI datasets where only minor textual changes (e.g., word substitution, adding adjectives) occurred.
- Applied a pattern-based method to identify common edit templates by finding longest common substrings and replacing them with variables, resulting in 60 distinct edit patterns.
- Computed sentence embeddings using ELMo, InferSent, LASER, and USE-T, then calculated vector differences between paired sentences.
- Clustered the resulting vector differences using k-means to identify groups of similar semantic operations.
- Analyzed the geometric consistency of vector differences across multiple instances of the same edit pattern.
- Evaluated the robustness of these patterns by measuring how often the same edit type produced similar vector differences across the dataset.
Experimental results
Research questions
- RQ1. Do small, controlled changes in sentence text (e.g., word substitution, adding adjectives) result in consistent, interpretable vector differences in sentence embedding spaces?
- RQ2. Can common linguistic edit patterns—such as gender replacement, sentiment change, or number modification—be reliably captured as linear operations in the embedding space?
- RQ3. How well do popular sentence embedding models (e.g., ELMo, InferSent, USE-T) preserve these linear relationships compared to others?
- RQ4. Are the vector differences induced by semantic edits clustered in the space of operations, suggesting a structured representation of linguistic transformations?
Key findings
- . The vector differences between sentence pairs with identical edit patterns (e.g., 'man' → 'woman') were consistently similar across multiple instances, indicating that sentence embeddings encode such changes as linear operations.
- . ELMo, InferSent, LASER, and USE-T all exhibited strong preservation of edit patterns, with ELMo showing particularly consistent results across 20+ occurrences per pattern.
- . Clusters of vector differences grouped by semantic type—such as gender replacement (cluster 6), sentiment change (cluster 3), or number omission (cluster 4)—demonstrating structured geometric organization in the space of operations.
- . The method identified 60 frequent edit patterns, with success rates ranging from 1/5 to 196/196, showing high consistency for common edits like 'X woman Y → X man Y' or 'X young Y → X sad Y'.
- . Vector differences for patterns like 'X -> X not Y' or 'X -> there is X' were consistently small and predictable, indicating that embedding spaces reflect syntactic and pragmatic modifications.
- . The study demonstrates that sentence embeddings can support controlled semantic manipulation via vector arithmetic, with potential applications in paraphrasing and text generation.
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.