Skip to main content
QUICK REVIEW

[Paper Review] Learning Dynamics of Attention: Human Prior for Interpretable Machine Reasoning

Wonjae Kim, Yoonho Lee|arXiv (Cornell University)|May 28, 2019
Multimodal Machine Learning ApplicationsComputer Science40 references3 citations
TL;DR

This paper proposes DAFT (Dynamics of Attention for Focus Transition), a human prior that models attention mechanisms as continuous dynamical systems using neural ODEs to improve interpretability in machine reasoning. By regularizing attention dynamics, DAFT reduces reasoning steps and focus drift—demonstrated by lower Total Length of Transition (TLT) while maintaining performance, leading to more human-like, efficient reasoning.

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. 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.

Motivation & Objective

  • To address the lack of interpretability in attention-based neural networks due to absence of human priors.
  • To model attention dynamics in a way that reflects human-like reasoning—efficient and focused—by leveraging continuous dynamical systems.
  • To develop a method that implicitly learns to skip unnecessary reasoning steps, improving model efficiency and interpretability.
  • To introduce a new metric, Total Length of Transition (TLT), to quantify focus drift during reasoning.
  • To validate that the proposed method produces more interpretable attention maps and shorter, more natural reasoning paths.

Proposed method

  • DAFT models the evolution of attention weights as a continuous dynamical system using neural ordinary differential equations (neural ODEs).
  • The method regularizes attention-based reasoning by constraining the dynamics to follow smooth, human-like transitions between focus points.
  • DAFT is integrated into a state-of-the-art visual reasoning model as a plug-in module to enhance interpretability without altering the backbone architecture.
  • The model's attention maps are constrained to evolve along low-drift trajectories, minimizing unnecessary shifts in focus.
  • A new metric, Total Length of Transition (TLT), is introduced to quantify the cumulative drift of attention over reasoning steps.
  • The method is trained end-to-end with the reasoning model, using the neural ODE formulation to ensure differentiability and smooth dynamics.

Experimental results

Research questions

  • RQ1Can modeling attention as a continuous dynamical system lead to more interpretable and human-like reasoning in neural networks?
  • RQ2Does the proposed DAFT method reduce the number of reasoning steps while maintaining performance?
  • RQ3To what extent does DAFT reduce focus drift during reasoning, as measured by the Total Length of Transition (TLT)?
  • RQ4Can DAFT implicitly learn to skip unnecessary reasoning steps without explicit supervision?
  • RQ5How does DAFT improve the interpretability of attention maps in visual reasoning tasks?

Key findings

  • DAFT achieves performance comparable to the original state-of-the-art model while using significantly fewer reasoning steps, indicating implicit step-skipping behavior.
  • The Total Length of Transition (TLT) is substantially reduced when DAFT is applied, demonstrating reduced focus drift during reasoning.
  • Attention maps produced by DAFT are more interpretable, showing smoother and more coherent transitions between relevant image regions.
  • The method successfully incorporates a human prior—favoring shorter, more focused reasoning paths—without requiring additional supervision.
  • The ablation study confirms that the neural ODE component is essential for achieving low TLT and improved reasoning efficiency.
  • The code and implementation are publicly available, enabling reproducibility and further research in interpretable reasoning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.