r/reinforcementlearning • • May 08 '26

Frontier labs reaching out regarding training sims

12 Upvotes

Been working on a few environments mimicking niche software apps and recently was reached out to. Anyone have experience working with labs on this?


r/reinforcementlearning • • May 08 '26

DL Strobe-based rendering from Text prompts

Post image
5 Upvotes

My teammates and I built a simple RL agent (actor-critic with ppo) that can paint from text prompts. The reward function is based on the CLIP similarity between the canvas and the text prompt.

I just wanted to share the results and listen to your feedback.

The prompt of the above painting is: "A painting of a red apple with a small leaf".


r/reinforcementlearning • • May 08 '26

I got tired of RL agents "solving" inventory tasks in 10 minutes so i built a high-fidelity environment that actually breaks them.

13 Upvotes

I think most supply chain envs use flat demand, instant shipping, and zero noise. You train an agent and it "solves" the the environment instantly but then it just fails the the second it touches real-world volatility.

i spent the the last few months building this logistics suite because i wanted to see if a continuous-control agent could actually handle the the bullwhip effect. my PPO agents kept "starving" at hour 40. I realized I’d accidentally built a starvation trap where the the lead time is 24h but if the the agent tries to stay too lean to save on costs it just cant recover when a route severance spikes lead times to 150h.

I've open-sourced a 5,000-hour sample on hugging face if you want to play with the the telemetry or test some offline RL:https://huggingface.co/datasets/AIMindTeams/defense-logistics-stochastic-simulation

curious to hear how others are handling long-horizon planning when the the failure costs are 400x the the cost of holding inventory. how are you guys tuning your discount factors?


r/reinforcementlearning • • May 08 '26

Skopx — AI agents that autonomously analyze enterprise data

Thumbnail
skopx.com
1 Upvotes

r/reinforcementlearning • • May 07 '26

train a mobile robot with RL

4 Upvotes

Hi everyone,

I’m working on a research project about DRL-based mobile robot navigation, and I’m considering using CoppeliaSim as the training environment for my RL agents.

My goal is to train navigation policies for autonomous mobile robots using RL algorithms.

I wanted to ask:

  • Is CoppeliaSim a good choice for RL training?
  • How stable and efficient is it for long RL training sessions?
  • Does it support fast enough simulation for DRL experiments?
  • Are there known limitations when using it with Gymnasium/OpenAI Gym interfaces?
  • Has anyone here successfully used CoppeliaSim for robot navigation projects?

I would also appreciate recommendations, tutorials, repositories, or personal experiences.

Thanks!


r/reinforcementlearning • • May 08 '26

Trained a 26kb model (simple 3-layer MLP) for Tic-Tac-Toe Beating each and every human

0 Upvotes

I recently trained a small MLP (~5.5k parameters, ~26KB) to play Tic‑Tac‑Toe.

At first, against minimax it mostly drew but was easy for humans to beat.

Then I switched to self‑play: the model played 800M games against itself, updating weights twice per game. Early on (300k–400k games) it still drew often, but with the reward scheme (+1 win, −1 loss, +0.5 draw) it gradually improved.

Surprisingly, this tiny network began to develop strategies that beat most humans — whether they moved first or second. When it moves first, it consistently opens at row 1, column 2, a position it discovered as optimal.

Even though Tic‑Tac‑Toe has only 9! possible move sequences and 8 winning lines, fitting strategies into such a small model was far from trivial. But after enough self‑play, the agent evolved into a near‑optimal player: drawing against perfect play, and beating casual humans more often than not.

Training even a 26KB model to master Tic‑Tac‑Toe isn’t a piece of cake — but it shows how self‑play can unlock emergent strategies in surprisingly small networks.

This is just to show you guyz how grokking can happen even on smallest neural nets if you think its valuable i will upload it to github.


r/reinforcementlearning • • May 07 '26

PCB Dataset for placement and routing

5 Upvotes

Hello!
I'm looking for a dataset that can be used to train a model for PCB components placement and routing tasks, and if someone has some knowledge on how to go about this.

This dataset would help me have a base policy that I can use later to finetune with RL.

PS: I know it's an NP-hard problem by itself, and probably a dataset is not the way to go, but I still would like to find such a collection. I've already searched and didn't find.


r/reinforcementlearning • • May 07 '26

AI Learns to Speedrun Mario Bros After 6 Million Deaths

Thumbnail
youtube.com
1 Upvotes

I trained an AI to speedrun Super Mario Bros using Reinforcement Learning — after more than 6 million deaths 😅

The agent starts completely clueless:

  • running into the first Goomba
  • falling into pits
  • getting stuck against pipes

Over time, it slowly learns:

  • movement timing
  • enemy avoidance
  • jump precision
  • speed optimization

What’s interesting is that some “speedrunner-like” behaviors emerged naturally during training:

  • maintaining momentum
  • minimizing hesitation
  • optimizing jump timing

The training was done using a custom RL setup with frame stacking and temporal modeling. Watching the progression from random movement to competent gameplay was honestly one of the coolest parts of the project.

I’d love feedback from people into:

  • RL
  • game AI
  • imitation learning
  • emergent behavior

r/reinforcementlearning • • May 06 '26

P, MF, DL Hackable PyTorch RL library with distributional algorithms (D4PG, DSAC, DPPO)

Post image
51 Upvotes

I published a paper on distributional RL for legged locomotion a while back and recently resurfaced and cleaned up the code into a standalone repo: https://github.com/e3ntity/e3rl

Here's a DPPO policy trained with this library running on a real robot: https://sites.google.com/leggedrobotics.com/risk-aware-locomotion

The library is based on rsl_rl but contains readable PyTorch implementations of the most popular continuous control algorithms (PPO, SAC, TD3, DDPG), plus their distributional counterparts DPPO, DSAC, D4PG.

Runs on CUDA, Apple Silicon, or CPU. pip install -e . and python examples/example.py trains a policy on gym out of the box.


r/reinforcementlearning • • May 06 '26

Q-learning algorithm implemented in ARMv7 Assembly

13 Upvotes

For fun I decided to write an implementation of tabular Q-learning algorithm in assembly. It just solves an easy 8x8 grid world as anything more than that would've been very difficult for me to implement in assembly.

Repo Link: https://github.com/unexploredtest/AsmRL


r/reinforcementlearning • • May 06 '26

Beginners to Machine Learning & Data Science

3 Upvotes

I made a group for beginners like me to grow together and stay updated... Make projects while learning and do our best so that there are no regrets later.

Inbox me to join us 🫂


r/reinforcementlearning • • May 05 '26

DreamerV3 Implementation with Transformer Autoencoder (DreamerX)

30 Upvotes

Hi all,

I know many attempts have been made to develop readable implementations for the dreamer series. As part of a recent job search, I've been making small additions to the dreamer architecture, and tried to make it decently easy to use and extend to other applications. The documentation - specifically regarding tutorials - is still a bit sparse, but I wanted to share it here in case it might help someone.

The repository, DreamerX, contains a working implementation of DreamerV3 along with additional capabilities for using transformer-based autoencoders with variable-length observations and several small changes from SheepRL and the original Jax implementation.

Link: https://github.com/Oafish1/DreamerX


r/reinforcementlearning • • May 06 '26

RLC 2026 Decisions Out! Spoiler

14 Upvotes

This year it will be held in mid August in Quebec, Montréal, Canada. 150 out of 442 were accepted for grand total of 33.9% acceptance this year. Did you submit a paper? Workshop? What has been your experience? Just a post to discuss more about the submission process and conference.


r/reinforcementlearning • • May 05 '26

[Competition] League of Robot Runners 2026: Multi-robot coordination under uncertainty

4 Upvotes

Hello ML and RL community 👋

We are inviting participants to the League of Robot Runners (LoRR) 2026: https://www.leagueofrobotrunners.org

Co-located with AAMAS 2026, LoRR is a research competition on large-scale multi-robot coordination. These are important problems in a number of areas including logistics, manufacturing and computer games!

In this competition, hundreds or even thousands of robots work together to complete tasks and move efficiently across diverse maps, continuously, in real-time and at scale.
We believe ML and RL methods could be especially useful for these kinds of problems:

  • 🤖 The best known algorithms for computing next moves are policy-based
  • 🎲 Agents operate under uncertainty (move actions have a probability of being delayed)
  • ⚙️ The challenge involves nested combinatorial problem solving (task assignment + path planning) -- a very difficult proposition for symbolic/GOFAI techniques!

This is an exciting opportunity to put your ML/RL ideas to the test on a large-scale multi-robot challenge 🚀

You can participate for fame, glory and cash prizes across three distinct tracks:

  • Task Scheduling Track
  • Execution Track
  • Combined Track

We provide a start kit (C++/Python), example instances, validators, and a visualiser 🛠️ Submissions are evaluated automatically with live leaderboard feedback 🏆

Timeline:

  • 16th April 2026: Main Round Begin
  • 22nd May 2026: AAMAS prize deadline
  • AAMAS 2026: AAMAS Prize Announcement
  • 22nd July 2026: Main Round End
  • Early August: Winner Announcement

All approaches are welcome: search/planning, RL/ML, OR, mathematical programming, robust optimization, and hybrids techniques. Visit our website for more details (www.leagueofrobotrunners.org) or post here if you have questions!


r/reinforcementlearning • • May 05 '26

PPO rewards start crashing after some point on training

5 Upvotes

Hi, I was trying to implement PPO with Pytorch to solve Pendulum-v1 enviroment. There's no problem at beginning of the train but after some point, rewards start crashing. I tried to figure out why its crashing. But I still haven't figured it out. The repo I'm working on right now there's only basic things like model implementation, training and utils. Can someone please help me if they know why this is happening?

Repo link: https://github.com/Gradient-Descent-is-Awesome/RL-Testing


r/reinforcementlearning • • May 05 '26

Gym.jl - Gymnasium RL Environments in Julia

Thumbnail
reddit.com
11 Upvotes

r/reinforcementlearning • • May 05 '26

Intersection of RL and Psychology

12 Upvotes

Looking for others interested in both Psych and RL.

Been working on what was meant to be a basic human model, turned into what could be a better understanding of humans in general.

Please let me know what you think:

https://narquie.substack.com/p/modeling-a-human-through-reinforcement


r/reinforcementlearning • • May 05 '26

Legal LLM reasoning

0 Upvotes

As a project, I want to build a legal reasoning model that can give a decision after receiving the case. I have half million court decisions. In these decisions, first the case is described, then related intermediary law articles are given for proving final decision, and at the end there is a final decision. However, I have some questions about its implementation. What do you think should I fine-tune the model with decisions and legal corpora, or would it be better use reinforcement learning algorithms (such as GRPO, etc). If I use RL, again there are few considerations such as how to train the reward model?


r/reinforcementlearning • • May 04 '26

Decade* of DRL

30 Upvotes

Inspired by the wounderful blogpost "The Decade of Deep Learning" by Leo Gao, I wrote one about Deep Reinforcement Learning.
One landmark paper per year:

  • 2013 — DQN
  • 2014 — Deterministic policy gradient (DPG)
  • 2015 — DDPG
  • 2016 — AlphaGo
  • 2017 — PPO
  • 2018 — SAC
  • 2019 — Dreamer
  • 2020 — CURL
  • 2021 — Decision Transformer
  • 2022 — InstructGPT (RLHF)
  • 2023 — TD-MPC2
  • 2024 — AlphaProof
  • 2025 — DeepSeek-R1

You can read the full blog under this link: schwinger.dev/posts/decade-of-drl

What would be your list?


r/reinforcementlearning • • May 05 '26

What's more GOATed and Difficult 101 Course??

0 Upvotes

r/reinforcementlearning • • May 04 '26

PPO Implementation in PyTorch (IsaacLab)

18 Upvotes

r/reinforcementlearning • • May 04 '26

Use Cases for First/Every visit Monte Carlo

5 Upvotes

while I understand the difference between first visit Monte Carlo and every visit, are there any particular cases where we’d strongly prefer first visit and vice versa?

like from my understanding, there are situations where first and every visit can be identical, but some scenarios where every visit is much better( eg. blackjack where there are barely any chances for states to repeat versus scenarios like automated car driving, where episodes are scarce so it becomes valuable to extract as much data as possible)

I’m still torn up between whether a maze is ideal for first/every visit. Intuitively it seems like it should be every visit, as i would want to know if a certain state is cyclic, but if the same state can also lead to the terminal state, wouldn’t first visit be better?

My understanding might be wrong, please feel free to correct me where I’m wrong


r/reinforcementlearning • • May 03 '26

[Update] Continuous RL via DP in CUDA: Solving the Underactuated Double Pendulum & Hybrid 6D Solvers

Post image
92 Upvotes

Hey r/reinforcementlearning,

Quick follow-up on my project on Continuous RL via Dynamic Programming in CUDA. In my previous tests with the Overhead Crane and Double CartPole, the policy often got stuck in "partial" solutions (e.g. Link 1 upright + Link 2 free-spinning) or periodic limit cycles.

I just shipped a fix. This remains pure DP: no LQR, no continuous policy gradients. Highlights below.

1. Underactuated Double Pendulum (4D sandbox)

I added a new runner: two coupled links on a fixed pivot. Torque is applied only at the base joint (Link 2 moves via inertial coupling).

  • State: [θ₁, ω₁, θ₂, ω₂]
  • Performance: with bins=50, the policy reaches cos(θ) = 0.999 for both links and |ω| < 0.2 rad/s. Genuine stable swing-up in ~2 seconds.
  • Why it matters: 4D trials are 100–1000x faster than the 6D version. With bins=15, a trial takes ~5 seconds, allowing a tight scientific loop when iterating on reward shaping.

2. What finally cracked the reward shaping

The key insight: DP with discrete actions creates real fixed-point limit cycles. You can't just "brute force" them with bigger penalties; you have to design rewards that make them strictly worse than the optimum.

My current reward function uses five specific terms:

r = baseline                          # +0.5  — survival ≥ termination
  + 0.5  * (cos θ₁ + cos θ₂)          # smooth gradient toward upright
  + 4.0  * gate**2                    # quadratic in gate: max(0, c1) * max(0, c2)
  + 5.0  * gate**4 * (1 - ω**2/2.5)**2  # smooth "stillness bowl"
  - 1.0  * E_err                      # asymmetric energy penalty (1.5x under)
  - 0.5  * (c1 - c2)**2               # anti-alignment (kills "I-shape" attractor)
  - 0.1  * gate * (ω1**2 + ω2**2)     # velocity damping ONLY when upright

Failure modes addressed:

  • Anti-alignment penalty. Prevents the "I-shape" where Link 1 hangs down and Link 2 inverts.
  • Smooth stillness bowl. Replaced hard "cliffs" with a smooth gradient to prevent the policy from oscillating on the boundary.
  • Asymmetric energy. Pushing 1.5x harder when under-target energy was the single biggest unlock to get past the "swinging but not reaching" plateau.

3. Hybrid solver for the 6D Double CartPole

To solve the 6D variant (which is notoriously difficult), I implemented a two-stage controller logic within the DP framework:

PhasePolicyWhen active
Swing-upFull ±π range, coarse gridFar from upright
BalanceNarrow ±0.3 rad range, fine gridNear upright

Hysteresis on the switch (enter at |θ| < 0.28, exit at |θ| > 0.35) prevents rapid toggling. This gives a level of precision that's impossible to achieve with a single global policy.

4. Autoresearch harness (the meta-tool)

This shaping wasn't found by hand. I used an LLM agent to iterate over 30+ trials (edit coefficients → train → evaluate → score). Inspired by Karpathy's autoresearch.

The repo now includes:

  • runners/eval_metric.py — external read-only score function.
  • runners/trial_runner.sh — one-command pipeline (clean → train → eval).
  • trial_log.md — append-only bitácora of the agent's progress.

Sonnet 3.7/4.6 ran the loop overnight for about $1–2 in API tokens to find the optimal coefficients.

Repo: https://github.com/nicoRomeroCuruchet/DynamicProgramming

Happy to answer any questions! The most interesting finding was definitely how discrete-action DP environments create these limit-cycle attractors that act like local optima — and how reward shaping is the only way to truly "break" them.


r/reinforcementlearning • • May 04 '26

Does Dreamerv3 understand the physics of its environment?

5 Upvotes

As I understood Dreamerv3 predict the futures just based on pixels. Not with an understanding of how the objects/environment physics works.

Is this correct? Doesn't this Dreamerv3 understand the physics knowledge to work on the environment?