# Robust Hopfield Decision Transformer

*Andreia Podasca, Anup Das*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155374) · [OpenReview](https://openreview.net/forum?id=67TZXbgymj) · [Open on the map](../papers.html#p155374)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Offline Reinforcement Learning and Adaptation](../pgroup/625.md) · Type: new method · Keywords: offline reinforcement learning, robustness, attention mechanisms, Hopfield networks, sensor noise

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Dynamical Systems

## Summary
Robust Hopfield Decision Transformer replaces softmax attention with iterative Hopfield layers to improve robustness against corrupted observations in offline reinforcement learning.

## Explained to a 5-year-old
Imagine a robot that learns from old videos of how to do things. It watches a bunch of examples and tries to guess what to do next. The robot uses a special way to remember those examples, but sometimes the memories are blurry because of noise. The old way of remembering only looks at each memory once, so it can't fix the blurry parts. The new robot uses a different memory system that keeps looking at the memories until they become clear, like a ball rolling into a cup.

## Explained to a 5-year-old, longer
Imagine a robot that learns from old videos of how to do things. It watches a bunch of examples and tries to guess what to do next. The robot uses a special way to remember those examples, but sometimes the memories are blurry because of noise. The old way of remembering only looks at each memory once, so it can't fix the blurry parts. The new robot uses a different memory system that keeps looking at the memories until they become clear, like a ball rolling into a cup. It also adds rules to make sure the clear memories don't interfere with each other. This helps the robot make better decisions when its sensors give wrong information. The robot is tested on many tasks, and it does as well as other robots on average, but it is much better when the data is noisy. This makes the robot more reliable for real-world uses like driving cars or helping in factories. The idea is simple: repeat the remembering process and keep the memories separate. By doing this, the robot can recover from errors and act more safely.

## For a technical reader
The paper addresses the fragility of Decision Transformers when faced with noisy observations by redesigning the attention mechanism. Instead of a single-pass softmax attention, they employ iterative Hopfield layers that minimize an energy function, allowing corrupted inputs to converge toward stable attractor patterns. To avoid interference between attractors, they add a Lipschitz gradient penalty and enforce orthogonality on the key vectors that store the patterns. Experiments on the D4RL benchmark show that this yields performance comparable to existing robust baselines on average while markedly improving worst-case returns under observation corruption. This approach provides a principled way to increase robustness without altering the overall training objective.

## Problem
Offline reinforcement learning models such as Decision Transformers rely on softmax attention that processes observations in a single forward pass, making them vulnerable to sensor noise and measurement errors. This lack of a recovery mechanism limits reliability in real-world deployments where observations can be corrupted.

## Method
The approach replaces the softmax attention used in Decision Transformers with modern Hopfield layers that iteratively minimize an energy function, allowing observations to converge toward learned attractor patterns. To avoid interference between attractors, the architecture is regularized with a Lipschitz gradient penalty and orthogonality constraints on the attention keys that store the patterns.

## Results
The approach matches robust baselines in average return and significantly improves worst-case performance when observations are corrupted.

## Contributions
A novel attention mechanism based on iterative Hopfield layers that can recover from corrupted observations, along with Lipschitz and orthogonality regularizations to prevent attractor interference.

## Practical relevance
The method enables more reliable offline reinforcement learning in real-world scenarios where sensor noise and measurement errors are common, such as robotics and autonomous systems.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155374)
