Inferensys

Glossary

KP20k

A large-scale benchmark dataset for keyphrase extraction containing over 20,000 scientific article abstracts with author-assigned keyphrases.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
KEYPHRASE EXTRACTION BENCHMARK

What is KP20k?

KP20k is a large-scale benchmark dataset for keyphrase extraction containing over 20,000 scientific article abstracts with author-assigned keyphrases.

KP20k is a large-scale benchmark dataset for supervised keyphrase extraction containing 20,000 English scientific article abstracts from computer science domains, each paired with author-assigned keyphrases. It is the standard training and evaluation corpus for sequence-to-sequence keyphrase generation models.

The dataset includes both present keyphrases appearing verbatim in the abstract and absent keyphrases requiring generative inference. KP20k's scale enables training deep Transformer-based models, and evaluation typically uses F1@K metrics on the top 5 or 10 predictions against the gold-standard author labels.

BENCHMARK ARCHITECTURE

Key Features of KP20k

KP20k is the de facto standard for training and evaluating supervised keyphrase extraction models. Its architecture is specifically designed to test a model's ability to handle scientific discourse and high-volume metadata.

01

Massive Scientific Corpus

The dataset aggregates over 20,000 abstracts from a diverse range of computer science domains. This volume provides sufficient training data for complex sequence-to-sequence models and large language model fine-tuning, moving beyond small-scale toy datasets.

  • Source: Papers from ACM, ACL, and related digital libraries.
  • Scale: 20k+ documents for training, with dedicated validation and test splits.
20k+
Document Abstracts
CS Domain
Primary Field
02

Author-Assigned Gold Labels

Unlike datasets relying on crowd-sourced or algorithmic labels, KP20k uses author-assigned keyphrases. This ensures the labels represent the true semantic intent of the paper, capturing both present keyphrases (verbatim in text) and absent keyphrases (inferred concepts).

  • Quality: High precision labels reflecting expert domain knowledge.
  • Dual Task: Tests both extraction and abstractive generation capabilities.
03

Dual Evaluation Protocol

KP20k evaluates models on two distinct tasks. Present Keyphrase Extraction identifies spans in the source text, while Absent Keyphrase Generation requires the model to synthesize phrases not explicitly written. This dual setup benchmarks both discriminative and generative AI capabilities.

  • Metrics: Standard evaluation uses F1@K (often K=5, 10) and Mean Reciprocal Rank (MRR).
  • Challenge: Models must balance copying mechanisms with semantic generation.
04

Preprocessing & Tokenization

The standard preprocessing pipeline involves lowercasing, digit replacement with <digit>, and subword tokenization. Text is often truncated to the first 200-400 tokens of the abstract to fit model input limits. Keyphrases are stemmed or lemmatized during evaluation to handle morphological variants.

  • Input: Title concatenated with the abstract body.
  • Output: A delimited sequence of keyphrases (e.g., separated by ;).
05

One-to-Many Mapping

A single source abstract maps to multiple target keyphrases (typically 5-6 on average). This forces models to learn a one-to-many generation paradigm, capturing the multi-faceted nature of scientific documents. It tests the model's ability to avoid redundancy while maximizing informativeness.

  • Diversity: Requires coverage of different subtopics within the abstract.
  • Ordering: Target keyphrase sequences are often ordered by importance or appearance.
06

Domain Transfer Benchmarking

While trained on computer science papers, KP20k models are frequently tested on out-of-domain datasets like Inspec (abstracts) or PubMed (biomedicine). This evaluates the zero-shot domain transfer capability of the extraction model, a critical factor for enterprise deployment where labeled data is scarce.

  • Baseline: Tests the robustness of learned semantic patterns.
  • Adaptation: Often used as a pre-training step before fine-tuning on proprietary corpora.
KP20K DATASET

Frequently Asked Questions

Essential questions about the KP20k benchmark dataset, its structure, and its role in training and evaluating keyphrase extraction models.

The KP20k dataset is a large-scale benchmark corpus for keyphrase extraction containing over 20,000 scientific article abstracts from computer science, each paired with author-assigned keyphrases. It is the most widely adopted training and evaluation resource in the field because it provides high-quality, human-curated ground truth labels. Unlike automatically extracted keyphrases, author-assigned keyphrases represent the most salient concepts as judged by domain experts. The dataset's scale enables robust training of supervised keyphrase extraction models, including sequence-to-sequence architectures for keyphrase generation. KP20k was constructed by aggregating metadata from various online digital libraries, making it a diverse collection spanning multiple subdomains within computer science. Its importance stems from standardizing evaluation: researchers report F1@K and Mean Reciprocal Rank (MRR) on KP20k splits, enabling direct comparison between methods like KeyBERT, EmbedRank, and transformer-based generative models.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.