Exploring Dowker Homology for Sentence Similarity
Organizations: Department of Computational Linguistics University of Zürich
Abstract
Dowker homology is a topological tool that may be used to analyze the relative position of two point clouds living in a common space. We investigate whether Dowker homology captures sentence similarity information by treating the embeddings of the tokens that constitute a sentence pair as a pair of point clouds in the latent space of a transformer model, using both models that have and have not been fine-tuned for sentence similarity. We find that Dowker homology captures sentence similarity information, as measured by regressing Dowker homology features onto ground-truth similarity scores, and that it can be used for visual inspection of similarity data and models. In an attempt to make Dowker homology readily applicable, we derive from it single-number summaries that we expect to capture sentence similarity directly. These turn out to work reasonably well, but without outperforming standard sentence similarity measures based on established pooling methods.
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Base model | Sentence transformer |
|---|---|
| MiniLM-L6-H384-uncased | all-MiniLM-L6-v2 |
| MiniLM-L12-H384-uncased | all-MiniLM-L12-v2 |
| distilroberta-base | all-distilroberta-v1 |
| mpnet-base | all-mpnet-base-v2 |
| xlm-roberta-base | paraphrase-multilingual-mpnet-base-v2 |
Semantic Textual Similarity
Semantic Textual Similarity measures how closely two texts match in meaning, supporting comparison, retrieval, clustering, and evaluation.
See all 44 papers