TL;DR
Transitive Reinforcement Learning (TRL) is a novel value learning algorithm designed for offline goal-conditioned reinforcement learning. By replacing standard sequential updates with a divide-and-conquer approach based on the triangle inequality, TRL reduces the number of Bellman recursions from $O(T)$ to $O(\log T)$. This effectively mitigates the bias accumulation that plagues long-horizon tasks while maintaining lower variance than Monte Carlo methods.
The Problem: The Curse of Horizon
A major bottleneck in off-policy reinforcement learning (RL) is the curse of horizon. Typically, we use Temporal Difference (TD) learning, where a value function is updated by regressing toward a target based on the next state. Because these targets are themselves estimates, errors (biases) accumulate over the horizon. For a trajectory of length $T$, TD learning requires $O(T)$ recursions, leading to significant bias in long-horizon tasks (e.g., 1000+ steps).
While Monte Carlo (MC) methods avoid this bias by using actual returns, they suffer from extremely high variance as the horizon grows. This paper focuses on Goal-Conditioned RL (GCRL)—where the agent must learn to reach any state from any other state—and seeks a middle ground: a method with the low variance of dynamic programming but the low bias accumulation of a shorter recursion depth.
Methods: Transitive Reinforcement Learning
The authors introduce Transitive Reinforcement Learning (TRL), which treats value learning as a shortest-path problem. In deterministic environments, the optimal distance function $d^*$ satisfies the triangle inequality: $$d^*(s, g) \leq d^*(s, w) + d^*(w, g)$$ where $w$ is an intermediate "subgoal" state. In terms of value functions (discounted returns), this translates to a transitive Bellman update: $V(s, g) \leftarrow \max_w V(s, w)V(w, g)$.
To make this theoretical idea work in practice for complex, high-dimensional offline datasets, TRL employs three key techniques:
- In-sample Maximization: Instead of searching the entire state space for the best subgoal $w$, TRL only considers states that appeared in the same trajectory as $s$ and $g$. This prevents the "max" operator from exploiting out-of-distribution errors.
- Expectile Regression: It replaces the hard
maxwith a soft expectile loss (similar to Implicit Q-Learning), which helps approximate the maximum value while remaining robust to noise and overestimation. - Distance-based Re-weighting: The loss is weighted so that the model focuses more on shorter trajectory chunks first. Since shorter paths are easier to estimate accurately, they provide a solid foundation for the divide-and-conquer steps that build up to longer horizons.
Key Insights
- Logarithmic Recursion Depth: By splitting a path of length $T$ into two paths of $T/2$, and so on, TRL only requires $O(\log T)$ recursions to propagate information across the full horizon. This is the core breakthrough: it shifts the update structure from a sequential linked list (TD) to a balanced binary tree (TRL).
- Practicality over "Hard" Constraints: Previous attempts to use the triangle inequality often tried to enforce it as a hard architectural constraint (e.g., quasimetrics). TRL demonstrates that using it as a "soft" value backup—combined with proper offline RL regularizers like expectile regression—is much more scalable for complex robotics.
- In-trajectory Subgoals are Sufficient: Even if the dataset contains random or suboptimal motion, the states within those trajectories provide sufficient "connectivity" to learn the underlying distance structure of the environment.
Datasets and Key Results
The authors evaluated TRL on two main sets of benchmarks:
- Long-Horizon Tasks: Extremely challenging environments including
humanoidmaze-giant(navigating a massive maze with a 21-DOF humanoid) and complexpuzzletasks (manipulating a robot arm to solve "Lights Out"). These tasks have test-time horizons of up to 4000 steps and use 1-billion-sample datasets. - Standard Benchmarks: 10 environments and 50 tasks from OGBench, covering robotic navigation, ball control, and object manipulation.
Performance Highlights:
* Superior Scaling: On the most difficult long-horizon tasks, TRL significantly outperforms standard TD and MC methods. In puzzle-4x6, TRL achieves a ~50% success rate where most other baselines fail completely.
* No Manual Tuning of $n$: Standard TD often uses "$n$-step" returns to reduce bias, but $n$ must be carefully tuned for every task. TRL matches or beats the best individually tuned $n$-step baseline for every environment without needing that manual search.
* State-of-the-Art on OGBench: TRL achieves the highest average performance across the 50 tasks in OGBench, demonstrating that its benefits extend even to standard horizon tasks.
Limitations and Future Work
- Deterministic Assumption: The triangle inequality is strictly valid for deterministic systems. While TRL works well in the tested MuJoCo environments, extending it to highly stochastic settings remains an open theoretical and practical challenge.
- Goal-Conditioned Only: TRL is currently designed for GCRL (reaching states). Adapting this divide-and-conquer logic to general reward-maximization (where rewards aren't just "reaching a goal") is a promising future direction.
- Subgoal Sampling: The current method relies on random midpoint sampling within a trajectory. More sophisticated ways to choose "informative" subgoals could further improve learning efficiency.
Summary updated