The In-Sample Softmax for Offline Reinforcement Learning

Chenjun Xiao, Han Wang, Yangchen Pan, Adam White, Martha White
2/12/2026

No official code found. Best implementation: hwang-ua/inac_pytorch (19 stars, last commit 2023-06-25).

Abstract

Reinforcement learning (RL) agents can leverage batches of previously collected data to extract a reasonable control policy. An emerging issue in this offline RL setting, however, is that the bootstrapping update underlying many of our methods suffers from insufficient action-coverage: standard max operator may select a maximal action that has not been seen in the dataset. Bootstrapping from these inaccurate values can lead to overestimation and even divergence. There are a growing number of methods that attempt to approximate an \emph{in-sample} max, that only uses actions well-covered by the dataset. We highlight a simple fact: it is more straightforward to approximate an in-sample \emph{softmax} using only actions in the dataset. We show that policy iteration based on the in-sample softmax converges, and that for decreasing temperatures it approaches the in-sample max. We derive an In-Sample Actor-Critic (AC), using this in-sample softmax, and show that it is consistently better or comparable to existing offline RL methods, and is also well-suited to fine-tuning.

View on arXivView PDF

Code Implementations(1)

194PythonJan 11, 20233 years ago

Similar Papers

Cite this paper

@article{xiao2026insample,
  title  = {The In-Sample Softmax for Offline Reinforcement Learning},
  author = {Chenjun Xiao and Han Wang and Yangchen Pan and Adam White and Martha White},
  year   = {2026},
  eprint = {2302.14372},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.14372},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.14372.svg)](https://codeofpaper.com/paper/2302.14372)

Discussion