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) layers and O(n2logn) total time and space complexity for processing a n×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.
@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}
}