Learning sparse transformations through backpropagation

Peter Bloem
10/22/2018
stat.MLcs.LG

Official code: MaestroGraph/sparse-hyper (44 stars, MIT, PyTorch, last commit 2019-12-14).

Abstract

Many transformations in deep learning architectures are sparsely connected. When such transformations cannot be designed by hand, they can be learned, even through plain backpropagation, for instance in attention mechanisms. However, during learning, such sparse structures are often represented in a dense form, as we do not know beforehand which elements will eventually become non-zero. We introduce the adaptive, sparse hyperlayer, a method for learning a sparse transformation, paramatrized sparsely: as index-tuples with associated values. To overcome the lack of gradients from such a discrete structure, we introduce a method of randomly sampling connections, and backpropagating over the randomly wired computation graph. To show that this approach allows us to train a model to competitive performance on real data, we use it to build two architectures. First, an attention mechanism for visual classification. Second, we implement a method for differentiable sorting: specifically, learning to sort unlabeled MNIST digits, given only the correct order.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Code for the paper "Learning sparse transformations through backpropagation"

444PythonJun 24, 20176 years agoMIT
machine-learningpytorchsparse-matrixsparse-modeling

Cite this paper

@article{bloem2018learning,
  title  = {Learning sparse transformations through backpropagation},
  author = {Peter Bloem},
  year   = {2018},
  eprint = {1810.09184},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.09184}
}

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

Discussion