mlsanityData to 14 Oct 2026

PyCFRL: A Python library for counterfactually fair offline reinforcement learning via sequential data preprocessing

arXiv 2510.06935 ↗First posted 8 Oct 2025stat.ML cs.LGcited by 0

On the map: Offline RL and imitation learning from data → Offline RL algorithms

Abstract (arXiv)

Reinforcement learning (RL) aims to learn and evaluate a sequential decision rule, often referred to as a "policy", that maximizes the population-level benefit in an environment across possibly infinitely many time steps. However, the sequential decisions made by an RL algorithm, while optimized to maximize overall population benefits, may disadvantage certain individuals who are in minority or socioeconomically disadvantaged groups. To address this problem, we introduce PyCFRL, a Python library for ensuring counterfactual fairness in offline RL. PyCFRL implements a novel data preprocessing algorithm for learning counterfactually fair RL policies from offline datasets and provides tools to evaluate the values and counterfactual unfairness levels of RL policies. We describe the high-level functionalities of PyCFRL and demonstrate one of its major use cases through a data example. The library is publicly available on PyPI and Github (https://github.com/JianhanZhang/PyCFRL), and detailed tutorials can be found in the PyCFRL documentation (https://pycfrl-documentation.netlify.app).

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Offline RL algorithms, one of 13 directions in Offline RL and imitation learning from data. Builds on 5 of its 9 references that are in the map. First posted on arXiv 8 Oct 2025.

Builds on

5 of 9 references.

Closest ancestors · 1

Same direction, newest first

  1. 2021d3rlpy: An Offline Deep Reinforcement Learning Library6 Nov

Other references · 4

  1. 2017Counterfactual Fairnesscited by 804
  2. 2018AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Biascited by 319
  3. 2023Fairlearn: Assessing and Improving Fairness of AI Systemscited by 74
  4. 2025Counterfactually Fair Reinforcement Learning via Sequential Data Preprocessingcited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Fairness in Reinforcement Learning: A Survey
  2. 2023SCOPE-RL: A Python Library for Offline Reinforcement Learning and Off-Policy Evaluation
  3. 2023Beyond Uniform Sampling: Offline Reinforcement Learning with Imbalanced Datasets
  4. 2026[Re] FairDICE: A Fair Tradeoff in Multi-objective Offline RL
  5. 2025PyTupli: A Scalable Infrastructure for Collaborative Offline Reinforcement Learning Projects
  6. 2021NeoRL: A Near Real-World Benchmark for Offline Reinforcement Learning
  7. 2024On Sample-Efficient Offline Reinforcement Learning: Data Diversity, Posterior Sampling, and Beyond
  8. 2022A Survey on Offline Reinforcement Learning: Taxonomy, Review, and Open Problems