Knowledge-based Review Generation by Coherence Enhanced Text Planning

Junyi Li, Wayne Xin Zhao, Zhicheng Wei, Nicholas Jing Yuan, Ji-Rong Wen · DOI · OpenReview

Abstract

Automated review generation faces significant challenges in producing text that is both informative and logically coherent. While modern language models can generate fluent text, they often lack specific factual details or fail to organize these details in a natural, human-like flow. We introduce the Coherence Enhanced Text Planning (CETP) model, which leverages Knowledge Graphs (KGs) to provide a structural roadmap for review generation. CETP organizes reviews into a two-level plan—a sequence of subgraphs representing individual sentences—ensuring that generated text is grounded in factual relations. Our hierarchical self-attentive architecture manages transitions between these subgraphs to maintain global document coherence. Experimental results on Amazon and IMDb datasets show that CETP significantly improves generation quality and coherence over state-of-the-art baselines.

Introduction

The primary goal of automated review generation is to create text that mimics human-written reviews by being both descriptive and logically structured. However, current AI models often fall into two traps: the "dull" trap, where they generate generic, fact-poor sentences, and the "incoherent" trap, where facts are presented in a disjointed manner. This lack of entity-centric coherence—the ability to relate entities like actors or genres naturally across a document—makes AI-generated reviews feel robotic and jarring.

Coherent vs. incoherent review examples based on a Knowledge Graph.

As shown in the figure above, a coherent review follows the semantic links within a Knowledge Graph (KG), whereas an incoherent one jumps between unrelated entities or repeats information awkwardly.

Methodology

The CETP model treats review generation as a two-stage process: planning and realization.

Heterogeneous Knowledge Graph (HKG)

To capture the nuances of real-world reviews, the authors augment standard KGs into a Heterogeneous Knowledge Graph (HKG). This graph includes not only factual relations (e.g., movie-to-genre) but also user-item links for personalization and entity-keyword links that map formal entities to descriptive words commonly found in reviews.

Two-Level Text Planning

Instead of immediate word-by-word generation, CETP creates a structured blueprint:

  1. Document Plan: A sequence of sentence plans that dictates the overall flow of the review.
  2. Sentence Plan: Each sentence is modeled as a small subgraph extracted from the HKG. Since the entities in a subgraph are already semantically connected, the resulting sentence is inherently coherent.
The CETP model architecture, showing the transition from subgraph schema to sentence realization.

The model uses a hierarchical self-attentive architecture to manage the "flow" between sentences. It attends to previous subgraphs (themes) and specific nodes (details) to determine the focus of the subsequent sentence.

Sentence Realization

A GPT-2 based decoder transforms these subgraphs into natural language. A key feature is the Supervised Copy Mechanism, which uses a binary indicator to decide precisely when to pull a keyword from the plan versus when to generate a standard "filler" word (e.g., "and", "is").

Evaluation and Results

The model was evaluated on the Amazon Electronic, Amazon Book, and IMDb Movie datasets, utilizing the KB4Rec dataset to link products to Freebase entities.

Quantitative Performance

CETP outperformed state-of-the-art baselines like PHVM and KCGNN across multiple metrics. On the IMDb dataset, CETP achieved a BLEU-4 score of 4.39, a nearly 45% improvement over PHVM (3.02). To measure coherence, the authors used the Entity Co-occurrence Ratio (ECR); CETP scored 28.96 on movies, significantly higher than PHVM’s 24.70.

Human Evaluation

Human judges rated CETP higher in coherence, fluency, and relevance. Feedback indicated that CETP produced reviews that felt more logical and less repetitive compared to baseline models.

Conclusion

The CETP model demonstrates that structured text planning using Knowledge Graph subgraphs is an effective strategy for improving both the informativeness and coherence of automated reviews. By anchoring sentences in pre-existing semantic relations, the model avoids common pitfalls of generic or disjointed text generation. Future work will explore expanding the model's linguistic variety by incorporating broader external knowledge sources like WordNet.

Summary updated

BibTeX
@inproceedings{li2021knowledge,
  author = {Junyi Li and Wayne Xin Zhao and Zhicheng Wei and Nicholas Jing Yuan and Ji-Rong Wen},
  title = {{Knowledge-based Review Generation by Coherence Enhanced Text Planning}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2021},
  doi = {10.1145/3404835.3462865},
}
Figure