Minimizing FLOPs to Learn Efficient Sparse Representations

Biswajit Paria, Chih-Kuan Yeh, Ian E. H. Yen, Ning Xu, Pradeep Ravikumar +1 more
4/12/2020
cs.LGstat.ML

Official code: biswajitsc/sparse-embed (21 stars, Python, last commit 2020-02-14).

Abstract

Deep representation learning has become one of the most widely adopted approaches for visual search, recommendation, and identification. Retrieval of such representations from a large database is however computationally challenging.

Show full abstract

Approximate methods based on learning compact representations, have been widely explored for this problem, such as locality sensitive hashing, product quantization, and PCA. In this work, in contrast to learning compact representations, we propose to learn high dimensional and sparse representations that have similar representational capacity as dense embeddings while being more efficient due to sparse matrix multiplication operations which can be much faster than dense multiplication. Following the key insight that the number of operations decreases quadratically with the sparsity of embeddings provided the non-zero entries are distributed uniformly across dimensions, we propose a novel approach to learn such distributed sparse embeddings via the use of a carefully constructed regularization function that directly minimizes a continuous relaxation of the number of floating-point operations (FLOPs) incurred during retrieval. Our experiments show that our approach is competitive to the other baselines and yields a similar or better speed-vs-accuracy tradeoff on practical datasets.

View on arXivView PDF

Code Implementations(1)

Code for paper 'Minimizing FLOPs to Learn Efficient Sparse Representations' published at ICLR 2020

212Python, Jupyter NotebookJan 31, 20206 years ago

Similar Papers

Cite this paper

@article{paria2020minimizing,
  title  = {Minimizing FLOPs to Learn Efficient Sparse Representations},
  author = {Biswajit Paria and Chih-Kuan Yeh and Ian E. H. Yen and Ning Xu and Pradeep Ravikumar and Barnabás Póczos},
  year   = {2020},
  eprint = {2004.05665},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.05665}
}

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

Discussion