NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Rethinking Model Selection and Decoding for Keyphrase Generation with Pre-trained Sequence-to-Sequence Models

Di Wu, Wasi Uddin Ahmad, Kai-Wei Chang

Abstract

Keyphrase Generation (KPG) is a critical task in natural language processing that involves identifying both present and absent phrases to represent a document's core concepts. While pre-trained sequence-to-sequence (seq2seq) models have become the standard for this task, the field lacks a systematic understanding of how model scale, domain adaptation, and decoding strategies influence performance. This paper evaluates these factors, demonstrating that in-domain pre-training and a novel decoding algorithm, DESEL, outperform simple model scaling.

Introduction

Keyphrase Generation (KPG) requires models to predict phrases that capture the essence of a document. These are categorized into present keyphrases (appearing directly in the text) and absent keyphrases (abstract concepts not explicitly mentioned). While models like BART and T5 have advanced the state-of-the-art, researchers often make arbitrary choices regarding model size and decoding methods. This study addresses these gaps by asking two primary questions: Which pre-trained models perform best when fine-tuned for KPG, and what is the optimal way to decode sequences to maximize both accuracy and variety?

Methodology

Probing Attention as Centrality

The authors test the hypothesis that seq2seq models are naturally suited for KPG because their decoder attention patterns implicitly compute "phrase centrality." This measure of a phrase's importance is a staple of traditional graph-based algorithms. By analyzing specific attention heads in the lower layers of BART and T5 decoders, the researchers found strong correlations with traditional centrality scores, explaining why these models effectively identify important phrases without explicit instruction.

Model Selection and Domain Adaptation

The study compares BART and T5 across various scales, from 60M to 3B parameters. Crucially, the authors introduce SciBART, a model pre-trained on 171 million scientific documents (S2ORC), and utilize Task-Adaptive Pre-Training (TAPT) on the OAGKX dataset to evaluate the impact of domain-specific knowledge versus raw parameter count.

The DESEL Algorithm

To address the limitations of standard decoding, the authors propose DESEL (Decode-Select), a three-stage algorithm:

  1. Greedy Baseline: Generates an initial high-precision sequence.
  2. Candidate Generation: Produces multiple candidate sequences via sampling to increase recall.
  3. Likelihood Selection: Uses a likelihood-based criterion to select high-quality phrases from the samples to augment the greedy baseline, effectively filtering out "noisy" or improbable candidates.

Experimental Setup

The study utilizes several standard KPG benchmarks, primarily training on KP20k (500k Computer Science abstracts). To test generalization, the models were evaluated on four out-of-distribution datasets: Inspec, Krapivin, NUS, and SemEval.

Key Insights and Results

The Scaling Myth vs. Domain Knowledge

One of the most significant findings is that in KPG, bigger is not necessarily better. Scaling a T5 model by 50x (from "small" to "3B") yielded only marginal gains in recall. In contrast, domain knowledge proved far more valuable: a base-sized model pre-trained on scientific text (SciBART-base) consistently outperformed the much larger general-domain BART-large. This suggests that domain-specific vocabulary and context are more critical for technical KPG than sheer parameter volume.

Decoding Performance

Standard greedy search is highly precise but suffers from low recall, while sampling methods provide variety at the cost of noise. DESEL successfully bridges this gap. The algorithm improved the greedy search baseline by an average of 4.7% in semantic F1 score across benchmarks and boosted absent keyphrase F1 by 25% on the KP20k dataset. Together with SciBART and TAPT, this approach achieved new state-of-the-art results across all five tested datasets.

Robustness Challenges

Despite these gains, the models remain sensitive to input perturbations. Replacing a keyphrase with a synonym or paraphrasing the abstract caused a drop in recall of up to 14%. This indicates that models may still be overfitting to frequent phrases in the training set rather than fully grasping the underlying semantics.

Conclusion

This research demonstrates that optimizing Keyphrase Generation is not merely a matter of increasing model size. Instead, performance gains are more effectively realized through in-domain pre-training and sophisticated decoding strategies like DESEL. Future work will focus on improving model robustness against paraphrasing and integrating DESEL with alternative training objectives beyond standard cross-entropy loss.

Summary updated

BibTeX
@inproceedings{wu2023rethinking,
  author = {Di Wu and Wasi Uddin Ahmad and Kai-Wei Chang},
  title = {{Rethinking Model Selection and Decoding for Keyphrase Generation with Pre-trained Sequence-to-Sequence Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.410},
}
Figure