IL-SOAR: Imitation Learning with soft optimistic actor critic

Stefano Viel, Luca Viano, Volkan Cevher · DOI

Abstract

Imitation Learning (IL) is a powerful paradigm for teaching agents complex behaviors from expert demonstrations. However, many modern IL algorithms, particularly those built upon Soft Actor-Critic (SAC), suffer from inefficient exploration in high-dimensional state spaces. We introduce IL-SOAR (Imitation Learning with Soft Optimistic Actor cRitic), a framework that integrates the principle of "optimism in the face of uncertainty" into the IL process. By employing an ensemble of critics to underestimate expected costs, IL-SOAR incentivizes agents to explore novel state-action pairs. Our experiments on the MuJoCo benchmark suite demonstrate that IL-SOAR achieves state-of-the-art performance while requiring approximately 50% fewer training episodes than existing methods.

Introduction

Imitation Learning (IL) enables agents to acquire complex skills by mimicking expert demonstrations, bypassing the need for manually engineered reward functions. While modern IL frameworks often leverage Soft Actor-Critic (SAC) for policy optimization, they frequently struggle with exploration. SAC relies primarily on entropy maximization to encourage diversity in behavior, which often proves insufficient in complex, high-dimensional environments where the expert's path is narrow.

Theoretical research has long suggested "optimism in the face of uncertainty" (OFU) as a solution to the exploration problem. However, these theoretical guarantees are typically confined to tabular settings or linear models, leaving a significant gap between theory and the deep neural networks used in modern robotics. IL-SOAR bridges this gap by providing a practical, ensemble-based optimistic framework that is both theoretically grounded and empirically robust.

The SOAR Framework

SOAR is designed as an algorithmic template that can be integrated into various existing IL algorithms, such as $f$-IRL, ML-IRL, and CSIL. The core innovation lies in the transition from a single critic to an Optimistic Critic Ensemble.

Optimism through Cost Underestimation

In standard Reinforcement Learning (RL), optimism is expressed as overestimating potential rewards. Conversely, in the cost-minimization framework common to many IL algorithms, optimism is achieved by underestimating the expected future cost. IL-SOAR maintains an ensemble of $L$ critics and proposes two primary methods for optimistic cost estimation:

  1. Min-Aggregation: The agent selects the minimum cost estimate across the ensemble: $\min_{i=1 \dots L} Q_i(s, a)$.
  2. Mean-StdDev: The agent calculates the mean estimate and subtracts a scaled factor of the standard deviation (representing uncertainty): $\mu(Q) - \beta \sigma(Q)$.

By acting as if costs in unexplored regions are lower than currently estimated, the agent is naturally driven to visit these regions, effectively "checking" if a more efficient path to mimicking the expert exists.

Experimental Evaluation

We evaluated IL-SOAR across several continuous control tasks in the MuJoCo physics engine, including Ant-v5, Hopper-v5, Walker2d-v5, and the high-dimensional Humanoid-v5. Additionally, a specialized "Hard Exploration Task" (a two-state MDP) was used to analyze the theoretical limits of the ensemble approach.

Key Results

  • Enhanced Sample Efficiency: Across all benchmarks, SOAR-enhanced algorithms reached expert-level performance in roughly half the training episodes required by their baseline counterparts.
  • Scalability to High Dimensions: The performance gains were most significant in complex environments like Humanoid-v5, where traditional entropy-based exploration often fails to find the expert manifold.
  • Optimal Ensemble Size: Ablation studies revealed a "sweet spot" for the number of critics. While performance improves significantly from $L=1$ to $L=4$, increasing the ensemble size beyond this point can lead to excessive optimism, which may paradoxically slow down convergence.
  • Data Efficiency: IL-SOAR remains highly effective even when provided with only a single expert trajectory, demonstrating its robustness in data-constrained scenarios.

Conclusion

IL-SOAR represents a significant step forward in making Imitation Learning more practical for real-world robotics. By successfully adapting the principle of optimism to deep IL, we achieve a "double win": a framework that is mathematically sound in simple settings and highly performant in complex ones. Future work will explore extending these theoretical proofs to Linear MDPs and applying the SOAR framework to visual imitation learning and the fine-tuning of Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{viel2025il,
  author = {Stefano Viel and Luca Viano and Volkan Cevher},
  title = {{IL-SOAR: Imitation Learning with soft optimistic actor critic}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=NNr8DHb0L7},
}
Figure