Rethinking Self-Supervision Objectives for Generalizable Coherence Modeling

Prathyusha Jwalapuram, Shafiq R. Joty, Xiang Lin

Abstract

Coherence modeling is a critical component for evaluating the quality of natural language generation. However, existing models often overfit to artificial tasks like sentence unscrambling and fail to generalize to real-world scenarios. This paper proposes a novel self-supervised approach using an XLNet backbone combined with contrastive learning, hard negative mining, and a momentum encoder. Our results demonstrate that these objective-driven improvements lead to 15–20% absolute gains on downstream tasks, bridging the gap between toy benchmarks and practical evaluation.

Introduction

Measuring "coherence"—the property that makes a text a unified whole—has traditionally relied on the permuted document task. In this setup, models are trained to distinguish an original document from a version with scrambled sentences. While models achieve near-perfect accuracy on datasets like the Wall Street Journal (WSJ), they frequently fail when evaluating machine-generated text from modern LLMs or summarization systems. This failure suggests that current models overfit to specific shuffling patterns rather than learning general discourse principles. We address this by rethinking the self-supervision objectives used during training.

Methodology

Our approach moves away from complex, custom architectures in favor of a standard XLNet backbone optimized through a sophisticated training objective.

Contrastive Learning and Hard Negative Mining

Instead of simple pairwise ranking, we employ a contrastive setup where a single positive document is compared against multiple negative samples. To enhance learning, we implement hard negative mining, which identifies and prioritizes permutations that the model currently finds difficult to distinguish from the original.

Momentum Encoder and Stability

Training with hard negatives is often unstable. To mitigate this, we incorporate a MoCo-style momentum encoder ($\phi'$) that maintains a large, global queue of negative samples. This provides a consistent and stable signal, preventing the model from converging to poor local minima. Additionally, we ensure length invariance by processing random contiguous slices of documents, teaching the model to recognize coherence at multiple scales.

Overview of the model architecture, illustrating the dual-encoder setup for contrastive learning with a momentum-based queue.

Experimental Setup

We evaluate our model across a diverse set of task-independent datasets to test generalization:

  • WSJ (Penn Treebank): The standard benchmark for sentence permutation.
  • SUMMEVAL: Summaries with expert human coherence ratings.
  • LMVLM: A new dataset introduced here, containing machine-generated text from GPT-2, GPT-3, and CTRL with human judgments.
  • INSTED: A sentence intrusion detection task using CNN and Wikipedia data.
  • STORYCLOZE: A commonsense reasoning task for picking plausible story endings.

Results and Discussion

The "Full Model" significantly outperforms previous state-of-the-art (SOTA) methods like UNC and LCD. While previous models saw performance drop to near-random levels (50-60%) on downstream tasks despite high WSJ scores, our model maintains robust performance across all datasets.

Comprehensive evaluation of training stability and hyperparameter sensitivity, including the effects of hard negative mining and momentum encoder configurations.

Key findings include:

  • Generalization: We observed an absolute improvement of 15–20% on SUMMEVAL, INSTED, and STORYCLOZE.
  • Training Stability: The momentum encoder is crucial for stabilizing the training process when hard negatives are introduced. Without it, accuracy fluctuates wildly as the model struggles with difficult examples.
  • Hyperparameter Sensitivity: Analysis shows that increasing the number of negatives ranked for mining ($h$), the momentum coefficient ($\mu$), and the queue size ($|Q|$) generally contributes to better or more stable performance, though gains vary by task.

Conclusion

This research highlights that the bottleneck in coherence modeling is not the model architecture, but the self-supervision objective. By focusing on contrastive learning with stabilized hard negative mining, we can develop models that generalize far beyond artificial permutation tasks to real-world text evaluation. Future work will explore training on more diverse corpora and extending the approach to multi-lingual settings.

Summary updated

BibTeX
@inproceedings{jwalapuram2022rethinking,
  author = {Prathyusha Jwalapuram and Shafiq R. Joty and Xiang Lin},
  title = {{Rethinking Self-Supervision Objectives for Generalizable Coherence Modeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.418},
}
Figure