[Paper Review] Second-Order Word Embeddings from Nearest Neighbor Topological Features
This paper proposes second-order word embeddings derived from the nearest-neighbor topological structure of pre-trained contextual word embeddings. By learning representations from k-nearest neighbor graphs, the method captures most of the performance benefits of first-order embeddings—achieving near-equivalent results in named entity recognition, textual entailment, and paraphrase recognition—while improving robustness to data heterogeneity, especially in recall-oriented tasks.
We introduce second-order vector representations of words, induced from nearest neighborhood topological features in pre-trained contextual word embeddings. We then analyze the effects of using second-order embeddings as input features in two deep natural language processing models, for named entity recognition and recognizing textual entailment, as well as a linear model for paraphrase recognition. Surprisingly, we find that nearest neighbor information alone is sufficient to capture most of the performance benefits derived from using pre-trained word embeddings. Furthermore, second-order embeddings are able to handle highly heterogeneous data better than first-order representations, though at the cost of some specificity. Additionally, augmenting contextual embeddings with second-order information further improves model performance in some cases. Due to variance in the random initializations of word embeddings, utilizing nearest neighbor features from multiple first-order embedding samples can also contribute to downstream performance gains. Finally, we identify intriguing characteristics of second-order embedding spaces for further research, including much higher density and different semantic interpretations of cosine similarity.
Motivation & Objective
- To investigate whether topological structure in word embedding spaces—specifically, nearest-neighbor relationships—can serve as a standalone source of meaningful word representations.
- To evaluate the performance of second-order embeddings in downstream NLP tasks, comparing them to first-order contextual embeddings.
- To analyze how second-order representations handle data heterogeneity and whether they complement first-order embeddings when concatenated.
- To explore the structural and semantic differences between first- and second-order embedding spaces, particularly in terms of density and cosine similarity interpretation.
- To assess whether multiple first-order embedding samples can be leveraged via nearest-neighbor topology to reduce variance and improve robustness.
Proposed method
- Construct a k-nearest neighbor graph from pre-trained contextual word embeddings using cosine similarity as the distance metric.
- Apply unsupervised graph embedding techniques to relearn word representations based on the topological structure of the k-NN graph, producing second-order embeddings.
- Use the resulting second-order embeddings as input features in deep and linear models for named entity recognition, textual entailment, and paraphrase recognition.
- Augment first-order contextual embeddings with second-order representations by concatenating them, and evaluate performance in both linear and non-linear models.
- Generate second-order embeddings from multiple first-order embedding samples and aggregate them to reduce variance from random initialization.
- Analyze neighborhood density and cosine similarity distributions in both first- and second-order spaces to compare semantic structure and sparsity.
Experimental results
Research questions
- RQ1Can nearest-neighbor topology in pre-trained word embeddings alone produce effective second-order representations that match the performance of first-order embeddings?
- RQ2How do second-order embeddings compare to first-order embeddings in terms of precision and recall, especially on heterogeneous data like MISC entities in NER?
- RQ3To what extent does combining first- and second-order embeddings improve performance, and does this depend on the model type (linear vs. non-linear)?
- RQ4How does the density of the embedding space differ between first- and second-order representations, and what does this imply for semantic similarity interpretation?
- RQ5Can aggregating nearest-neighbor features across multiple first-order embedding samples improve downstream performance and reduce variance?
Key findings
- Second-order embeddings achieve performance nearly equivalent to first-order contextual embeddings across all three downstream tasks, with only 1–2 percentage points of absolute difference in F1 scores.
- Second-order embeddings significantly improve recall—especially on heterogeneous data such as MISC entities in NER—while often reducing precision, indicating a trade-off between specificity and robustness.
- The second-order embedding space is substantially denser than the first-order space: the minimum similarity between a word and its nearest neighbor is 0.75 in second-order space versus 0.24 in first-order space.
- In the second-order space, the top 100 nearest neighbor similarities cluster around 0.999, indicating extreme local density, whereas first-order similarities show greater variance.
- Concatenating first- and second-order embeddings improves performance in non-linear models (e.g., for textual entailment), but harms performance in linear models, suggesting non-linear fusion is necessary.
- Using nearest-neighbor features from multiple first-order embedding samples improves downstream performance, indicating that second-order representations can reduce variance from random initialization.
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.