Neural Keyphrase Generation: Analysis and Evaluation

Tuhin Kundu, Jishnu Ray Chowdhury, Cornelia CarageaarXiv 2023 · DOI

Introduction

Neural models have become the standard for keyphrase generation, yet their internal biases and evaluation metrics remain under-scrutinized. This research investigates the calibration and positional robustness of popular architectures and introduces SoftKeyScore, a metric designed to better align with human perception by rewarding semantic similarity over rigid exact matching.

The study addresses three critical gaps in current research:

  1. Calibration: Determining if a model's confidence scores accurately reflect its likelihood of being correct.
  2. Positional Bias: Assessing whether models rely too heavily on introductory sections versus content appearing later in a document.
  3. The $F_1$ Trap: Overcoming the limitations of standard exact-match metrics that penalize semantically correct but lexically different predictions.

Methodology

The researchers evaluated three distinct architectures: T5 (a pre-trained Transformer), ExHiRD (a specialized RNN with hierarchical decoding), and CatSeq-Transformer (a standard Transformer trained from scratch).

To analyze these models, they developed Keyphrase Perplexity (KPP) to measure phrase-level confidence. Most importantly, they proposed SoftKeyScore. Unlike the binary $F_1$ score, SoftKeyScore uses similarity functions—such as KMR (edit distance) or BERTScore (contextual embeddings)—to calculate a "soft" match between predicted and gold-standard phrases.

Examples of predicted keyphrases compared to gold standards, illustrating how SoftKeyScore captures semantic relevance that standard $F_1$ misses.

Key Insights: Calibration and Positional Bias

A significant finding is the discrepancy in model calibration. While T5 is a high-performer, it is an "overconfident" student, assigning much higher probabilities to its predictions than its actual accuracy justifies. In contrast, the RNN-based ExHiRD is much better calibrated, meaning its confidence scores are a reliable indicator of truth.

Calibration curves comparing ExHiRD and T5 across four datasets. T5 shows significant overconfidence, while ExHiRD's accuracy more closely tracks its confidence levels.

Regarding positional bias, RNNs like ExHiRD show a sharp performance drop for keyphrases appearing later in a document. Transformers prove significantly more robust to positional variance, likely due to their non-local attention mechanisms that allow them to process information globally.

Results and Human Alignment

The empirical results highlight the limitations of standard metrics and the strengths of specialized architectures:

  • Calibration Error: ExHiRD achieved the lowest Expected Calibration Error (ECE) across all datasets (e.g., 13.32 on KP20k vs. T5's 36.97).
  • Human Alignment: In a correlation study, SoftKeyScore (using KMR) showed a higher Pearson correlation with human judgment (0.4033) than the standard $F_1$ metric (0.3664).
  • Performance: While T5 leads in raw $F_1$ for present keyphrases, the gap narrows when using SoftKeyScore, suggesting that ExHiRD produces semantically relevant results that $F_1$ unfairly misses.

Conclusion

This analysis reveals that pre-trained models, while powerful, may suffer from poor calibration and that standard evaluation metrics often underestimate model quality. Future research will focus on refining SoftKeyScore to better handle redundancy and developing models specifically designed to capture keyphrases in long-form documents.

Summary updated

BibTeX
@misc{kundu2023neural,
  author = {Tuhin Kundu and Jishnu Ray Chowdhury and Cornelia Caragea},
  title = {{Neural Keyphrase Generation: Analysis and Evaluation}},
  year = {2023},
  eprint = {2304.13883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.13883},
}
Figure