An External Knowledge Enhanced Graph-based Neural Network for Sentence Ordering

Yongjing Yin, Shaopeng Lai, Linfeng Song, Chulun Zhou, Xianpei Han, Junfeng Yao, Jinsong SuJAIR 2021 · DOI

Introduction

Sentence ordering is a critical task in Natural Language Processing (NLP) that involves arranging a shuffled set of sentences into a coherent paragraph. Achieving logical flow is essential for text generation and summarization systems. Traditional approaches often treat paragraphs as sequences or fully-connected graphs, which can introduce significant noise through spurious connections between unrelated sentences. This paper introduces a novel graph-based neural network that leverages structured entity knowledge and external lexical information to improve discourse coherence.

Graph Construction and External Knowledge

The core innovation of this research lies in the transition from simple sentence-to-sentence modeling to entity-centric graph structures. The authors propose two primary graph types:

  1. SE-Graph (Sentence-Entity): This bipartite graph represents sentences and the entities (nouns) they contain. Edges are labeled with syntactic roles (Subject, Object, or Other), and sentences are linked if they share a common entity.
  2. SEK-Graph (Sentence-Entity-Knowledge): This extends the SE-Graph by incorporating external semantic relations from WordNet. By linking different but semantically related entities (e.g., "menu" and "order"), the model can bridge conceptual gaps that raw text matching might miss.
Comparison of graph structures: (a) fully-connected baseline, (b) Sentence-Entity (SE) graph, and (c) Sentence-Entity-Knowledge (SEK) graph with WordNet relations.

Model Architecture

The proposed system utilizes a Graph Recurrent Network (GRN) to process these structured representations. Unlike standard Recurrent Neural Networks (RNNs) that operate on linear sequences, the GRN performs iterative message passing across the graph. This allows information to flow between sentence nodes, entity nodes, and a "global paragraph node," capturing both local entity transitions and the overall paragraph context.

The overall architecture of the proposed model, illustrating the flow from Sentence Encoder through self-attention layers to the Pointer Network decoder.

As shown in the architecture diagram, the model encodes sentences into initial representations ($k^0$), processes them through multiple self-attention layers to capture dependencies, and finally employs a Pointer Network to decode the correct sequence. The pointer network effectively "points" to the next sentence in the logical order based on the enriched graph representations.

Experimental Results

The model was evaluated on four benchmark datasets: NIPS, ANN, arXiv, and SIND. The SEK-Graph variant achieved state-of-the-art performance across several metrics:

  • Accuracy: On the large-scale arXiv dataset, the model reached 59.15% accuracy, significantly outperforming previous sequence-based and graph-based baselines.
  • Perfect Match Ratio (PMR): In the challenging SIND dataset (visual storytelling), the model achieved a PMR of 17.17%, demonstrating its ability to reconstruct entire narratives correctly.
  • Positional Precision: The model showed exceptional strength in identifying the "head" (first) and "tail" (last) sentences of paragraphs, with over 92% accuracy for first-sentence prediction on scientific abstracts.

Conclusion

By centering discourse modeling on entities and enriching those connections with external lexical knowledge, this graph-based approach effectively filters out noise and captures the underlying "thread" of a paragraph. While the model's performance is currently tied to the accuracy of upstream tools like syntactic parsers, it represents a significant step forward in building machines that understand the structural nuances of human language.

Summary updated

BibTeX
@article{yin2021external,
  author = {Yongjing Yin and Shaopeng Lai and Linfeng Song and Chulun Zhou and Xianpei Han and Junfeng Yao and Jinsong Su},
  title = {{An External Knowledge Enhanced Graph-based Neural Network for Sentence Ordering}},
  journal = {J. Artif. Intell. Res.},
  year = {2021},
  doi = {10.1613/jair.1.12078},
}
Figure