Is ChatGPT A Good Keyphrase Generator? A Preliminary Study

Mingyang Song, Haiyun Jiang, Shuming Shi, Liping Jing · DOI

TL;DR

This paper presents a preliminary study evaluating ChatGPT's effectiveness as an automatic keyphrase generator. The authors found that ChatGPT shows significant promise, performing well across various prompts and datasets, though it struggles with generating "absent" keyphrases. This work highlights the potential of large language models for this task and suggests avenues for further improvement.

What Problem Does This Paper Address?

Automatic keyphrase extraction is a crucial task in natural language processing, helping to summarize documents and improve information retrieval. While traditional methods have made progress, the emergence of powerful large language models (LLMs) like ChatGPT has opened new possibilities. This paper investigates whether ChatGPT, a general-purpose conversational AI, can effectively perform the specialized task of keyphrase generation, and how its performance compares to existing state-of-the-art models. The authors aim to understand its strengths and weaknesses in this domain, particularly concerning the choice of prompts and the diversity of generated keyphrases.

Methods

The researchers conducted a preliminary evaluation of ChatGPT for keyphrase generation. Their approach involved:

  • Prompt Engineering: They started with a prompt suggested by OpenAI for keyphrase extraction and expanded it into six distinct candidate prompts (TP1-TP6). These prompts varied in their instructions, such as "extract" vs. "generate" and "keywords" vs. "keyphrases," to probe ChatGPT's understanding and capabilities.
  • Performance Evaluation: ChatGPT's performance was assessed across six benchmark datasets. The evaluation focused on two main aspects:
  • Keyphrase Generation Prompts: Analyzing how different prompts influenced the quality and characteristics of the generated keyphrases.
  • Keyphrase Generation Diversity: Measuring the variety and uniqueness of the generated keyphrases, looking at the number of unique present and absent keyphrases, and the duplication ratio.
  • Comparison with Baselines: ChatGPT's results were compared against several established keyphrase generation models, including RNN-based, Transformer-based, and PLM-based approaches.

Datasets

The study utilized the following six benchmark datasets for evaluation:

  • KP20K
  • INSPEC
  • NUS
  • KRAPIVIN
  • SEMEVAL2010
  • OPENKP (used for real-world scenario testing)

These datasets are standard in the keyphrase extraction research community. The paper notes that all baselines were trained on the KP20K training set, and the evaluation was performed on the test sets of these datasets.

Key Insights and Ideas

  • ChatGPT's Strong Potential: The study reveals that ChatGPT demonstrates a strong capability for keyphrase generation, performing exceptionally well across various prompts and datasets. This suggests LLMs are a promising direction for this task.
  • Prompt Sensitivity: The choice of prompts significantly impacts ChatGPT's output. The researchers observed that prompts using "generate" tended to produce more absent keyphrases than those using "extract," indicating ChatGPT can differentiate between present and absent keyphrases.
  • Struggles with Absent Keyphrases: A notable challenge identified is ChatGPT's difficulty in generating "absent" keyphrases (those not explicitly present in the text but relevant). While it can distinguish them, its performance in generating them is less robust.
  • Impressive Diversity: ChatGPT generates a significantly higher number of unique keyphrases and exhibits a lower duplication ratio compared to baseline models, indicating good diversity in its outputs without extensive hyper-parameter tuning.
  • Understanding of Terminology: ChatGPT appears to have a good grasp of the distinction between "keyword" and "keyphrase," as well as "extract" and "generate."

Key Results

  • Overall Performance: ChatGPT generally performs very well, with minor performance differences observed across datasets. The paper highlights that ChatGPT's results are competitive, especially considering its zero-shot nature compared to many supervised baselines.
  • Absent Keyphrase Generation: While ChatGPT can generate absent keyphrases, its performance in this area is weaker. The study found that explicitly asking for present and absent keyphrases significantly increased the number of generated absent keyphrases, but the quality was still a concern.
  • Diversity Metrics: Table 4 shows that ChatGPT achieves a higher number of unique present and absent keyphrases and a lower duplication ratio compared to several advanced baselines, demonstrating its ability to produce diverse outputs.

Limitations and Future Work

The authors acknowledge several limitations:

  • Prompt Optimization: The prompts used were improvements on OpenAI's suggestion but not necessarily optimal. Designing more sophisticated prompts is crucial for fully exploiting ChatGPT's potential.
  • Hyper-Parameter Settings: The study did not delve into setting specific hyper-parameters for ChatGPT, as users in realistic scenarios typically don't. Future work could explore how hyper-parameter tuning affects performance.
  • Few-Shot Prompting: The research did not explore few-shot prompting techniques, which could potentially enhance ChatGPT's performance by providing examples within the prompt.
  • Supervised Fine-Tuning: ChatGPT was used in a zero-shot setting. Fine-tuning it on supervised data could lead to even better results, potentially surpassing existing supervised methods.
  • Evaluation Metrics: The reliance on exact-match F1 scores might penalize semantically similar but not identical keyphrases. The authors suggest that semantic-based evaluation metrics or human evaluation could provide more nuanced insights.

Future work could focus on developing more effective prompts, exploring few-shot learning and fine-tuning strategies, and employing more sophisticated evaluation metrics to better assess ChatGPT's capabilities in keyphrase generation.

Summary updated

BibTeX
@misc{song2023is,
  author = {Mingyang Song and Haiyun Jiang and Shuming Shi and Liping Jing},
  title = {{Is ChatGPT A Good Keyphrase Generator? A Preliminary Study}},
  year = {2023},
  eprint = {2303.13001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13001},
}
Figure