Hindsight Relabeling is All You Need for Reach-Avoid Learning
Kevin Li, Marinka Zitnik
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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a method for acquire reach-avoid policies using a technique reminiscent of the Decision Transformer. Trajectories are labeled with the state actually reached, as well as geometric regions that the trajectory reached or avoided. The method can generalize to reach-avoid tasks of varying sizes and numbers of regions to avoid, by suitable prompting.
Reviewers found the paper clearly written [7Jzv, AJxX] and well motivated [AJxX, CshF], praising the paper for the simplicity of the method [7Jzv], and the breadth of experiments (2D + 3D + Boolean, low-dim and high-dim, discrete and continuous state spaces) [AJxX].
The reviewers had some technical questions, which would be good to address in the rebuttal. It seems like Reviewer [CshF] had the most suggestions; some of these suggestions were vague to me, so I've asked that reviewer to clarify exactly which baselines/environments/ablations/etc they'd like to see included in the revision.
Final justification
The rebuttal addressed most of the reviewer concerns, including through additional experiments, with two reviewers increasing their score. I continue to recommend that the paper be accepted. I honestly find it super cool that the paper includes a nontraditional application of reach-avoid (to cell reprogramming), though I'm admittedly not qualified to evaluate the biological significance of the result.
Read meta-review
Meta-review
This paper proposes a method for acquire reach-avoid policies using a technique reminiscent of the Decision Transformer. Trajectories are labeled with the state actually reached, as well as geometric regions that the trajectory reached or avoided. The method can generalize to reach-avoid tasks of varying sizes and numbers of regions to avoid, by suitable prompting.
Reviewers found the paper clearly written [7Jzv, AJxX] and well motivated [AJxX, CshF], praising the paper for the simplicity of the method [7Jzv], and the breadth of experiments (2D + 3D + Boolean, low-dim and high-dim, discrete and continuous state spaces) [AJxX].
The reviewers had some technical questions, which would be good to address in the rebuttal. It seems like Reviewer [CshF] had the most suggestions; some of these suggestions were vague to me, so I've asked that reviewer to clarify exactly which baselines/environments/ablations/etc they'd like to see included in the revision.
Final justification
The rebuttal addressed most of the reviewer concerns, including through additional experiments, with two reviewers increasing their score. I continue to recommend that the paper be accepted. I honestly find it super cool that the paper includes a nontraditional application of reach-avoid (to cell reprogramming), though I'm admittedly not qualified to evaluate the biological significance of the result.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies offline reach-avoid reinforcement learning, where an agent must reach a goal state while avoiding undesirable regions of the state space, in safety-critical settings that preclude online exploration. The author argues that existing methods generally encode avoid-region information into a fixed cost function, which lacks flexibility and failed to zero-shot adapt to new avoid regions when deployed. Hence in this paper, they propose RADT, a decision transformer that represents goals and avoid-regions as prompt tokens, decoupling the reach-avoid states from state representations to enable flexible number/size/location of avoid regions during test time. The method is trained offline with hindsight relabeling applied to avoid region, through a method called HAR, allowing avoidance to be learned from violations without reward or cost function. The method shows matching or exceeding baselines across robotic arm reach task, and 3 maze environment.
Strengths and weaknesses
Strength:
- The idea is well motivated, isolating avoid-region sepciification out of the state representations effectively enables zero-shot adaptation at test time.
- Hindsight relabeling plays a critical role in offline learning, that removes the cost function, as the author claimed require careful design, extract avoidance signal from offline trajectories, and decouples avoidance learning from fix data.
Weakness:
- Experiment lacks baselines. The Experiment only compare against 3 baselines, with 2 of them falls into same category (RbSL, AM-Lag). I argue there should be more baselines that can achieve goal in your avoid-region setting. Especially when there is an emerging of JEPA based methods recently. This may include some referenced papers like (Pre-Trained Multi-Goal Transformers with Prompt Optimization for Efficient Online Adaptation(ref 62), Constrained Decision Transformer for Offline Safe Reinforcement Learning(ref 34), or Safe offline reinforcement learning with feasibility-guided diffusion model(ref 64)).
- There is an ablation section in your appendix, but it is far from enough, the prompt token representation and HAR supervision are not separately studied. Results did not show necessity of each component. For example, Is the gain from the transformer backbone? or Is the gain from hindsight avoid-region relabeling or prompt tokens?
- Limited ceiling, no search/exploration. RADT can be considered as a supervised learning with no reward or trajectory improvement, in which case, the performance is largely determined by the quality of offline data. The agent can merely mimic the offline trajectory instead of improving from them. Beyond that, the agent may fail when the avoid-region blocks offline trajectory during test time.
- Experiment setting lacks variety. Although claimed to have 'across 17 tasks, environments, and experimental settings.', the experiment settings only span 2 RL environment, 1 robot arm and 1 maze (with 3 different shapes). And these tasks are relatively easy, the goals are trivial.
- In section 2, the author state that Reward-free learning is a Desirable property because it require expert domain knowledge to design a cost function or a reward function. However first, in the experiment environment, the task is trivial that cost function or reward function can be easily constructed. Second, the offline learning RL design in this paper require to collect offline data, and then apply Hindsight relabeling. I understand that this paper use random policy to collect data, but that is only because the task/environment is easy. In a more complicated goal environment, for example Atari, especially hard Atari (Montezuma's revenge), or slightly more complicated robot control (Pick and place), random policy cannot yield any meaningful 'task complete' demonstration, hence the agent cannot learn anything if no expert demonstration is provided. Overall I found reward-free is not necessary.
- The design lacks support for high-dimensional or visual inputs. All three domains use compact, low-dimensional state vectors, and the goal and avoid-region tokens are defined as points and boxes within that state space. This breaks for visual or high-dimensional observations, breaking the paper's "general-purpose" framing.
Questions
- Please refer to my weakness section and try to address them.
- The reward-free, suboptimality-tolerant, goal-swappable setting is also pursued by JEPA-based latent world models (for example PLDM, DINO-WM), which the paper does not discuss. How does RADT relate to that paradigm. Since these methods already achieve the reward-free, goal-conditioned half of the problem, is RADT's distinctive contribution primarily the avoid-region conditioning? Relatedly, could a latent-planning world model handle avoid-regions simply by incorporating an avoid term into its planning cost? and if so, what does the prompt-token formulation offer beyond that?
- The avoid success token z and per-step label k_t are both calculated based on avoid success and reaching goal. How do you differentiate this from a real cost function or reward function?
- In terms of further empirical evidence, I would suggest more environment like AntMaze with avoid zone, the rest of the RbSL suite, or Safety-Gymnasium.
Limitations
The authors include a brief Limitations section (Appendix F) covering compute cost and the OOD generalization ceiling, both addressed candidly. Additional and arguably more consequential limitations are listed in the Weaknesses section of the review.
Final justification
I the rebuttal period, the author resolved most of my concerns about the method itself. I believe this method is solid in terms of agent traversing inside an environment while avoiding some regions. However the author seems to ignore my last raised point about task complexity. All empirical evidence is about moving the agent, event the robot arm task is to reach a goal. The method has never been tested in a harder task, for example robot arm fetch move and place, or a harder maze that cannot be easily see through like A, C or H shaped maze in the paper.
I changed my score from 3 to 4: “ Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation.”, as the author resolve my questions and my only concern is empirical evidences now
Formatting concerns
No formatting or anonymity violations noted.
8 comments
Initial Response (2/5)
W1: Additional baselines
Thank you for suggesting the inclusion of MGPO and CDT/other safe RL methods as baselines. We initially excluded MGPO, as it is a GCRL method like our existing WGCSL baseline (which was used in the RbSL/AM-Lag paper), which do not consider avoid-regions at all and thus only provide a useful reference point for floor performance on avoid behavior. However, we agree that it is also important to have MGPO as a baseline, since it is also a decision transformer (DT) like our model, so such a baseline would isolate our other innovations from the effects of using a DT architecture. The results for MGPO baseline on the FetchReach and Maze suites are included in the table below. As expected, MNC performance lags far behind RADT/AM-Lag/RbSL, but is slightly better than WGCSL. SR performance is comparable but slightly worse than WGCSL. Overall, it provides a similar reference point as WGCSL does, but we are now more confident that our strong avoid performance is not due anything inherent about the DT architecture.
| box width | MGPO MNC | MGPO SR |
|---|---|---|
| 0.16 | 0.384 | 0.97 |
| 0.20 | 0.573 | 0.982 |
| 0.24 | 0.711 | 0.978 |
We exclude CDT and the entire category of safe RL methods that are not goal-conditioned/avoid-conditioned. While offline goal-conditioned/avoid-conditioned safe RL methods like AM-Lag and RbSL cannot generalize to OOD region sizes and numbers, they can at least generalize to new goal/avoid-region locations and are able to be evaluated on our environment settings (which randomly generate different locations for goals/avoid-regions at each run). However, normal OSRL methods solve a completely different problem as they cannot generalize to new goal/avoid-region locations and work with fixed constraints in the state space. Evaluating OSRL methods like CDT on our environment tasks would require re-training for every single new location (impractical) or fixing the goal and avoid-region to the same place every time (which is not the problem our study focuses on). Otherwise, OSRL methods essentially degenerate to serve the same purpose as our GCRL baselines since they can’t take into account the changing avoid-regions (except, unlike the GCRL baselines, we would need to add the goal-conditioning component too).
W2: Ablation experiments
We maintain that our ablation studies in H.1 are numerous and do properly isolate the contribution of our prompt and HAR design choices, as was acknowledged by the other reviewers. The prompt tokens and HAR method were studied/ablated separately: Table 11 shows the results of ablating just the HAR method while maintaining the prompt design, and Tables 6-7 shows the results of ablating the different types of prompt tokens while maintaining the HAR method. We also explored the effect of design choice for the avoid-region token representation in H.3 and Table 10, showing that RADT is relatively robust to avoid-region token representations as long as it includes location and size information. However, we agree that there are a couple more ablations that would be useful. To isolate the advantages that our design brings on top of the transformer architecture, the MGPO results in our response to W1 serves as an ablation of everything that has to do with avoid-regions, leaving just a goal-conditioned transformer model. Additionally, we also run experiments where we 1) ablate only the avoid-region tokens (the only token type in the prompt we did not isolate yet) and leave the indicator tokens and 2) ablate only the size component of the avoid-region token vector (e.g. only including centroid location information, no box or radius representation) to isolate the importance of including size/extent information in our avoid-region token representation. As shown in the results tables for FetchReach below, both ablations drastically worsen MNC across all box sizes.
Ablation of avoid-region tokens only (rest of prompt retained):
| box width | MNC | SR |
|---|---|---|
| 0.16 | 0.619 | 0.9 |
| 0.18 | 0.747 | 1.0 |
| 0.2 | 0.853 | 0.99 |
| 0.22 | 0.91 | 0.99 |
| 0.24 | 0.943 | 0.98 |
Ablation of size component in avoid-region token vector:
| box width | MNC | SR |
|---|---|---|
| 0.16 | 0.464 | 0.98 |
| 0.18 | 0.513 | 0.92 |
| 0.2 | 0.655 | 0.98 |
| 0.22 | 0.72 | 0.98 |
| 0.24 | 0.83 | 0.98 |
Initial Response (3/5)
W3: Super-demonstration performance without exploration in offline RL
Thank you for brining up this important point of discussion. We disagree that offline RL methods (DTs or otherwise) merely imitate demonstrations and cannot learn super-demonstration policies just because they cannot explore online, and we have empirically shown this across all our experiments (where RADT was trained on random-policy data but exhibits strong performance). In fact, the main different between offline RL and supervised learning/imitation learning/behavioral cloning is the fact that the former can achieve super-demonstration performance with offline data (e.g. via trajectory stitching) while the latter cannot. The capability of learning a super-demonstration demonstration policy from offline data can come from two methods: 1) Using rewards (e.g., CQL, IQL, the original DT) allows the policy to learn from offline data the relationship between patterns in the training demonstrations and the return magnitude, which it can thus exploit to create novel trajectories (via trajectory stitching) that achieve higher return than any other method. 2) Using hindsight relabeling replaces the need for rewards entirely and allows for suboptimal demonstrations to teach optimal behavior using just a supervised objective; this is the core behind the modern area of data-driven GCRL models. Our method extends this second paradigm to also work with teaching super-demonstration avoid behavior rather than just goal-reaching behavior.
W4, Q3: Experimental/environmental variety
We appreciate the suggestion for more experimental variety. As acknowledged by reviewer 7Jzy and AJxX, we maintain that we have explored a strong diversity of environment types (ranging from continuous to discrete, deterministic to stochastic, open to structured state spaces, etc.) and experimental settings (generalization to varying avoid-region sizes, counts, and avoidability). However, we recognize that we do not explore avoid-modified versions of the entire suite of Fetch and Maze environments in Gymnasium Robotics. This is partially intentional and was discussed in Appendix C.1 Choice of Environments. Essentially, the other goal-reaching tasks in the Gymnasium Robotics suites are much harder goal-reaching tasks, with goal-reaching SR being very low even for SOTA GCRL methods (as shown in the results of OGBench, citation [40] in the paper). These are meaningful benchmarks if we only care about goal-reaching ability and are benchmarking pure GCRL methods; however, since the focus of our paper is to evaluate the avoid abilities on top of the goal-reaching abilities, meaningful comparisons of avoidance behavior (MNC) are only possible when goal-reaching SR is relatively high, stable, and comparable across methods. As a demonstrative example, consider the case where one method achieves an MNC of 0.4 and an SR of 0.6, and another achieves an MNC of 0.1 and an SR of 0.1. Which one is the better reach-avoid method? It’s difficult to say, because even though the second model achieves a lower MNC, it rarely ever reaches the goal, so it could just be mostly staying still near the starting point (which allows it to also not violate the avoid regions), which would not be considered good avoidance behavior. Thus, we choose environments that are not the most challenging goal-reaching methods so that all methods we are comparing have relatively high SR, so that we can properly compare MNC more meaningfully and rigorously. Hence, most of our experimental variety comes from axes where avoid configurations can vary (size, count), rather than from diversity of the goal-reaching task.
We agree that more experiments are always helpful, so we have included two additional environments/experiments:
The first experiment involves a point navigation task that involves an open rectangular environment with multiple (between 2 and 4 regions) smaller rectangular avoid-regions of varying aspect ratio (ranging from 1:1 to 1:2.5) and sizes (with side lengths ranging from 0.24 to 0.6) to avoid. Unlike previous tasks, this environment simultaneously involves variation in location, shape, size, and number of avoid-regions. RADT and baselines were trained in-distribution, and the results are in the table below. As shown, RADT achieves the best MNC on this task and is on par with AM-Lag for SR, with RbSL lagging far behind.
| SR | MNC (1e-2) | |
|---|---|---|
| RADT | 0.99 | 2.12 |
| AM-Lag | 1.0 | 3.81 |
| RbSL | 0.41 | 5.14 |
The second experiment addresses your request for an environment involving a high-dimensional, image-based observation space and its setup and results are presented in our response to W6 below.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces RADT, a novel decision transformer (DT) architecture to enable generalisation to arbitrary reach-avoid tasks at test time without retraining. In contrast to existing methods, RADT is trained from purely suboptimal, offline data, and can generalise to arbitrary reach-avoid tasks with varying sizes and numbers of regions to avoid. This is achieved by conditioning the DT on a "prompt" sequence involving varying numbers of tokens corresponding to the avoid regions, and a goal token. The rest of the architecture follows the standard DT design. Training is achieved via a novel hindsight-experience replay (HER) approach that augments the offline dataset with either successful or unsuccessful avoidance prompts.
Strengths and weaknesses
Strengths
- The paper is well-motivated. It tackles an important problem and clearly highlights the combination of desirable properties it is trying to achieve (P1 - P5).
- The writing is overall clear (with some caveats, see below), and the method is nicely described with useful illustrations.
- The proposed method involves an interesting combination of DTs, prompt-based conditioning, and hindsight relabelling.
- The experiments involve complex environments with high-dimensional continuous and discrete state spaces. The results show that the approach compares favourably compared to the baselines and especially demonstrates strong generalisation capabilities. Furthermore, the authors provide numerous ablation studies isolating the impact of the individual components of their approach.
Weaknesses Section 2 is overall well-structured, but I would have liked to see a more formal framing of the problem. What exactly is the problem that RADT is trying to address? How does this relate to standard formulations, such as constrained MDPs? Do you consider expected returns and costs, or can the method deal with hard constraints? Overall, some more mathematical rigour in this section would improve the paper.
Similarly, the description of the main method is missing important details that are delegated to the appendix. These include the avoid-awareness loss, attention boosting, and avoid region sampling strategies. These ideas are interesting and central to the paper, and I don't think they should all be delegated to the appendix.
An important element of the method is to sample avoidance regions for HER. However, this does not scale with the size of the state space as almost all sampled regions will fall outside of the trajectory due to the curse of dimensionality, and hence not be very informative. The authors discuss more advanced sampling strategies, such as contour-based sampling. What is the complexity of this procedure and how does it scale with dimensionality? How generally can this be applied to arbitrary state spaces (for example, how would the method deal with image observations)? It seems like it would be natural to require some distance metric over the state space to allow sampling informative avoidance regions; if this is an implicit assumption, this should be made explicit and stated in the problem setting.
The evaluation protocol seems not completely aligned with the motivation of the paper: the authors explicitly mention safety-critical settings, where entering undesired regions may have irrevocable consequences. Yet the experiments all involve soft constraints (in contrast to prior work), where the agent is allowed to enter unsafe regions at evaluation time. How does the experimental evaluation change when entering an avoid region is immediately classified as failure (in terms of failure rate)?
The results with a fraction of expert trajectories mixed with the data are interesting. Can the authors provide results of the baseline methods under this setting? This would be important to justify the claim that higher avoidance rates in these environments are inherently linked to lower success rates. Furthermore, the Stochastic Cell Reprogramming experiment does not provide baseline results, making an evaluation of the proposed method difficult.
Questions
See the questions above, with some more technical questions:
- What is the exact mathematical problem RADT is trying to solve?
- What is the complexity of the contour-based sampling procedure? How does it scale with dimensionality?
- Is the method applicable to arbitrary state spaces such as image observations?
- Can you provide failure rates (entering an avoid region during a trajectory) in addition to MNC?
- How do baseline methods perform when trained on the dataset that includes expert trajectories?
- How do baselines perform in the Stochastic Cell Reprogramming environment?
- Can you provide an explanation for why the success rates in the Maze environments generally increases as the number of avoid regions increases? This seems unintuitive.
- In the discrete setting, is it really necessary to introduce the hyperparameter? I would have expected the model to be able to learn from discrete avoid points just as well (or better) than from continuous boxes with small . If this significantly improves performance, can you provide intuition why this is the case?
Limitations
yes
Final justification
The rebuttal has addressed some of my concerns. The theoretical framing the authors provided is clear, and I encourage them to include this in the paper. I'm still not convinced about pareto-optimality being the right choice for general reach-avoid problems, but I do appreciate there exist examples where avoidance actually is a soft rather than a hard constraint. The authors additionally provided the requested experiments with hard avoidance constraints, which look promising.
My remaining concerns regard the general applicability of the method to arbitrary state spaces. The authors' reply and initial results with image observations are appreciated. I still think there are scalability and hand-designed engineering concerns to apply the method to arbitrary problems.
Nevertheless, I think the method overall presents an interesting and well-executed study, so I tentatively recommend acceptance.
Formatting concerns
no
9 comments
Initial Response (1/5)
Thank you for your insight and helpful feedback! We are glad you found our paper clearly written and well-motivated, and we especially appreciate the acknowledgement of RADT’s strong performance against baselines over a variety of environments, domains, tasks, and experimental settings. We also appreciate the acknowledgement of our thorough suite of ablation studies and how they isolate the contributions of the various components in our approach.
We have responded to your comments/suggestions and included the results for the requested new experiments below. If you find your concerns addressed after reviewing our responses, we would greatly appreciate it if you could consider raising your score. If you have any remaining questions, please let us know and we would be happy to address them!
Initial Response (2/5)
W1, Q1: Formal problem framing
We recognize the importance of being more mathematically explicit with our problem formulation. We propose the following formulation below, which we will include in the camera-ready version of the paper:
The problem we are concerned with is primarily the Pareto optimization problem , with two separate objectives to optimize for that may sometimes be at conflict with each other: (1) the goal-reaching (“reach”) objective
and (2) the avoidance objective
,
where is the goal, are the avoid-regions, is the goal-reaching success indicator function with leniency defined as with is the last state in , and is the MNC function defined as . While we could combine the two objectives into a single scalar objective/evaluation metric, that would involve predetermining/implying an optimal tradeoff between the two objectives, which is very subjective to different scenario/user preferences, so we do not inherently define an optimal tradeoff between the two objectives and leave both objectives defined and evaluated separately, making it a Pareto optimization problem. Thus, if one method excels on one objective but underperforms on another objective compared to a second method (e.g. in the case of RADT vs AM-Lag on FetchReach-BoxWidth0.16), there is no objective “better method” in such a case. However, if one method were to dominate on one objective without being significantly worse on the other objective, as in the case with on the Maze environments and arguably the FetchReach environments with boxwidth >= 0.18, it is said the method is Pareto dominant.
Therefore, under this Pareto optimization framing of reach-avoid behavior, the results show that RADT is Pareto dominant on the majority of settings across the FetchReach and Maze suites, and is incomparable to the other methods on the rest (but is never Pareto-dominated by a baseline).
On the other hand, many safe RL methods (e.g. AM-Lag, RbSL) often frame the problem as a CMDP, which is inherently a constrained optimization problem rather than a Pareto optimization. Here, one objective (usually the avoidance objective in reach-avoid problems) is treated as a constraint that must be satisfied in order for the other objective (the reach objective) to even be considered when determining success; for instance: . 1) This implies an ordering of importance and priority between the two objectives; in this formulation, there is always a way to determine which is the best method (first compare constraint satisfaction, if constraint is satisfied, then compare main objective). 2) One of the objectives (the constraint) can only be compared on binary granularity (either the constraint is satisfied or it isn’t), losing nuanced granular comparison between methods on that objective. This CMDP formulation is fitting for scenarios where avoidance is a strict, hard constraint. As we have described in Section 2 of the paper, however, in many cases avoidance is not a strict/hard constraint (e.g. passing through a construction zone in driving navigation is allowed and not destructive, though still undesirable) and sometimes even unavoidable (e.g. Cardiogenesis scenario 3, as depicted in Figure 4c). In such cases, when avoid-regions can be or must be violated, how much they are violated matters (e.g., how much of your route you spend in a construction zone affects how fast you reach your destination, how much time your cell spends in an undesirable gene expression state affects risk of tumorigenesis).
This is the advantage of our Pareto optimization formulation; it provides a more granular, comprehensive, and general evaluation/comparison of the reach-avoid behavior of models, where optimal tradeoffs and priorities are not implied. However, we recognize the prevalence of scenarios in which priorities are obvious (e.g. strict safety constraints). We show in our new experimental results in response to W4, Q4 that even when avoid-regions should be hard/strict (e.g. immediate termination of trajectory upon violation), RADT does not underperform baselines on these evaluation metrics in-distribution.
Initial Response (3/5)
W2: Details relegated to Appendix
Thank you for the suggestion. We agree that important method details are relegated to the Appendix, and this is primarily due to space issues. With the additional page we get for the camera ready version of the paper, we will move as much of it as we can into the main paper.
W3, Q2, Q3: Sampling complexity of HAR, image-based/high-dimensional observational spaces
We agree it is important to discuss the generalizability of the HAR sampling methods to higher dimensionalities. First, we would like to clarify the scope of our paper, which aims to establish the prospect and viability of HAR as a general paradigm for reach-avoid learning, recognizing that there are multitudinous opportunities to create for more sophisticated, improved HAR sampling strategies optimized for specific applications that are worth exploring. We provide one specific example of such with our contour-based sampling for FetchReach, but as shown by our Maze and Cardiogenesis experiments, contour-based sampling is not required to see the benefits of HAR and not an inherent part of our HAR innovation. Admittedly, with the complexity of calculating hulls being , with being trajectory length and is state dimensionality, this specific sampling strategy is not scalable to very high dimensions. Sophisticated sampling strategies for higher dimensions (potentially involving working in manifold distances) remains an open problem and a very important avenue of future research.
But, to establish HAR’s scalability to high dimensions in general without more sophisticated sampling methods, we conduct an initial proof-of-concept for applying RADT to an image-based observation space. The experiment and results are presented in our response to Reviewer CshF W6.
W4, Q4: Evaluation metrics and immediate failure rates
This is an insightful question, and important context is provided in our response to W1, Q1 above when we describe our Pareto optimization framework of optimization and evaluation and compare it against a constrained optimization framework. Related to that discussion, we maintain that evaluating a policy without immediate trajectory termination upon avoid-region violation and reporting MNC allows for a more general evaluation of models, as it allows us to evaluate the quality of a policy’s avoidance behavior even in scenarios when avoid-regions are not strict and sometimes even unavoidable. This evaluation setup removes the assumption/implication of a particular priority or optimal tradeoff between reach and avoid objectives, which is subjective to the particular domain/user (all-or-nothing avoidance implies the optimal tradeoff is avoidance should always take priority).
However, we recognize that our emphasis of “safety-critical” in our introduction may imply that we focus only on those situations, and will modify the introduction accordingly to make our intent on creating a more general approach clearer.
Additionally, we also recognize that there is an overrepresentation of application domains in which the particular priority/optimal tradeoff is that avoidance should take absolute priority. Therefore, we have re-run the evaluations for the UMaze and AMaze environments where trajectories are immediately terminated upon violating an avoid-region and considered a failure, and report the failure rate (FR). The results are presented in the table below. Note that, as usual, num_avoid > 3 results are zero-shot for RADT but re-trained for baselines. As you can see, for all AMaze settings and ID/slighlty OOD Umaze settings, RADT still maintains comparable or superior MNC to the best baseline (AM-Lag), although AM-Lag starts to beat out RADT on UMaze when num_avoid becomes more OOD for RADT (>= 5) but is still ID for AM-Lag. Overall, trends/differences in FR are less drastic between the models than in MNC, so when FR values are similar (and especially when they’re high, e.g. >0.5), MNC on unterminated trajectories becomes more informative as it showcases the difference in the quality of the trajectory in scenarios where violation isn’t fatal/is inevitable.
UMaze:
| num avoid | RADT FR | AM-Lag FR | RbSL FR |
|---|---|---|---|
| 1 | 0.103 | 0.113 | 0.127 |
| 3 | 0.34 (OOD) | 0.337 | 0.348 |
| 5 | 0.56 (OOD) | 0.513 | 0.572 |
| 7 | 0.591 (OOD) | 0.563 | 0.621 |
AMaze:
| num avoid | RADT FR | AM-Lag FR | RbSL FR |
|---|---|---|---|
| 1 | 0.104 | 0.13 | 0.12 |
| 3 | 0.152 (OOD) | 0.16 | 0.29 |
| 5 | 0.312 (OOD) | 0.3 | 0.33 |
| 7 | 0.453 (OOD) | 0.46 | 0.45 |
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents a transformer-based method for learning state trajectories that reach certain target states while avoiding others. The data is obtained by a suitable form of (hinsight) relabeling where random trajectories are preprocessed to by adding their final states as the goal states to be reached. Then positive trajectories are obtained by adding "geometrical boxes" that have not been visited as regions to be avoided while negative trajectories are obtained by adding "geometrical boxes" that have been visited as regions to be avoided as well. In the training traces, the regions to be reached and to be avoided are prepended to the trajectories, encoded in a suitable way, and at test time, the regions to be reached and to be given are prompted, and a trajectory complying with such a prompt is generated. Experiments illustrate the power and flexibility of the proposed method that generalizes to different goal and avoid regions, and to their number.
Strengths and weaknesses
The proposed approach for deailng with combined goal-reaching and region-avoidance behavior, is crisp, simple, and powerful, and the paper is written clearly as well. The proposal is original as far as I can tell, and it builds on decision transformers on the one hand, goal-conditioned RL on the other, and in particular, their synthesis in goal-prompted decision transformers.
The type of problem addressed in this work, which is about learning to reach goals while avoiding certain regions is very general, and the proposed solution is simple, neat, and powerful.
The experiments are interesting too, in particular, as they consider three different types of problems where the state representation is very different. The first two involve geometry over a continuous 2D or 3D spaces; the last example, is a combinatorial problem where all the variables are Boolean.
It'd just suggest to expand a bit the explanations in one of the U-Maze examples. In the caption of figure 10, I see some instances of the problem with 7 to 10 regions to avoid, but I can't truly understand these pictures, or where these 7-10 regions are. Apparently, the blue spherical regions are to be avoided, so that "green" can get to goal position in red. What about slightly different "navigation problems" of navigation in a rectangular shape with smaller rectangular regions to be avoided. It'd be nice to see the resulting paths -- often these problems are addressed via motion planners.
Last, while call the architecture a "decision transformer"; looks like a "vanilla" transformer? I mean in decision transformers one did not prompt goal or avoidance, etc. This seems all to be "next token prediction", learned auto-regressively, with special type of tokens and prompts, right?
Thanks for the extra experiments and clarifications in your rebuttal.
Questions
I'd like to see how well the approach does in a very simple "motion planning problem" as above ---- the U-Maze with the avoidance spheres doesn't look equally natural. I was wondering above also if this is all "just" next-token prediction with certain type of tokens and prompts? I don't mean this as a criticism btw; the fact that one may be using standard training/architecture for addressing this "new task" is good. Of course, the proposed "relabeling" done to preprocess the data is critical for this too.
Limitations
Limitations are discussed in Section F of the appendix, and indeed, it's an open problem to understand the tradeoffs between "state representation", the transformer architecture, and one shot OOD; in particular. E.g., why a generalization to K boxes achieved, but not beyond this? These are interesting questions but beyond the scope of the paper.
Final justification
I'm quite positive about the paper; I think it contains a very interesting and crisp idea (extension of goal-conditioned RL to take into account "negative goals" to be avoided), with many potential uses, even if it leaves open issues about sampling and exploration that are also common in RL, as mentioned by the other reviewers. I'm happy enough with what the paper manages to deliver, and I expect that these other issues can be addressed in future work, by the authors or others.
Formatting concerns
None
2 comments
Initial Response
Thank you for your support and positive feedback! We are happy to hear that you found our approach to be original, elegant, and powerful. The simplicity and intuitiveness of the approach are exactly the developments and advantages we wish to emphasize with our method, reflecting the modern trends of data-driven RL approaches based on relabeling and supervised objectives.
We are also glad that you found our paper clearly written and well-motivated, and we appreciate your acknowledgement of our diverse suite of experiments demonstrating RADT’s strong adaptability to various domains/environment types and generalization tasks. We have included responses to your questions/suggestions below. If there are any remaining concerns, please let us know and we would be happy to address them!
W1, Q1: Motion planning experiments with rectangular avoid-regions
Your interpretation of the Maze environment visual representation is correct: blue spheres represent avoid-regions, the green point represents the agent location, and the red point represents the goal location.
Thank you for suggesting a more natural “motion planning” experiment environment. According to your suggestions, we have implemented a new navigation task that involves an open rectangular environment with multiple (between 2 and 4) smaller rectangular avoid-regions with varying aspect ratio (ranging from 1:1 to 1:2.5) and sizes (with side lengths ranging from 0.24 to 0.6) to avoid. Unlike previous tasks, this environment simultaneously involves variation in location, shape, size, and number of avoid-regions. RADT and baselines were trained in-distribution, and the results are in the table below. As shown, RADT achieves the best MNC on this task and is on par with AM-Lag for SR, with RbSL lagging far behind.
| SR | MNC (1e-2) | |
|---|---|---|
| RADT | 0.99 | 2.12 |
| AM-Lag | 1.0 | 3.81 |
| RbSL | 0.41 | 5.14 |
W2, Q2: Decision Transformer architecture and supervised objective
Yes, fundamentally the architecture of RADT is a causal transformer decoder backbone (specifically the GPT-2 architecture) and the learning objective is a next-token-prediction supervised objective; this is the same backbone and objective used in the original decision transformer (DT) paper (reference [7] in the paper) and its derivative works (Prompt-DT [59], MGPO [62], etc.). The fundamental innovation behind decision transformer works is not usually the architectural backbone or objective function, but rather the types of tokens involved, the structure/ordering of the token sequence, and the design/purpose of the conditioning prompt. The original DT was trained with sequences involving state , action , and return-to-go (how much future return is in the rest of the trajectory after each step) tokens, and at generation time, the generation is conditioned on an initial return-to-go token that indicates the desired return and performance of the trajectory to be generated (usually set to a value higher than any observed training return to achieve super-demonstration performance). MGPO, the goal-conditioned DT approach ours builds off of, removed return-to-go tokens and conditions on an initial goal state token instead, allowing for reward-free, goal-relabeling-based, data-driven GCRL. As you have correctly described, we take this one step further by being the first to include avoid-region information in the prompt that the trajectory is conditioned on (with the specific avoid-region included in the training prompts being chosen by our novel HAR framework). However, there is also one additional nuance: on top of the next-token-prediction training objective used in all DT methods, we additionally have an loss component (described in Appendix B.2) that makes it easier for the model learn how to be aware of whether it is violating an avoid-region at any particular step; however, this is more of an auxiliary loss component that we found empirically helps improve learning efficiency and is not foundational.
A simple, effective, and meaningful extension of HER to handle both states to be reached and states to be avoided
Thanks for the answers and additional experiments. I'm quite positive about the paper; I think it contains a very interesting and crisp idea, with many potential uses, even if it leaves open issues about sampling and exploration that are also common in RL, as mentioned by the other reviewers. I'm happy enough with what the paper manages to deliver, and I expect that these other issues can be addressed in future work, by the authors or others.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Initial Response (1/5)
Thank you for your insights and valuable feedback! We appreciate your acknowledgement of the generalization advantages that come from isolating avoid specifications from state spaces and are glad that you found this idea to be strongly motivated, as this is central to our approach.
We have provided responses to your questions and suggestions below, including the results for the relevant requested experiments. If our responses address your primary concerns, we would greatly appreciate it if you could consider raising your score. If you have any remaining questions, please let us know and we would be happy to answer them!