Skip to main content
QUICK REVIEW

[Paper Review] CERT: Contrastive Self-supervised Learning for Language Understanding

Hongchao Fang, Sicheng Wang|arXiv (Cornell University)|May 16, 2020
Topic ModelingComputer Science9 citations
TL;DR

CERT proposes a contrastive self-supervised learning method for language representation that pretrains BERT-like models using sentence-level augmentations via back-translation. By predicting whether two augmented sentences originate from the same original sentence, CERT improves sentence-level semantics, outperforming BERT on 7 of 11 GLUE tasks and achieving a higher average score.

ABSTRACT

Pretrained language models such as BERT, GPT have shown great effectiveness in language understanding. The auxiliary predictive tasks in existing pretraining approaches are mostly defined on tokens, thus may not be able to capture sentence-level semantics very well. To address this issue, we propose CERT: Contrastive self-supervised Encoder Representations from Transformers, which pretrains language representation models using contrastive self-supervised learning at the sentence level. CERT creates augmentations of original sentences using back-translation. Then it finetunes a pretrained language encoder (e.g., BERT) by predicting whether two augmented sentences originate from the same sentence. CERT is simple to use and can be flexibly plugged into any pretraining-finetuning NLP pipeline. We evaluate CERT on 11 natural language understanding tasks in the GLUE benchmark where CERT outperforms BERT on 7 tasks, achieves the same performance as BERT on 2 tasks, and performs worse than BERT on 2 tasks. On the averaged score of the 11 tasks, CERT outperforms BERT. The data and code are available at https://github.com/UCSD-AI4H/CERT

Motivation & Objective

  • Address the limitation of existing pretraining methods that focus on token-level prediction tasks, which may undercapture global sentence-level semantics.
  • Improve language representation learning by shifting the predictive task from the token level to the sentence level.
  • Develop a flexible, plug-in pretraining method compatible with existing BERT-style models and fine-tuning pipelines.
  • Demonstrate the effectiveness of contrastive self-supervised learning at the sentence level for natural language understanding.
  • Investigate the impact of sentence augmentation strategies and pretraining corpus sources on model performance through ablation studies.

Proposed method

  • Generate sentence-level data augmentations using back-translation: translate a source sentence into a target language and back to the original, producing a semantically similar but differently phrased version.
  • Use Momentum Contrast (MoCo) to perform contrastive self-supervised learning, where each augmented sentence is a query and other augmented sentences are keys.
  • Define positive pairs as two augmented sentences derived from the same original sentence; negative pairs are from different originals.
  • Train the model to maximize similarity between positive pairs and minimize similarity between negative pairs using contrastive loss.
  • Fine-tune the resulting CERT model on downstream NLP tasks using standard fine-tuning with labeled data.
  • Integrate CERT as a flexible module that can be applied to any pretrained encoder such as BERT, BART, or RoBERTa.

Experimental results

Research questions

  • RQ1Can contrastive self-supervised learning at the sentence level improve language representation compared to token-level pretraining?
  • RQ2How does back-translation-based sentence augmentation compare to other augmentation strategies in learning robust sentence representations?
  • RQ3Does the choice of pretraining corpus affect the performance of the CERT framework?
  • RQ4Can CERT achieve better generalization on downstream NLU tasks compared to standard BERT pretraining?
  • RQ5Is the contrastive learning objective at the sentence level more effective than token-level objectives for capturing global semantic structure?

Key findings

  • CERT outperforms BERT on 7 out of 11 tasks in the GLUE benchmark, including notable improvements on SST-2, QNLI, and RTE.
  • On the average score across all 11 GLUE tasks, CERT achieves a higher performance than BERT, demonstrating consistent gains in overall language understanding.
  • CERT achieves the same performance as BERT on two tasks (WNLI and WNLI-SNLI), indicating competitive performance on challenging semantic similarity tasks.
  • On two tasks (WNLI and WNLI-SNLI), CERT performs worse than BERT, suggesting potential sensitivity to task-specific characteristics or augmentation noise.
  • Ablation studies show that the performance of CERT is sensitive to the choice of pretraining corpus and the number of back-translation augmentations used.
  • The method is effective as a plug-in module: CERT can be applied to any pretrained encoder and improves performance without architectural changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.