Skip to main content
QUICK REVIEW

[Paper Review] Pretraining with Contrastive Sentence Objectives Improves Discourse Performance of Language Models

Dan Iter, Kelvin Guu|arXiv (Cornell University)|May 20, 2020
Topic ModelingComputer Science18 references5 citations
TL;DR

This paper introduces Conpono, a contrastive sentence-level pretraining objective that improves discourse representation in transformer-based language models by predicting sentences k positions away from a given anchor sentence. It achieves state-of-the-art performance on the DiscoEval benchmark—improving by up to 13% absolute on some tasks—while matching BERT-Large's performance with only BERT-Base's parameter count and showing gains on non-discourse tasks like RTE, COPA, and ReCoRD.

ABSTRACT

Recent models for unsupervised representation learning of text have employed a number of techniques to improve contextual word representations but have put little focus on discourse-level representations. We propose CONPONO, an inter-sentence objective for pretraining language models that models discourse coherence and the distance between sentences. Given an anchor sentence, our model is trained to predict the text k sentences away using a sampled-softmax objective where the candidates consist of neighboring sentences and sentences randomly sampled from the corpus. On the discourse representation benchmark DiscoEval, our model improves over the previous state-of-the-art by up to 13% and on average 4% absolute across 7 tasks. Our model is the same size as BERT-Base, but outperforms the much larger BERT- Large model and other more recent approaches that incorporate discourse. We also show that CONPONO yields gains of 2%-6% absolute even for tasks that do not explicitly evaluate discourse: textual entailment (RTE), common sense reasoning (COPA) and reading comprehension (ReCoRD).

Motivation & Objective

  • To improve discourse-level representations in pretrained language models by introducing a novel inter-sentence objective focused on sentence ordering, coherence, and distance.
  • To address the limited focus on discourse in existing pretraining objectives, despite its importance in natural language understanding.
  • To demonstrate that a contrastive, bidirectional sentence prediction objective can enhance both discourse-specific and general NLP tasks.
  • To show that discourse-aware pretraining can yield gains even on tasks not explicitly evaluating discourse, such as textual entailment and reading comprehension.

Proposed method

  • The model uses a transformer encoder to jointly encode an anchor sentence and target sentences k positions away in either direction.
  • Given an anchor sentence, the model predicts the target sentence at distance k using a sampled-softmax objective that contrasts the correct target against negative candidates.
  • Negative candidates include neighboring sentences from the same paragraph (hard negatives) and randomly sampled sentences from the corpus (easy negatives).
  • The objective is inspired by Contrastive Predictive Coding (CPC) but operates at the sentence level and uses cross-attention between anchor and target to improve representation learning.
  • The model is pre-trained with a combination of the proposed Conpono objective and a standard masked language modeling (MLM) objective to preserve local word-level representations.
  • The final model uses the same architecture and parameter count as BERT-Base, enabling direct comparison with larger models like BERT-Large.

Experimental results

Research questions

  • RQ1Can a contrastive sentence-level objective improve discourse representation in pretrained language models?
  • RQ2Does learning sentence ordering and coherence through a k-distance prediction task lead to better performance on discourse-specific benchmarks?
  • RQ3Can discourse-aware pretraining yield improvements on non-discourse downstream tasks such as textual entailment and reading comprehension?
  • RQ4How does the inclusion of cross-attention between anchor and target sentences affect representation quality?
  • RQ5Is the performance gain from Conpono due to the objective itself, or to architectural choices like window size and auxiliary MLM training?

Key findings

  • Conpono achieves a new state-of-the-art on the DiscoEval benchmark, improving performance by up to 13% absolute on individual tasks and 4% on average across all seven tasks.
  • The model outperforms BERT-Large despite having only the same number of parameters as BERT-Base, demonstrating that discourse pretraining can yield significant gains without increasing model size.
  • Conpono improves performance on non-discourse tasks by 2%-6% absolute on RTE, COPA, and ReCoRD, indicating broader benefits beyond discourse-specific evaluation.
  • The ablation study shows that cross-attention between anchor and target sentences is a key factor in performance, with window sizes of two or more yielding better results.
  • The model performs best on sentence ordering tasks within DiscoEval, suggesting it effectively learns relative sentence positioning and coherence.
  • The combination of Conpono with a masked language modeling objective leads to stronger representations than using either objective alone.

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.