Skip to main content
QUICK REVIEW

[Paper Review] CAPT: Contrastive Pre-Training for Learning Denoised Sequence Representations

Fuli Luo, Pengcheng Yang|arXiv (Cornell University)|Oct 13, 2020
Multimodal Machine Learning ApplicationsComputer Science38 references14 citations
TL;DR

CAPT proposes a contrastive pre-training framework that learns noise-invariant sequence representations by enforcing semantic consistency between original and corrupted input sequences. By applying instance-wise contrastive loss, it reduces pretrain-finetune discrepancy and improves global semantic modeling, achieving consistent gains of 0.6% on GLUE and 0.8% on NLVR² across NLP and vision-language tasks.

ABSTRACT

Pre-trained self-supervised models such as BERT have achieved striking success in learning sequence representations, especially for natural language processing. These models typically corrupt the given sequences with certain types of noise, such as masking, shuffling, or substitution, and then try to recover the original input. However, such pre-training approaches are prone to learning representations that are covariant with the noise, leading to the discrepancy between the pre-training and fine-tuning stage. To remedy this, we present ContrAstive Pre-Training (CAPT) to learn noise invariant sequence representations. The proposed CAPT encourages the consistency between representations of the original sequence and its corrupted version via unsupervised instance-wise training signals. In this way, it not only alleviates the pretrain-finetune discrepancy induced by the noise of pre-training, but also aids the pre-trained model in better capturing global semantics of the input via more effective sentence-level supervision. Different from most prior work that focuses on a particular modality, comprehensive empirical evidence on 11 natural language understanding and cross-modal tasks illustrates that CAPT is applicable for both language and vision-language tasks, and obtains surprisingly consistent improvement, including 0.6\% absolute gain on GLUE benchmarks and 0.8\% absolute increment on $ ext{NLVR}^2$.

Motivation & Objective

  • Address the pretrain-finetune discrepancy caused by noise-variant representations in self-supervised pre-training.
  • Improve global semantic modeling by introducing more effective sentence-level supervision.
  • Develop a generalizable pre-training method applicable to both natural language and vision-language tasks.
  • Reduce reliance on position-dependent supervision (e.g., next sentence prediction) that introduces weak or confusing gradients.
  • Enable pre-trained models to learn representations invariant to common corruption operations like masking or shuffling.

Proposed method

  • Apply a standard corruption operation (e.g., masking) to input sequences to generate corrupted versions.
  • Use a pre-trained model (e.g., BERT, RoBERTa) to encode both original and corrupted sequences into hidden representations.
  • Apply an aggregation layer (e.g., mean-pooling or classification token) to obtain global sequence-level representations.
  • Formulate a contrastive loss that pulls representations of the same instance (original and corrupted) closer in embedding space.
  • Push representations of different instances (negative pairs) apart to enforce discriminative feature learning.
  • Introduce two auxiliary methods to enhance learning of noise-concentrated and diverse features, improving robustness and generalization.

Experimental results

Research questions

  • RQ1Can contrastive learning reduce pretrain-finetune discrepancy caused by noise-variant representations in self-supervised pre-training?
  • RQ2Does instance-wise contrastive supervision improve global semantic modeling compared to token-level or segment-level tasks?
  • RQ3Can the proposed CAPT framework be generalized across both natural language and vision-language tasks?
  • RQ4How does CAPT compare to standard pre-training objectives (e.g., MLM, MRM) in terms of downstream performance?
  • RQ5Does CAPT improve model robustness and generalization without increasing training cost?

Key findings

  • CAPT improves RoBERTa’s GLUE dev set performance from 88.9% to 89.5%, achieving a 0.6% absolute gain.
  • On the NLVR² benchmark, CAPT surpasses LXMERT by 0.8%, demonstrating strong gains in vision-language understanding.
  • CAPT achieves consistent improvements across 11 diverse tasks, including 8 NLU and 3 cross-modal tasks.
  • The method reduces pretrain-finetune discrepancy by learning representations invariant to common corruption operations like masking.
  • CAPT enhances global semantic modeling by providing stronger sentence-level supervision than position-dependent tasks like next sentence prediction.
  • The contrastive objective enables better feature learning without requiring additional labeled data or increasing training cost significantly.

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.