facebookresearch/ReAgent

A platform for Reasoning systems (Reinforcement Learning, Contextual Bandits, etc.)

What it solves

ReAgent provides a complete platform for applied reinforcement learning (RL), specifically designed for large-scale, distributed tasks where a simulator is unavailable. It addresses the challenges of training policies offline on batches of data and safely deploying them in real-world environments.

How it works

Built with Python and PyTorch, the platform uses TorchScript for model serving. It integrates a full workflow for deep RL, including data preprocessing, feature transformation, distributed training, and optimized serving. To handle the lack of a simulator, it focuses on off-policy algorithms and uses counterfactual policy evaluation (CPE) to estimate a new policy's performance without needing to deploy it first.

Who it’s for

It is intended for developers and researchers working on large-scale optimization and recommendation systems that require offline RL training and safe policy deployment.

Highlights

  • Broad Algorithm Support: Includes classic off-policy algorithms (DQN, TD3, SAC, PPO), RL for recommender systems (Seq2Slate, SlateQ), and Multi-Arm/Contextual Bandits.
  • Counterfactual Evaluation: Implements techniques like Doubly Robust and MAGIC to evaluate policies offline.
  • Real-world Application Tools: Features a Domain Analysis Tool for feature importance and Behavior Cloning to bootstrap learning policies safely.
  • End-to-End Workflow: Covers everything from data preprocessing to distributed training and model serving.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch