Test-time Offline Reinforcement Learning on Goal-related Experience

Marco Bagatella, Mert Albaba, Jonas Hübotter, Georg Martius, Andreas Krause
7/24/2025
cs.LG

No official code found. Best implementation: mertalbaba/gc_ttt (7 stars, last commit 2025-07-29).

Abstract

Foundation models compress a large amount of information in a single, large neural network, which can then be queried for individual tasks. There are strong parallels between this widespread framework and offline goal-conditioned reinforcement learning algorithms: a universal value function is trained on a large number of goals, and the policy is evaluated on a single goal in each test episode. Extensive research in foundation models has shown that performance can be substantially improved through test-time training, specializing the model to the current goal. We find similarly that test-time offline reinforcement learning on experience related to the test goal can lead to substantially better policies at minimal compute costs. We propose a novel self-supervised data selection criterion, which selects transitions from an offline dataset according to their relevance to the current state and quality with respect to the evaluation goal. We demonstrate across a wide range of high-dimensional loco-navigation and manipulation tasks that fine-tuning a policy on the selected data for a few gradient steps leads to significant performance gains over standard offline pre-training. Our goal-conditioned test-time training (GC-TTT) algorithm applies this routine in a receding-horizon fashion during evaluation, adapting the policy to the current trajectory as it is being rolled out. Finally, we study compute allocation at inference, demonstrating that, at comparable costs, GC-TTT induces performance gains that are not achievable by scaling model size.

View on arXivView PDF

Code Implementations(1)

mertalbaba/gc_tttCommunity68%

Official repository for "Test-time Offline Reinforcement Learning on Goal-related Experience" (Preprint)

70Shell, PythonJul 23, 20251 years ago

Cite this paper

@article{bagatella2025testtime,
  title  = {Test-time Offline Reinforcement Learning on Goal-related Experience},
  author = {Marco Bagatella and Mert Albaba and Jonas Hübotter and Georg Martius and Andreas Krause},
  year   = {2025},
  eprint = {2507.18809},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.18809v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.18809.svg)](https://codeofpaper.com/paper/2507.18809)

Discussion