Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks

Juho Lee, Yoonho Lee, Jungtaek Kim, Adam R. Kosiorek, Seungjin Choi +1 more
10/1/2018
cs.LGstat.ML

Official code: juho-lee/set_transformer (691 stars, MIT, last commit 2020-02-11).

Abstract

Many machine learning tasks such as multiple instance learning, 3D shape recognition, and few-shot image classification are defined on sets of instances. Since solutions to such problems do not depend on the order of elements of the set, models used to address them should be permutation invariant. We present an attention-based neural network module, the Set Transformer, specifically designed to model interactions among elements in the input set. The model consists of an encoder and a decoder, both of which rely on attention mechanisms. In an effort to reduce computational complexity, we introduce an attention scheme inspired by inducing point methods from sparse Gaussian process literature. It reduces the computation time of self-attention from quadratic to linear in the number of elements in the set. We show that our model is theoretically attractive and we evaluate it on a range of tasks, demonstrating the state-of-the-art performance compared to recent methods for set-structured data.

View on arXivView PDF

Code Implementations(1)

MIT

Pytorch implementation of set transformer

691118Python, Jupyter NotebookMay 3, 20196 years agoMIT

Similar Papers

Cite this paper

@article{lee2018transformer,
  title  = {Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks},
  author = {Juho Lee and Yoonho Lee and Jungtaek Kim and Adam R. Kosiorek and Seungjin Choi and Yee Whye Teh},
  year   = {2018},
  eprint = {1810.00825},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.00825}
}

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

Discussion