RobustSentEmbed: Robust Sentence Embeddings Using Adversarial Self-Supervised Contrastive Learning

Javad Rafiei Asl, Prajwal Panzade, Eduardo Blanco, Daniel Takabi, Zhipeng Cai
3/17/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: jasl1/RobustSentEmbed (2 stars, last commit 2025-04-03).

Abstract

Pre-trained language models (PLMs) have consistently demonstrated outstanding performance across a diverse spectrum of natural language processing tasks. Nevertheless, despite their success with unseen data, current PLM-based representations often exhibit poor robustness in adversarial settings. In this paper, we introduce RobustSentEmbed, a self-supervised sentence embedding framework designed to improve both generalization and robustness in diverse text representation tasks and against a diverse set of adversarial attacks. Through the generation of high-risk adversarial perturbations and their utilization in a novel objective function, RobustSentEmbed adeptly learns high-quality and robust sentence embeddings. Our experiments confirm the superiority of RobustSentEmbed over state-of-the-art representations. Specifically, Our framework achieves a significant reduction in the success rate of various adversarial attacks, notably reducing the BERTAttack success rate by almost half (from 75.51\% to 38.81\%). The framework also yields improvements of 1.59\% and 0.23\% in semantic textual similarity tasks and various transfer tasks, respectively.

View on arXivView PDF

Code Implementations(1)

21Shell, PythonDec 10, 20231 years ago

Cite this paper

@article{asl2024robustsentembed,
  title  = {RobustSentEmbed: Robust Sentence Embeddings Using Adversarial Self-Supervised Contrastive Learning},
  author = {Javad Rafiei Asl and Prajwal Panzade and Eduardo Blanco and Daniel Takabi and Zhipeng Cai},
  year   = {2024},
  eprint = {2403.11082},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.11082v1}
}

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

Discussion