SPRINQL: Sub-optimal Demonstrations driven Offline Imitation Learning

We focus on offline imitation learning (IL), which aims to mimic an expert's behavior using demonstrations without any interaction with the environment. One of the main challenges in offline IL is the limited support of expert demonstrations, which typically cover only a small fraction of the state-action space. While it may not be feasible to obtain numerous expert demonstrations, it is often possible to gather a larger set of sub-optimal demonstrations. For example, in treatment optimization problems, there are varying levels of doctor treatments available for different chronic conditions. These range from treatment specialists and experienced general practitioners to less experienced general practitioners. Similarly, when robots are trained to imitate humans in routine tasks, they might learn from individuals with different levels of expertise and efficiency. In this paper, we propose an offline IL approach that leverages the larger set of sub-optimal demonstrations while effectively mimicking expert trajectories. Existing offline IL methods based on behavior cloning or distribution matching often face issues such as overfitting to the limited set of expert demonstrations or inadvertently imitating sub-optimal trajectories from the larger dataset. Our approach, which is based on inverse soft-Q learning, learns from both expert and sub-optimal demonstrations. It assigns higher importance (through learned weights) to aligning with expert demonstrations and lower importance to aligning with sub-optimal ones. A key contribution of our approach, called SPRINQL, is transforming the offline IL problem into a convex optimization over the space of Q functions. Through comprehensive experimental evaluations, we demonstrate that the SPRINQL algorithm achieves state-of-the-art (SOTA) performance on offline IL benchmarks. Code is available at https://github.com/hmhuy0/SPRINQL.

Paper

Similar papers

Peer review

Reviewer qfkX5/10 · confidence 4/52024-07-12

Summary

This paper considers the problem of offline imitation learning from sub-optimal demonstrations. The paper proposes the SPRINQL algorithm, which automatically weights the demonstrations, regularizes the loss with a reference reward function, and then performs inverse soft-Q learning. Experimental results show that the proposed method achieves better performance compared with baselines. Extensive ablations are also provided.

Strengths

The paper is overall well written. The experimental results are strong, and the ablation studies are extensive. It is impressive to see the proposed method improves its performance with more sub-optimal demonstrations provided.

Weaknesses

1. Some parts of the proposed approach are unclear to me. Please see questions 1-4. 2. The influence of the reward regularization term is not completely studied. Please see question 5.

Questions

1. In Equation (3), a modified objective is presented. However, it seems that this objective depends largely on the quality of weights, and it does not necessarily recover the ground truth reward function nor the optimal policy. Given that the weight is chosen with a heuristic, what kind of guarantee can the authors give about the converged policy? 2. Following the first question, in the experiments, seems that the proposed algorithm always outperforms BC-E because of the lack of expert demonstrations. However, I am curious to see what will happen given sufficient expert demonstrations. 3. In equations above line 162, what if $(s, a) = (s', a')$, given that it is possible for two stochastic policies to choose the same action in the same state? 4. Line 173, regarding "prior research", could the authors add some citations? 5. It seems that the weight for reward regularization $\\alpha$ is an important hyperparameter. Will the performance of the proposed method change a lot with different $\\alpha$? In the extreme case, what if we learn a policy with RL using reward function $\\bar r$?

Rating

5

Confidence

4

Soundness

2

Presentation

3

Contribution

3

Limitations

The authors discuss the limitations adequately in the last Section.

Authorsrebuttal2024-08-13

Thank you to the reviewer for carefully reading our responses, offering further feedback, and maintaining a positive view of our paper. We would like to clarify that, in our context, "sufficient" expert data refers to the quantity required by offline RL methods (e.g., BC, IQ Learn) that rely exclusively on expert data to achieve near-expert performance. Conversely, "insufficient" data would mean that these offline RL methods are unable to effectively learn using only expert demonstrations. These thresholds can vary depending on the environment. In our main experiments, we intentionally kept the amount of expert demonstrations "insufficient" (otherwise, standard imitation methods like IQ-Learn or BC could perform well with just expert data) to demonstrate how our method can leverage suboptimal data to support learning when expert data alone is insufficient. To further support our response, we conducted a few additional experiments (see table below) where the number of expert demonstrations was increased from "insufficient" to "sufficient". The results generally show that our method performs well with a significantly smaller number of expert demonstrations, remains competitive when the number of demonstrations is sufficient, and can achieve expert-level performance in the Ant environment. |||Cheetah||||Ant||| |:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:| | Expert Transitions | 1k | 5k | 10k | 25k | 1k | 5k | 10k | 25k | | DemoDICE | 0.4 $\pm$ 2.0 | 12.2 $\pm$ 5.2 | 40.0 $\pm$ 10.5 | 71.5 $\pm$ 10.8 | 31.7 $\pm$ 8.9 | 79.4 $\pm$ 6.6 | 81.7 $\pm$ 5.2 | 84.0 $\pm$ 4.9 | | SPRINQL | 73.6 $\pm$ 4.3 | 86.7 $\pm$ 3.5 | 85.9 $\pm$ 4.1 | 88.6 $\pm$ 3.4 | 77.0 $\pm$ 5.6 | 88.6 $\pm$ 4.3 | 96.6 $\pm$ 8.3 | 96.7 $\pm$ 9.5 | *We hope the responses above help address the remaining concerns you may have!*

Reviewer qfkX2024-08-14

Thank the authors for their reply! However, these experimental results do not reply directly to my question. My question was whether, with sufficient expert demonstrations, could the proposed algorithm recover the expert policy or not. Could the authors please clarify this, or provide the comparison with BC-E with a different number of expert transitions?

Authorsrebuttal2024-08-14

Thank you for your feedback. We would like to clarify that when there is sufficient expert data available: - Achieving expert-level performance consistently with our approach may not always be possible, as part of our objective involves learning from sub-optimal data. - Methods such as DWBC, Demo-DICE, or our proposed approach are unnecessary. Pure offline imitation learning techniques, like BC or IQ-Learn, should be preferred. Below, we provide a quick set of results on the Cheetah and Ant environments, including BC-E for comparison. | | | Cheetah | | | | Ant | | | |:----------:|:----------:|:----------:|:----------:|:----------:|:----------:|:----------:|:----------:|:----------:| | Expert Transitions | 1k | 5k | 10k | 25k | 1k | 5k | 10k | 25k | | BC-E | -3.2 $\pm$ 0.9 | 1.9 $\pm$ 3.0 | 44.5 $\pm$ 10.6 | 79.8 $\pm$ 6.2 | 6.4 $\pm$ 19.1 | 9.0 $\pm$ 6.6 | 50.5 $\pm$ 7.2 | 86.7 $\pm$ 3.9 | | DemoDICE | 0.4 $\pm$ 2.0 | 12.2 $\pm$ 5.2 | 40.0 $\pm$ 10.5 | 71.5 $\pm$ 10.8 | 31.7 $\pm$ 8.9 | 79.4 $\pm$ 6.6 | 81.7 $\pm$ 5.2 | 84.0 $\pm$ 4.9 | | SPRINQL | 73.6 $\pm$ 4.3 | 86.7 $\pm$ 3.5 | 85.9 $\pm$ 4.1 | 88.6 $\pm$ 3.4 | 77.0 $\pm$ 5.6 | 88.6 $\pm$ 4.3 | 96.6 $\pm$ 8.3 | 96.7 $\pm$ 9.5 | *We hope the above response resolves your remaining concerns.*

Reviewer vP7z7/10 · confidence 4/52024-07-12

Summary

This paper considers the problem of imitation learning on suboptimal demonstrations given coarse trajectory expertise rankings. It introduces SPRINQL, a method combining inverse soft-Q learning, conservative Q learning, and reward learning from ranked trajectory preferences. SPRINQL estimates a reference reward function given trajectory expertise rankings, and extends inverse soft-Q learning to the suboptimal demonstration setting by adding reward regularization and weights based on the estimated reference reward. The paper shows that the SPRINQL objective is tractable with a unique solution over $Q, \pi$. Experiments show that SPRINQL outperforms prior methods on suboptimal trajectories in simulated environments. Ablations justify each component in SPRINQL and demonstrate robustness across a range of dataset sizes and number of suboptimal datasets.

Strengths

- SPRINQL works with a number of suboptimal demonstrations, with reasonable assumptions such as access to trajectory expertise rankings. - The main objective is shown to admit a unique saddle point solution over $Q, \pi$ and is tractable for optimization. - Experiments show that SPRINQL outperforms relevant offline imitation learning baselines on suboptimal trajectories in multiple simulated locomotion and manipulation environments. - Extensive ablations demonstrate that the method works with a range of numbers/sizes of suboptimal datasets, and justify each component in SPRINQL.

Weaknesses

- Suboptimal trajectories are sourced from adding random noise to expert actions. While this is a reasonable proxy, it would be more convincing to see them generated from under-trained RL policies instead. - It would be great to see SPRINQL work on image-based environments.

Questions

- How does SPRINQL perform on suboptimal trajectories generated from under-trained RL policies, instead of rollouts from noisy expert actions?

Rating

7

Confidence

4

Soundness

4

Presentation

4

Contribution

4

Limitations

- SPRINQL assumes access to trajectory expertise rankings.

Reviewer 78nP7/10 · confidence 3/52024-07-14

Summary

This paper presents SPRINQL (Sub-oPtimal demonstrations driven Reward regularized INverse soft Q Learning), a novel algorithm for offline imitation learning with multiple levels of expert demonstrations. SPRINQL leverages distribution matching and reward regularization to effectively leverage the mixture of non-expert data and expert data to enhance learning. An extensive evaluation is conducted to assess SPRINQL, answering eight well-defined questions regarding the capability and performance of SPRINQL.

Strengths

+ The proposed technique presents an improvement for learning from mixed-expert demonstrations and is backed by theory. + The paper is very well-written and contains sufficient detail to understand the key proposed novelties. + The evaluation (including those in the appendix) is extensive and presents strong support for the proposed algorithm.

Weaknesses

- The authors mention that this setting (having several sets of data labeled with relative quality scores) is more general than two quality levels: expert and sub-optimal. Could the authors provide further support for this claim? I would argue that having additional quality annotations makes this setting more niche. - Table 1 contains a very large evaluation but there isn't much commentary on the different trends between baselines and SPRINQL. Comment: The example in the introduction does not seem complete.

Questions

Please address the weaknesses above.

Rating

7

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

Yes

Reviewer g6FW5/10 · confidence 3/52024-07-27

Summary

This work presents an offline imitation learning (IL) method that leverages both expert and suboptimal demonstrations. Distinct from previous methods, this approach assumes access to suboptimal demonstrations across a spectrum of performance levels, with a known ranking to the learners. To utilizes suboptimal demonstations with various levels, this work suggest SPRINQL (Sub-oPtimal demonstrations driven Reward regularized INverse Q-Learning), a reward reguarized inverse soft Q-learning method for the offline IL problem. The evaluation of this method is conducted using the Mujoco and Panda-gym environments, employing a small dataset of expert demonstrations and a larger collection of demonstrations generated by introducing varying levels of noise to expert actions.

Strengths

This work aims to extend the domain of offline imitation learning by addressing the challenge of leveraging imperfect demonstrations with multiple suboptimality levels, presenting a novel and intriguing approach. Drawing on foundational principles from prior research, notably IQ-Learn, this study demonstrates theoretically that the proposed extension, SPRINQL, retains the advantageous properties of IQ-Learn. Furthermore, SPRINQL adeptly incorporates sophisticated concepts such as the Bradley-Terry model and Conservative Q-Learning (CQL) into its training framework. The experimental outcomes are notable, with SPRINQL achieving surprisingly effective results that surpass previous baselines, which were unable to successfully imitate expert performance using the datasets used in this work.

Weaknesses

Significant concerns with this submission are the questionable reporting on the performance of baseline methods and issues related to reproducibility. The experimental results presented are not entirely convincing, as the performance of the baselines substantially deviates from those reported in their original papers. Specifically, even in the case with N=2 suboptimality levels, suitable baselines such as TRAIL, DemoDICE, and DWBC fail to outperform even basic BC-all in nearly all the Mujoco tasks listed in Table 3 (Appendix). The authors need to clarify the reasons behind this anomaly. To enhance the trustfulness of experiments, it would be beneficial for the authors to release the datasets utilized in their experiments or to use standardized datasets such as D4RL or RL-unplugged. This would allow for a more reliable validation of the results and facilitate comparisons with other methods.

Questions

- Could the authors clarify the motivation of employing reference rewards? - Moreover, could you elucidate why reference rewards are utilized as a regularization mechanism rather than directly applying RL using reference rewards? - The problem setting appears closely aligned with preference-based learning, where optimality (or preference) levels are explicitly known. Could you delineate the distinctions between these two problem settings? - Can you provide detailed justifications for why comparing the proposed method with IPL is deemed unsuitable? It appears feasible to compare by segmenting each trajectory by suboptimality levels, then pairing segments from differing levels to facilitate IPL. Could this approach not be applied effectively? [minor comments] reference [15] in line 398 from "NeurIPS 2024" to "NeurIPS 2023."

Rating

5

Confidence

3

Soundness

2

Presentation

3

Contribution

2

Limitations

The authors addressed their limitations in Conclusion section in the main manuscript. They described that this work does not have any direct societal impacts in the Checklist #10, Broader Impacts.

Reviewer qfkX2024-08-09

I want to thank the authors for their reply. The reply addresses my concerns, and the additional experiments provided are informative. However, one of my remaining concerns is that even with sufficient expert demonstrations, seems the proposed algorithm still cannot recover the expert policy. The authors claim that the proposed algorithm works better when "the amount of expert data is limited", but it is difficult to quantify how much data is "limited" and how much is "sufficient". Overall, I am positive about the paper, and I am keeping my original score.

Reviewer g6FW2024-08-11

Thank you for addressing my concerns and providing thoughtful comments. After reviewing your responses and the additional experimental results on D4RL, I find the results more convincing, even though the improvement over BC-all is slightly marginal in this context. Despite this, I believe the initial experimental setup proposed by the authors more effectively demonstrates the advantages of the suggested method. Hence, I have raised my assessment and am now leaning slightly towards accepting this paper.

Authorsrebuttal2024-08-12

We are grateful to the reviewer for reading our responses and for the positive evaluation of our work. We will update our paper, incorporating your constructive feedback and suggestions

Reviewer 78nP2024-08-11

Dear Authors, Thank you for your response. After reading all the reviews and their respective replies, I have decided to maintain my score of Accept.

Authorsrebuttal2024-08-12

Thank you to the reviewer for reading our responses and maintaining a positive view of our work!

Reviewer vP7z2024-08-11

Thank you for the additional experiments. Overall I think this is a good paper and I would like to keep my score of Accept.

Authorsrebuttal2024-08-12

Thank you to the reviewer for reading our responses and maintaining a positive view on our paper!

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC