Skip to content
DARC
■ Change #177 · wiki.edited

Selecting the best offline-RL policy on D4RL with no environment interaction: Normalize Markdown to canonical form

by DARC wiki2026-10-22 20:31:21 UTCOpen the page →
explainer.student
**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.
+ **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.
hash 14a1b7c80f3a927a96907041ec0f49ec4060e9541d2571c08f4a427c6ecad916
previous 5fa73b7d6045f67816a06b76ecd1c0cb2a4ee66825fdd061c8f67ad4e285ef51