Compositional Attention Networks for Machine Reasoning

Drew A. Hudson, Christopher D. Manning
3/8/2018
cs.AI

Official code: stanfordnlp/mac-network (509 stars, Apache-2.0, TensorFlow, last commit 2021-07-10).

Abstract

We present the MAC network, a novel fully differentiable neural network architecture, designed to facilitate explicit and expressive reasoning. MAC moves away from monolithic black-box neural architectures towards a design that encourages both transparency and versatility. The model approaches problems by decomposing them into a series of attention-based reasoning steps, each performed by a novel recurrent Memory, Attention, and Composition (MAC) cell that maintains a separation between control and memory. By stringing the cells together and imposing structural constraints that regulate their interaction, MAC effectively learns to perform iterative reasoning processes that are directly inferred from the data in an end-to-end approach. We demonstrate the model's strength, robustness and interpretability on the challenging CLEVR dataset for visual reasoning, achieving a new state-of-the-art 98.9% accuracy, halving the error rate of the previous best model. More importantly, we show that the model is computationally-efficient and data-efficient, in particular requiring 5x less data than existing models to achieve strong results.

View on arXivView PDF

Code Implementations(1)

TensorFlowApache-2.0

Implementation for the paper "Compositional Attention Networks for Machine Reasoning" (Hudson and Manning, ICLR 2018)

509119PythonApr 14, 20185 years agoApache-2.0
attentionclevrcompositional-attention-networksmachine-reasoningquestion-answering+2 more

Cite this paper

@article{hudson2018compositional,
  title  = {Compositional Attention Networks for Machine Reasoning},
  author = {Drew A. Hudson and Christopher D. Manning},
  year   = {2018},
  eprint = {1803.03067},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.03067}
}

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

Discussion