TL;DR
Researchers at Alibaba have developed GGP (Graph-based Grouping Planner), a framework that brings order to long-form text generation by first organizing key phrases into a structured "plan." By combining sequential encoding with global knowledge from Graph Attention Networks, GGP ensures that AI-generated product descriptions and stories are both logical and comprehensive, significantly outperforming existing end-to-end models.
What Problem Does This Paper Address?
While modern AI models are excellent at generating fluent short snippets of text, they often stumble when tasked with long-form content like advertising scripts or stories. Two major issues persist:
- Lack of Logic: Models may lose the "thread," repeating themselves or presenting information in a nonsensical order.
- Controllability: It is difficult to ensure the model includes all specific "must-have" details (like product features) without hallucinating or skipping them.
Existing "plan-then-generate" methods usually just reorder a list of keywords. However, these methods often ignore how keywords should be grouped into sentences and fail to leverage "global" patterns—how certain concepts are typically linked across thousands of other similar documents.
Methods
The authors propose a three-stage pipeline: Encoding, Planning, and Generation.
- Hierarchical Sequential Encoding: The model first looks at the input key phrases. It uses a Transformer-based encoder to understand the internal meaning of each phrase and then another layer to understand how these phrases relate to one another within the specific instance.
- Graph Encoding (The "Global" View): This is the core innovation. The authors build a probability transition graph based on the entire dataset. If "pure cotton" and "breathable" often appear together in the training data, the graph captures that relationship. A Graph Attention Network (GAT) then encodes the input phrases using this global context.
- Grouping Copynet: Instead of just sorting phrases, this decoder "groups" them. It decides which phrases belong in the first sentence, which belong in the second, and so on. It uses a copy mechanism to ensure every input phrase is accounted for.
- Generation: Finally, a pre-trained language model (BART) takes this structured plan and "fleshes it out" into natural, flowing human language.
Datasets
The model was evaluated on three long-text generation benchmarks:
- Advertising Text Generation (ATG): 119,000 pairs of Chinese advertising texts.
- Now You’re Cooking (Cooking): A recipe dataset where the model must turn a list of ingredients into instructions (average length: 102 tokens).
- Tao Describe (TaoDesc): A massive dataset of 2.1 million product descriptions from Alibaba's e-commerce platform.
Key Insights and Ideas
- Knowing "How" to Say vs. "What" to Say: By separating the planning (grouping and ordering) from the realization (writing the sentences), the model avoids the "lost in the middle" problem common in long-text generation.
- Global Knowledge Matters: Most planners only look at the current input. By using a Graph Attention Network trained on the whole corpus, GGP "knows" that certain attributes (like "waist type" and "edition type") logically belong together because it has seen that pattern thousands of times before.
- Sentence-Level Granularity: The "Grouping" aspect is vital. By forcing the model to decide which phrases form a sentence, the resulting text has a much more natural rhythmic structure compared to models that just output a stream of words.
Key Results
The GGP model (combined with BART) outperformed all baselines, including specialized models like PHVM and DualEnc, across all three datasets.
- Planning Accuracy: On the ATG dataset, GGP achieved a PLAN BLEU-4 (PB-4) of 20.8, a significant jump over the standard BART baseline (17.5) and the previous state-of-the-art PHVM (13.8).
- Text Quality: In the TaoDesc dataset, GGP reached a BLEU-4 of 16.8, outperforming the next best baseline (BART at 14.6) by a wide margin.
- Ablation Success: Removing the graph networks or the grouping copynet led to a measurable drop in performance, proving that both the "global" graph knowledge and the "grouping" mechanism are essential for high-quality plans.
Limitations and Future Work
While GGP is highly effective, the authors note a few areas for growth:
- Pre-extracted Phrases: The current model relies on key phrases being extracted beforehand (using a separate sequence labeling model). Integrating the extraction and planning more tightly could improve efficiency.
- External Knowledge: The authors suggest that instead of just building a graph from the text corpus, future versions could incorporate formal Knowledge Graphs to provide even deeper semantic control.
- Real-world Application: The researchers are already applying this to "AliMe Avatar," an AI-powered virtual broadcaster for live-streaming e-commerce, suggesting the model is robust enough for industrial-scale use.
Summary updated