KeyVec: Key-semantics Preserving Document Representations

Bin Bi, Hao MaarXiv 2017

Abstract

Traditional document embedding methods often fail to distinguish between core semantic content and linguistic filler. We present KeyVec, a neural network architecture that learns dense document representations by prioritizing salient sentences and key words. KeyVec employs a "Neural Reader" to identify important sentences and a "Neural Encoder" to produce weighted embeddings. Evaluated on academic literature tasks, KeyVec significantly outperforms standard baselines like Paragraph Vector in document retrieval and clustering.

Introduction

In Natural Language Processing (NLP), document embedding—the process of converting a document into a fixed-length mathematical vector—is fundamental for tasks such as similarity search, clustering, and retrieval. However, traditional methods like averaging word vectors or Paragraph Vector (Doc2Vec) often treat all words and sentences with equal importance. Human language is inherently noisy; a document's core meaning is typically concentrated in a few key sentences and technical terms. If a model cannot distinguish between a crucial thesis statement and a transitionary phrase, the resulting vector becomes diluted. KeyVec addresses this by teaching AI to focus on "key semantics."

Methods: The KeyVec Architecture

KeyVec consists of two cascaded neural components designed to filter and encode information selectively:

  1. The Neural Reader: This component identifies salient sentences. It first encodes individual sentences using a Convolutional Neural Network (CNN), then processes them through a Bidirectional Long Short-Term Memory (Bi-LSTM) network to capture contextual dependencies. Finally, it assigns a probability score to each sentence, predicting its importance to the document's overall meaning.
  2. The Neural Encoder: This component performs "weighted pooling" on the Reader's output. Instead of a simple average, it assigns higher weights to sentences identified as salient. The resulting document vector is then optimized to predict the document's "key words" (extracted from abstracts).
Architecture of the KeyVec model featuring the Neural Reader and Neural Encoder components.

The model is trained using a joint objective function. To handle the lack of labeled "salience" data, the authors utilized a separate similarity model (DSSM) to heuristically label sentences in a paper's body that most closely matched its abstract as "salient."

Datasets and Evaluation

The researchers evaluated KeyVec within the domain of academic literature:

  • Training: A 113 GB academic corpus was used for pre-training word embeddings, while papers with abstracts supported the salience and keyword prediction tasks.
  • Retrieval Evaluation: A pool of 669 IEEE academic papers was used, with Wikipedia pages on 70 fields of study (e.g., "Deep Learning") serving as queries.
  • Clustering Evaluation: 850 academic papers were categorized by 186 different publication venues to serve as ground-truth labels.

Key Results

KeyVec consistently outperformed word2vec averaging and Paragraph Vector across both evaluation tasks. In document retrieval, KeyVec achieved a Mean Average Precision (MAP) of 0.232 and a Mean Reciprocal Rank (MRR) of 0.619, significantly higher than Paragraph Vector's 0.177 and 0.495, respectively.

Comparison of KeyVec against baseline models in document retrieval tasks.

In clustering tasks, KeyVec reached a V-measure of 0.597, surpassing Paragraph Vector (0.553) and basic word2vec averaging (ranging from 0.271 to 0.548).

Discussion and Future Work

The success of KeyVec lies in its ability to treat saliency as a "superpower." By explicitly modeling sentence importance, the model avoids diluting the document's semantic signal with linguistic noise. Furthermore, KeyVec is a feed-forward model, making it more efficient for inference on unseen documents compared to the iterative optimization required by Paragraph Vector.

A current limitation is the reliance on heuristic "surrogate" labels for training the Neural Reader. Future work aims to explore Minimum Risk Training, which would allow the model to be trained directly on original summaries without intermediate similarity models, potentially further sharpening the model's focus.

Summary updated

BibTeX
@misc{bi2017keyvec,
  author = {Bin Bi and Hao Ma},
  title = {{KeyVec: Key-semantics Preserving Document Representations}},
  year = {2017},
  eprint = {1709.09749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1709.09749},
}
Figure