SDA: Simple Discrete Augmentation for Contrastive Sentence Representation Learning

Dongsheng Zhu, Zhenyu Mao, Jinghui Lu, Rui Zhao, Fei Tan
10/8/2022
cs.CL
contrastive-ssl

Official code: Zhudongsheng75/SDA (3 stars, Python, last commit 2024-03-16).

Abstract

Contrastive learning has recently achieved compelling performance in unsupervised sentence representation. As an essential element, data augmentation protocols, however, have not been well explored.

Show full abstract

The pioneering work SimCSE resorting to a simple dropout mechanism (viewed as continuous augmentation) surprisingly dominates discrete augmentations such as cropping, word deletion, and synonym replacement as reported. To understand the underlying rationales, we revisit existing approaches and attempt to hypothesize the desiderata of reasonable data augmentation methods: balance of semantic consistency and expression diversity. We then develop three simple yet effective discrete sentence augmentation schemes: punctuation insertion, modal verbs, and double negation. They act as minimal noises at lexical level to produce diverse forms of sentences. Furthermore, standard negation is capitalized on to generate negative samples for alleviating feature suppression involved in contrastive learning. We experimented extensively with semantic textual similarity on diverse datasets. The results support the superiority of the proposed methods consistently. Our key code is available at https://github.com/Zhudongsheng75/SDA

View on arXivView PDF

Code Implementations(1)

Zhudongsheng75/SDAOfficial100%

(LREC-COLING 2024) SDA: Simple Discrete Augmentation for Contrastive Sentence Representation Learning

30PythonFeb 24, 20242 years ago

Similar Papers

Cite this paper

@article{zhu2022sda,
  title  = {SDA: Simple Discrete Augmentation for Contrastive Sentence Representation Learning},
  author = {Dongsheng Zhu and Zhenyu Mao and Jinghui Lu and Rui Zhao and Fei Tan},
  year   = {2022},
  eprint = {2210.03963},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03963}
}

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/2210.03963.svg)](https://codeofpaper.com/paper/2210.03963)

Discussion