Skip to main content
QUICK REVIEW

[Paper Review] CoMI-IRL: Contrastive Multi-Intention Inverse Reinforcement Learning

Antonio Mone, Frans A. Oliehoek|arXiv (Cornell University)|Feb 7, 2026
Reinforcement Learning in RoboticsComputer Science0 citations
TL;DR

CoMI-IRL decouples behavior clustering from reward learning in Multi-Intention IRL by learning trajectory embeddings with a transformer-based contrastive framework, enabling K*-free clustering and independent per-cluster IRL, with demonstrated adaptability to unseen behaviors.

ABSTRACT

Inverse Reinforcement Learning (IRL) seeks to infer reward functions from expert demonstrations. When demonstrations originate from multiple experts with different intentions, the problem is known as Multi-Intention IRL (MI-IRL). Recent deep generative MI-IRL approaches couple behavior clustering and reward learning, but typically require prior knowledge of the number of true behavioral modes $K^*$. This reliance on expert knowledge limits their adaptability to new behaviors, and only enables analysis related to the learned rewards, and not across the behavior modes used to train them. We propose Contrastive Multi-Intention IRL (CoMI-IRL), a transformer-based unsupervised framework that decouples behavior representation and clustering from downstream reward learning. Our experiments show that CoMI-IRL outperforms existing approaches without a priori knowledge of $K^*$ or labels, while allowing for visual interpretation of behavior relationships and adaptation to unseen behavior without full retraining.

Motivation & Objective

  • Motivate IRL in settings with demonstrations from multiple intentions (K*>1) and the limitations of coupled clustering-reward learning approaches that require pre-specified K*.
  • Introduce a decoupled, unsupervised framework (CoMI-IRL) that learns trajectory embeddings, discovers behavior clusters without K*, and performs independent IRL per cluster.
  • Enable visual interpretability of behavior relationships and adaptability to unseen behaviors without full retraining.
  • Show robustness to varying true number of modes (K*) and compare with state-of-the-art MI-IRL baselines across continuous state-action spaces.

Proposed method

  • Use a transformer-based Behavioral Encoder (BE) to map trajectories to unit-normalized embeddings (CLS token) via quantile normalization, RFF encoding, MLP, and 1D CNN per modality (state vs. action).
  • Train embeddings with a multi-component contrastive objective: CLS InfoNCE (two dropout views), segment-level InfoNCE, pairwise segment InfoNCE, and DIM regularization to maximize mutual information and stabilize representations.
  • Construct a k-NN graph over embeddings and apply graph-based clustering (components or Leiden) to infer clusters without fixing K*; augment edges with Jacobian-inspired features to aid separation of similar behaviors.
  • For each discovered cluster, apply a single-intention IRL method (GAIL/AIRL variants) to learn a cluster-specific reward function, enabling decoupled reward learning from clustering.
  • Adaptation to new behaviors via encoder finetuning with a stability regularizer to reduce embedding drift, followed by a two-stage clustering procedure to identify novel clusters and retrain only when needed.
Figure 1: CoMI-IRL pipeline. States and actions of each quantile normalized input trajectory $\tau_{i}$ pass through a Random Fourier Feature ( RFF ) encoding with Gaussian mapping, a shallow MLP and a 1D CNN layer. After adding timestep and modality embeddings (distinguishing states and actions), w
Figure 1: CoMI-IRL pipeline. States and actions of each quantile normalized input trajectory $\tau_{i}$ pass through a Random Fourier Feature ( RFF ) encoding with Gaussian mapping, a shallow MLP and a 1D CNN layer. After adding timestep and modality embeddings (distinguishing states and actions), w

Experimental results

Research questions

  • RQ1Can CoMI-IRL identify and separate multiple behavioral modes without prior knowledge of the true number of modes K*?
  • RQ2Does decoupling clustering from reward learning improve clustering quality and reward accuracy in MI-IRL compared to fixed-K baselines?
  • RQ3How does CoMI-IRL handle unseen behaviors and adapt without full retraining?
  • RQ4What is the interpretability and visual relationship between behaviors in the learned embedding space?
  • RQ5How does the method perform on continuous state-action spaces across multiple MuJoCo tasks (Reacher, Pusher, Walker2D)?

Key findings

  • CoMI-IRL outperforms baselines in clustering quality (NMI/ARI/Silhouette) and reward learning (ATR) without requiring a priori K* or labels.
  • The decoupled approach yields interpretable embeddings where behavior similarities can be visualized and analyzed (e.g., via UMAP visualizations).
  • Adaptation to unseen behaviors via encoder finetuning and two-stage clustering preserves or improves performance, often correctly identifying or adding modes without full retraining.
  • On several tasks, CoMI-IRL achieves competitive or superior ATR compared to baselines, with reduced variance in results, and can reveal finer-grained behavioral structure (e.g., more clusters than predefined K* in some environments).
  • Ablation suggests the DIM regularizer and the pre-processing block are crucial for robust embeddings, with segment and pairwise losses contributing significantly to performance.
Figure 2: 2D UMAP visualizations of the original trajectory space of each environment (from top to bottom: Reacher, Pusher, Walker2D), and the respective embedding space resulting from the BE.
Figure 2: 2D UMAP visualizations of the original trajectory space of each environment (from top to bottom: Reacher, Pusher, Walker2D), and the respective embedding space resulting from the BE.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.