# Hindsight Relabeling is All You Need for Reach-Avoid Learning

DevFeed: [Hindsight Relabeling is All You Need for Reach-Avoid Learning](<https://devfeed.tech/articles/hindsight-relabeling-is-all-you-need-for-reach-avoid-learning-118169.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2505.19337>)

Author: Kevin Li, Marinka Zitnik

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [17](<https://devfeed.tech/tags/17.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [agent](<https://devfeed.tech/tags/agent.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [apply](<https://devfeed.tech/tags/apply.md>), [approach](<https://devfeed.tech/tags/approach.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [avoid](<https://devfeed.tech/tags/avoid.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [best](<https://devfeed.tech/tags/best.md>), [biology](<https://devfeed.tech/tags/biology.md>), [can](<https://devfeed.tech/tags/can.md>), [cost](<https://devfeed.tech/tags/cost.md>), [counts](<https://devfeed.tech/tags/counts.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [data-driven](<https://devfeed.tech/tags/data-driven.md>), [learning](<https://devfeed.tech/tags/learning.md>), [need](<https://devfeed.tech/tags/need.md>), [q-bio-qm](<https://devfeed.tech/tags/q-bio-qm.md>)

## AI overview

RADT learns offline reach-avoid behavior from suboptimal random-policy trajectories without reward or cost supervision, using avoid-region hindsight relabeling. Its decision transformer represents goals and avoid-regions as prompt tokens, so evaluation can specify any number of avoid-regions of arbitrary size without encoding them in an augmented state space or retraining. Across 17 tasks, environments, and settings, it reportedly generalizes zero-shot to avoid-region sizes and counts outside training distributions, outperforming baselines that require retraining. In one such setting, it improves normalized cost by 35.7% over the best retrained baseline while maintaining high goal-reaching success. The abstract also reports an application to cell reprogramming in biology.

## Source excerpt

arXiv:2505.19337v3 Announce Type: replace-cross Abstract: Offline goal-conditioned reinforcement learning methods have shown promise for reach-avoid tasks, where an agent must reach a target state while avoiding undesirable regions of the state space. Existing approaches typically encode avoid-region information into an augmented state space and cost function, which prevents flexible, dynamic specification of novel avoid-region information at evaluation time. They also rely heavily on meticulously designed reward and cost functions, limiting transferability to novel environments and specifications. We introduce RADT, a decision transformer approach for offline, reward-free, goal-conditioned, avoid-region-conditioned RL. RADT encodes goals and avoid-regions directly as prompt tokens, allowing any number of avoid-regions of arbitrary size to be specified at evaluation time. Using only suboptimal offline trajectories from a random policy, RADT can learn reach-avoid behavior in a completely data-driven manner using our novel avoid-region hindsight relabeling approach, without the need for reward/cost supervision. We benchmark RADT against existing offline goal-conditioned RL models across 17 tasks, environments, and experimental settings. RADT generalizes in a zero-shot manner to out-of-distribution avoid-region sizes and counts, outperforming baselines that require retraining. In one such zero-shot setting, RADT achieves 35.7% improvement in normalized cost over the best retrained baseline while maintaining high goal-reaching success. We also apply RADT to cell reprogramming in biology, demonstrating its versatility.