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.
Glossary
KP20k

What is KP20k?
KP20k is a large-scale benchmark dataset for keyphrase extraction containing over 20,000 scientific article abstracts with author-assigned keyphrases.
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.
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.
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.
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.
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.
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
;).
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
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.
Related Terms
Explore the core concepts, datasets, and evaluation frameworks that surround the KP20k benchmark and the broader keyphrase extraction pipeline.
Present vs. Absent Keyphrase Extraction
KP20k evaluates both extraction paradigms. Present keyphrase extraction identifies phrases that appear verbatim in the source text, while absent keyphrase extraction generates relevant phrases not explicitly stated.
- Present: Sequence labeling or ranking of candidate n-grams
- Absent: Requires generative models (e.g., Seq2Seq) to synthesize novel terms
- KP20k's author-assigned keyphrases include both types, making it a comprehensive benchmark
Keyphrase Generation with Seq2Seq Models
The dominant paradigm for KP20k is keyphrase generation, where a sequence-to-sequence model learns to map a source document title and abstract directly to a set of keyphrases.
- Copy mechanisms allow models to extract present phrases while generating absent ones
- One2Set architectures predict the entire keyphrase set in parallel, avoiding order bias
- CatSeq and Transformer-based models are common baselines evaluated on KP20k
F1@K and Evaluation Metrics
KP20k performance is measured using F1@K, the harmonic mean of precision and recall calculated over the top-K predicted keyphrases.
- F1@5 and F1@10 are standard cutoff values
- Mean Reciprocal Rank (MRR) evaluates ranking quality by rewarding early correct predictions
- Exact match against author-assigned gold standards is strict; partial matching via stemmed or lemma forms is also reported
Candidate Generation and Phraseness
Before scoring, systems must generate a pool of candidate phrases. Phraseness measures how linguistically well-formed a candidate is, independent of its topical relevance.
- POS tagging filters for noun phrases (e.g., JJ+NN patterns)
- Stopword-delimited sequences are used by RAKE and YAKE
- N-gram enumeration up to a maximum length (typically 1-5 grams)
- Informativeness scoring then ranks candidates by domain specificity
Unsupervised Baselines: TextRank and YAKE
KP20k serves as a benchmark to compare supervised models against unsupervised baselines. TextRank builds a word co-occurrence graph and applies PageRank, while YAKE uses statistical features from a single document.
- TextRank: Graph-based, requires no training data
- YAKE: Lightweight, relies on casing, position, and frequency features
- Both underperform supervised models on KP20k but provide strong zero-shot baselines
Ensemble Scoring and Reciprocal Rank Fusion
Combining multiple extraction algorithms often yields more robust results. Reciprocal Rank Fusion (RRF) merges ranked lists by summing the reciprocal of each candidate's rank position.
- Reduces variance from any single model's bias
- Effective for combining sparse (TF-IDF) and dense (embedding) scoring methods
- KP20k studies show ensemble methods consistently improve F1@K over individual models

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us