Introduction
In Natural Language Generation (NLG), sentence planning is the critical bridge between high-level communicative goals ("what to say") and the final linguistic realization ("how to say it"). Traditionally, this stage relied on extensive, hand-crafted rule sets that were difficult to maintain, scale, and adapt to new domains. SPoT (Sentence Planner, Trainable) introduces a "generate-and-rank" framework that leverages machine learning to automate this process, producing high-quality output based on human preferences.
The SPoT Architecture
The SPoT system replaces monolithic rule bases with a two-phase pipeline designed for flexibility and scalability:
- Sentence-Plan-Generator (SPG): A randomized generator that produces a diverse set of candidate sentence plans (sp-trees). Instead of aiming for a single perfect output, it generates 12–20 variations using eight basic operations, such as
MERGE,CONJUNCTION, andRELATIVE-CLAUSE, to combine elementary speech acts. - Sentence-Plan-Ranker (SPR): The "brain" of the system, which uses the RankBoost algorithm to evaluate the candidates and select the optimal plan for final realization.
Structural Feature Engineering
A key innovation of SPoT is its use of structural features derived from sentence plan trees (sp-trees) and their associated Deep Syntactic Structures (DSyntS). The system extracts over 3,000 features, including tree traversals, sibling relationships, and ancestor-descendant paths.
By analyzing these structures, the ranker learns stylistic nuances that are difficult to encode manually. For example, the model learned that excessive pronoun usage within a single sentence (captured by the DSYNT-TRAVERSAL-PRONOUN feature) significantly reduces quality, while starting a turn with an implicit confirmation is highly favored.
Experimental Results
The system was trained and evaluated using a corpus from the AT&T Communicator travel dialog system, involving 1,868 sentence plans rated by human experts on a scale of 1 to 5.
- Near-Human Performance: SPoT’s top-ranked sentences achieved an average rating of 4.56/5, coming within 5% of the "best possible" human-selected plans (4.82/5).
- Comparison to Baselines: It significantly outperformed a random selection baseline (2.76/5) and proved statistically indistinguishable from highly optimized, hand-tuned production templates in follow-up user studies.
- Efficiency: Training the SPR required only three person-days of human labeling, a fraction of the months of engineering typically required to tune traditional rule-based systems.
Conclusion
SPoT demonstrates that a trainable "generate-and-rank" approach is a viable and efficient alternative to hand-crafted sentence planners. By learning directly from human judgments of structural features, SPoT achieves near-human performance while significantly reducing the engineering overhead associated with natural language generation. Future work aims to expand the system's contextual awareness by incorporating discourse features from previous dialog turns.
Summary updated