Unsupervised Deep Keyphrase Generation

Xianjie Shen, Yinghan Wang, Rui Meng, Jingbo Shang

Introduction

Keyphrase generation is the task of summarizing a document into a few salient phrases. These phrases fall into two categories: present (appearing exactly in the text) and absent (conceptually relevant but not appearing verbatim).

The field currently faces a "supervision bottleneck." State-of-the-art generative models (like Seq2Seq) are excellent at creating absent keyphrases but require hundreds of thousands of human-annotated document-keyphrase pairs to train. Conversely, unsupervised methods (like TextRank or TF-IDF) require no labels but are strictly extractive—they can only "point" to phrases already in the text, missing the ~50% of keyphrases that are typically absent in scientific literature. AutoKeyGen aims to provide the best of both worlds: the abstractive power of deep learning without the need for expensive labeled data.

Methodology

The authors propose a three-stage pipeline to move from raw text to a trained generative model, as illustrated in Figure 1.

The AutoKeyGen pipeline, showing the model building stage with phrase bank construction and the inference stage using a Seq2Seq model.
  1. Phrase Bank Construction & Partial Matching: The authors observe that an "absent" keyphrase in one document is almost always a "present" keyphrase in another. They pool all noun phrases from a large corpus into a "phrase bank." To find candidates for a specific document, they use a partial matching algorithm: if every word in a phrase from the bank appears somewhere in the current document (even if scattered), that phrase becomes a candidate.
  2. Fused Ranking (Silver Labeling): To identify the best candidates, they combine two scores using a geometric mean:
  3. Lexical (TF-IDF): Measures how unique and frequent the phrase is.
  4. Semantic (Doc2Vec): Measures the cosine similarity between the document's embedding and the phrase's embedding. The top-ranked candidates are treated as "silver labels"—noisy but useful ground truth.

  5. Generative Bootstrapping: They train a standard Seq2Seq model (BiLSTM-LSTM) using these silver labels. To ensure the model doesn't hallucinate too wildly, they use Tailored Generative Decoding, a biased beam search that encourages the model to prefer words found in the input document.

Experimental Setup

The models were trained on the KP20k dataset (raw documents only) and evaluated across five standard scientific publication benchmarks: KP20k, Inspec (short abstracts), Krapivin (full scientific papers), NUS (research papers with multiple author-assigned keywords), and SemEval-2010.

Results and Discussion

AutoKeyGen consistently outperformed all unsupervised baselines (TF-IDF, TextRank, SingleRank, EmbedRank) across all datasets. For example, on KP20k, it achieved an F1@5 of 23.4, compared to TextRank’s 18.1. Detailed results are shown in Table 1.

Comparison of AutoKeyGen against unsupervised and supervised baselines across five datasets.

Key Insights

  • Absent phrases aren't "new": The core insight is that 99% of absent keyphrases in a dataset like Inspec actually appear as present phrases in other documents. This justifies the "Phrase Bank" approach.
  • The "Silver Label" Advantage: Even though the initial ranking isn't perfect, training a neural network on these top-ranked candidates allows the model to learn the underlying patterns of "what makes a good keyphrase," eventually allowing it to generalize and suggest phrases that weren't even in the initial candidate list.
  • Lexical + Semantic Fusion: The authors found that TF-IDF is more robust for long documents, while embeddings (Doc2Vec) work better for short ones. Combining them via a geometric mean (RankScore) provides a more stable signal across different document lengths.

Predicting the "Unpredictable"

While most unsupervised methods have a 0.0 recall for absent keyphrases, AutoKeyGen achieved significant recall (e.g., 3.3 R@10 on Krapivin), demonstrating a genuine abstractive capability. Interestingly, on the Inspec dataset, the unsupervised AutoKeyGen actually outperformed the Supervised-CopyRNN (trained on 500k labeled pairs), likely because the phrase bank provided a better prior for the specific domain.

Conclusion

AutoKeyGen demonstrates that deep generative models can be trained effectively without human labels by leveraging corpus-wide statistics and silver labeling. While the quality of the phrase bank depends on the initial noun phrase extractor and the silver labels contain some noise, the framework bridges the gap between extractive and abstractive keyphrase generation. Future work could involve leveraging document structure (like titles and section headers) to further improve performance.

Summary updated

BibTeX
@inproceedings{shen2022unsupervised,
  author = {Xianjie Shen and Yinghan Wang and Rui Meng and Jingbo Shang},
  title = {{Unsupervised Deep Keyphrase Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i10.21381},
}
Figure