# Distribution Corrected Decision Transformer for Offline Reinforcement Learning with Imbalanced Datasets

*Chufan Chen, Bohao Tang, Dejiang Chen, zhang chao, Ruiqi Li, Hanbin Zhao, Hui Qian*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150474) · [Open on the map](../papers.html#p150474)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Offline Reinforcement Learning and Adaptation](../pgroup/625.md) · Type: new method · Keywords: offline reinforcement learning, distribution correction, dual optimization, Decision Transformer, imbalanced datasets, D4RL

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Reinforcement Learning › Risk-Sensitive Reinforcement Learning

## Summary
The paper proposes Distribution Corrected Decision Transformer (DCDT), which uses a dual-based correction mechanism and a double-KL regularizer to align offline data distribution with the optimal policy, improving performance on imbalanced RL datasets.

## Explained to a 5-year-old
In a video game, the computer has a big bag of past moves, but most of them are not good. The new idea is to pick the good moves and weight them so the computer learns better. It uses a special math trick to make sure the computer only looks at the good moves. This helps the computer play better even when the bag of moves is unfair. The result is a smarter, more helpful AI.

## Explained to a 5-year-old, longer
Imagine a robot that learns to do tasks by watching old videos of people doing them. Most of those videos show people making mistakes, and only a few show perfect actions. The researchers noticed that when the robot only sees the good videos, it learns much better. They created a way to give more importance to the good videos and less to the bad ones. They used a math idea called duality to figure out how to weight the videos correctly. They also added a rule that keeps the robot from using videos it has never seen. The robot then looks at the weighted videos and learns a better plan. This makes the robot’s decisions more stable and accurate. The new method works especially well when the old videos are very unbalanced. It helps the robot perform better in real situations where data is messy. The researchers tested it on many challenges and saw big improvements. They also proved that the method is theoretically sound. This makes learning from imperfect data much easier for robots and AI.

## For a technical reader
The paper addresses the challenge of learning policies from offline datasets that are heavily skewed toward suboptimal behavior. It formulates a dual optimization problem to compute correction weights that align the data distribution with the target stationary distribution of the optimal policy. A double-KL regularizer is incorporated to emphasize high-return state-action pairs while preserving support constraints. These weights are applied to stabilize temporal-difference learning and to prioritize training on a re-weighted dataset. Empirical evaluation on D4RL benchmarks shows significant gains, especially on highly imbalanced tasks, and theoretical analysis confirms the improvement over standard baselines.

## Problem
Offline reinforcement learning with highly imbalanced datasets suffers from distribution shift between the static data and the optimal policy, causing degraded performance of Decision Transformer methods.

## Method
The approach formulates a reward-maximizing objective using Lagrangian duality to derive correction weights that align the offline data distribution with the optimal stationary distribution. A double-KL regularizer is added to prioritize high-return state-action pairs while staying within the data support. These weights are then applied to stabilize policy evaluation via weighted temporal-difference learning and to prioritize training on a weighted dataset that matches the corrected target distribution.

## Results
The approach shows strong performance on D4RL benchmarks, especially on highly imbalanced datasets where prior methods fail, and theoretical analysis confirms improvement over standard baselines.

## Contributions
The paper introduces a dual-based correction mechanism with a double-KL regularizer to align offline data distribution with the optimal policy, and demonstrates its effectiveness on imbalanced offline RL tasks. It also provides theoretical performance guarantees and empirical validation on D4RL benchmarks.

## Research questions this paper is counted under

- [How can offline reinforcement learning policies be made safe and effective when operating on out-distribution data or dynamics?](../q/22.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150474)
