Lune

ACL2021Top-tier venue

CLINE: Contrastive Learning with Semantic Negative Examples for Natural Language Understanding

Dong Wang, Ning Ding, Piji Li, Haitao Zheng

Abstract

Despite pre-trained language models have proven useful for learning high-quality semantic representations, these models are still vulnerable to simple perturbations. Recent works aimed to improve the robustness of pre-trained models mainly focus on adversarial training from perturbed examples with similar semantics, neglecting the utilization of different or even opposite semantics. Different from the image processing field, the text is discrete and few word substitutions can cause significant semantic changes. To study the impact of semantics caused by small perturbations, we conduct a series of pilot experiments and surprisingly find that adversarial training is useless or even harmful for the model to detect these semantic changes. To address this problem, we propose Contrastive Learning with semantIc Negative Examples (CLINE), which constructs semantic negative examples unsupervised to improve the robustness under semantically adversarial attacking. By comparing with similar and opposite semantic examples, the model can effectively perceive the semantic changes caused by small perturbations. Empirical results show that our approach yields substantial improvements on a range of sentiment analysis, reasoning, and reading comprehension tasks. And CLINE also ensures the compactness within the same semantics and separability across different semantics in sentence-level.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text Classification cites A Simple Framework for Contrastive Learning of Visual Representations
  • Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text Classification cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • PMAES: Prompt-mapping Contrastive Learning for Cross-prompt Automated Essay Scoring cites A Simple Framework for Contrastive Learning of Visual Representations
  • PMAES: Prompt-mapping Contrastive Learning for Cross-prompt Automated Essay Scoring cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • RoCBert: Robust Chinese Bert with Multimodal Contrastive Pretraining cites A Simple Framework for Contrastive Learning of Visual Representations
  • RoCBert: Robust Chinese Bert with Multimodal Contrastive Pretraining cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • RoCBert: Robust Chinese Bert with Multimodal Contrastive Pretraining cites Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment
  • Contrastive Learning with Hard Negative Entities for Entity Set Expansion cites A Simple Framework for Contrastive Learning of Visual Representations
  • Contrastive Learning with Hard Negative Entities for Entity Set Expansion cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • SimCSE: Simple Contrastive Learning of Sentence Embeddings cites A Simple Framework for Contrastive Learning of Visual Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. Incorporating Hierarchy into Text Encoder: a Contrastive Learning Approach for Hierarchical Text ClassificationZihan Wang, Peiyi Wang, Lianzhe Huang, Xin Sun et al.ACL 2022 · 157 citations
  2. RoCBert: Robust Chinese Bert with Multimodal Contrastive PretrainingHui Su, Weiwei Shi, Xiaoyu Shen, Xiao Zhou et al.ACL 2022 · 38 citations
  3. GL-CLeF: A Global-Local Contrastive Learning Framework for Cross-lingual Spoken Language UnderstandingLibo Qin, Qiguang Chen, Tianbao Xie, Qixin Li et al.ACL 2022 · 36 citations
  4. Contrastive Learning with Hard Negative Entities for Entity Set ExpansionYinghui Li, Yangning Li, Yuxin He, Tianyu Yu et al.SIGIR 2022 · 22 citations
  5. PMAES: Prompt-mapping Contrastive Learning for Cross-prompt Automated Essay ScoringYuan Chen, Xia LiACL 2023 · 20 citations

Builds on17

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger et al.ICLR 2020 · 8,443 citations
  3. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  4. Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentDi Jin, Zhijing Jin, Joey Tianyi Zhou, Peter SzolovitsAAAI 2020 · 1,333 citations
  5. Learning The Difference That Makes A Difference With Counterfactually-Augmented DataDivyansh Kaushik, Eduard H. Hovy, Zachary Chase LiptonICLR 2020 · 625 citations

Related papers

  1. Debiased Contrastive Learning of Unsupervised Sentence RepresentationsKun Zhou, Beichen Zhang, Wayne Xin Zhao, Ji-Rong WenACL 2022 · 128 citations
  2. RobustEmbed: Robust Sentence Embeddings Using Self-Supervised Contrastive Pre-TrainingJavad Rafiei Asl, Eduardo Blanco, Daniel TakabiEMNLP Findings 2023 · 3 citations
  3. Alleviating Over-smoothing for Unsupervised Sentence RepresentationNuo Chen, Linjun Shou, Jian Pei, Ming Gong et al.ACL 2023 · 10 citations
  4. Similarizing the Influence of Words with Contrastive Learning to Defend Word-level Adversarial Text AttackPengwei Zhan, Jing Yang, He Wang, Chao Zheng et al.ACL Findings 2023 · 4 citations
  5. ContraBERT: Enhancing Code Pre-trained Models via Contrastive LearningShangqing Liu, Bozhi Wu, Xiaofei Xie, Guozhu Meng et al.ICSE 2023 · 56 citations
Dusk over the sea between two cliffs drawn in fine vertical lines