P-SIF: Document Embeddings Using Partition Averaging

Vivek Gupta, Ankit Saw, Pegah Nokhiz, Praneeth Netrapalli, Piyush Rai +1 more
5/18/2020
cs.CLcs.LG

Official code: vgupta123/P-SIF (35 stars, Python, last commit 2020-05-02).

Abstract

Simple weighted averaging of word vectors often yields effective representations for sentences which outperform sophisticated seq2seq neural models in many tasks. While it is desirable to use the same method to represent documents as well, unfortunately, the effectiveness is lost when representing long documents involving multiple sentences.

Show full abstract

One of the key reasons is that a longer document is likely to contain words from many different topics; hence, creating a single vector while ignoring all the topical structure is unlikely to yield an effective document representation. This problem is less acute in single sentences and other short text fragments where the presence of a single topic is most likely. To alleviate this problem, we present P-SIF, a partitioned word averaging model to represent long documents. P-SIF retains the simplicity of simple weighted word averaging while taking a document's topical structure into account. In particular, P-SIF learns topic-specific vectors from a document and finally concatenates them all to represent the overall document. We provide theoretical justifications on the correctness of P-SIF. Through a comprehensive set of experiments, we demonstrate P-SIF's effectiveness compared to simple weighted averaging and many other baselines.

View on arXivView PDF

Code Implementations(1)

vgupta123/P-SIFOfficial100%

Source code for our AAAI 2020 paper P-SIF: Document Embeddings using Partition Averaging

3510Python, CNov 18, 20196 years ago
aaai2020classificationdocument-embeddingsembeddingsksvd+9 more

Similar Papers

Cite this paper

@article{gupta2020psif,
  title  = {P-SIF: Document Embeddings Using Partition Averaging},
  author = {Vivek Gupta and Ankit Saw and Pegah Nokhiz and Praneeth Netrapalli and Piyush Rai and Partha Talukdar},
  year   = {2020},
  eprint = {2005.09069},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.09069}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.09069.svg)](https://codeofpaper.com/paper/2005.09069)

Discussion