Abstract
Keyphrases are capable of providing semantic metadata characterizing documents and producing an overview of the content of a document. Since keyphrase extraction is able to facilitate the management, categorization, and retrieval of information, it has received much attention in recent years. There are three approaches to address keyphrase extraction: (i) traditional two-step ranking method, (ii) sequence labeling and (iii) generation using neural networks. Two-step ranking approach is based on feature engineering, which is labor intensive and domain dependent. Sequence labeling is not able to tackle overlapping phrases. Generation methods (i.e., Sequence-to-sequence neural network models) overcome those shortcomings, so they have been widely studied and gain state-of-the-art performance. However, generation methods can not utilize context information effectively. In this paper, we propose a novelty Span Keyphrase Extraction model that extracts span-based feature representation of keyphrase directly from all the content tokens. In this way, our model obtains representation for each keyphrase and further learns to capture the interaction between keyphrases in one document to get better ranking results. In addition, with the help of tokens, our model is able to extract overlapped keyphrases. Experimental results on the benchmark datasets show that our proposed model outperforms the existing methods by a large margin.
Introduction
Keyphrase extraction (KPE) is the task of automatically identifying the most relevant terms in a text. Historically, this has been tackled in three ways, each with a major flaw:
- Traditional Two-Step Ranking: Relies on heavy, domain-specific feature engineering.
- Sequence Labeling (BIO Tagging): Treats KPE like Named Entity Recognition (NER). However, it cannot handle overlapping phrases. If "deep learning" and "deep learning model" are both keyphrases, a standard sequence labeler can usually only pick one.
- Generative Models (Seq2Seq): These can handle overlaps but often lose document context because they generate phrases token-by-token, sometimes ignoring the global relationship between different phrases in the same text.
The authors propose SKE (Span Keyphrase Extraction), a model that represents candidate phrases as "spans" using BERT embeddings and Bi-LSTMs. Unlike previous methods, SKE can naturally extract overlapping keyphrases and is significantly faster and more accurate than existing state-of-the-art generative models.
Proposed Method: Span Keyphrase Extraction (SKE)
The SKE framework follows a refined two-stage pipeline:
- Candidate Generation: The model uses Part-of-Speech (POS) patterns to identify potential phrases. This narrows the search space while ensuring candidates are linguistically plausible.
- Token Encoding: It uses BERT to generate contextualized embeddings for every token in the document.
- Span-based Representation: This is the core innovation. For a phrase starting at token $b$ and ending at token $e$, the model creates a feature vector by concatenating the embeddings of the start and end tokens, their element-wise product, and their element-wise difference.
- Interaction Layer: These span vectors are fed into a Bi-LSTM. Crucially, this Bi-LSTM runs over the sequence of candidate phrases in the document, allowing the model to learn how phrases interact (e.g., if "neural networks" is a keyphrase, the probability of "backpropagation" being one might increase).
- Ranking/Classification: Finally, the model uses either a binary classifier or a ranking hinge loss to determine which candidates are true keyphrases.
Experimental Results
The model was evaluated on five standard benchmarks: Inspec, Krapivin, NUS, SemEval-2010, and KP20k. SKE achieved state-of-the-art (SOTA) results across almost all benchmarks. On the large KP20k dataset, SKE-Large reached an $F_1@5$ of 0.392, significantly outperforming the popular CopyRNN (0.333).
Efficiency and Overlap Handling
- Overlapping is Essential: Roughly 16-20% of keyphrases in datasets like NUS and SemEval overlap. By treating phrases as spans rather than tags, SKE successfully extracted ~70% of these cases.
- Phrase-Level Context Matters: Most models look at the context of words. SKE looks at the context of phrases. The Bi-LSTM layer on top of the spans captures the "thematic flow" of the document.
- Speed: SKE is 66 times faster than a naive "Sentence Pair Classification" approach with BERT because it processes the document once and then performs cheap operations on the resulting spans.
Conclusion
The SKE model demonstrates that span-based representations are highly effective for keyphrase extraction, particularly for handling overlapping phrases and capturing phrase-level context. While the current model relies on POS-based candidate generation, future work could explore exhaustive span search to eliminate this dependency and apply the span-based logic to other NLP tasks.
Summary updated