Abstract
This paper introduces a general four-step algorithm for semantic aggregation in Natural Language Generation (NLG). By grouping related data points at the content planning stage rather than the syntactic level, the PLANDoc system generates technical reports that are significantly more concise and readable than traditional template-based outputs. We describe the bottom-up aggregation process, which utilizes a similarity heuristic to optimize message grouping and avoid repetitive sentence structures.
Introduction
In the field of Natural Language Generation (NLG), systems often struggle with "stuttering"—the production of repetitive, nearly identical sentences when reporting multiple similar data points. This redundancy makes technical reports difficult for humans to parse efficiently. The challenge lies in aggregation: determining which pieces of information belong together in a single sentence without creating overly complex or ambiguous structures. This paper presents a solution implemented in PLANDoc, a system designed to document the actions of telephone planning engineers.
The Problem of Repetitive Output
Standard NLG systems often output atomic events as individual sentences. For example, reporting four equipment activations might result in four separate sentences with identical subjects and verbs. This is repetitive and difficult for readers to process quickly.
As shown in Figure 2, the unaggregated output is verbose. The goal of aggregation is to transform this list of atomic events into a fluid narrative. The PLANDoc system processes data through a multi-stage pipeline, where aggregation occurs within the Content Planner stage, operating on semantic concepts before they are converted into surface text.
The Four-Step Aggregation Algorithm
The core contribution is a bottom-up algorithm consisting of four primary steps:
- Sorting: Messages sharing the same "action" (e.g., activation) are grouped. Attributes such as site, equipment type, or date are ranked using a similarity score: $m - d$, where $m$ is the number of messages and $d$ is the number of distinct values. Messages are then sorted to ensure those sharing the most common attributes are adjacent.
- Merging Same Attribute: The system traverses the sorted list and merges adjacent messages that differ by only one attribute into a single message with a conjoined attribute (e.g., "Site A and Site B").
- Identity Deletion: Redundant components across merged messages, such as subjects and verbs, are marked for deletion to prevent repetition in the final output.
- Sentence Breaking: To maintain readability, a heuristic determines when to end a sentence. Messages are kept together as long as they share the same distinct attribute type, preventing the creation of confusing "run-on" sentences.
Results and Discussion
The implementation of this algorithm results in a qualitative improvement in text quality. Instead of four repetitive sentences, the system produces fluid, coordinated narratives:
- Before: "This refinement activated ALL-DLC for CSA 3134... This refinement activated DLC for CSA 3130..."
- After: "This refinement activated DLC for CSAs 3122 and 3130 in the first quarter of 1994 and ALL-DLC for CSA 3134 in 1994 Q3. It also activated DSS-DLC for CSA 3208 in 1994 Q3."
The algorithm maintains domain independence, suggesting its logic could be applied to other fields like medical or financial reporting. By prioritizing attributes that appear most frequently, the system ensures the maximum amount of text is "saved" through coordination.
Conclusion
By performing aggregation at the semantic level using a mathematical similarity heuristic, PLANDoc achieves significant gains in conciseness and readability. Future work includes expanding the system to handle diverse actions within single sentences and incorporating more sophisticated linguistic markers like "respectively" to further enhance clarity.
Summary updated