NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Response Generation in Dialogue Using a Tailored PCFG Parser

Caixia Yuan, Xiaojie Wang, Qianhui He

Abstract

This paper introduces a data-driven Natural Language Generation (NLG) framework that bridges the gap between structured meaning representations (MR) and natural language through a "tailored" Probabilistic Context-Free Grammar (PCFG). By augmenting standard syntactic trees with domain-specific conceptual nodes, the model learns to generate responses that are both grammatically fluent and semantically precise. Experimental results on a Chinese spoken dialogue dataset demonstrate that this approach significantly outperforms traditional Markov-based models, achieving higher BLEU scores and human evaluation ratings without requiring manual syntax engineering for new domains.

Introduction

In spoken dialogue systems, the Natural Language Generation (NLG) component is tasked with converting internal logic, or Meaning Representations (MR), into human-readable sentences. Traditional approaches often struggle with a trade-off between grammaticality and portability. Hand-crafted grammars are expensive and domain-specific, while statistical models can produce "word salad"—sentences that are semantically relevant but syntactically broken (e.g., repetitive phrases like "on Saturday on Saturday"). This research addresses these challenges by leveraging syntactic parsers to guide the generation process, ensuring output follows linguistic rules while remaining adaptable to various domains.

Methodology

The proposed framework centers on a Tailored PCFG Parser. Unlike standard generation models that treat the task as a direct mapping, this approach frames generation as a reverse parsing problem.

  1. Hybrid Tree Construction: The system constructs "hybrid" parse trees by taking standard syntactic trees (e.g., containing NP, VP nodes) and injecting conceptual nodes (e.g., PERSON, VAL1) derived from the MR. This "tailoring" process allows the grammar to associate specific data fields with their appropriate linguistic contexts.
  2. Unsupervised Alignment: An Expectation-Maximization (EM) based model is used to align words in a sentence with fields in the MR, learning correspondences (e.g., the number "100" mapping to a value field) without manual labeling.
  3. Grammar Induction and Decoding: PCFG rewrite rules are extracted from these hybrid trees. To generate a sentence, a $k$-best decoder with cube pruning searches for the most probable tree satisfying the target MR. A bigram language model is then used to rerank candidates for maximum fluency.
Comparison of a standard syntactic parse tree (a) and a tailored hybrid tree (b) incorporating conceptual nodes like PERSON and VAL.

Experimental Setup

The model was evaluated using a Chinese Spoken Dialogue System dataset focused on meeting room bookings. The dataset consists of 1,406 formal MRs paired with natural language expressions written by native speakers. The data was split into 1,000 training and 406 testing records, with an average sentence length of 15.7 words.

Results

The tailored PCFG model showed substantial improvements over the baseline Konstas and Lapata model. Quantitatively, the $k$-best version of the proposed model achieved a BLEU score of 31.96, significantly higher than the baseline's 21.85. Even the basic 1-best version outperformed the baseline significantly (30.88 vs. 9.32).

Human evaluations further validated these results. On a 5-point scale, the model received scores of 4.34 for Grammatical Fluency (SF) and 4.33 for Semantic Correctness (SC), approaching the gold-standard human scores of 4.76 and 4.89. Qualitative analysis shows that the tailored PCFG avoids the repetitive errors common in Markov-based baselines.

Qualitative comparison of generated responses between the proposed model and the Konstas baseline, showing improved fluency and reduced redundancy.

Conclusion

By integrating NLU-style syntactic parsing into the generation pipeline, the tailored PCFG framework produces highly grammatical and semantically accurate dialogue responses. The system's syntax-agnostic training makes it highly portable across domains. Future work will focus on addressing long-range dependencies and improving decoding efficiency to further refine the naturalness of generated text.

Summary updated

BibTeX
@inproceedings{yuan2015response,
  author = {Caixia Yuan and Xiaojie Wang and Qianhui He},
  title = {{Response Generation in Dialogue Using a Tailored PCFG Parser}},
  booktitle = {Enlg},
  year = {2015},
  doi = {10.18653/v1/w15-4713},
}
Figure