Learning Dynamics of Attention: Human Prior for Interpretable Machine Reasoning

Wonjae Kim, Yoonho Lee
5/28/2019
stat.MLcs.CVcs.LG

Official code: kakao/DAFT (33 stars, Python, Apache-2.0, last commit 2023-06-27).

Abstract

Without relevant human priors, neural networks may learn uninterpretable features. We propose Dynamics of Attention for Focus Transition (DAFT) as a human prior for machine reasoning.

Show full abstract

DAFT is a novel method that regularizes attention-based reasoning by modelling it as a continuous dynamical system using neural ordinary differential equations. As a proof of concept, we augment a state-of-the-art visual reasoning model with DAFT. Our experiments reveal that applying DAFT yields similar performance to the original model while using fewer reasoning steps, showing that it implicitly learns to skip unnecessary steps. We also propose a new metric, Total Length of Transition (TLT), which represents the effective reasoning step size by quantifying how much a given model's focus drifts while reasoning about a question. We show that adding DAFT results in lower TLT, demonstrating that our method indeed obeys the human prior towards shorter reasoning paths in addition to producing more interpretable attention maps. Our code is available at https://github.com/kakao/DAFT.

View on arXivView PDF

Code Implementations(1)

kakao/DAFTOfficial100%
Apache-2.0

Code for the NeurIPS 2019 paper: "Learning Dynamics of Attention: Human Prior for Interpretable Machine Reasoning"

336PythonOct 1, 20193 years agoApache-2.0

Similar Papers

Cite this paper

@article{kim2019learning,
  title  = {Learning Dynamics of Attention: Human Prior for Interpretable Machine Reasoning},
  author = {Wonjae Kim and Yoonho Lee},
  year   = {2019},
  eprint = {1905.11666},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.11666}
}

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

Discussion