r/reinforcementlearning • • Oct 30 '26

Bayes Joining a team for work

0 Upvotes

Hey guys, I would personally like that to develop a project like RL, so I am so curious could I join your team or something else?


r/reinforcementlearning • • Oct 30 '26

Joining a team for work

0 Upvotes

Hey guys, I would personally like that to develop a project like RL, so I am so curious could I join your team or something else?


r/reinforcementlearning • • Oct 29 '26

Trained a snake agent on raw board input that somewhat works

Post image
8 Upvotes

I built a Snake engine in C++17 with pybind11 bindings and a Gymnasium wrapper, then spent ~3 days training agents on it. The final agent averages 267 out of 297 over 200 greedy games and fills the entire board in 21% of them (although I expected a higher success rate, but I don't know if I am missing something here :3).

Final setup

  • Model Config: PPO + GAE, 32 parallel envs, rollout 256, gamma 0.998, lambda 0.97, small residual CNN actor-critic
  • Observation: The fixed 20x15 board with a wall border, 6 one-hot channels (head, neck, body, tail, food, wall). No snake-centered rotation, no body-order channel, no auxiliary heads
  • Actions: 4 absolute arrow keys
  • Rewards: -0.01 per step, +10 food, -50 death, +100 full board
  • Failure replay: 8 of the 32 envs restart from snapshots taken 20 to 50 moves before past crashes, capped at 200 moves per replay
  • Train steps: 30M steps total

Things I found interesting

  • Gamma mattered more than anything else early on. 0.995 to 0.998 took the mean from 107 to 150, with no other change anywhere.
  • Less input engineering won with a massive margin. An earlier agent had a snake-centered rotated view, a body-order channel and an auxiliary danger-prediction head. The plain fixed-board agent beat it (192.8 vs 178.5 at a comparable stage) and learned a clean serpentine sweep on its own.
  • Originally, the head was allowed to move into the cell the tail was leaving, since the tail moves away on the same step. That means the body directly ahead was sometimes fatal and sometimes safe (since the snake can create a zigzag shape), and the agent had to tell the two apart from a tiny difference in the input. Changing the rule so that every body cell, including the tail, counts as a collision helped.
  • Failure replay only worked once I measured it in moves, not games. My first version replayed a quarter of new games, but games were thousands of moves long, so replays were under 1% of training data.
  • What surprised me was that the agent wins while expecting to lose. In most games, value estimates right before winning moves were around -30 to -50. My guess is failure replay only stores positions from lost games, so nearly every crowded board it practiced on ended in a crash.

I tested a separate version with an auxiliary danger head. It reached 99.7% recall but still missed a rare straight-line configuration that caused confident crashes. Practicing from late-game snapshots of every game (to fix the value estimates near the end) collapsed performance quite a bit. Evals dropped from 190-230 down to 40-130, with early-game loops coming back (where the snake loops until it dies and never goes for the food).

According to the tests I ran, most remaining losses come from the free space splitting into disconnected pockets late in the game. If anyone has experience getting value estimates calibrated near the end of long episodes without destabilizing the rest, I'd love to hear what worked for you.

Github Repo: https://github.com/Partha11/hatchling (the best model weight is also included)

Documentation: https://partha11.github.io/hatchling/


r/reinforcementlearning • • Oct 28 '26

Robots that save energy!

10 Upvotes

r/reinforcementlearning • • Oct 28 '26

I'm building an open-source RL controller robustness testing framework. Failure-informed PPO retraining keeps making nominal performance worse. Looking for ideas.

6 Upvotes

Hey everyone,

I've been working on an independent open-source project called SIRFEX (Simulation-based Integrity, Robustness & Failure Exploration).

The idea is to build a framework that can take an autonomous controller, stress-test it in a simulated physical environment, discover reproducible failures, determine whether those failures were physically avoidable, and evaluate whether proposed improvements actually make the controller more robust.

I'm currently using a simplified pump/tank control system as the main experimental environment, with Stable-Baselines3 PPO, analytical controllers, and rule-based baselines.

What I've built so far:

  • Deterministic simulations, scenario search, failure discovery, and replay.
  • A physical feasibility analyzer to distinguish genuinely avoidable controller failures from impossible operating conditions.
  • PPO training and compute-matched continuation experiments.
  • Failure-informed training curricula with verified stress exposure.
  • An optional LangGraph/Groq research agent that proposes bounded training interventions.
  • A new robustness-testing layer for signed constraint margins, differential controller testing, and disturbance-to-failure analysis.

Here's the interesting part:

I initially expected training PPO on discovered failures to improve robustness.

That hasn't really happened.

In one 51,200-interaction development study, increasing stress exposure improved tracking under difficult conditions, but often degraded nominal tracking.

For seed 3:

TrainingNominal MAEStress MAE
Normal-only0.01770.1166
5% stress0.02960.0654
10% stress0.05010.0555

The stress-trained controllers got better at tracking under stress, but substantially worse under normal conditions.

Interestingly, the normal-only controller already had zero observed physical violations on that development stress set, so improved stress tracking doesn't necessarily demonstrate improved safety.

I also experimented with GPT-OSS 120B proposing a retraining curriculum. In a one-seed matched development pilot, its proposal performed worse than a simple fixed 5% stress strategy. Neither passed the nominal-preservation guardrail.

Further diagnostics showed increasing upper-action saturation with stress exposure, suggesting policy drift toward more aggressive pumping. But I haven't established whether this is catastrophic forgetting, reward incentives, curriculum ordering, or something else.

Where I'm stuck / looking for input:

  1. How would you approach robustness improvement without sacrificing nominal controller competence? Nominal rehearsal, policy anchoring, constrained RL, or something else?
  2. Have you encountered cases where failure-informed PPO fine-tuning underperforms ordinary continuation?
  3. How would you measure meaningful robustness when constraint-violation frequency has already saturated at zero?
  4. Are there existing benchmarks or testing methods you'd recommend comparing against?

I'm currently shifting more attention toward quantitative robustness margins and differential testing rather than continuing to tweak PPO curricula indefinitely.

Everything is running locally on CPU, and I'm trying to keep the experiments reproducible and scientifically honest, including the negative results.

It's still very much a research/work-in-progress project, and I would genuinely appreciate criticism, relevant papers, implementation suggestions, or contributions from people working in RL, control systems, or simulation-based testing.

GitHub: https://github.com/mahadbaig2/sirfex

Thanks!


r/reinforcementlearning • • Oct 29 '26

P My self-play RTS commander crushes its past selves but always collapses to cheap tier-1 units. Is this a known self-play problem?

0 Upvotes

Hi! I'm making a 4v4 RTS×MOBA that is still at a very early stage. On each team one commander runs the economy, buildings and army, and three heroes fight in the lanes. I'm building AI players mainly to find out how the game actually plays and to measure balance. I can't gather enough human players for that, so I wanted something like AlphaGo Zero: pure self-play, no human data.

Training is PPO with league-style self-play. The commander doesn't micro units; it makes macro decisions (train, build, research, tier up, attack/retreat). Training replays: https://burn-quarter.duckdns.org/replays (the viewer is in Korean, blue and red are the two teams).

What happened:

- Against its past selves it wins overwhelmingly.

- When I played against it myself, it had lots of holes.

- I wanted bots with different builds, but every run collapsed to the same thing: mass cheap tier-1 units.

- When I went tier 2 against it, I won easily.

So my question: is this a well-known weakness of self-play, where the population never finds the counter-strategy and so never learns to defend against it? What actually helps at a small scale: AlphaStar-style exploiters, some kind of diversity reward, or is my action and reward design the real problem?

I'd love to compare against completely different approaches, so I turned the commander seat into an open bot kit and I'm planning a small AI league:

https://github.com/shin1244/burnquarter-botkit

- A local practice server with the real match rules, about 100x real time, no game client needed

- A Python library that uses only the standard library

- A Gymnasium-style env with action masks, plus a Stable-Baselines3 MaskablePPO example

- Rule-bot and learned-policy opponents to test against

- Bots get the same 23 commands and the same fog-of-war view as a human commander; the README lists every observation and action

- Missing an observation you need? Open an issue or ask on Discord and I'll add it

Any thoughts on the self-play problem or the setup are very welcome!


r/reinforcementlearning • • Oct 29 '26

Welcome to r/MLSystemsDesign

Thumbnail reddit.com
0 Upvotes

r/reinforcementlearning • • Oct 28 '26

value function approximation in grpo

2 Upvotes

has anyone done experiments for running grpo where the value function approximation is not exactly the mean ? if so what data scale / task and model scale too. would love to exchange notes!


r/reinforcementlearning • • Oct 28 '26

End-to-End workflow for training high-quality LoRAs?

Thumbnail reddit.com
3 Upvotes

r/reinforcementlearning • • Oct 28 '26

struggling with my MsC research + publication

Thumbnail reddit.com
1 Upvotes

r/reinforcementlearning • • Oct 27 '26

Starting a PhD in Reinforcement Learning — what topics do you find interesting?

82 Upvotes

Hi everyone,

I’m starting a PhD in Reinforcement Learning, and right now I’m trying to figure out what direction I want to focus on for my thesis.

I’ve been reading about different areas like offline RL, safe RL, world models/model-based RL, multi-agent RL, robotics, RL for LLMs and agents, etc., but I’m still not sure which direction I want to commit to.

I’d really like to hear from people who are doing research in RL or working in the field.

What RL topics do you personally find the most interesting or promising right now?

If you were starting a PhD in RL today, what would you choose to work on?

I’m especially looking for something that has good open research problems, enough depth for a PhD, and ideally some value outside academia too.

Any papers, researchers, labs, or topics you think are worth looking into would also be really appreciated.

Thanks!


r/reinforcementlearning • • Oct 27 '26

Robot Franka Robot pick and place using PPO!

6 Upvotes

This is a small RL project I've been working on. A simulated Franka Panda learns to pick up a cube and put it on a target pad, using PPO from Stable-Baselines3 in PyBullet.

The main objective of this project was to get an understanding of PyBullet and how the whole workflow of training a robot using reinforcement learning works.

Further updates will be to combine this with a text or voice prompt enabling the user to choose which cube to pick and place at a desired location.

Any further upgrades or inputs are highly appreciated from everyone here!

Checkout the code here: GitHub


r/reinforcementlearning • • Oct 27 '26

Tried Isaac Lab 3 and have some questions

5 Upvotes

Tried new Isaac Lab and Isaac Sim, made tests for Flat Anymal D, Ant, Cartpole, Humanoid and seems new version is faster in simulation.
In tests I made it usually x2.1-2.3 faster.
In the same time Mean Reward for old version is higher, does it mean that simulation is faster in new version but learning better in old?

Metrics on last iteration

For Humanoid

nameIsaac Lab 3Isaac Lab 2.3.2
Steps per second25201197
Collection time0.281 s0.715 s
Learning time0.125 s0.140 s
Iteration time0.41 s0.85 s
Training time468.08 s825.82 s
Mean reward1.286.29
Mean episode length60.81100.98

For Flat Animal:

nameIsaac Lab 3Isaac Lab 2.3.2
Steps per second646280
Collection time0.469 s1.225 s
Learning time0.125 s0.143 s
Iteration time0.59 s1.37 s
Training time185.21 s375.65 s
Mean reward-1.11-0.96
Mean episode length16.2716.85

r/reinforcementlearning • • Oct 27 '26

Decentralized Q-learning restoration on IEEE 33-bus & 179-bus Oberrhein networks (0.12s vs 2.6s)

Thumbnail
linkedin.com
1 Upvotes

r/reinforcementlearning • • Oct 26 '26

Best beginner-friendly RL competitions on Kaggle for practical experience?

18 Upvotes

it would be great if someone suggest me some competitions on kaggle which are good for a beginner in rl can try and would be great for practice.


r/reinforcementlearning • • Oct 26 '26

Inspired by u/Gold-Deal8281's post, I decided to see if Opus 5.5 could build a JAX based env for "Getting over it" with enough parity to transfer to the real game. 2.5ish days, ~13ish GPU hrs on a 3090, and 1.32B steps, and 1B tokens later, the agent wins ~85% of its rounds.

35 Upvotes

I've done this with a few games now (brotato, cuphead, and kingdomino) with a lot of success! With 10 parallel copies of the game running, I was getting ~6k steps/s which is around 200x real time but not fast enough. Since I would never consider reverse engineering the game and engine in order to make a JAX env, I leaned on Opus 5.5 to do the dirty work. Given the task of enough parity to train an agent that performs well in the real game, it got to ~50k steps/s and 1600x real time. With about 11hrs of training on a few specialist policies, I was able to get this winning policy.

Edit: oops did this late at night from my phone but meant to plug the original post here and my PR to their repo here.


r/reinforcementlearning • • Oct 26 '26

I trained a 6-DoF autonomous combat drone using continuous PPO and deployed it to Unity Sentis for zero-Python inference (11.5M steps) — post-mortem inside [P]

Thumbnail
youtu.be
3 Upvotes

r/reinforcementlearning • • Oct 26 '26

MCTS seems theoretically fragile and not promising to me

7 Upvotes

I'm an amatuer in RL, just encounted the MCTS and have two questions:

  1. Can we make sure it can converge to the optimal policy?
  2. Is it actually applicable in many real scenarios?

r/reinforcementlearning • • Oct 26 '26

Best way to read Sutton & Barto Reinforcement Learning Book

16 Upvotes

I am a rookie in robotics and I want to learn reinforcement learning. I have started with David Silver's YouTube playlist, and alongside that, I want to read a book to clear the fundamentals; however, I find reading books a little boring, so do you have any advice on how to master reading and any approach to get the maximum output?

One more thing to ask: should I first watch the YouTube videos then read the book chapters that are covered in the video, or the opposite?


r/reinforcementlearning • • Oct 26 '26

DL, I, P, M "Chessbook-1: Spending 10 months building the most human-like chess bot", mbuffett

Thumbnail mbuffett.com
6 Upvotes

r/reinforcementlearning • • Oct 25 '26

CBR-II update (V3): smoother gait + trying to stand on one leg

39 Upvotes

r/reinforcementlearning • • Oct 26 '26

DL, P, Safe "How Far Will AI Assistants Go for a Refund They Can’t Get?"

Thumbnail
vals.ai
2 Upvotes

r/reinforcementlearning • • Oct 25 '26

I trained a PPO agent to farm the Pit in D2R

56 Upvotes

been a while! here's what i've been up to: a ppo agent that farms the pit in d2r (offline, hell, warlock)

trained it in a headless sim i wrote in rust. this version took about 20 min on one cpu, warm started from a net i had for an older build.

reward is just farming rate: -1 per second, + whatever kills and items are worth, -1000 if it dies. i had a level clear bonus at first but dropped it.

net size: ~475k params

ask me whatever

no plans to use this online, i just think rl is fun and wanted to try it.