NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Neural Turing~Machine for Conditional Transition Graph Modeling

Mehdi Ben Lazreg, Morten Goodwin, Ole-Christoffer GranmoarXiv 2019

Introduction

The Conditional Neural Turing Machine (CNTM) represents a significant evolution in modeling complex, cyclic systems where transitions between states are governed by external triggers. By integrating external memory with a context-aware controller, the CNTM addresses the inherent limitations of standard Recurrent Neural Networks (RNNs) in learning the underlying logic of conditional transition graphs. This architecture allows for superior link prediction and path inference in dynamic environments such as crisis management workflows.

The Challenge of Conditional Transitions

In many real-world domains, data is best represented as a graph where nodes signify states and edges signify transitions. However, traditional graph learning often struggles with transitions that are not static but depend on external environmental factors.

A simple conditional transition graph illustrating how the path from Node A depends on the truth value of condition P.

Consider a crisis management scenario: an emergency responder's next action is not fixed; it depends on evolving external variables like water levels or crowd behavior. While Finite State Machines (FSMs) can model these dependencies, they become prohibitively complex and difficult to maintain as the number of states and variables grows. The authors identify a critical gap: the need for a neural architecture capable of inferring this "conditional logic" from partial observations, effectively performing link prediction in a space where edges are context-dependent.

Architecture: The Conditional Neural Turing Machine

The CNTM builds upon the foundational Neural Turing Machine (NTM) architecture. A standard NTM consists of a neural network controller linked to an external memory matrix via read and write heads, allowing the model to store and retrieve information over long sequences.

The standard Neural Turing Machine architecture, featuring a controller, external memory, and read/write heads.

The CNTM introduces two primary innovations to this base:

  1. Contextual Input: The model processes a context vector $v$, which merges the current state $x(t)$ with an external environmental input $c$. This allows the controller to make decisions based on the global environment rather than just the local node.
  2. Two-Phase Learning Strategy:
    • Description Phase: The model is exposed to triples (current state, input, target state) in a randomized order. This forces the external memory to act as a dynamic lookup table for transition rules rather than just storing a fixed sequence.
  3. Answer Phase: The model is tasked with predicting the next state given only the current state and environmental context, requiring it to retrieve the correct transition logic from its memory.

Experimental Evaluation

The researchers evaluated the CNTM against standard LSTMs and graph-distance baselines across synthetic and real-world datasets.

Synthetic Benchmarks

On randomly generated graphs with 10 nodes, the CNTM achieved an accuracy of 82.12%, outperforming the LSTM's 79.51%. The performance gap widened significantly as complexity increased; for 100-node graphs, the CNTM maintained 65.25% accuracy, while the LSTM's performance plummeted to 42.47%. This suggests that the external memory provides a stabilizing effect, mitigating the "forgetting" issues common in pure RNN architectures.

Crisis Management Case Study

Using a 50-node graph modeling emergency response workflows (e.g., fire and extreme weather), the CNTM reached 78.59% accuracy. Expert validation further confirmed the model's utility: emergency management professionals rated the model's predicted paths highly, even when those paths were not present in the original training data. This indicates that the CNTM successfully learned logical transitions that aligned with human expertise.

Conclusion and Future Directions

The CNTM demonstrates that external memory can significantly improve generalization in conditional environments by treating memory as a logic table. While accuracy decreases as graph size scales, the model's ability to decouple graph structure from observation sequences marks a major step forward. Future work will explore more complex environmental inputs and strategies for maintaining long-term state consistency in even larger, more complex systems.

Summary updated

BibTeX
@misc{lazreg2019neural,
  author = {Mehdi Ben Lazreg and Morten Goodwin and Ole-Christoffer Granmo},
  title = {{A Neural Turing~Machine for Conditional Transition Graph Modeling}},
  year = {2019},
  eprint = {1907.06432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.06432},
}
Figure