Skip to content
DAH

Selecting the best offline-RL policy on D4RL with no environment interaction

OpenTo verify: ReproductionPosed by Paine et al., Hyperparameter Selection for Offline RL (2020); Fu et al., DOPE benchmark (2021)
AI-reviewed
On this page16 sections
Difficulty
50/100Research-grade
How far from a resolution. P vs NP = 100
Application value
48/100Significant
Realistic practical impact if resolved. P vs NP = 100
Leverage
36/100Local
How much other knowledge hinges on it. P vs NP = 100

Difficulty 50: entangled with off-policy evaluation, which has no general guarantee without coverage assumptions, so a method that works across algorithms and domains is research-grade. Application value 48: needed wherever offline RL is deployed without online testing. Leverage 36: reshapes how offline RL results are reported.

The problem

Pick the best of many trained AI strategies without ever trying them out in the real world.

  1. 1Train many candidate policies
  2. 2Score them using logs only
  3. 3Pick the highest-scoring policy
  4. 4Check by real rollouts
  5. 5Measure the regret

Why it matters. Offline RL learns a policy from logged data because testing in the real world is unsafe or costly. But every offline algorithm has hyperparameters, settings such as the learning rate or how strongly to penalise unfamiliar actions, and results swing widely with them. The usual fix, running each candidate policy in the environment and keeping the best, is exactly what offline RL is not allowed to do. Without a way to choose offline, offline RL is not really offline.

The problem. Given a dataset and, say, 50 candidate policies (several algorithms, hyperparameter settings and training checkpoints), choose one using the data alone. This needs off-policy evaluation (OPE): estimating how much reward a policy would earn using only data collected by a different policy. One approach reweights logged trajectories by how likely the new policy was to take the logged actions. Another fits a Q-function, an estimate of the expected future reward of each state and action (an expected value is a probability-weighted average), and reads off the policy's value.

Why it is hard. When a candidate takes actions that rarely appear in the data, every estimator is guessing: reweighting becomes extremely noisy and fitted Q-functions extrapolate. Paine et al. (2020) found that offline RL algorithms are not robust to hyperparameters, but that with the algorithm and the Q-estimator carefully controlled, candidates can be ranked well enough to pick one close to the best. The DOPE benchmark (2021) found that OPE methods vary widely across tasks. No selection rule is known to work across algorithms and benchmark domains without tuning on the evaluation environment.

How success is measured. Two numbers. Regret is the score of the truly best candidate minus the score of the one selected; zero means a perfect choice. Rank correlation (Spearman) measures how well the method's ordering of the candidates matches their true ordering, from −1 (reversed) through 0 (unrelated) to 1 (identical). True scores come from running every candidate at least 100 times in simulation, which is possible on a benchmark even though it would not be in real use.

The target (proposed thresholds). On D4RL locomotion tasks (half-cheetah, hopper and walker with medium, medium-replay and medium-expert data) and AntMaze tasks, with candidates from CQL, IQL, TD3+BC and one other algorithm over 5 training seeds: mean regret at most 5 normalised points and mean rank correlation at least 0.7, over at least 9 tasks. The selection rule must be fixed before the ground truth is seen, and an independent party holding the true rollouts should score it.

Go deeper

The full technical text.

Given only a fixed dataset and a set of candidate policies produced by offline RL algorithms under different hyperparameters and checkpoints, choose a policy without running any candidate in the environment. Target (proposed): on D4RL locomotion and AntMaze tasks, the selected policy's normalised score is within 5 points of the best candidate on average over at least 9 tasks, and the rank correlation between the method's scores and true returns is at least 0.7, using 5 training seeds per task.

Words on this page (10)
Words on this page
reinforcement learning
Learning by trial and error: an agent acts, gets rewards, and adjusts to collect more reward.
offline RL
Learning a policy from a fixed dataset without further interaction.
off-policy evaluation
Estimating how well a policy would do using data collected by a different policy.
hyperparameter
A setting chosen before training, such as a learning rate, that affects how the model learns.
regret
How much worse your choice is than the best available choice.
rank correlation
A number showing how well two orderings agree, from -1 (opposite) to 1 (identical).
D4RL
A standard set of datasets for testing offline RL.
Q-function
An estimate of the expected future reward from taking a given action in a given state and acting well afterwards.
expected value
The probability-weighted average of all possible outcomes.
random seed
The starting number of a random-number generator; different seeds give different training runs.
New to this? Read first (3)
New to this? Read first

Path to understanding

foundations → problem

The research entries this problem rests on, in the order to read them. Each links to its explainer.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then
    • Selecting the best offline-RL policy on D4RL with no environment interactionThe problem

State of the art

Paine et al. (2020) report that, with the offline RL algorithm and Q-value estimator controlled, candidate policies can be ranked well enough to choose close to the best, but also that offline RL algorithms are not robust to hyperparameter choices. The DOPE benchmark (Fu et al., 2021) shows off-policy evaluation methods vary widely across tasks. A method that works across algorithms and across D4RL domains without tuning on the evaluation environment is not established, and no shared leaderboard records selection regret on D4RL; the regret and correlation thresholds are DARC-proposed targets.

Realistic applications

Offline RL is deployed where online testing is unsafe or costly; without reliable offline selection, practitioners must still run candidates online.

What counts as solved

A method fixed in advance meets the regret and correlation thresholds on at least 9 D4RL tasks with 5 seeds, evaluated by an independent party who holds the ground-truth rollouts.

How it gets verified

To verify: Reproduction

A training run, experiment or computation rerun by someone else.

Benchmark: D4RL (halfcheetah, hopper, walker2d at medium, medium-replay, medium-expert; AntMaze umaze, medium, large). Candidates: policies from CQL, IQL, TD3+BC and one other algorithm (CORL implementations) over a stated hyperparameter grid and 5 training seeds, with ground truth from at least 100 rollouts per candidate. Metric: regret of the selected policy in D4RL normalised score and Spearman correlation between method scores and true returns. Threshold: mean regret at most 5 points and mean correlation at least 0.7 over at least 9 tasks, with a selection rule fixed before looking at ground truth.

Claims

No claimed results on this problem.

Where the work is

Theory
40%
New mathematical or conceptual ideas
Engineering
15%
Building instruments, chips, systems, software, formal proofs
Compute
20%
Raw computation, search, simulation
Empirical
25%
Observation, experiment, data collection

Statistical methodology (off-policy evaluation, model selection) matters most, then benchmark engineering.

Connected problems

No connected problems.

Progress

  1. Mar 30, 2021
    DOPE benchmark

    Standard policy sets and datasets for evaluating off-policy evaluation methods.

    source
  2. Jul 17, 2020
    Offline hyperparameter selection

    Paine et al. report ranking candidate policies offline is feasible with controlled factors.

    source