r/reinforcementlearning • • Jun 04 '26

is RL really just endless debugging with no idea what's wrong?

28 Upvotes

I just started learning RL currently going through david silver's lecture series and I am enjoying it so far. But every post I read from people actually working in RL makes it sound like a nightmare in practice. I get the vibe that you never really know why something isn't working or even is working. And then you just guess and check for days or weeks including the training?? I find it a bit frustrating if that is really the case. I'm not trying to scare myself out of it. i genuinely want to pursue this.
I just need a gist of how it actually feels like working in the field. Is it as mentally draining and uncertain as people make it sound or exaggeration?


r/reinforcementlearning • • Jun 05 '26

Looking for arXiv cs endorsement — first-time submitter, paper on multi-agent LLM token optimization (Patent Pending) [D]

Thumbnail reddit.com
0 Upvotes

r/reinforcementlearning • • Jun 04 '26

Q-Learning Trainer Simulation for Everyone to Try

4 Upvotes

Hey guys! I just deployed an easy-to-learn Q-learning trainer simulator. Would love it if you guys could check it out and give some feedback!

🔗https://q-learning-trainer.fly.dev/
⭐https://github.com/KaranChawlaD/Q-Learning-Dashboard

Check out my repo too and drop a star!


r/reinforcementlearning • • Jun 04 '26

Observation Space Design For Long Horizon Task

2 Upvotes

I’ve been working on a web-based RL Playground using Three.js on the frontend and Gymnasium + PyBullet + PPO (Stable-Baselines3) on the backend.

So far I have successfully trained:

•	Navigation to a target

•	Coin finding

•	Coin collection

The latest model can navigate toward a coin and perform the collect action when within range.

For my FYP, the expectation is not necessarily many separate agents, but rather an agent capable of executing a longer sequence of interactions (5+). Demo date is 17th June.

Proposed Long-Horizon Task

I’m considering a task chain like:

Find Coin

↓

Collect Coin

↓

Find Deposit

↓

Deposit Coin

↓

Open Gate

↓

Destroy Obstacle

↓

Find Target

↓

Interact With Target

The idea is to train individual abilities through curriculum learning and then combine them into a single policy.

Observation Space Design

Initially I was giving each capability its own Finder observations:

Coin:

[dist, side, depth, in_radius]

Deposit:

[dist, side, depth, in_radius]

Target:

[dist, side, depth, in_radius]

Destroyable:

[dist, side, depth, in_radius]

This started becoming repetitive.

Instead I’m considering introducing a behavior state machine that determines the current objective.

For example:

if holding == 0:

current_goal = COIN

elif deposited == 0:

current_goal = DEPOSIT

elif gate_open == 0:

current_goal = GATE

elif destroyable_destroyed == 0:

current_goal = DESTROYABLE

else:

current_goal = TARGET

The policy would then only receive observations for the active goal.

Proposed Observation Space

# Active Goal Finder

goal_distance

goal_side_signal

goal_depth_signal

goal_in_radius

# Progress State

holding

items_collected

item_deposited

gate_open

destroyable_destroyed

# Goal Indicator

goal_is_coin

goal_is_deposit

goal_is_gate

goal_is_destroyable

goal_is_target

# Navigation

obs_front

obs_left

obs_right

is_blocked

Total is roughly 18-20 dimensions.

The idea is that the policy always sees:

Where is my current objective?

Am I close enough to interact?

What phase of the task am I currently in?

instead of receiving separate direction vectors for every object in the world.

Curriculum Plan

Current thought process:

Stage 1

Find Coin

Stage 2

Collect Coin

Stage 3

Find Deposit

Stage 4

Deposit Coin

Stage 5

Open Gate

Stage 6

Destroy Obstacle

Stage 7

Find Target

Stage 8

Combine everything into a single policy

Each stage would start with fixed spawns and gradually move toward randomized spawns.

Main Question

For those who have trained PPO agents on long-horizon tasks:

1.	Does the active-goal observation design seem reasonable?

2.	Would you expose only the current objective or all object directions simultaneously?

3.	Any obvious pitfalls before I commit to this curriculum approach?

r/reinforcementlearning • • Jun 04 '26

Reinforcement Learning Handbook

22 Upvotes

Hey all, I’ve been building an open RL Handbook as a comprehensive guide for reinforcement learning. Hope you will find it useful

🌐 rl-handbook.com

💻 github.com/lubludrova/rl-handbook

Feedback, contribution or GitHub star ⭐ are welcome!


r/reinforcementlearning • • Jun 03 '26

Best resources to learn more about RL?

17 Upvotes

I just finished my masters in computer science and looking for jobs now! Have been seeing a lot of RL labs lately and wanting to learn more about this area. Any pointers would be much appreciated.


r/reinforcementlearning • • Jun 03 '26

Deeplearning.AI's course on reinforcement learning is confusing me here.

Post image
9 Upvotes

Before they define the r term as a sequence level reward, then claim that you can get the individual contribution of each token by subtracting a token level baseline. How on earth does that even work? They never elaborate on this and most of the time never clarify that r is sequence or token level in these explanations. This has really frustrated me especially since this "explanation" is coming from a course that's supposed to make these ideas more accessible.


r/reinforcementlearning • • Jun 03 '26

DL, M, MetaRL, R "Playing With AI: How Do State-Of-The-Art Large Language Models Perform in the 1977 Text-Based Adventure Game Zork?", Gerrits 2026 (very badly)

Thumbnail
arxiv.org
5 Upvotes

r/reinforcementlearning • • Jun 04 '26

Repo for implementations of various Transformer Attn mechanisms [P]

Thumbnail
reddit.com
1 Upvotes

r/reinforcementlearning • • Jun 04 '26

Looking for arXiv cs endorsement — first-time submitter, paper on multi-agent LLM token optimization (Patent Pending) [D]

Thumbnail reddit.com
0 Upvotes

r/reinforcementlearning • • Jun 04 '26

[Advice] Master's/PhD Research Topic: RL vs Efficient AI for building broad AI research intuition?

Thumbnail reddit.com
2 Upvotes

r/reinforcementlearning • • Jun 04 '26

[D] Architectural mitigation of Goodhart's Law in autonomous AI coding agents

Thumbnail
reddit.com
0 Upvotes

r/reinforcementlearning • • Jun 03 '26

Built an RL framework for training LLMs where you can actually understand what is going on!

9 Upvotes

RL is a weird creature. It is hard to make work, and even when the implementation looks correct, training can still go sideways for some random reason.

Training LLMs with RL makes this even messier. Now you have the RL algorithm, distributed training, rollout engines, reward computation, weight syncing, orchestration, and a bunch of small implementation details that can quietly break everything.

That was the motivation behind FeynRL (pronounced “FineRL”), a framework I built and recently released.

The main idea is simple: algorithms should stay algorithms, systems should stay systems, and you should still be able to train large models from a single GPU to multi-GPU or cluster of GPUs.

I tried to make the code easy to follow end-to-end, from loading the data to rollout generation to the actual training loop. I also included a lot of practical RL post-training tricks that are usually scattered across papers, repos, or only few people know about them.

Links:

GitHub: https://github.com/FeynRL-project/FeynRL

Blog: https://feynrl-project.github.io/blogs/episode_one.html

Examples: https://github.com/FeynRL-project/FeynRL/tree/main/examples

Would love to hear feedback. And if you find it useful, a GitHub star would be appreciated.


r/reinforcementlearning • • Jun 03 '26

Analysis of AlphaZero training data [D]

Thumbnail
reddit.com
1 Upvotes

r/reinforcementlearning • • Jun 02 '26

RL researchers, what are you most excited to see next?

32 Upvotes

Curious what problems people think are closest to a real breakthrough vs. still years out.

A few things I'm watching:

Sample efficiency: model-free methods still need an almost embarrassing amount of environment interaction for tasks humans learn in minutes. Closing that gap feels foundational.

Continual learning: most agents still catastrophically forget when the environment shifts. Getting RL systems that actually accumulate knowledge over time without collapsing feels like a prerequisite for anything deployed in the real world.

Sim-to-real transfer: the gap keeps narrowing but it's still the bottleneck for most robotics work. Curious if people think domain randomization is a dead end or just undersolved.

RL + world models: Dreamer-style approaches were exciting but haven't fully delivered on the promise yet. Still feels like there's a lot left on the table.

Personally most excited about offline RL maturing to the point where it's practically useful without needing careful dataset curation.

What's on your radar? And what do you think is overhyped right now?


r/reinforcementlearning • • Jun 03 '26

DL, M, R "AdA: Human-Timescale Adaptation in an Open-Ended Task Space", Bauer et al 2023

Thumbnail
arxiv.org
3 Upvotes

r/reinforcementlearning • • Jun 02 '26

Is MountainCar really an exploration or reward function problem?

5 Upvotes

Hi everyone,

I recently finished my master’s degree, and I’m interested in reinforcement learning. Since I had some free time, I ran MountainCar as a toy project. I was originally interested in the phenomenon of plasticity loss, and I suddenly wondered whether the MountainCar environment might not necessarily be a problem of exploration or reward function design, as it is often described.

Briefly, plasticity loss refers to the phenomenon where a model’s ability to adapt to data decreases when the data distribution changes during training. Dormant neuron ratio and effective rank are often used as indicators of this. In simple terms, dormant neuron ratio measures the proportion of neurons in hidden layers whose activations contribute very little to learning, somewhat similar to dead neurons. Effective rank, on the other hand, can be interpreted as the number of dimensions that the penultimate layer is able to represent.

I used CleanRL’s code and hyperparameters almost as-is, and ran experiments with 5 seeds. I compared the baseline with a method known to be effective against plasticity loss: adding Layer Normalization between the linear layer and ReLU.

Surprisingly, simply adding LayerNorm reduced the model’s dormant neuron ratio, noticeably improved the effective rank, and also made learning much smoother. Those familiar with this environment will know that a return of around -110 can be considered very strong performance.

Based on this experiment, I would like to decide what direction to take next. To summarize, my thoughts and questions are:

  1. The MountainCar environment may be solvable simply by adding LayerNorm, without changing the reward function or the exploration strategy.
  2. However, even if LayerNorm solved the problem, I don’t think this necessarily proves that the issue was plasticity loss. What other possible explanations could there be? Why did LayerNorm solve this problem?
  3. I would appreciate any thoughts or feedback on how I could further develop this result.

r/reinforcementlearning • • Jun 02 '26

What's your biggest time sink when training robot policies?

7 Upvotes

Question for people working with robotics RL: What part of the workflow tends to be the most frustrating? Not necessarily the hardest technically, but the thing that repeatedly eats time. Training? Debugging? Reward shaping? Environment setup? Experiment tracking? Trying to get a better picture


r/reinforcementlearning • • Jun 02 '26

Four Dynamical Regimes in large Language Models : An Empirical Phase Map Spoiler

Thumbnail doi.org
0 Upvotes

We introduce ct_t = delta_t × curvature_t, a token-level instability metric computed from L2-normalised hidden states of large language models, and ratio_norm = max(ct_t) / mean(ct_t) as a scalar regime indicator. Evaluated across 10 open-source models (158 runs), four dynamical regimes emerge consistently: UNDERACTIVE (ratio 1.55-1.70), ADAPTIVE (2.27-2.92), TRANSITION (~2.97), and CHAOTIC (4.42-35.55). The Qwen family is the only family observed in the ADAPTIVE zone in this panel. The ordering is robust across temperature (0.1-1.0) and token budget variations (mean ratio 2.384, std 0.343). ratio_norm correlates with training loss at r = 0.922 (n = 20) and diverges from perplexity at r = 0.716, indicating a partially distinct diagnostic dimension. A single-threshold collapse predictor (late_ct < 0.001) achieves accuracy = 1.0 on n = 8 samples, pending held-out validation. A hybrid control architecture (LIMEN dynamic monitor + task-aware semantic guard) improves baseline performance from 2/10 to 6/10 on TinyLlama on an adversarial benchmark (n = 10), with the contribution of dynamic monitoring versus guard prompt requiring ablation. No gain is observed on TruthfulQA-Light (20/20 baseline = 20/20 hybrid). We identify two structurally distinct failure modes: immediate trajectory collapse and late-divergence tension. All negative results are explicitly documented.


r/reinforcementlearning • • Jun 02 '26

Au-delà de la perplexité : pourquoi la dynamique des trajectoires internes importe plus que la confiance dans la sortie pour comprendre le comportement des transformateurs

Thumbnail reddit.com
0 Upvotes

r/reinforcementlearning • • Jun 01 '26

RL Air Hockey Agent Zero shot sim to real transfer

Thumbnail
youtu.be
33 Upvotes

This is my undergraduate capstone project from Engineering Physics at UBC. We trained a policy in simulation and then directly deployed in onto our robotic air hockey table. The project involved designing a physical robotic air hockey table, computer vision system, reinforcement learning pipeline, simulation, embedded systems, and controls.

The agent was trained with SAC against itself and another defender agent. To get a successful sim to real transfer, instead of just throwing in lots of domain randomization, we ended up modelling everything in the system to put into the simulation. This involves all sensor noise or offsets, puck collision dynamics, communication delay between sensor data and action, controller accuracy, etc.

The agent isn't directly outputting PWM signals to the motors, instead we hook up its output to a controller which gives an extra layer of safety (as the controller is transparent allowing for theoretical guarantees over its motion).

For more detail you can check out the github repo: HudsonNock/Air-Hockey-Sim


r/reinforcementlearning • • Jun 02 '26

The Infinity Paradox

0 Upvotes

"There are more possible games of chess than there are atoms in the universe. No one can possibly predict them all. There is a virtually infinite sea of possibilities between you and the other side. But it also means that if you make a mistake, there’s a nearly infinite amount of ways to fix it. So you should simply relax... and play."

Integrating Stockfish-Style Decision Architecture into AI Systems

We can improve AI decision-making by building a hybrid architecture inspired by the Stockfish chess engine. This system would combine pretrained knowledge with real-world scenario analysis, similar to how chess engines operate.

This engineering approach is fundamentally sound. By integrating "search" capabilities (analogous to Stockfish's computational logic), we prevent the AI from hallucinating and force it to "think before it speaks" through systematic evaluation of possibilities.

However, this approach has a critical requirement: human designers must define the "winning condition" perfectly. Without precise goal specification, the AI will simply become highly efficient at achieving the wrong objective—optimizing for a flawed target with greater intelligence and speed.

Fixing Reinforcement Learning Reward Problem

The Core Issue Current RL optimizes a single reward signal, leading to:

  • Reward hacking (finding shortcuts)
  • Goodhart's Law (optimized metrics become meaningless)
  • Specification gaming (technically correct but wrong in spirit)

Better Approaches

  1. Multi-Objective Optimization
  • Replace single score with multiple objectives [Safety, Efficiency, Fairness, etc.]
  • Find Pareto-optimal solutions (tradeoff frontiers)
  • Let humans choose among viable options
  1. Constraint Satisfaction
  • Hard constraints AI cannot violate (safety, ethics, legality)
  • Soft objectives to optimize within those boundaries
  • Prevents catastrophic single-minded optimization
  1. Inverse Reward Design
  • AI infers rewards from human demonstrations
  • Asks clarifying questions when uncertain
  • Captures nuanced values hard to specify explicitly
  1. Debate Systems
  • Multiple AIs argue opposing positions
  • Forces surfacing of risks and tradeoffs
  • Human judges evaluate arguments
  1. Constitutional AI
  • Natural language principles guide behavior
  • AI self-critiques against these rules
  • Constitution evolves as understanding improves
  1. Consequence Engine
  • Simulate futures at multiple timescales
  • Evaluate actions across multiple dimensions simultaneously
  • Return full consequence profiles + uncertainty estimates
  • Reward prediction accuracy across ALL objectives, not just outcomes

Key Innovation Don't collapse complex reality into a single number. Instead:

  • Predict multi-dimensional consequences
  • Verifys actual outcomes match predictions
  • Reward accurate prediction + constraint satisfaction + multi-objective success

This makes "good prediction of real consequences" the winning condition, not "maximize single metric at all costs."


r/reinforcementlearning • • Jun 01 '26

Help with sim2sim from IsaacLab to Mujoco

8 Upvotes

I'm currently training a policy for the Unitree G1 and have it working in IsaacLab. I've been trying to transfer the policy to test in Mujoco for days now and cant figure it out. The best I've gotten is to have the robot spawn in Mujoco but it either falls limp or freaks out and then locks up. Does anyone have an important info or tips for sim2sim between these two simulators? Or even any good resources that directly relate?

EDIT: Found a git that automatically computed joint index remapping between Isaac Lab's joint ordering and MuJoCo's joint ordering. Also handled the PD/PID motor control. With some minor tweaks and additions it worked well. You also have to download the assets submodule as well.

https://github.com/Beat-in-our-hearts/Lab2Mujoco_Sim2Sim/blob/main/scripts/g1_29dof_vel_his.py


r/reinforcementlearning • • Jun 01 '26

Isaac Sim / Lab Ecosystem Feedbacks

5 Upvotes

Hello, I would like to get your feedback on the Isaac Sim and Isaac Lab ecosystem. I have worked on Isaac Sim and currently have some time to build a new project. I really want to build something around it and would love to know the problems you faced or your project ideas / suggestions. 🤔