Can Transformer Models Measure Coherence In Text? Re-Thinking the Shuffle Test

Philippe Laban, Luke Dai, Lucas Bandarkar, Marti A. Hearst
7/7/2021
cs.CL
transformer-attention

Official code: tingofurro/shuffle_test (10 stars, Python, last commit 2022-10-14).

Abstract

The Shuffle Test is the most common task to evaluate whether NLP models can measure coherence in text. Most recent work uses direct supervision on the task; we show that by simply finetuning a RoBERTa model, we can achieve a near perfect accuracy of 97.8%, a state-of-the-art.

Show full abstract

We argue that this outstanding performance is unlikely to lead to a good model of text coherence, and suggest that the Shuffle Test should be approached in a Zero-Shot setting: models should be evaluated without being trained on the task itself. We evaluate common models in this setting, such as Generative and Bi-directional Transformers, and find that larger architectures achieve high-performance out-of-the-box. Finally, we suggest the k-Block Shuffle Test, a modification of the original by increasing the size of blocks shuffled. Even though human reader performance remains high (around 95% accuracy), model performance drops from 94% to 78% as block size increases, creating a conceptually simple challenge to benchmark NLP models. Code available: https://github.com/tingofurro/shuffle_test/

View on arXivView PDF

Code Implementations(1)

Codebase, data and models for the Re-Thinking the Shuffle Test paper at ACL2021

100PythonMay 25, 20214 years ago

Similar Papers

Cite this paper

@article{laban2021transformer,
  title  = {Can Transformer Models Measure Coherence In Text? Re-Thinking the Shuffle Test},
  author = {Philippe Laban and Luke Dai and Lucas Bandarkar and Marti A. Hearst},
  year   = {2021},
  eprint = {2107.03448},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.03448}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.03448.svg)](https://codeofpaper.com/paper/2107.03448)

Discussion