facebookresearch/ReAgent
facebookresearch/ReAgent has 3,727 GitHub stars and 534 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 16:57 UTC. Last push 2026-10-31.
A platform for Reasoning systems (Reinforcement Learning, Contextual Bandits, etc.)
Measured star growth
- in 24h
- +1
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
ReAgent is officially archived and no longer maintained. For latest support on production-ready reinforcement learning open-source library, please refer to Pearl - Production-ready Reinforcement Learning AI Agent Library, by the Applied Reinforcement Learning team @ Meta.
Overview
ReAgent is an open source end-to-end platform for applied reinforcement learning (RL) developed and used at Facebook. ReAgent is built in Python and uses PyTorch for modeling and training and TorchScript for model serving. The platform contains workflows to train popular deep RL algorithms and includes data preprocessing, feature transformation, distributed training, counterfactual policy evaluation, and optimized serving. For more detailed information about ReAgent see the release post here and white paper here.
The platform was once named "Horizon" but we have adopted the name "ReAgent" recently to emphasize its broader scope in decision making and reasoning.
Algorithms Supported
Classic Off-Policy algorithms:
- Discrete-Action DQN
- Parametric-Action DQN
- Double DQN, Dueling DQN, Dueling Double DQN
- Distributional RL: C51 and QR-DQN
- Twin Delayed DDPG (TD3)
- Soft Actor-Critic (SAC)
- Critic Regularized Regression (CRR)
- Proximal Policy Optimization Algorithms (PPO)
RL for recommender systems:
Counterfactual Evaluation:
- Doubly Robust (for bandits)
- Doubly Robust (for sequential decisions)
- MAGIC
Multi-Arm and Contextual Bandits:
Others:
Installation
ReAgent can be installed via. Docker or manually. Detailed instructions on how to install ReAgent can be found here.
Tutorial
ReAgent is designed for large-scale, distributed recommendation/optimization tasks where we don’t have access to a simulator. In this environment, it is typically better to train offline on batches of data, and release new policies slowly over time. Because the policy updates slowly and in batches, we use off-policy algorithms. To test a new policy without deploying it, we rely on counter-factual policy evaluation (CPE), a set of techniques for estimating a policy based on the actions of another policy.
We also have a set of tools to facilitate applying RL in real-world applications:
- Domain Analysis Tool, which analyzes state/action feature importance and identifies whether the problem is a suitable for applying batch RL
- Behavior Cloning, which clones from the logging policy to bootstrap the learning policy safely
Detailed instructions on how to use ReAgent can be found here.
License
ReAgent is released under a BSD 3-Clause license. Find out more about it here.
Terms of Use | Privacy Policy | Copyright © 2022 Meta Platforms, Inc
Citing
@article{gauci2018horizon,
title={Horizon: Facebook's Open Source Applied Reinforcement Learning Platform},
author={Gauci, Jason and Conti, Edoardo and Liang, Yitao and Virochsiri, Kittipat and Chen, Zhengxing and He, Yuchen and Kaden, Zachary and Narayanan, Vivek and Ye, Xiaohui},
journal={arXiv preprint arXiv:1811.00260},
year={2018}
}
Explore related projects
sindresorhus/awesome
😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones]
533,503 starsEbookFoundation/free-programming-books
:books: Freely available programming books
401,256 starsnilbuild/developer-roadmap
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
371,522 starsvinta/awesome-python
The definitive list that answers "I want to do X in Python, which tool should I use?"
333,305 stars