Refining BERT Embeddings for Document Hashing via Mutual Information Maximization

Zijing Ou, Qinliang Su, Jianxing Yu, Ruihui Zhao, Yefeng Zheng +1 more
9/7/2021
cs.IR

Official code: J-zin/DHIM (12 stars, Python, MIT, last commit 2023-06-14).

Abstract

Existing unsupervised document hashing methods are mostly established on generative models. Due to the difficulties of capturing long dependency structures, these methods rarely model the raw documents directly, but instead to model the features extracted from them (e.g. bag-of-words (BOW), TFIDF).

Show full abstract

In this paper, we propose to learn hash codes from BERT embeddings after observing their tremendous successes on downstream tasks. As a first try, we modify existing generative hashing models to accommodate the BERT embeddings. However, little improvement is observed over the codes learned from the old BOW or TFIDF features. We attribute this to the reconstruction requirement in the generative hashing, which will enforce irrelevant information that is abundant in the BERT embeddings also compressed into the codes. To remedy this issue, a new unsupervised hashing paradigm is further proposed based on the mutual information (MI) maximization principle. Specifically, the method first constructs appropriate global and local codes from the documents and then seeks to maximize their mutual information. Experimental results on three benchmark datasets demonstrate that the proposed method is able to generate hash codes that outperform existing ones learned from BOW features by a substantial margin.

View on arXivView PDF

Code Implementations(1)

J-zin/DHIMOfficial100%
MIT

source code for paper "Refining BERT Embeddings for Document Hashing via Mutual Information Maximization"

121Python, ShellAug 29, 20213 years agoMIT

Similar Papers

Cite this paper

@article{ou2021refining,
  title  = {Refining BERT Embeddings for Document Hashing via Mutual Information Maximization},
  author = {Zijing Ou and Qinliang Su and Jianxing Yu and Ruihui Zhao and Yefeng Zheng and Bang Liu},
  year   = {2021},
  eprint = {2109.02867},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.02867}
}

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/2109.02867.svg)](https://codeofpaper.com/paper/2109.02867)

Discussion