[Paper Review] Tree Memory Networks for Modelling Long-term Temporal Dependencies
This paper proposes Tree Memory Networks (TMN), a novel memory architecture that models long-term and short-term temporal dependencies in sequence-to-sequence tasks using a hierarchical tree structure instead of sequential memory. The method outperforms state-of-the-art models in aircraft and pedestrian trajectory prediction by effectively capturing both recent context and long-term patterns through recursive memory organization.
In the domain of sequence modelling, Recurrent Neural Networks (RNN) have been capable of achieving impressive results in a variety of application areas including visual question answering, part-of-speech tagging and machine translation. However this success in modelling short term dependencies has not successfully transitioned to application areas such as trajectory prediction, which require capturing both short term and long term relationships. In this paper, we propose a Tree Memory Network (TMN) for modelling long term and short term relationships in sequence-to-sequence mapping problems. The proposed network architecture is composed of an input module, controller and a memory module. In contrast to related literature, which models the memory as a sequence of historical states, we model the memory as a recursive tree structure. This structure more effectively captures temporal dependencies across both short term and long term sequences using its hierarchical structure. We demonstrate the effectiveness and flexibility of the proposed TMN in two practical problems, aircraft trajectory modelling and pedestrian trajectory modelling in a surveillance setting, and in both cases we outperform the current state-of-the-art. Furthermore, we perform an in depth analysis on the evolution of the memory module content over time and provide visual evidence on how the proposed TMN is able to map both long term and short term relationships efficiently via a hierarchical structure.
Motivation & Objective
- To address the challenge of modeling long-term temporal dependencies in sequence-to-sequence learning, especially in tasks requiring recall of historical patterns.
- To overcome limitations of sequential memory in RNNs and LSTMs, which often neglect long-term relationships due to vanishing gradients and short-term dominance.
- To design a memory architecture that efficiently captures both short-term dynamics and long-term structural patterns in sequential data.
- To demonstrate the generalizability and effectiveness of the proposed architecture on real-world trajectory prediction tasks.
- To provide visual and quantitative analysis of memory evolution, showing how hierarchical structure enables robust representation of both recent and historical inputs.
Proposed method
- The TMN architecture consists of three components: an input module, a controller, and a memory module structured as a recursive tree rather than a sequence.
- The memory module stores historical states in a tree hierarchy, enabling efficient retrieval and aggregation of long-term dependencies across multiple time scales.
- At each time step, the model computes output as a function of current input and the memory state from the previous step, using a differentiable attention mechanism over tree-structured memory nodes.
- The tree structure allows higher-level nodes to represent abstract, long-term patterns, while lower levels capture short-term dynamics, enabling joint modeling of temporal relationships.
- The controller dynamically selects and updates memory nodes based on input relevance, using a gating mechanism to control information flow through the tree.
- The model is trained end-to-end using backpropagation, with loss functions tailored to sequence-to-sequence prediction tasks such as trajectory forecasting.
Experimental results
Research questions
- RQ1Can a tree-structured memory module outperform sequential memory in modeling long-term dependencies in sequential data?
- RQ2How does the hierarchical organization of memory enable better representation of both short-term and long-term temporal patterns?
- RQ3To what extent can the proposed TMN model generalize across different sequence-to-sequence tasks with varying temporal dynamics?
- RQ4How do memory activations evolve over time, and can they be interpreted to reflect meaningful long-term patterns?
- RQ5Does the tree memory structure reduce reliance on recent context, thereby improving prediction robustness in repetitive or cyclical processes?
Key findings
- The TMN model achieves state-of-the-art performance on aircraft trajectory prediction, outperforming existing methods in both accuracy and long-horizon forecasting.
- In pedestrian trajectory prediction on the Grand Central dataset, TMN significantly reduces prediction error compared to baseline models, especially in scenarios involving recurring flow patterns.
- Visual analysis shows that the memory activations at higher levels of the tree structure are driven by input patterns rather than recent history, indicating effective long-term memory retention.
- Unlike standard LSTM-based memory models, TMN maintains consistent activations for similar input patterns even when recent histories differ, demonstrating robustness to short-term noise.
- The memory module evolves in a way that preserves structural similarity across repeated events (e.g., train arrivals), confirming its ability to capture cyclical and long-term dependencies.
- The model’s hierarchical design enables sparse, interpretable memory representations that reflect both immediate context and historical context, improving generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.