Introduction
Keyphrase generation is a fundamental task in Natural Language Processing (NLP) aimed at identifying the most salient topics within a document. These phrases are typically categorized into two types: present keyphrases, which appear verbatim in the source text, and absent keyphrases, which capture the document's essence but do not appear in the text itself.
Traditional approaches, such as the widely used CopyRNN, attempt to generate both types simultaneously using a single sequence-to-sequence (Seq2Seq) framework equipped with a copy mechanism. However, this unified approach is often suboptimal. Searching a massive vocabulary (e.g., 50,000 words) to identify a phrase already present in a short abstract is computationally inefficient. Furthermore, because training data is often dominated by present keyphrases, models can become biased toward simple replication, hindering their ability to generate creative and relevant absent keyphrases.
The SGG Framework
To address these limitations, we propose the Select-Guide-Generate (SGG) framework. SGG is a hierarchical neural network that treats extraction and abstraction as distinct but synergistic tasks. The architecture is divided into three primary layers:
- The Selector (Low Layer): Dedicated exclusively to present keyphrases, the Selector uses a pointing mechanism to extract word sequences directly from the source text. This significantly reduces the search space and improves extraction accuracy.
- The Guider (Middle Layer): Acting as the system's memory, the Guider aggregates attention distributions from the Selector into a static vector. This vector informs the subsequent layer about which parts of the text have already been identified as important.
- The Generator (High Layer): This module focuses on absent keyphrases. By utilizing the information provided by the Guider, the Generator can effectively decide whether to focus on new vocabulary or refine its attention on the source text.
The entire system is trained using a multi-task learning objective, minimizing the joint loss for both present and absent keyphrase prediction.
Experimental Evaluation
SGG was evaluated against strong baselines, including CopyRNN, CorrRNN, and CatSeq, across four standard scientific datasets: Inspec, Krapivin, NUS, and SemEval-2010. The training set consisted of approximately 450,000 scientific abstracts and titles.
Results indicate that SGG consistently outperforms existing models:
- Present Keyphrases: On the Inspec dataset, SGG achieved an F1@5 of 30.6, compared to 27.8 for CopyRNN.
- Absent Keyphrases: The model showed significant gains in creative generation, reaching a Recall@50 of 23.5 on the Krapivin dataset (vs. 20.2 for CopyRNN).
- Extensibility: When applied to title generation, SGG outperformed Transformer-based models and Pointer-Generator networks in both ROUGE scores and human evaluations for fluency.
Key Insights: The Role of the Guider
A critical finding of this research is the adaptive nature of the Guider module. Its behavior shifts based on the specific generation task, demonstrating a sophisticated "separation of concerns."
As shown in the attention visualizations, in keyphrase generation, the Guider helps the generator avoid words already identified by the Selector, as present and absent phrases rarely overlap. Conversely, in title generation, the Guider encourages the inclusion of those same keyphrases, as they are vital for constructing a representative title. This hierarchical structure allows the model to capture the complex one-to-many relationship between a document and its descriptors more effectively than flat sequence models.
Conclusion
The SGG framework represents a significant advancement in keyphrase generation by decoupling the processes of selection and generation. While the model currently relies heavily on the Selector's initial accuracy and is sensitive to phrase ordering, its superior performance across benchmarks and tasks highlights the power of hierarchical guidance in NLP. Future work will explore making the model less sensitive to phrase order and testing its generalizability on non-scientific corpora such as news and social media.
Summary updated