PromptRank: Unsupervised Keyphrase Extraction Using Prompt

Aobo Kong, Shiwan Zhao, Hao Chen, Qicheng Li, Yong Qin, Ruiqi Sun, Xiaoyan Bai

Abstract

Keyphrase extraction is essential for document summarization but often suffers from domain-specific limitations in supervised settings and "length discrepancy" issues in unsupervised embedding-based methods. We present PromptRank, a novel unsupervised approach that reframes keyphrase extraction as a text generation task. By utilizing a pre-trained encoder-decoder model (e.g., T5) to calculate the likelihood of a candidate phrase completing a descriptive prompt, PromptRank achieves a substantial performance leap—improving F1 scores by up to 34% over state-of-the-art methods without any fine-tuning.

Introduction

Identifying the most salient phrases in a document is a core task in natural language processing. While supervised models are effective, they are data-hungry and generalize poorly across domains. Unsupervised methods offer more flexibility but struggle with the "length discrepancy" problem: comparing a high-dimensional vector of a long document to a short candidate phrase often leads to inaccurate semantic matching. Existing solutions involving document masking or fine-tuning introduce significant computational overhead and limit the use of powerful, off-the-shelf language models.

Methodology: The PromptRank Framework

PromptRank addresses the length discrepancy by using a "prompt" as a bridge between the document and the candidate. The framework consists of four primary stages:

  1. Candidate Generation: Potential keyphrases (typically noun phrases) are identified using standard Part-of-Speech (POS) tagging.
  2. Probability Calculation: The document is processed by the encoder of a Pre-trained Language Model (PLM). The decoder is then provided with a prompt template, such as "This book mainly talks about [Candidate]." The model calculates the log-probability of generating the specific candidate phrase to complete the prompt.
  3. Position Penalty: To account for the tendency of keyphrases to appear early in documents, a dynamic position penalty is applied. This penalty is adjusted based on document length to ensure sensitivity across different scales.
  4. Ranking: Candidates are ranked based on the product of their generation probability and the position penalty.
The architecture of PromptRank, illustrating the flow from document encoding to candidate ranking via prompt-based probability calculation.

Experimental Setup

The method was evaluated across six benchmark datasets representing diverse domains and document lengths, ranging from short scientific abstracts (Inspec, SemEval) to long-form scientific papers (NUS, Krapivin) and news articles (DUC2001). This variety allowed for a robust assessment of PromptRank's ability to handle varying document scales.

Results and Discussion

PromptRank demonstrates superior performance compared to traditional unsupervised methods like TextRank and recent embedding-based state-of-the-art (SOTA) models like MDERank.

Performance comparison of PromptRank against baseline methods across multiple datasets and K values.

Key findings include:

  • Significant Performance Gains: PromptRank achieved a relative improvement in F1@5 of 34.18% over the previous SOTA.
  • Robustness to Length: Unlike previous methods that degrade as document length increases, PromptRank maintains high accuracy across both abstracts and full-length papers.
  • Zero-Shot Capability: The method requires no training or fine-tuning, leveraging the inherent knowledge within off-the-shelf PLMs like T5 or BART.
  • Template Sensitivity: The choice of prompt words (e.g., using "Book" instead of "Text") significantly impacts performance, suggesting that the model relies on semantic associations learned during pre-training.

Conclusion

PromptRank offers a powerful, easy-to-deploy solution for unsupervised keyphrase extraction. By reframing the problem as a prompt-based generation task, it effectively bypasses the limitations of vector-space similarity. Future research will focus on automated prompt discovery and scaling the approach to larger language models to further enhance extraction precision.

Summary updated

BibTeX
@inproceedings{kong2023promptrank,
  author = {Aobo Kong and Shiwan Zhao and Hao Chen and Qicheng Li and Yong Qin and Ruiqi Sun and Xiaoyan Bai},
  title = {{PromptRank: Unsupervised Keyphrase Extraction Using Prompt}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.545},
}
Figure