---
title: "RL without TD learning"
description: "Transitive RL (TRL) is an off-policy, goal-conditioned RL algorithm that replaces temporal-difference bootstrapping with divide-and-conquer value learning."
url: "https://swe.quest/articles/rl-without-td-learning-c91c431c29fe374a"
canonical: "https://bair.berkeley.edu/blog/2025/11/01/rl-without-td-learning/"
source: "Berkeley AI Research"
published: "2025-11-01"
difficulty: "hard"
kind: "Research"
reading_minutes: 8
tags: ["machine-learning","model-training","algorithms"]
---

# RL without TD learning

A post on [Berkeley AI Research](https://swe.quest/sources/bair.md), published 2025-11-01, 8 min read, Research. Original: [https://bair.berkeley.edu/blog/2025/11/01/rl-without-td-learning/](https://bair.berkeley.edu/blog/2025/11/01/rl-without-td-learning/)

## Summary

Transitive RL (TRL) is an off-policy, goal-conditioned RL algorithm that replaces temporal-difference bootstrapping with divide-and-conquer value learning. It exploits the triangle inequality on temporal distances, using a transitive Bellman update V(s,g) ← V(s,w)·V(w,g). Two choices make it practical: subgoals w are restricted to intermediate states from the same dataset trajectory, and a hard max is replaced with expectile regression, which avoids overestimation. This cuts the number of Bellman recursions from linear to logarithmic in the horizon. On the hardest OGBench humanoidmaze and puzzle tasks (1B-sample datasets, up to 3,000 steps), TRL beats TD, MC and quasimetric baselines on most tasks and matches the best individually tuned n-step TD without choosing n. Open problems include stochastic dynamics and extending the method to reward-based RL.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- reinforcement learning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- Q-learning and Bellman equations
- off-policy vs on-policy RL
- expectile regression

## Keywords

Transitive RL, TD learning, OGBench, Q-learning, goal-conditioned RL, Floyd-Warshall, expectile regression

## Related posts

- [Train your first Decision Transformer](https://swe.quest/articles/train-your-first-decision-transformer-d9877713a380ce1a.md): Hugging Face · 2022-09-08 · Hard · 8 min read · Model training, Machine learning, Python
  Decision Transformers recast reinforcement learning as conditional sequence modeling: a GPT-2 model takes the last K timesteps of return-to-go, state and action tokens and autoregressively predicts actions that achieve a desired return.
- [TRL v1.0: Post-Training Library Built to Move with the Field](https://swe.quest/articles/trl-v1-0-post-training-library-built-to-move-with-the-field-09da5ced251e79bc.md): Hugging Face · 2026-03-31 · Medium · 15 min read · Model training, Open source, API design, Python, LLMs
  TRL v1.0 turns Hugging Face's post-training codebase, now covering 75+ methods and downloaded 3M times a month, into a library with an explicit stability contract.
- [Introducing Decision Transformers on Hugging Face 🤗](https://swe.quest/articles/introducing-decision-transformers-on-hugging-face-53b9486d51c912ca.md): Hugging Face · 2022-03-28 · Medium · 8 min read · Machine learning, Python, Open source
  Decision Transformer, an offline reinforcement learning method that recasts RL as return-conditioned sequence modeling, is now part of the 🤗 transformers library, with nine pretrained checkpoints for Gym continuous-control tasks (Hopper, Walker2D, HalfCheetah).
- [Putting RL back in RLHF](https://swe.quest/articles/putting-rl-back-in-rlhf-dbdbc5d62840e65d.md): Hugging Face · 2024-06-12 · Hard · 11 min read · Model training, LLMs, Python
  RLOO (REINFORCE Leave-One-Out) is now available as a trainer in Hugging Face TRL.
- [Building an RL theorem-proving workflow on Modal](https://swe.quest/articles/building-an-rl-theorem-proving-workflow-on-modal-091b48c98bf6e356.md): Modal · 2026-04-29 · Hard · 10 min read · Model training, ML platforms, Sandboxing & isolation, LLMs
  AE Studio built a reinforcement-learning loop on Modal that trains an LLM to write Lean proofs, comparing Evolution Strategies (ES) against GRPO using Lean verification as the reward. vLLM generation runs on GPU workers fanned out with .map(), Lean verification runs in short-lived sandboxes so bad proofs can't crash the run, and model state is stored as a ~200-byte-per-iteration history of perturbation seeds and rewards that each worker replays onto base weights from a Volume.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
