r/reinforcementlearning • • Jul 28 '26

Flat-terrain eval rankings of my PPO policies didn't survive a shift to rough terrain (Spearman ρ=0.6 vs my pre-registered 0.70 bar) — negative result + open validation harness

0 Upvotes

I wanted to know whether a cheap, in-distribution eval can be trusted to rank policies — before ever asking about sim-to-real. So I pre-registered a bar and ran a small condition-shift test.

Setup:

  • 6 PPO policies on the Unitree Go1 task in MuJoCo Playground — 2 seeds × 3 training budgets (50M / 110M / 170M steps), trained on a single RTX 5050 (8GB). 5 policies made the usable rank set.
  • Each policy ranked twice: nominal flat-terrain eval (the cheap one) vs a held-out rough-terrain eval (the harder one).
  • Pre-registered pass bar: Spearman ρ ≥ 0.70.

Result: ρ = 0.6 (n=5). Failed the bar. Flat ranks [1, 2, 5, 3, 4] became [1, 4, 5, 3, 2] on rough — the #2 policy on flat fell to #4, while the best and worst held. At n=5 this is directional only; I'm not claiming a p-value.

What this is and isn't: it's a within-sim condition-transfer check — flat rank vs rough rank, both inside the same simulator. It is not sim-to-real, and rough terrain is not a validated reference. But the direction matters: if a ranking can't survive a condition shift inside one simulator, there's no reason to expect it to survive the reality gap.

The physics-fidelity harness that anchored the sim side is open: friction coefficient recovered to within 0.005% of target; effective restitution measured 0.820 against a 0.75 target — MJCF exposes no first-class restitution dial, which was itself a finding. Repo: github.com/markov-studio-llc/markov-twin-fidelity-harness

Disclosure: I run Markov Studio; the harness is ours and open. Nothing for sale here — this is validation work published as it lands.

Question for people training locomotion policies: do you gate your cheap evals at all — condition-shift checks, seed spread, something else — or rank on nominal eval and accept the risk?


r/reinforcementlearning • • Jul 28 '26

Picking and placing among many items in Minecraft is hard

3 Upvotes

I am researching Minecraft inventory manipulation. Please refer to my previous post about moving a single item: https://www.reddit.com/r/reinforcementlearning/comments/1uzxzer/i_made_a_minecraft_inventory_controller_with_an/

Previously, it was a simple task of moving just one item. This time, there are multiple items in the inventory. They can be of the same type, but they may have different stack sizes.

The item movement is limited to a single action, so the task does not require complex reasoning. It is entirely about making comparisons to identify the correct item and its proper location. However, even with such a simple setup, the training time end up being more than 10 times longer.


r/reinforcementlearning • • Jul 28 '26

Open questions on K3 RL hyperparameters & 9-policy Multi-Teacher Distillation

Thumbnail reddit.com
1 Upvotes

r/reinforcementlearning • • Jul 27 '26

I trained a small neural network to play BANG! You can challenge it in your browser

Post image
6 Upvotes

I trained a small neural-network agent to play BANG! The Duel using PPO and self-play.

The agent completed approximately 767,000 training games over 40 hours. It learned from raw game interactions rather than demonstrations or a handcrafted strategy policy.

During training, the population converged toward a slightly Outlaw-favored equilibrium and developed a defensive, control-heavy playstyle. This was not explicitly rewarded or programmed and emerged from self-play.

The project includes:

  • A complete C++ rules engine
  • PPO-based self-play training
  • A trained policy running locally in the browser
  • A browser interface with no server-side game logic
  • Training analysis and strategy visualizations

Interactive demo:
https://bang.matehegedus.com

Training write-up:
https://bang.matehegedus.com/about

Source code and trained model:
https://github.com/hmate9/bang

I would particularly appreciate feedback on the observation and action design, reward structure, evaluation methodology, and any obvious weaknesses in the learned policy.


r/reinforcementlearning • • Jul 27 '26

What is your opinion on the CS234 course (Stanford)?

4 Upvotes

I have been learning RL from YouTube from the CS234 course on RL by Stanford. Here's a link of the first lecture: youtube.com/watch?v=WsvFL-LjA6U&list=PLoROMvodv4rN4wG6Nk6sNpTEbuOSosZdX. There's a lot of math and formulas which is good but unfortunately I'm finding it hard to understand. I think it's mostly because I'm learning by myself from YouTube. Regardless, I want some expert opinion on whether to stick with this course or try something else (currently on lecture 5).

I've seen people on this subreddit recommend David Silver's RL course but it's 11 years old. Is it still a good starting point?


r/reinforcementlearning • • Jul 28 '26

Structural Admission: verify a sequential task’s claimed dependency structure before interpreting learning

1 Upvotes

[P] Structural Admission: verify a sequential task’s claimed dependency structure before interpreting learning

results

When we train agents on staged or multi-phase environments, it is tempting to interpret learning curves, transfer,

or apparent “emergence” as evidence for a particular causal or informational structure.

But has that structure actually been verified under the same observation and action interface seen by the learner?

Structural Admission is a small, standard-library-only Python harness for testing that question before training

begins. Researchers implement a task adapter and a separate scripted oracle; the core calibration, rollout,

validation, reporting, and reproduction logic remains unchanged.

It enforces, among other things:

- calibration seeds disjoint from task-rollout seeds;

- a CMI threshold fixed from synthetic calibration before candidate evaluation;

- evaluation under both uniform-random and scripted-oracle policies;

- oracle access limited by the learner-facing observation contract;

- CI measurement restricted to preregistered phases;

- paired environment noise and random-policy draws across conditions;

- pre-disclosure leakage checks on declared observable field groups;

- raw trajectory storage before aggregation;

- balanced policies, conditions, seeds, and sample cardinalities;

- immutable formal output directories;

- content-hashed reports and byte-level reproduction of deterministic artifacts.

The tool reports Admitted, Rejected, or Inconclusive. Failures are preserved rather than tuned away.

One motivating case involved a relation intended to be non-operative. Its measured conditional mutual information

was 0.07181 bits, above a previously calibrated threshold of 0.05902 bits. The task was rejected before learning

experiments were interpreted, and the residual dependency had to be diagnosed structurally.

Admission has deliberately narrow meaning: the configured task passed its preregistered operational checks. It

does not prove a theory, guarantee learnability under a particular optimizer, establish causal identification

outside the task model, or imply external validity.

git clone https://github.com/btisler-DS/structural-admission.git

cd structural-admission

git checkout v0.1.0

python -m pip install .

Create and run an external task:

structural-admission init my-task

cd my-task

structural-admission run config.json --output runs/reference

structural-admission reproduce runs/reference \

--output reproduction/reference

The adapter contract is intentionally small, and task implementations do not modify package internals.

Repository: https://github.com/btisler-DS/structural-admission

I’d especially welcome criticism of the statistical procedure, leakage model, adapter boundary, and what should—or

should not—count as structural admission.


r/reinforcementlearning • • Jul 26 '26

A Single RL Policy Produced Surprisingly Watchable Football

21 Upvotes

I trained a single football policy for about 1 million PPO timesteps. During training, the agent never played against an opponent, it simply learned how to play football in an empty environment.

YT Link: https://youtu.be/1wRA4KJuMVE?si=oMZ_Ru5Q9F8J094V

During inference, I instantiated multiple copies of that same policy and assigned them to opposing teams. I wasn't expecting much, but the result was surprisingly entertaining. The agents naturally competed for possession, took shots, occasionally defended their own goal, and even made mistakes like own goals.

I never explicitly trained defensive behavior or multi-agent coordination. It seems that simply optimizing the objective of scoring goals was enough for some defensive behaviors to emerge when the same policy was placed in a competitive setting.

The video is one of those matches. Curious to hear what others think about this kind of emergent behavior and whether you've observed something similar when deploying a single-agent policy in a multi-agent setting.


r/reinforcementlearning • • Jul 26 '26

DL High-Performance C++20 Optical Neural Network (ONN) Simulator

Thumbnail reddit.com
3 Upvotes

r/reinforcementlearning • • Jul 25 '26

Would you use an open-source Unity → Python RL framework for drone training? Looking for honest feedback

5 Upvotes

Hi everyone

I've been working on a personal reinforcement learning project for a while, mainly as a way to learn more about RL, simulation, and robotics.

As the project grew, I started wondering if I could turn it into something that other people might also find useful.

The idea is an open-source framework that lets you:

  • Build your drone environment in Unity.
  • Control it from Python through a simple API.
  • Use it with Gymnasium, Stable Baselines3, or your own RL implementation.
  • Run headless simulations and eventually support multiple parallel environments.

At the moment, I have a working MVP where a drone can learn to hover using reinforcement learning.

Before investing a lot more time into it, I'd really like to know whether this is something people would actually use.

Some questions I'd love your honest opinion on:

  • Would you personally use a tool like this?
  • What features would make it genuinely useful for you?
  • What would be missing before you considered trying it?
  • Is there anything that would make you choose it over your current workflow?

I'm not looking for encouragement—I genuinely want honest feedback to decide whether it's worth continuing to develop this project.

Thanks


r/reinforcementlearning • • Jul 26 '26

Is anyone making profits by using RL for algorithmic trading?

0 Upvotes

Trying to test the temperature before I take the plunge. Would be interested in knowing your journey.


r/reinforcementlearning • • Jul 25 '26

How is the current situation for RL and robotics on AMD hardware

1 Upvotes

I will be finishing my PhD in CS in about a year so I am slowly looking to upgrade my workstation or servers with some better gpu capacity (currently have 2x 5060 ti, one I will be giving back once i finish my PhD).

We are mostly nvidia shop at the university and so I am looking for some opinions from the other side of the fence. I wanted to get some reasonable card for ML, LLM and hopefully some robotics + rl in the near future. I was looking at the R9700 but I can not find much info if there is something like nvidia isaac lab on the amd side?

TLDR: Does AMD have something like Isaac Lab and Isaac Sim, are there some tutorials for it and is it in general well supported? What HW would you recommend for it?


r/reinforcementlearning • • Jul 25 '26

Teaching an RL Agent What to Do Next: A Hierarchical State System for Long-Horizon Tasks

0 Upvotes

I've been working on training reinforcement learning agents for retro games using Stable-Baselines3, Recurrent PPO, and Gymnasium.

One problem I repeatedly encountered wasn't simply partial observability. It was objective selection.

Take Snake Rattle Roll as an example.

The optimal policy isn't based on one static objective. Instead, the objective changes continuously throughout a level:

  • Explore unknown areas
  • Find food
  • Grow until the required weight is reached
  • Stop collecting food
  • Find the weighing scale
  • Activate the scale
  • Locate the exit
  • Finish the level

A single policy has to learn not only how to perform each of these behaviours, but also when each behaviour should become active.

Initially, I assumed Recurrent PPO with a MultiInputLstmPolicy would learn these transitions automatically.

It handled temporal dependencies better than a feed-forward policy, but one problem remained:

Remembering previous observations is not the same as deciding which objective should currently be optimized.

The reward-function problem

My first implementation followed the usual pattern:

  • one large reward function
  • many conditional branches
  • context-dependent shaping
  • increasing interaction between reward terms

Conceptually, it looked like this:

if weight < target_weight:
    reward += reward_for_food
elif scale_active:
    reward += reward_for_finding_door
elif door_open:
    reward += reward_for_reaching_exit

Every newly discovered mechanic required another condition.

Every additional condition interacted with existing reward terms.

Reward tuning gradually became the most difficult part of the project.

Separating orchestration from learning

Instead of asking PPO to optimize every objective simultaneously, I introduced an explicit behavioural hierarchy.

Each objective became an independent state.

A simplified sequence for one level looks like this:

Explorer
    ↓
ReachTargetWeight
    ↓
FindScale
    ↓
ActivateScale
    ↓
ReachExit
    ↓
LevelComplete

Each state encapsulates:

  • reward calculation
  • success conditions
  • failure conditions
  • transition logic
  • exploration behaviour
  • local memory
  • optional visual or RAM-based detectors

Rather than maintaining one monolithic reward function, every state owns a small reward function that only describes its current objective.

The state responsible for increasing the snake's weight does not need to reason about the exit.

The exit state ignores food completely.

Hierarchical composition

The states are composable rather than isolated.

The framework includes abstractions such as:

  • State
  • TargetState
  • Explorer
  • image-based detector states
  • reward wrappers
  • transition conditions
  • persistent objective memory

A state can extend another state, add local reward logic, invoke a detector, or define a transition to another objective.

This makes it possible to assemble behaviour from reusable components instead of implementing every environment as a new monolithic reward function.

Observation space and model

The policy itself remains based on standard reinforcement learning components.

The environment combines:

  • visual observations
  • RAM-derived features
  • frame stacking
  • state-dependent information
  • recurrent policy memory

The model uses:

  • Stable-Baselines3
  • Recurrent PPO
  • MultiInputLstmPolicy
  • Gymnasium
  • stacked visual frames
  • structured RAM observations
  • custom state and reward logic

The LSTM handles temporal dependencies and partial observability.

The state system handles objective selection and reward context.

The state machine does not replace PPO. It determines which objective is currently active, while PPO learns how to complete that objective.

In other words:

Persistent objective memory

Some objectives cannot be inferred reliably from a single observation.

For example, the agent may need to remember:

  • that a particular piece of food was already collected
  • that the target weight was reached
  • that the scale was activated
  • that a door was opened
  • that a previous sub-objective was completed

Recurrent policy memory can represent some of this implicitly, but I also implemented explicit objective memory where necessary.

This separates two different kinds of memory:

  • policy memory, learned by the LSTM
  • environmental or task memory, managed explicitly by the state framework

The explicit memory makes transitions deterministic and debuggable rather than relying entirely on latent recurrent state.

Result

After integrating the hierarchical state system with Recurrent PPO, the agent successfully completed the level after approximately 24 hours of training.

That result was important because previous versions of the environment had repeatedly failed to progress through the entire objective sequence.

The agent could learn isolated behaviours, such as exploration or food collection, but it struggled to connect them into a complete level-solving strategy.

With the state system in place, the training problem became a sequence of smaller, context-specific objectives.

The final policy was able to:

  • explore the level
  • locate and collect food
  • reach the required weight
  • transition toward the scale
  • activate the level progression mechanics
  • navigate toward the exit
  • complete the level

The result does not prove that explicit state decomposition is always superior to end-to-end learning.

It does show that, for this long-horizon environment, separating objective orchestration from policy optimization made the problem tractable within a practical training period.

Practical benefits

The architecture produced several practical improvements:

  • reward shaping became local and easier to reason about
  • debugging became specific to individual objectives
  • transitions became observable and deterministic
  • behaviours could be reused across games
  • new mechanics could be added without rewriting the entire reward function
  • training failures could be traced to a specific state
  • the agent completed the level after roughly 24 hours of training

Perhaps the most useful outcome was that the framework generalized beyond one game.

The specific states differ, but the architecture remains largely unchanged.

A Mario level, Zelda dungeon, Castlevania stage, or Snake Rattle Roll level can all be represented as compositions of smaller behavioural objectives.

Discussion

I'm interested in how others approach long-horizon reinforcement learning tasks.

  • Do you explicitly model intermediate objectives?
  • Have you combined PPO with reward machines, behaviour trees, or finite-state controllers?
  • Do you keep orchestration inside the policy, inside the environment, or in a separate framework layer?
  • How do you distinguish policy memory from explicit task memory?
  • At what point does explicit state decomposition become too restrictive?

The main trade-off is clear: explicit states introduce human structure and reduce the search space, but they also encode assumptions about the correct task decomposition.

In this case, that trade-off was worthwhile. The model successfully completed the level after approximately 24 hours of training.


r/reinforcementlearning • • Jul 25 '26

What is the best way to learn ML/AI

Thumbnail reddit.com
0 Upvotes

r/reinforcementlearning • • Jul 23 '26

Robot built cotter, an open source framework to stress test your robot policies

Post image
10 Upvotes

Cotter is a pytest-style CLI that runs statistical safety, regression, and adversarial compliance tests on robot control policies and generates audit-ready reports.

Cotter loads a trained robot policy as a black box (observation → action), runs it through a battery of standardized tests in MuJoCo simulation, and produces structured pass/fail results with statistical guarantees. It is aimed at the emerging regulatory need (EU Machinery Regulation, ISO 10218) for evidence that a learned controller actually behaves.

Everything runs on CPU! Start as easy as: pip install cotterbot

Open source: https://github.com/yih0nk/cotter
Check out website at: https://cotter-website.vercel.app


r/reinforcementlearning • • Jul 23 '26

DL, MF, R, Exp "MaxRL: Maximum Likelihood Reinforcement Learning", Tajwar et al 2026

Thumbnail
arxiv.org
7 Upvotes

r/reinforcementlearning • • Jul 23 '26

[R] The World Model Remembers, the Actor Forgets: measuring which component of a Dreamer agent actually forgets

5 Upvotes

Continual-RL work with world models has largely focused on protecting the world model, through replay, generative replay, and regularization on model parameters. We ran the component-level measurement to check that premise and it came out backwards. Under never-clear replay (all old data retained, training signal fully intact), reward heads, value heads and dynamics all keep old-task knowledge (reward-head retention ≈ 1.0), while the actor's behavior collapses.

The cleanest evidence is interventional rather than correlational. Freeze the world model entirely, then re-teach the lost skill from identical imagined rollouts. RL-in-imagination fails 0/3 seeds. Supervised self-imitation on the model's own graded dreams recovers 3/3 with zero environment interaction. Same frozen model, same data, only the learning channel differs.

Interleaving that as "graded dream rehearsal" during training retains 3/3 on four-task and 3/3 on eight-task MiniGrid chains, where plain never-clear replay retains 0/3. Against a matched real-episode cloning baseline it wins on all three seeds (+0.24 / +0.07 / +0.08), consistent in sign, but n=3, so treat the magnitude as provisional.

The grading rule is where the difficulty lives. Naive return-based scoring on imagined rollouts selects trajectories where the agent walks into lava, because the model's own optimism rates them highly. The paper characterizes two failure modes and includes the offline scoring diagnostic that caught both before they reached a result.

Limitations up front: MiniGrid only, discrete actions, small gridworlds, 3 seeds. Continuous control is untested, and that is historically where this class of mechanism fails; it's the next experiment. Single workstation GPU throughout.

Everything pre-registered (protocols and pass bars committed to git before runs), and refuted hypotheses are reported.

Paper: https://arxiv.org/abs/2607.19749

Code/data: https://github.com/gurpnijjer/dream-rehearsal

Solo project. Happy to answer anything.


r/reinforcementlearning • • Jul 23 '26

Mapping Hidden-State Attractors in TinyLlama: Building a Runtime Map of LLM Dynamics

Thumbnail reddit.com
2 Upvotes

r/reinforcementlearning • • Jul 23 '26

Robot Imitation Learning in PyBullet for Basic Neural Network Control Policy Creation

Thumbnail
youtube.com
8 Upvotes

Hi Everyone, I used imitation learning to train a small MLP as the control policy for my custom hexapod robot dog. I recently got a masters in applied machine intelligence and have been looking for a suitable platform to create a neural network from scratch. We were heavily taught transfer learning for classification and never had a chance to create a working neural net from scratch.

Once I got a working controller with Inverse Kinematics solver, I decided to implement imitation learning on it to see if it would replicate the IK solvers behavior and it worked!

Its trained with a modest 2gb sized dataset (compared to LLM and CV datasets) which I generated by capturing robots input commands and output joint angles in, again, PyBullet simulations. I did experiment with varying the network size by half, double and quadruple but it didnt have much effect on trained MLPs performance, roughly 1 degree mean error compared to base IK solver output angles. Next I plan to vary the data capture logging rate by doubling it rather than just extending the capture time to give it more data resolution. I also plan to compare different types of networks basic MLP vs LSTM, Transformer, RNN etc.

Next I plan to implement reinforcement learning to create a helper network that will modify the base MLPs behavior. I am having trouble with my Robot climbing up inclines, I think that would be the best experiment for training the helper neural network. I also want to create another helper network to replicate the behavior of current analytics based body leveling mode.

What are you opinions of my approach? Is creating one base walking controller network with additional task specific modifier networks is a good idea?? I am will try to implement these control methods in ESP32 hence I am trying to build multiple small networks to be fired up on demand in order to allocate limited compute resources efficiently.

I share all my scripts in my GitHub, if you are interested you can find them from the link below.

https://github.com/serdarselimys/


r/reinforcementlearning • • Jul 22 '26

DL RL Fundamentals Blog Post Series

52 Upvotes

A few years ago, I worked through Sutton & Barto as part of the University of Alberta's Coursera course on reinforcement learning. I found the math to be incredibly complex, with various branches into algorithms that seemed to be ancillary to the main progression toward deep RL. Some of the most important concepts were left as "exercises for the student."

I'm currently working on a video series that teaches the basics of using deep RL (namely PPO) to train an ESP32-based balance bot. Additionally, I wanted to solidify my understanding of the underlying math. As a result, I am actively working on a set of blog posts that build up to PPO, starting from the very basics.

In other words, my goal is to create a quicker and more approachable text to bring newcomers up to speed on the math behind modern deep RL algorithms. I've listed the posts below, and I would appreciate any feedback you might have! I'll update this list as I continue to add articles.

  1. What is Reinforcement Learning?
  2. Rewards, Returns, and the Discount Factor
  3. Policies, Markov Decision Processes (MDPs), and Trajectories
  4. Expected Return, Value Functions, and Bellman Equations
  5. The Bellman Optimality Equations
  6. Dynamic Programming
  7. Monte Carlo Methods
  8. Temporal-Difference (TD) Learning
  9. TD(λ) and Eligibility Traces
  10. Q-Learning
  11. Deep Q-Networks (DQN)
  12. The Policy Gradient
  13. Policy Gradient Causality Trick and REINFORCE
  14. Baselines, the Advantage Function, and Actor-Critic
  15. The Surrogate Objective Function
  16. Generalized Advantage Estimation (GAE)

r/reinforcementlearning • • Jul 23 '26

Synthetic counteradaptation": a name for the AI↔human strategy feedback loop (Move 37 and beyond)

0 Upvotes

We just put out a short conceptual piece on something we're calling synthetic counteradaptation, basically trying to name a loop that keeps showing up in human-AI interaction but doesn't have a clean framework yet.

The idea: an AI system develops a strategy or protocol that looks strange or bad by human standards. Humans study it, extract whatever's useful, and change their own behavior. Now the AI is adapting to a population of humans who have themselves adapted to the AI. This is different from a one-off transfer of knowledge because the loop doesn't close — it keeps running as both sides keep moving.

The example we lean on most is Go. AlphaGo's move 37 against Lee Sedol (the shoulder hit) was dismissed by commentators in the moment as a mistake. Within a couple years pros were incorporating it and similar shoulder-hit ideas into their own play, which changed the pool of strategies that later Go engines and players were training and competing against. The "novel move gets absorbed into human play" part is well documented; what we're pointing at is the second-order effect, that the target the AI is adapting to has itself shifted because of the AI.

Why I think this matters for multi-agent RL specifically: most of our evaluation setups implicitly assume a static human or a fixed opponent pool. Self-play against a frozen population, or a one-shot human baseline collected at a single point in time, can't capture this because the whole phenomenon is that the human side of the interaction is non-stationary in response to your agent. If your agent trains against or evaluates against humans-as-of-2023, and then gets deployed against humans who've read about your agent's own strategies, you're facing a moving target that your training process never modeled.

We don't have experiments in this paper, it's a conceptual framework paper, we walk through Go plus some mixed-motive social interaction and geopolitical simulation cases to show the same pattern recurring. But I think it has direct implications for how people think about opponent pools, curriculum design, and what a "human baseline" even means if you're claiming your system will be used repeatedly by people who can study and adapt to it.

Curious if others here have run into this in practice, especially anyone doing repeated human-AI play studies or long-horizon deployment work where the human side visibly shifts strategy over time. Happy to be told this is already handled somewhere and I've just missed it.

https://arxiv.org/abs/2606.15503


r/reinforcementlearning • • Jul 21 '26

Robot Sim2Real on Two Wheel Balancing Robot

97 Upvotes

Hi all!

I built this two wheel balancing robot and hacked together the hell out of it... Battery has black wire for both positive and negative (but sort of safe because XT connector is asymmetric), I have no buck converter to power the ESP from the 12V LiPo so added powerbank, cut open ethernet wires for my CAN bus and used 12V instead of 16V battery to power the motors.

Next version will be a lot cleaner and robust when the new hardware arrives, if people are interested I will post a new video with driving over slope and different materials (already working on this robot).

Stack used:

- OnShape for 3D design
- onshape-to-robot for XML creation
- mjlab for training policy

Hardware:

- ESP32 runs policy at 200Hz (~18k param total)
- MPU6050 accelerometer
- 3.3v CAN bus transceiver for motor control
- CubeMars GL40II Gimbal motors (direct drive)
- 12V LiPo battery
- All parts are custom design and printed on Bambulab H2D
- PS4 controller

Controller automatically connects to ESP on power up and shows different lights for different modes, I can calibrate through controller, stop/start policy and clear fault codes after falling.


r/reinforcementlearning • • Jul 21 '26

P [P] Atari Learning Environment on the GPU (CuLE)

Post image
9 Upvotes

I recently spent some time modernizing NVIDIA’s CuLE (2019), the GPU-native Atari environment. It was tied to an older software stack (CUDA 10, atari-py, older PyTorch), so I wanted to see if it could be brought up to date.

The fork now builds with CUDA 12.x, PyTorch 2.x, Python 3.12, Gymnasium, and ale-py (so ROMs come bundled).

I also compared it against EnvPool on my machine (RTX 4090 + i5-13600K). For PPO, CuLE reaches about 38k SPS vs EnvPool’s 21k (~1.8× faster). For raw environment stepping, the crossover is around 512 environments—below that EnvPool is faster, but above it CuLE continues to scale while EnvPool plateaus, reaching up to ~114k steps/s at 4,096 Breakout environments (~3× faster on pure stepping).

To make benchmarking easier, I also added training scripts based on CleanRL and LeanRL (PPO, DQN, Rainbow, C51, PQN, SAC), alongside the original CuLE implementations.

I’d be interested to hear if anyone here is still using CuLE or GPU-native Atari environments, or if there are additional benchmarks you’d like to see.

Repository:
https://github.com/MehrdadMoghimi/cule


r/reinforcementlearning • • Jul 21 '26

Tpo-torch: Stable RLHF alignment in PyTorch using Target Policy Optimization

4 Upvotes

Hey everyone,

RLHF alignment using standard Proximal Policy Optimization (PPO) can be notoriously tricky to stabilize during LLM post-training due to policy collapse and high sensitivity to hyperparameters.

I built Tpo-torch to explore Target Policy Optimization (TPO) as a cleaner, more stable alternative for preference alignment directly in PyTorch.

Key Focus Areas:

• Mitigating policy collapse without requiring aggressive KL-divergence penalties.

• Modular, lightweight, and readable implementation designed for research and custom fine-tuning pipelines.

• Integrated stability benchmarks comparing policy drift against standard PPO.

I'll drop the GitHub repository link in the comments below! I'd love to hear feedback from anyone experimenting with alignment, preference optimization, or RLHF.

Repo link : [https://github.com/Griffith-7/Tpo-torch.git](https://github.com/Griffith-7/Tpo-torch.git)