[Paper Review] One Size Does Not Fit All: Generating and Evaluating Variable Number of Keyphrases
This paper proposes a sequence-to-sequence model for keyphrase generation that dynamically controls the number of keyphrases and enhances diversity through a target encoder and orthogonal regularization. It introduces new evaluation metrics—F₁@𝒪 and F₁@ℳ—tailored for variable-length outputs, and presents StackEx, a new dataset from Stack Overflow, showing superior performance over baselines on multiple benchmarks including KP20k and SemEval.
Different texts shall by nature correspond to different number of keyphrases. This desideratum is largely missing from existing neural keyphrase generation models. In this study, we address this problem from both modeling and evaluation perspectives. We first propose a recurrent generative model that generates multiple keyphrases as delimiter-separated sequences. Generation diversity is further enhanced with two novel techniques by manipulating decoder hidden states. In contrast to previous approaches, our model is capable of generating diverse keyphrases and controlling number of outputs. We further propose two evaluation metrics tailored towards the variable-number generation. We also introduce a new dataset StackEx that expands beyond the only existing genre (i.e., academic writing) in keyphrase generation tasks. With both previous and new evaluation metrics, our model outperforms strong baselines on all datasets.
Motivation & Objective
- Address the lack of dynamic keyphrase count control in existing neural keyphrase generation models.
- Improve generation diversity by manipulating decoder hidden states through a target encoder and orthogonal regularization.
- Propose new evaluation metrics (F₁@𝒪 and F₁@ℳ) that account for variable-number keyphrase outputs instead of fixed k.
- Introduce StackEx, a new keyphrase generation dataset from the Stack Overflow community, expanding beyond academic text.
- Demonstrate that beam search with fixed k is suboptimal due to normalization issues, and show greedy search can outperform it in variable-length settings.
Proposed method
- Use a recurrent sequence-to-sequence model that generates multiple keyphrases as delimiter-separated sequences.
- Introduce a target encoder to model phrase-level representations and improve diversity in decoder hidden states.
- Apply orthogonal regularization to the decoder’s hidden state transitions to encourage diversity and prevent collapse.
- Adopt a self-terminating decoding strategy that allows dynamic output length without predefining k.
- Design two new evaluation metrics: F₁@𝒪 (oracle-based) and F₁@ℳ (model-based), both adapted for variable-sized outputs.
- Train and evaluate on both existing datasets (KP20k, Inspec, etc.) and the new StackEx dataset, using beam search and greedy decoding for comparison.
Experimental results
Research questions
- RQ1Can a neural model generate a variable number of keyphrases without relying on fixed-k beam search?
- RQ2How do target encoding and orthogonal regularization affect the diversity and quality of generated keyphrases?
- RQ3Does the standard practice of evaluating with a fixed k (e.g., 5 or 10) lead to biased or misleading performance comparisons?
- RQ4Can new evaluation metrics that account for variable output size improve the reliability of model comparison in keyphrase generation?
- RQ5How does a non-academic, community-driven dataset like StackEx compare to traditional academic datasets in terms of keyphrase distribution and model generalization?
Key findings
- The proposed model, CatSeqD, outperforms strong baselines on all datasets, including KP20k, Inspec, Krapivin, NUS, and SemEval, with F₁@𝒪 scores up to 35.7 on KP20k.
- Ablation studies show that semantic coverage (via target encoder) significantly improves performance, while orthogonal regularization alone harms performance, but jointly with semantic coverage, it boosts results by up to 4.0 points on KP20k.
- Greedy search outperforms beam search in variable-number generation, suggesting beam search’s tendency to produce short, redundant sequences under dynamic output length.
- The model generates 89.70 unique phrases on average (beam size 50), compared to 20.38 for CatSeq, confirming that target encoding and orthogonal regularization enhance diversity.
- t-SNE visualization of decoder hidden states shows that CatSeqD produces well-separated clusters, indicating more distinct and diverse decoding states, while CatSeq produces a dense, indistinct cluster.
- The new StackEx dataset has a mean of 2.7 keyphrases per sample (variance 1.4), contrasting sharply with academic datasets (mean 5.3–15.7), demonstrating greater genre diversity and real-world applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.