atlas

Research map / Reinforcement learning / Offline RL

Behavior-agnostic Task Inference for Robust Offline In-context Reinforcement Learning

ICML 2025 · Reinforcement learning › Offline RL · approach: Diffusion models for offline decision making

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes BATI, a model-based maximum-likelihood task inference method for offline in-context RL that infers task latents from dynamics only (not the behavior of the context-collection policy), improving robustness to context shift on MuJoCo.

Problem

Offline in-context RL policies rely on context trajectories and degrade under distribution shift between training and test contexts, because learned encoders approximate Bayesian posteriors that depend on the training distribution of context-collection policies.

Approach

Replace the learned encoder posterior with a maximum-likelihood task inference that maximizes log p(Xt | Xb, M) using a learned table of per-task embeddings and a dynamics estimator; at test time, search over training task embeddings for the one that best reconstructs next-state/reward from the context, conditioning on state-action pairs to block the behavior policy's influence.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use maximum-likelihood task inference from dynamics rather than a learned encoder (ablation)BATI · HalfCheetahDir, OOD contexts and tasksepisodic return: −51.8 ± 37.0 -> 12.1 ± 0.5Helped
Increase context length from C=50 to C=200 (ablation)BATI · HalfCheetahDir, ϵ = 0.9episodic return: −4.7 ± 1.2 -> 1.8 ± 0.5Helped
Increase context length from C=200 to C=400 (ablation)BATI · HalfCheetahDir, ϵ = 0.9episodic return: 1.8 ± 0.5 -> 4.7 ± 1.5Helped
Increase dynamics noise from ϵ = 0 to ϵ = 0.2 (ablation)learned-encoder baselines · AntDirepisodic returnHurt
Increase dynamics noise from ϵ = 0.2 to ϵ = 0.4 (ablation)learned-encoder baselines · AntDirepisodic returnHurt
Increase dynamics noise across tested levels (ablation)BATI · AntDirepisodic returnNo clear effect
Use the learned Recon encoder instead of BATI's maximum-likelihood inference (ablation)dynamics reconstruction method · MuJoCo evaluation environmentsepisodic returnHurt
Evaluate HopperParam with ϵ = 0 instead of noisy dynamics (ablation)offline ICRL baselines · HopperParamepisodic returnNo clear effect
Increase the ratio of OOD test contexts in interpolated contexts (ablation)Recon · HalfCheetahVelepisodic returnHurt
Increase the ratio of OOD test contexts in interpolated contexts (ablation)BATI · HalfCheetahVelepisodic returnNo clear effect
Test on tasks with directions from [π, 2π) rather than training directions from [0, π) (ablation)BATI · AntDir, OOD tasks and contextsepisodic returnHurt

Surprising findings

Limitations

Experimental setup

Datasets: MuJoCo offline datasets (AntDir, HalfCheetahVel, HalfCheetahDir, HopperParam, WalkerParam) generated with per-task polic

Benchmarks: AntDir HalfCheetahVel HalfCheetahDir HopperParam WalkerParam

Metrics: episodic return

Baselines: UNICORN CSRO FOCAL Recon DPT Oracle

Builds on: IQL UNICORN CSRO FOCAL DPT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy