**Q1. If I understood the paper correctly, you are viewing as a transport map from the state distribution d(s) to the behavior policy $\beta(\cdot|s')$ for some s'. The transport map will depend on the choice of s'. How do you choose this s'?**
Sorry for the misunderstanding. We are randomly sampling $s$ from the given dataset $\mathcal{D}$, please see derivations at lines 131 and Eq.9. For the sampled $s$ we choose the conditional distribution of the action space provided by the dataset (expert) $\beta(\cdot|s)$ as the target. We will make this explicit in the final version.
**Q2. Lines 190 and 191 state that the agent has to "navigate through 50 intermediate steps." Doesn't this mean that the episode length is fixed to 51 regardless of the agent's path?**
Yes, the length of the episode is fixed. This length of 50, corresponds to the number of steps provided by each expert policy in the dataset.
**Q5. The value learning part of IQL can be completely separated from the policy learning part, which uses AWR, as you mentioned. IQL Q function can be trained without weighted behaviour cloning and thus can be used together with the proposed algorithm.**
Thanks for the clarification, this experiment is really interesting. Following your question, we conducted a series of experiments on MuJoCo using the CORL[1] IQL implementation. In these tests, we found that the value function trained using expectile regression from the IQL method is inappropriate for off-policy evaluation.
- First, we conducted an experiment *without* using our method. We trained a $Q$-function using expectile regression loss and attempted to extract a policy through direct optimization: $\min_{\pi}\mathbb{E}_{s \sim \mathcal{D}, a\sim\pi(s)} \big[-Q^{\text{IQL}}(s, a)\big]$. This approach resulted in zero rewards.
- Second, we added a BC objective to avoid distribution shift: $\min_{\pi}\mathbb{E}_{s \sim \mathcal{D}, a\sim\pi(s)} \big[-Q^{\text{IQL}}(s, a)\big]+(a-\beta(s))^2$. The results were the same — $Q$-functions trained via expectile regression dramatically overestimate actions sampled by the learned policy $\pi$.
- Finally, we tested our method: $\min_{\pi}\mathbb{E}_{s \sim \mathcal{D}, a\sim\pi(s)} \big[-Q^{\text{IQL}}(s, a)-f(s,a)\big]$ and observed improvements in the scores! Even with the ill-suited cost function, policy optimization with respect to the potential $-f(s,a)$ yielded the highest scores.
We also tested the advantage $A(s,a) $and exponential advantage functions exp$A(s,a)$ from IQL, but did not observe any improvements. The table below summarizes our analyses.
---
**Table: Averaged normalized scores on MuJoCo tasks. Reported scores are the results of the final 10 evaluations and 3 random seeds.**
| Dataset | $-Q^{IQL}(s, a)$ | $-Q^{IQL}(s, a)$ + BC | $-Q^{IQL}(s, a) - f(s,a)$ (Ours) |
|-------------------------|------------------|-----------------------|---------------------------------|
| HalfCheetah-medium | -2.53 ± 0.1 | -2.54 ± 0.1 | 48.7 ± 0.3 |
| HalfCheetah-medium-expert | -2.53 ± 0.2 | -2.54 ± 0.2 | 39.9 ± 1.4 |
| Hopper-medium | 0.6 ± 0.1 | 0.6 ± 0.1 | 27.9 ± 15.4 |
| Hopper-medium-expert | 0.7 ± 0.1 | 0.6 ± 0.1 | 8.7 ± 4.6 |
| Walker-medium | -0.16 ± 0.1 | -0.16 ± 0.0 | 37.6 ± 3.6 |
| Walker-medium-expert | -0.23 ± 0.2 | -0.21 ± 0.1 | 17.5 ± 14.3 |
---
While the IQL method can be formally decoupled, we see that both components, expectile-based in-sample value learning and weighted behaviour cloning, are important parts of each other to achieve strong results. Adapting IQL value learning for better off-policy evaluation is a promising direction, but beyond the scope of our contribution. We believe that our strong performance on most tasks, combined with different types of a cost function, justifies our formulation and makes it valuable to the community. We will include these analyses in the final version of the paper.
**Reference:**
[1] JAX-CORL: https://github.com/nissymori/JAX-CORL