Pretraining with Contrastive Sentence Objectives Improves Discourse Performance of Language Models

37560

Authors

nan

Abstract

AbstractRecent 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).

Keywords

nan

Full Content

Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 443–459 July 5 - 10, 2020. c⃝2020 Association for Computational Linguistics 443 A Formal Hierarchy of RNN Architectures William Merrill∗ Gail Weiss† Yoav Goldberg∗ ‡ Roy Schwartz∗ § Noah A. Smith∗ § Eran Yahav† ∗Allen Institute for AI † Technion ‡ Bar Ilan University § University of Washington {willm,yoavg,roys,noah}@allenai.org {sgailw,yahave}@cs.technion.ac.il Abstract We develop a formal hierarchy of the expres- sive capacity of RNN architectures. The hi- erarchy is based on two formal properties: space complexity, which measures the RNN’s memory, and rational recurrence, defined as whether the recurrent update can be described by a weighted finite-state machine. We place several RNN variants within this hierarchy. For example, we prove the LSTM is not ratio- nal, which formally separates it from the re- lated QRNN (Bradbury et al., 2016). We also show how these models’ expressive capacity is expanded by stacking multiple layers or com- posing them with different pooling functions. Our results build on the theory of “saturated” RNNs (Merrill, 2019). While formally extend- ing these findings to unsaturated RNNs is left to future work, we hypothesize that the prac- tical learnable capacity of unsaturated RNNs obeys a similar hierarchy. Experimental find- ings from training unsaturated networks on for- mal languages support this conjecture. 1 Introduction While neural networks are central to the perfor- mance of today’s strongest NLP systems, theoret- ical understanding of the formal properties of dif- ferent kinds of networks is still limited. It is estab- lished, for example, that the Elman (1990) RNN is Turing-complete, given infinite precision and computation time (Siegelmann and Sontag, 1992, 1994; Chen et al., 2018). But tightening these un- realistic assumptions has serious implications for expressive power (Weiss et al., 2018), leaving a sig- nificant gap between classical theory and practice, which theorems in this paper attempt to address. Recently, Peng et al. (2018) introduced rational RNNs, a subclass of RNNs whose internal state can be computed by independent weighted finite automata (WFAs). Intuitively, such models have a computationally simpler recurrent update than Figure 1: Hierarchy of state expressiveness for satu- rated RNNs and related models. The y axis represents increasing space complexity. ∅ means provably empty. Models are in bold with qualitative descriptions in gray. conventional models like long short-term memory networks (LSTMs; Hochreiter and Schmidhuber, 1997). Empirically, rational RNNs like the quasi- recurrent neural network (QRNN; Bradbury et al., 2016) and unigram rational RNN (Dodge et al., 2019) perform comparably to the LSTM, with a smaller computational budget. Still, the underlying simplicity of rational models raises the question of whether their expressive power is fundamentally limited compared to other RNNs. In a separate line of work, Merrill (2019) intro- duced the saturated RNN1 as a formal model for analyzing the capacity of RNNs. A saturated RNN is a simplified network where all activation func- tions have been replaced by step functions. The saturated network may be seen intuitively as a “sta- ble” version of its original …

Content truncated to 500 words

Labeled Text

AbstractRecent 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).

Publication Details

Paper ID:
37560
Year:
2020
Publication:
TIPSTER
Publication Type:
conf
DOI:
nan