Introduction
Pretrained sentence representations, such as BERT, ELMo, and InferSent, have become foundational components in modern natural language processing. However, most existing evaluation frameworks, notably SentEval, assess these representations using sentences in isolation. In real-world documents, sentences are part of a broader discourse structure, relying on logical flow, rhetorical relations, and surrounding context. This paper addresses the gap by introducing DiscoEval, a benchmark suite designed to evaluate discourse-aware sentence embeddings, and proposing novel self-supervised training objectives to inject structural knowledge into these models.
The DiscoEval Benchmark
DiscoEval consists of seven tasks designed to probe whether fixed-length sentence vectors capture discourse-level information. To ensure the evaluation focuses on the embeddings themselves, the authors use frozen pretrained encoders with lightweight (mostly linear) classifiers. The tasks include:
- Discourse Relations: Predicting rhetorical relations in RST-DT (document-level trees) and PDTB (Penn Discourse Treebank).
- Sentence Ordering: Predicting the correct sequence of sentences (Sentence Position and Binary Sentence Ordering) using data from Wikipedia, ROC Stories, and arXiv.
- Discourse Coherence (DC): Identifying an "intruder" sentence within a coherent six-sentence sequence.
- Sentence Section Prediction (SSP): Determining if a sentence belongs to a specific section, such as an abstract in scientific papers.
Learning Discourse-Aware Representations
The authors propose three novel, self-supervised training objectives derived from the natural hierarchical structure of Wikipedia, requiring no human annotation:
- Nesting Level (NL): Predicting a sentence's depth within a document's table of contents.
- Sentence and Paragraph Position (SPP): Predicting the index of a sentence within its paragraph and the paragraph within the document.
- Section and Document Title (SDT): Predicting the bag-of-words title of the section and document.
These objectives are added to a baseline Neighboring Sentence Prediction (NSP) model to evaluate their impact on discourse awareness.
Key Results
Experimental results show that BERT-Large is the strongest baseline among standard pretrained models, achieving the highest average accuracy on DiscoEval. The addition of NL and SPP objectives to the NSP baseline consistently improves performance, particularly on implicit discourse relations.
As shown in the results table, while models like InferSent perform well on local semantic tasks (SentEval), they lag behind Transformer-based models on discourse-heavy tasks. Notably, there remains a significant gap between machine performance and human baselines, especially in tasks like Discourse Coherence.
Layer-wise Analysis and Insights
A critical finding of this research is the distribution of discourse information across network layers. By analyzing BERT and ELMo, the authors observed a distinct split: shallow layers tend to perform better on standard SentEval tasks (local semantics), while deeper layers are significantly more effective for DiscoEval tasks.
This suggests that discourse-level features are higher-level abstractions constructed in the later stages of the network. Furthermore, the authors found that while topical similarity objectives (like SDT) help with semantic similarity, they can hinder ordering tasks by making neighboring sentences too mathematically similar to distinguish their logical sequence.
Conclusion
DiscoEval provides a more comprehensive lens for evaluating sentence representations beyond isolated semantics. The results highlight that current models still struggle with complex discourse coherence and that hierarchical training signals can improve a model's understanding of document structure. Future work should focus on bridging the substantial gap between human and model performance in capturing broader document context.
Summary updated