Abstract
Traditional keyphrase generation models are often constrained to produce a fixed number of outputs, failing to adapt to the varying information density of different documents. We present CatSeqD, a model that treats keyphrase generation as a set generation problem using a "One2Seq" paradigm. By incorporating a semantic coverage mechanism via a target encoder and applying orthogonal regularization, CatSeqD dynamically determines the appropriate number of keyphrases while significantly enhancing output diversity. Our evaluation across five academic datasets and a new social media dataset (STACKEX) demonstrates that CatSeqD achieves state-of-the-art performance and effectively addresses the "One Size Fits All" fallacy.
Introduction
Keyphrase generation is the task of summarizing a document into salient multi-word units. Traditionally, researchers have treated this as a sequence-to-sequence (Seq2Seq) task, often "over-generating" phrases using a large beam search to pick a top-$k$ list. This approach suffers from two major flaws: the "One Size Fits All" Fallacy, where models fail to adapt to documents naturally requiring different numbers of phrases, and the Diversity Gap, where parallel generation in standard beam search leads to repetitive, redundant outputs.
Methodology
The authors propose a paradigm shift called One2Seq. Instead of generating phrases individually, the model generates a single long sequence where phrases are separated by a special delimiter token (<sep>). This allows the model to maintain a history of what it has already generated.
To further boost performance, the CatSeqD model introduces two novel components:
- Semantic Coverage: A "target encoder" tracks the semantic meaning of phrases already generated. This state is fed back into the decoder, helping the model focus on new information.
- Orthogonal Regularization: A mathematical constraint applied during training that forces the hidden states at each delimiter token to be as distinct (orthogonal) as possible, encouraging transitions to new topics.
- Self-terminating Decoding: The model can choose to emit an "end-of-sequence" token once it has sufficiently covered the source text, effectively predicting the appropriate number of keyphrases.
Experimental Setup
The study evaluates the model on five standard academic benchmarks: KP20k, Inspec, Krapivin, NUS, and SemEval. Additionally, the authors introduce STACKEX, a dataset of over 300,000 questions and tags from StackExchange. This dataset provides a robust test of how models generalize to shorter, more informal, and technically diverse content beyond scientific writing.
Key Results
CatSeqD achieved state-of-the-art performance across all datasets, consistently outperforming strong baselines like CopyRNN.
Performance and Diversity
- State-of-the-Art Accuracy: On the KP20k dataset, CatSeqD achieved an $F_1@5$ of 34.8, compared to CopyRNN's 32.8. The model's ability to self-terminate also led to better scores on metrics like $F_1@\mathcal{O}$ (Oracle number of phrases).
- Diversity Boost: Qualitative analysis showed that CatSeqD produces far more unique phrases. In large beam search scenarios, the diversity-enhanced model produced nearly 4.4x more unique phrases than the base version.
- StackExchange Success: On the STACKEX dataset, CatSeqD showed a massive lead in predicting "absent" keyphrases (conceptual summaries not appearing verbatim in the text), outperforming the base model by over 14 points in Recall@50.
Conclusion
CatSeqD successfully addresses the limitations of fixed-length keyphrase generation by treating the task as a dynamic set generation problem. While the current model relies on a specific phrase ordering during training, future work will explore order-invariant generation to further increase flexibility. The results suggest that greedy search, when paired with the One2Seq paradigm, can often outperform traditional beam search by allowing the model's internal stopping logic to function more effectively.
Summary updated