Exploiting Twitter as Source of Large Corpora of Weakly Similar Pairs for Semantic Sentence Embeddings

Marco Di Giovanni, Marco Brambilla
10/5/2021
cs.CL

Official code: marco-digio/Twitter4SSE (6 stars, Python, Apache-2.0, last commit 2021-12-17).

Abstract

Semantic sentence embeddings are usually supervisedly built minimizing distances between pairs of embeddings of sentences labelled as semantically similar by annotators. Since big labelled datasets are rare, in particular for non-English languages, and expensive, recent studies focus on unsupervised approaches that require not-paired input sentences.

Show full abstract

We instead propose a language-independent approach to build large datasets of pairs of informal texts weakly similar, without manual human effort, exploiting Twitter's intrinsic powerful signals of relatedness: replies and quotes of tweets. We use the collected pairs to train a Transformer model with triplet-like structures, and we test the generated embeddings on Twitter NLP similarity tasks (PIT and TURL) and STSb. We also introduce four new sentence ranking evaluation benchmarks of informal texts, carefully extracted from the initial collections of tweets, proving not only that our best model learns classical Semantic Textual Similarity, but also excels on tasks where pairs of sentences are not exact paraphrases. Ablation studies reveal how increasing the corpus size influences positively the results, even at 2M samples, suggesting that bigger collections of Tweets still do not contain redundant information about semantic similarities.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official repository of "Exploiting Twitter as Source of Large Corpora of Weakly Similar Pairs for Semantic Sentence Embeddings" (EMNLP2021)

60Python, ShellSep 7, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{giovanni2021exploiting,
  title  = {Exploiting Twitter as Source of Large Corpora of Weakly Similar Pairs for Semantic Sentence Embeddings},
  author = {Marco Di Giovanni and Marco Brambilla},
  year   = {2021},
  eprint = {2110.02030},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.02030}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.02030.svg)](https://codeofpaper.com/paper/2110.02030)

Discussion