Applying a Generic Sequence-to-Sequence Model for Simple and Effective Keyphrase Generation

Md Faisal Mahbub Chowdhury, Gaetano Rossiello, Michael Glass, Nandana Mihindukulasooriya, Alfio GliozzoarXiv 2022

TL;DR

Instead of relying on complex, highly specialized architectures for Keyphrase Generation (KPG), this paper demonstrates that a standard, off-the-shelf BART model can achieve state-of-the-art results. By framing KPG as a simple sequence-to-sequence task with minimal formatting, the authors provide a highly effective and easy-to-deploy alternative to custom models.

What Problem Does This Paper Address?

Keyphrase Generation (KPG) is the task of predicting a set of salient phrases that summarize a document. Unlike standard sequence-to-sequence (seq2seq) tasks like translation or summarization—which output a single continuous string of text—KPG requires a model to generate multiple distinct, multi-word phrases. These phrases are categorized as present (appearing directly in the text) or absent (abstractive phrases that capture the concept but aren't explicitly written).

To tackle this multi-phrase output, previous research heavily favored complex, ad-hoc architectures. These included reinforcement learning, multi-task learning frameworks, and massive beam search sizes (up to 200) to over-generate and filter phrases. Despite this complexity, no single custom model consistently outperformed others across all standard benchmarks. The authors of this paper challenge this trend, asking a fundamental question: Can we skip the architectural complexity and just use a standard pre-trained language model?

Methods

The authors use BART (both bart-base and bart-large), a standard denoising autoencoder, without making any structural changes to the model.

To make a standard seq2seq model output multiple keyphrases in a single pass, they introduce a straightforward target formatting strategy. During training, the target keyphrases are concatenated into a single sequence wrapped in brackets and separated by commas: [k1, k2, ..., km]. No new special tokens are introduced; the model simply learns to use standard punctuation characters as delimiters, making it fully compatible with off-the-shelf training pipelines like the Hugging Face library.

Because BART has a strict 1024-token input limit, long documents are handled via a simple paragraph-splitting strategy:

  1. The input document is split into paragraphs.
  2. During training, each paragraph inherits the full document's ground-truth keyphrases.
  3. During inference, keyphrases are generated for each paragraph independently.
  4. A final ranking score is calculated for each unique keyphrase based on the sum of its inverse ranks across all paragraphs.

Crucially, the authors use a practical beam size of 20 during decoding, which is significantly smaller and faster than the 50–200 beam sizes typically used by specialized KPG models.

Datasets

The model was trained exclusively on the Kp20K training set, which contains over 500,000 abstracts from scientific publications.

For evaluation, the authors tested the model across five widely used benchmarks:

  • Kp20K (test split)
  • Inspec
  • NUS
  • SemEval
  • Krapivin

Importantly, the model was not fine-tuned on the validation or training splits of the other four non-Kp20K datasets, serving as a strict test of zero-shot domain generalization.

Key Insights and Ideas

  • Simplicity Wins: Standard text summarization architectures are already powerful enough for KPG. The complex, custom-built architectures of the past few years may be over-engineered.
  • Excellent Generalization: Training on a single large dataset (Kp20K) allowed the BART-based model to generalize remarkably well to other distinct datasets without any dataset-specific tuning. This highlights the transferability inherent in large pre-trained transformers.
  • Punctuation as Syntax: Instead of modifying the decoder or adding custom embeddings to separate phrases, simply using standard characters ([, ], ,) is entirely sufficient for the model to learn structural boundaries.

Key Results

The proposed model, bart-large-kp, achieved state-of-the-art results on multiple benchmarks despite its simpler architecture and smaller beam size.

As shown in the evaluation for present keyphrases, bart-large-kp achieved the highest F-score@10 on 3 out of the 5 benchmarks (Inspec: 38.7, NUS: 38.0, Kp20K: 31.1).

Table 2: Evaluation for present keyphrases.

For absent keyphrases, the model achieved state-of-the-art Recall@10 on 2 out of 5 benchmarks (Inspec: 5.4, Krapivin: 13.2), as detailed in the paper's secondary evaluation table.

Table 2: Evaluation for present keyphrases.

Limitations and Future Work

The authors noted a performance drop on the SemEval dataset, particularly for absent keyphrases. Qualitative analysis revealed a data distribution mismatch: SemEval documents contain roughly 55% absent keyphrases and three times more ground-truth keyphrases per document compared to the Kp20K training data (which has 36% absent keyphrases).

Additionally, the model occasionally suffered from a common generative flaw: spurious token repetition within absent keyphrases (e.g., generating "malmalware" or "datadata transfer").

Future work could explore methods to mitigate these repetitions and adapt the model dynamically to datasets with significantly different keyphrase densities.

Summary updated

BibTeX
@misc{chowdhury2022applying,
  author = {Md Faisal Mahbub Chowdhury and Gaetano Rossiello and Michael Glass and Nandana Mihindukulasooriya and Alfio Gliozzo},
  title = {{Applying a Generic Sequence-to-Sequence Model for Simple and Effective Keyphrase Generation}},
  year = {2022},
  eprint = {2201.05302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.05302},
}
Figure