Skip to main content
QUICK REVIEW

[Paper Review] Floyd-Warshall Reinforcement Learning: Learning from Past Experiences to Reach New Goals

Vikas Dhiman, Shurjo Banerjee|arXiv (Cornell University)|Sep 25, 2018
Reinforcement Learning in RoboticsComputer Science22 references10 citations
TL;DR

This paper proposes Floyd-Warshall Reinforcement Learning (FWRL), a model-free RL algorithm that leverages a triangle-inequality constraint inspired by the Floyd-Warshall shortest path algorithm to learn a goal-conditioned value function. By enforcing that the optimal path value between any two states is at least as high as any indirect path via an intermediary state, FWRL enables efficient transfer of experience across dynamic goals, achieving higher sample efficiency and superior asymptotic performance compared to Q-learning, model-based RL, and baselines in tabular grid-world environments.

ABSTRACT

Consider mutli-goal tasks that involve static environments and dynamic goals. Examples of such tasks, such as goal-directed navigation and pick-and-place in robotics, abound. Two types of Reinforcement Learning (RL) algorithms are used for such tasks: model-free or model-based. Each of these approaches has limitations. Model-free RL struggles to transfer learned information when the goal location changes, but achieves high asymptotic accuracy in single goal tasks. Model-based RL can transfer learned information to new goal locations by retaining the explicitly learned state-dynamics, but is limited by the fact that small errors in modelling these dynamics accumulate over long-term planning. In this work, we improve upon the limitations of model-free RL in multi-goal domains. We do this by adapting the Floyd-Warshall algorithm for RL and call the adaptation Floyd-Warshall RL (FWRL). The proposed algorithm learns a goal-conditioned action-value function by constraining the value of the optimal path between any two states to be greater than or equal to the value of paths via intermediary states. Experimentally, we show that FWRL is more sample-efficient and learns higher reward strategies in multi-goal tasks as compared to Q-learning, model-based RL and other relevant baselines in a tabular domain.

Motivation & Objective

  • To address the limitation of model-free RL in transferring knowledge across different goal locations in multi-goal tasks.
  • To overcome the sample inefficiency of standard Q-learning in dynamic goal environments by leveraging structured reuse of past trajectories.
  • To develop a method that retains and generalizes from past experiences without requiring explicit model learning or retraining.
  • To improve sample efficiency and asymptotic performance in tabular multi-goal reinforcement learning tasks.

Proposed method

  • FWRL introduces a goal-conditioned action-value function, denoted $ F_{\pi}^{*}(s'|s,a) $, representing the expected cumulative reward from state $ s $ with action $ a $ to goal state $ s' $.
  • The core innovation is a triangle-inequality constraint: $ F_{\pi^{*}_{s_j}}^{*}(s_j|s_i,a_i) \geq F_{\pi^{*}_{s_k}}^{*}(s_k|s_i,a_i) + \max_{a_k} F_{\pi^{*}_{s_j}}^{*}(s_j|s_k,a_k) $, which enforces transitive optimality across paths via intermediate states.
  • This constraint allows the algorithm to implicitly combine and generalize from multiple past trajectories, even if they did not reach the goal, enabling transfer to new start-goal pairs.
  • FWRL uses a tabular Q-learning-style update with the FW constraint to iteratively refine the value function across episodes.
  • The method is evaluated in both standard and windy grid-world environments, comparing against Q-learning, Q-learning with concatenated goals (QLCAT), and model-based RL.
  • The algorithm is trained using experience replay and greedy policy inference during evaluation, with no exploration during testing.

Experimental results

Research questions

  • RQ1Can a model-free RL algorithm effectively transfer knowledge across different goal locations in static environments?
  • RQ2How does enforcing a Floyd-Warshall-style transitive optimality constraint improve sample efficiency and performance in multi-goal tasks?
  • RQ3To what extent can FWRL generalize from past trajectories that did not reach the goal, compared to standard Q-learning?
  • RQ4Does FWRL outperform both model-free and model-based baselines in terms of reward and distance inefficiency in tabular environments?

Key findings

  • FWRL achieved consistently higher average reward per episode than Q-learning, QLCAT, and model-based RL across both standard and windy grid-world environments.
  • FWRL demonstrated significantly lower distance inefficiency, indicating more optimal path selection, especially in complex or stochastic environments.
  • In reward curves, FWRL's performance climbed faster than all baselines, demonstrating superior sample efficiency in learning high-reward strategies.
  • In qualitative testing, FWRL successfully navigated from a new start state (from a different episode) to a goal state using the shortest path, while QLCAT failed due to inability to generalize.
  • The value function learned by FWRL showed coherent, goal-directed structure across states, with clear propagation of optimal values through intermediate states.
  • FWRL outperformed QLCAT in unseen start-goal combinations, proving its ability to generalize beyond the specific trajectories seen during training.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.