Theme-Weighted Ranking of Keywords from Text Documents Using Phrase Embeddings

Debanjan Mahata, Rajiv Ratn Shah, John Kuriakose, Roger Zimmermann, John R. Talburt

Introduction

Keyword extraction is a fundamental task in Natural Language Processing (NLP) aimed at identifying the most representative phrases within a document. Traditional unsupervised methods often rely on statistical measures like TF-IDF or graph centrality, which frequently fail to capture the semantic "theme" of a document. Furthermore, many systems struggle with multi-word phrases, treating constituent words as independent entities. This paper introduces Key2Vec, an unsupervised framework that leverages domain-specific phrase embeddings and a theme-weighted personalized PageRank algorithm to extract keywords that are both statistically significant and semantically relevant.

Methodology

The Key2Vec framework consists of a multi-stage pipeline designed to identify and rank candidate phrases based on their thematic importance.

1. Advanced Text Processing

Unlike simple n-gram approaches, Key2Vec utilizes dependency parsing and Named Entity Recognition (NER) via the Spacy library. This allows the system to extract cohesive noun phrases and entities while filtering out functional words and noise.

The text processing pipeline identifies meaningful chunks through NER and noun phrase chunking.

2. Domain-Specific Phrase Embeddings

To capture the nuances of technical language, the authors trained phrase embeddings on a massive corpus of 1.1 million scientific abstracts from arXiv. They found that Fasttext (Skipgram) was particularly effective at preserving the semantic relationships between complex multi-word terms.

Top 5 similar phrases for various technical terms, demonstrating the semantic depth of the trained embeddings.

3. Thematic Weighting and Ranking

The "theme" of a document is defined using a "theme excerpt," typically the title and the first few sentences. A "theme vector" is generated by aggregating the embeddings of phrases within this excerpt. Candidate keywords are then assigned weights based on their cosine similarity to this theme vector.

Finally, a graph is constructed where nodes represent candidate keywords and edges represent co-occurrence. Key2Vec employs a Personalized PageRank algorithm where the "teleportation" vector is biased toward nodes with higher thematic weights. This ensures that the final ranking prioritizes phrases semantically aligned with the document's core message.

Experimental Setup

The system was evaluated using two gold-standard benchmarks for scientific keyword extraction:

  • Inspec: A dataset of 2,000 short scientific abstracts.
  • SemEval 2010: A collection of 284 full-length scientific papers.

The phrase embeddings were trained on a diverse 1.1M abstract subset of the arXiv.org dataset, covering fields such as physics, mathematics, and computer science.

Results and Discussion

Key2Vec demonstrates significant improvements over existing state-of-the-art (SOTA) unsupervised systems. On the Inspec dataset, it achieved an F1@10 score of 48.63, substantially outperforming SGRank (33.95) and TopicRank (27.9). Similarly, on the SemEval 2010 dataset, it reached an F1@10 of 29.04, surpassing SGRank (26.07).

The success of Key2Vec highlights two critical insights:

  1. Phrase-Level Semantics: Training embeddings directly on multi-word phrases is superior to combining single-word vectors, as it preserves the unique meaning of technical terminology.
  2. Thematic Anchoring: Using the title and introduction to weight the PageRank algorithm effectively filters out frequent but irrelevant terms, focusing the extraction on the document's actual topic.

Conclusion

Key2Vec provides a robust, unsupervised solution for keyword extraction that bridges the gap between statistical frequency and semantic relevance. While the system currently depends on well-structured "theme excerpts" (like titles), its performance on scientific corpora is highly promising. Future work will explore applying this framework to multimodal datasets and investigating more advanced embedding architectures to further refine thematic weighting.

Summary updated

BibTeX
@inproceedings{mahata2018theme,
  author = {Debanjan Mahata and Rajiv Ratn Shah and John Kuriakose and Roger Zimmermann and John R. Talburt},
  title = {{Theme-Weighted Ranking of Keywords from Text Documents Using Phrase Embeddings}},
  booktitle = {MIPR},
  year = {2018},
  url = {https://openreview.net/forum?id=fWYsEycjED},
}
Figure