Introduction
Keyphrase prediction is a fundamental task in natural language processing aimed at identifying phrases that encapsulate the core topics of a document. These phrases are typically categorized into two types: present keyphrases, which appear verbatim in the source text, and absent keyphrases, which are semantically relevant but do not appear in the text.
Traditional generative sequence-to-sequence models often attempt to handle both tasks simultaneously using a copy mechanism. However, this "one-size-fits-all" approach frequently leads to sub-optimal performance. Generative models may struggle to maintain the structural dependencies of the original text, sacrificing accuracy on the relatively straightforward extraction task to accommodate the more complex generation task.
Methodology: A Joint Inference Framework
To address these limitations, this research proposes a "divide and conquer" strategy that decouples keyphrase prediction into two specialized subtasks: Present Keyphrase Extraction (PKE) and Absent Keyphrase Generation (AKG). Both modules leverage a shared pre-trained BERT backbone to capture deep contextual representations.
Present Keyphrase Extraction (PKE)
The PKE module treats extraction as a sequence labeling problem. It incorporates a Sentence Filter to identify the top-K sentences most likely to contain keyphrases, effectively reducing noise from irrelevant text. These selected sentences are then processed by a Bi-LSTM CRF architecture, which captures dependencies between words to ensure structural consistency in the extracted phrases.
Absent Keyphrase Generation (AKG)
The AKG module utilizes a Transformer-based encoder-decoder architecture enhanced by a Gated Fusion Attention mechanism. This mechanism integrates high-level representations from the BERT model—fine-tuned during the extraction task—into the Transformer's encoding process. By keeping BERT parameters fixed during AKG training, the model retains the linguistic knowledge gained from the extraction phase without suffering from catastrophic forgetting.
Experimental Results
The framework was evaluated on three benchmark datasets: KP20k (large-scale training), Krapivin, and NUS (zero-shot testing).
Extraction Performance
The BERT-PKE model demonstrated significant improvements over existing extractive and generative baselines. As shown in the table below, it achieved state-of-the-art $F_1$ scores across all datasets.
On the KP20k dataset, BERT-PKE reached an $F_1@5$ of 0.437, outperforming the previous best model, KG-KE-KR (0.395).
Generation Performance
For absent keyphrases, the BERT-AKG model also outperformed strong baselines. On KP20k, it achieved a Recall@50 of 0.282, compared to 0.262 for a vanilla Transformer and 0.222 for CopyRNN. These results highlight the benefit of using extraction-informed representations for generation.
Conclusion and Future Work
The proposed joint framework demonstrates that splitting keyphrase prediction into specialized extraction and generation tasks yields superior results. The use of a sentence filter to mitigate noise and a gated fusion mechanism to share knowledge between tasks are key drivers of this performance.
Future work may address current limitations, such as the 512-token input limit of BERT, by exploring architectures like Longformer or BigBird to better handle long-form academic documents. Additionally, the computational overhead of the joint architecture remains a consideration for real-time applications.
Summary updated