Safe offline reinforcement learning
UniQ: Unified Conditional Flows for
Offline Safe Reinforcement Learning
01 / Overview
A budget becomes
a behavior.
Different cost budgets can produce different driving decisions from the same learned policy.
UniQ learns a budget-conditioned flow policy from offline data. At evaluation time, the policy takes a cost budget as an additional input. The selected MetaDrive examples below show changes in speed, passing, and spacing around traffic.
Each video compares two runs from the same initial physical state using the same frozen policy. The videos illustrate individual trajectories; the benchmark table reports aggregate performance.
02 / Driving examples
See the budget in action.
Speed adapts to the budget
The higher-budget car makes faster progress, while the lower-budget car drives more slowly.
03 / MetaDrive benchmark
Reward, with cost in view.
Normalized reward measures performance; normalized cost measures cost relative to the constraint. A mean normalized cost below 1 meets the table's reported mean-cost criterion.
Reward–cost comparison
Reported macro-averages over nine tasks. Select a method to inspect its values.
UniQ · reward 0.59 · cost 0.93
UniQ Mean cost ≥ 1 Each pair: reward ↑ / cost ↓
Ablation study
Budget sampling
Number of budget samples
Number of budget samples per training instance. The sampling ratio is kept fixed. Reward and Cost denote normalized reward and normalized cost, respectively.
| Task | nu = 8 | nu = 16 | nu = 24 | |||
|---|---|---|---|---|---|---|
| Reward ↑ | Cost ↓ | Reward ↑ | Cost ↓ | Reward ↑ | Cost ↓ | |
| EasySparse | 0.49 | 0.95 | 0.54 | 0.91 | 0.55 | 0.99 |
| EasyMean | 0.55 | 0.97 | 0.52 | 0.90 | 0.50 | 0.99 |
| EasyDense | 0.65 | 0.91 | 0.60 | 0.91 | 0.64 | 0.92 |
Budget sampling ratio
A fraction ρ of the budget samples is drawn from [0, 10], and the remaining fraction from u > 10. The total number of budget samples is kept fixed.
| Task | ρ = 0.25 | ρ = 0.6 | ρ = 0.75 | |||
|---|---|---|---|---|---|---|
| Reward ↑ | Cost ↓ | Reward ↑ | Cost ↓ | Reward ↑ | Cost ↓ | |
| EasySparse | 0.51 | 0.94 | 0.54 | 0.91 | 0.57 | 0.97 |
| EasyMean | 0.59 | 0.96 | 0.52 | 0.90 | 0.56 | 0.99 |
| EasyDense | 0.64 | 0.88 | 0.60 | 0.91 | 0.60 | 0.84 |
Mean normalized costs remain below 1 for all tested ratios on the three Easy tasks. Reward varies by at most 0.07 per task, with ρ = 0.75 achieving the highest reward on EasySparse and ρ = 0.25 on EasyMean and EasyDense.
