Decision Titan: Test-Time Training for Long-Term Memory in Offline Reinforcement Learning
cs.AI, cs.LG
Submitted: 2026-10-01
Updated: 2026-10-01
Comments: Accepted at ICML 2026 Workshop on Decision-Making from Offline Datasets to Online Adaptation: Black-Box Optimization to Reinforcement Learning
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: Long-term dependencies remain a major challenge for sequential decision-making in the field of AI: RNNs suffer from vanishing gradients and the limited expressivity of vector-based hidden states,
Terminology
Abstract
Long-term dependencies remain a major challenge for sequential decision-making in the field of AI: RNNs suffer from vanishing gradients and the limited expressivity of vector-based hidden states, whilst Transformer-based models are limited by the quadratic scaling of attention. Recent work has proposed tackling this problem with the Test-Time Training (TTT) framework, which stores episodic memories in the parameters of a neural network through gradient descent at both train and test-time. This approach has seen success in the domain of Natural Language Processing, however, to the best of our knowledge it has not yet been applied to the domain of Reinforcement Learning (RL), nor has there been a study analysing how this memory practically functions. In this paper, we study the potential of the TTT framework for offline RL by augmenting a Decision Transformer with TTT layers, dubbed the Decision Titan. We analyse performance and properties of the model in the X-Maze environment, an extension of T-Maze designed to test sequential memory, and investigate how the memory mechanism learns by visualising gate values over time. Our key findings are that Decision Titan can learn long-term dependencies with ranges 20x longer than the context window, generalises to lengths 1.7x the training data, but crucially temporal generalisation depends on the time embeddings used, and the ability to learn long-term dependencies depends on how the relevant information is encoded.
Sources
- Decision Transformer: Reinforcement Learning via Sequence Modeling
- Recurrent Action Transformer with Memory
- Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling
- Planning Transformer: Long-Horizon Offline Reinforcement Learning with Planning Tokens
- RULER: What's the Real Context Size of Your Long-Context Language Models?
- Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Large Memory Layers with Product Keys
- Evaluating Long-Term Memory in 3D Mazes
- A Survey of Temporal Credit Assignment in Deep Reinforcement Learning
- Self-Attention with Relative Position Representations
- RoFormer: Enhanced Transformer with Rotary Position Embedding
- Learning to (Learn at Test Time): RNNs with Expressive Hidden States
- Attention Is All You Need
- Online Decision Transformer
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems