Introduction
In linguistics, coherence is the quality that transforms a sequence of sentences into a unified discourse rather than a random collection of statements. While modern Large Language Models (LLMs) like XLNet demonstrate impressive capabilities, they often function as "black boxes" regarding their assessment of text coherence. Research indicates these models frequently rely on "spurious" information—such as frequent function words or sub-word fragments—rather than the structural relationships humans use to process discourse.
To address this, researchers have developed a new neural model that evaluates coherence by focusing on entities (nouns and proper names). Grounded in "Centering Theory," this approach suggests that coherence is driven by how specific entities (the "focus") transition between sentences. By constraining the model to track these foci, the authors achieve state-of-the-art performance in automated writing assessment while enhancing interpretability.
Methods
The proposed architecture integrates pretrained language models with linguistic constraints through a multi-stage process designed to extract and track local coherence:
- Sentence Encoding: Adjacent sentences are encoded jointly using XLNet to capture cross-boundary context.
- Entity Identification: A constituency parser extracts noun phrases and proper names, filtering out non-entity tokens that might introduce noise.
- Local Coherence Module: The model identifies the most semantically related entities between adjacent sentences—the "local focus"—using cosine similarity.
- Hierarchical Processing: A depthwise convolutional layer captures semantic patterns, followed by a Tree-Transformer that updates representations based on the document's hierarchical structure.
Finally, this entity-based "local coherence vector" is concatenated with a global "context vector" (the average of sentence representations) to produce the final quality score.
Experimental Setup
The model was evaluated across several diverse tasks to test its robustness:
- Automated Essay Scoring (AES): Using the TOEFL dataset of essays written by non-native English speakers.
- Assessing Writing Quality (AWQ): Using a New York Times (NYT) dataset of scientific articles labeled as "typical" or "good."
- Assessing Discourse Coherence (ADC): Using the GCDC dataset, which includes informal texts like emails (Enron/Clinton) and online reviews (Yahoo/Yelp).
- The Shuffle Test: A baseline task requiring the model to distinguish original coherent documents from versions with randomly reordered sentences.
Key Results and Insights
The entity-based model consistently outperformed previous state-of-the-art neural coherence models. On the TOEFL (AES) dataset, it achieved an average accuracy of 76.54%, surpassing the previous benchmark of 75.12%. Similar gains were observed on the NYT dataset (77.52% vs. 76.43%) and across all four domains of the GCDC dataset, proving the model's efficacy even on informal text.
Beyond raw metrics, the study yielded several qualitative insights:
- Entities vs. Sub-words: Constraining the model to nouns and pronouns improves performance and interpretability. For instance, in scientific texts, while previous models might focus on meaningless sub-words, this model correctly identifies "Einstein" or "physics" as the discourse focus.
- Semantic Consistency: High-quality writing maintains a "Goldilocks" level of consistency—neither overly repetitive nor erratically jumping between topics. Lower-quality essays often exhibited extreme consistency (repeating simple pronouns) or lacked clear transitions.
- Pronoun Usage: Lower-scoring essays rely more heavily on ambiguous pronouns ("it," "they"), whereas high-quality essays use specific noun phrases to maintain clarity.
Conclusion
This research demonstrates that incorporating linguistic theory into neural architectures can yield models that are both more accurate and more explainable. By focusing on entity transitions, the model mimics human discourse processing more closely than standard LLMs. Future work may involve integrating explicit coreference resolution to better track entities across long distances and exploring the role of verbs in capturing discourse focus.
Summary updated