Does Order Matter? An Empirical Study on Generating Multiple Keyphrases as a Sequence

Rui Meng, Xingdi Yuan, Tong Wang, Peter Brusilovsky, Adam Trischler, Daqing HearXiv 2019

Abstract

Keyphrase generation is a critical task for document summarization and information retrieval. While traditional methods generate keyphrases independently (One2One), recent "One2Seq" approaches generate multiple phrases as a single concatenated sequence to reduce redundancy. However, since keyphrase sets are inherently unordered, the impact of sequence ordering during training remains under-explored. This study evaluates six ordering strategies, demonstrating that presenting keyphrases in their order of appearance in the source text (APPEAR-AP) significantly enhances performance by providing a stable signal for the model's pointer mechanism.

Introduction

Keyphrase generation involves producing a set of phrases that encapsulate the main topics of a document. Historically, models followed a One2One paradigm, predicting a single keyphrase per input and using beam search to extract multiple candidates. This approach often suffers from high redundancy, as the model lacks a mechanism to track previously generated phrases.

The One2Seq paradigm addresses this by treating multiple keyphrases as a single concatenated string (e.g., Phrase A <SEP> Phrase B). While this reduces redundancy, it introduces the challenge of "flattening" an unordered set into a sequence. This paper investigates whether the specific order of phrases in the training sequence affects the model's ability to learn and generalize.

Methodology

The researchers utilized a Pointer-Generator network with a coverage mechanism, allowing the model to both generate new vocabulary and copy words directly from the source text. They tested six distinct ordering strategies for the target sequence:

  • RANDOM: Phrases are shuffled randomly.
  • NO-SORT: Phrases follow the original dataset order.
  • LENGTH: Sorted by phrase length (shortest to longest).
  • ALPHA: Sorted alphabetically.
  • APPEAR-PRE: Absent phrases (not in text) first, followed by present phrases in order of appearance.
  • APPEAR-AP: Present phrases in order of appearance first, followed by absent phrases.

The models were trained on the KP20k dataset and evaluated on standard benchmarks including Inspec, Krapivin, NUS, and SemEval.

Key Results

The experimental results confirm that the One2Seq approach generally outperforms the One2One baseline. Crucially, the choice of ordering strategy significantly impacts the final F1 scores.

Comparison of One2One and One2Seq with various ordering strategies across four benchmark datasets.

As shown in the results, APPEAR-AP emerged as the most effective strategy. On the Inspec dataset, it achieved an F1@10 of 0.333, compared to just 0.206 for the RANDOM strategy. This suggests that the pointer mechanism benefits from a chronological signal that mirrors the natural reading order of the source text. Interestingly, the ALPHA (alphabetical) strategy also performed well, indicating that models can leverage simple morphological structures to achieve convergence.

Model Complexity and Robustness

To ensure these findings were not specific to a particular architecture, the researchers tested the strategies across different model scales, including a BaseRNN, a larger BigRNN, and a Transformer.

Performance of ordering strategies across different model architectures (BaseRNN, BigRNN, and Transformer).

The data indicates that increasing model complexity does not alter the relative ranking of the ordering strategies. This suggests that the importance of sequence order is a fundamental characteristic of the keyphrase generation task rather than an artifact of model capacity.

Discussion and Limitations

While One2Seq excels at generating diverse present keyphrases, it faces challenges with absent keyphrases (those not explicitly found in the source text). The model tends to become a "lazy abstractor," relying heavily on its extractive copying mechanism as the sequence length increases. Future work is needed to balance the extractive and abstractive capabilities of these models and to develop decoding strategies that encourage broader exploration of the potential keyphrase space.

Conclusion

This study demonstrates that order significantly matters when training One2Seq models for keyphrase generation. By aligning the target sequence with the order of appearance in the source text (APPEAR-AP), researchers can significantly improve model performance and training stability.

Summary updated

BibTeX
@misc{meng2019does,
  author = {Rui Meng and Xingdi Yuan and Tong Wang and Peter Brusilovsky and Adam Trischler and Daqing He},
  title = {{Does Order Matter? An Empirical Study on Generating Multiple Keyphrases as a Sequence}},
  year = {2019},
  eprint = {1909.03590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.03590},
}
Figure