Dynamic Inference with Neural Interpreters
arXiv:2110.06399
Abstract
Modern neural network architectures can leverage large amounts of data to generalize well within the training distribution. However, they are less capable of systematic generalization to data drawn from unseen but related distributions, a feat that is hypothesized to require compositional reasoning and reuse of knowledge. In this work, we present Neural Interpreters, an architecture that factorizes inference in a self-attention network as a system of modules, which we call \emph{functions}. Inputs to the model are routed through a sequence of functions in a way that is end-to-end learned. The proposed architecture can flexibly compose computation along width and depth, and lends itself well to capacity extension after training. To demonstrate the versatility of Neural Interpreters, we evaluate it in two distinct settings: image classification and visual abstract reasoning on Raven Progressive Matrices. In the former, we show that Neural Interpreters perform on par with the vision transformer using fewer parameters, while being transferrable to a new task in a sample efficient manner. In the latter, we find that Neural Interpreters are competitive with respect to the state-of-the-art in terms of systematic generalization
NeurIPS 2021
References in corpus (9)
- The Loss Surfaces of Multilayer Networks
- PathNet: Evolution Channels Gradient Descent in Super Neural Networks
- Measuring the tendency of CNNs to Learn Surface Statistical Regularities
- A Meta-Transfer Objective for Learning to Disentangle Causal Mechanisms
- Routing Networks and the Challenges of Modular and Compositional Computation
- The Scattering Compositional Learner: Discovering Objects, Attributes, Relationships in Analogical Reasoning
- Transformers with Competitive Ensembles of Independent Mechanisms
- Repulsive Attention: Rethinking Multi-head Attention as Bayesian Inference
- Few-shot Sequence Learning with Transformers