English

Matrix Shuffle-Exchange Networks for Hard 2D Tasks

Machine Learning 2020-10-06 v2 Machine Learning

Abstract

Convolutional neural networks have become the main tools for processing two-dimensional data. They work well for images, yet convolutions have a limited receptive field that prevents its applications to more complex 2D tasks. We propose a new neural model, called Matrix Shuffle-Exchange network, that can efficiently exploit long-range dependencies in 2D data and has comparable speed to a convolutional neural network. It is derived from Neural Shuffle-Exchange network and has O(logn)\mathcal{O}( \log{n}) layers and O(n2logn)\mathcal{O}( n^2 \log{n}) total time and space complexity for processing a n×nn \times n data matrix. We show that the Matrix Shuffle-Exchange network is well-suited for algorithmic and logical reasoning tasks on matrices and dense graphs, exceeding convolutional and graph neural network baselines. Its distinct advantage is the capability of retaining full long-range dependency modelling when generalizing to larger instances - much larger than could be processed with models equipped with a dense attention mechanism.

Keywords

Cite

@article{arxiv.2006.15892,
  title  = {Matrix Shuffle-Exchange Networks for Hard 2D Tasks},
  author = {Emīls Ozoliņš and Kārlis Freivalds and Agris Šostaks},
  journal= {arXiv preprint arXiv:2006.15892},
  year   = {2020}
}
R2 v1 2026-06-23T16:41:35.807Z