paper-with-me

Papers

Contrastive Learning with Adversarial Perturbations for Conditional Text Generation

2020-12-14 · ICLR 2021 1 · Seanie Lee, Dong Bok Lee, Sung Ju Hwang

Recently, sequence-to-sequence (seq2seq) models with the Transformer architecture have achieved remarkable performance on various conditional text generation tasks, such as machine translation. However, most of them are trained with teacher forcing with the ground truth label given at each time step, without being exposed to incorrectly generated tokens during training, which hurts its generalization to unseen inputs, that is known as the "exposure bias" problem. In this work, we propose to mitigate the conditional text generation problem by contrasting positive pairs with negative pairs, such that the model is exposed to various valid or incorrect perturbations of the inputs, for improved generalization. However, training the model with naive contrastive learning framework using random non-target sequences as negative examples is suboptimal, since they are easily distinguishable from the correct output, especially so with models pretrained with large text corpora. Also, generating positive examples requires domain-specific augmentation heuristics which may not generalize over diverse domains. To tackle this problem, we propose a principled method to generate positive and negative samples for contrastive learning of seq2seq models. Specifically, we generate negative examples by adding small perturbations to the input sequence to minimize its conditional likelihood, and positive examples by adding large perturbations while enforcing it to have a high conditional likelihood. Such "hard" positive and negative pairs generated using our method guides the model to better distinguish correct outputs from incorrect ones. We empirically show that our proposed method significantly improves the generalization of the seq2seq on three text generation tasks - machine translation, text summarization, and question generation.

📄 PDF Abstract BibTeX arXiv:2012.07280

Code (1)

seanie12/CLAPS 공식 구현 pytorch

Tasks

Conditional Text GenerationContrastive LearningMachine TranslationQuestion GenerationQuestion-GenerationText GenerationText SummarizationTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Contrastive Learning 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Sigmoid Activation 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Multi-Head Attention 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

TextGAIL: Generative Adversarial Imitation Learning for Text Generation

2020-04-07 · Qingyang Wu, Lei LI, Zhou Yu

Generative Adversarial Networks (GANs) for text generation have recently received many criticisms, as they perform worse than their MLE counterparts. We suspect previous text GANs' inferior performance is due to the lack…

Conditional Text GenerationDiversityImitation LearningText Generation

Self-Supervised Contrastive Learning with Adversarial Perturbations for Defending Word Substitution-based Attacks

2021-07-15 · Findings (NAACL) 2022 7 · Zhao Meng, Yihan Dong, Mrinmaya Sachan, Roger Wattenhofer

In this paper, we present an approach to improve the robustness of BERT language models against word substitution-based adversarial attacks by leveraging adversarial perturbations for self-supervised contrastive learning…

Adversarial AttackContrastive LearningLanguage Modelling

Self-Supervised Contrastive Learning with Adversarial Perturbations for Robust Pretrained Language Models

2021-11-16 · ACL ARR November 2021 11 · Anonymous

In this paper, we present an approach to improve the robustness of BERT language models against word substitution-based adversarial attacks by leveraging adversarial perturbations for self-supervised contrastive learning…

Adversarial AttackContrastive Learning

Robust Pre-Training by Adversarial Contrastive Learning

2020-10-26 · NeurIPS 2020 12 · Ziyu Jiang, Tianlong Chen, Ting Chen, Zhangyang Wang

Recent work has shown that, when integrated with adversarial training, self-supervised pre-training can lead to state-of-the-art robustness In this work, we improve robustness-aware self-supervised pre-training by learni…

Adversarial RobustnessContrastive Learning

Dual Adversarial Perturbators Generate rich Views for Recommendation

2024-08-26 · Lijun Zhang, Yuan YAO, Haibo Ye

Graph contrastive learning (GCL) has been extensively studied and leveraged as a potent tool in recommender systems. Most existing GCL-based recommenders generate contrastive views by altering the graph structure or intr…

Contrastive LearningGraph LearningRecommendation Systems