A keyphrase extractor that actually reads your whole document, not just the first page
LongKey is a novel framework that solves the challenge of extracting keyphrases from documents longer than traditional 512-token limits. It uses an enhanced encoder model capable of processing up to 96K tokens and introduces a max-pooling embedder for better context-aware keyphrase extraction.
-----
https://arxiv.org/abs/2411.17863
π Original Problem:
Most keyphrase extraction methods only work with short documents (up to 512 tokens). This limitation creates a significant gap in processing longer documents like research papers, legal documents, and technical reports.
-----
π οΈ Solution in this Paper:
β LongKey extends token support up to 96K tokens using a modified Longformer architecture with expanded positional embeddings.
β It implements a max-pooling embedder that combines multiple occurrences of keyphrases into single, comprehensive representations.
β The system processes documents in chunks of 8,192 tokens, concatenating embeddings to maintain context across the entire text.
β A convolutional network generates embeddings for n-gram keyphrases up to length 5.
-----
π‘ Key Insights:
β Document chunking with proper embedding concatenation can effectively handle long documents
β Max-pooling across keyphrase occurrences captures better context than individual instance scoring
β Domain adaptation is possible through zero-shot learning across different document types
-----
π Results:
β Achieved 39.55% F1@5 score on LDKP3K dataset, outperforming existing methods
β Maintained 41.81% F1@5 score on LDKP10K dataset
β Demonstrated superior performance across 6 different domains without additional training










