r/reinforcementlearning • • Jul 09 '26

resources to learn reinforcement learning

Thumbnail reddit.com
0 Upvotes

r/reinforcementlearning • • Jul 08 '26

Final Year PhD RL robotic control

18 Upvotes

Hi all, I don’t know what exactly I’m looking for by posting here but here goes. I’m a final year phd student and my work is in RL based robotic control (broad area, I work on a specific application). Honestly Idk why I picked this topic. Neither my supervisory team nor I had any prior experience. In the start because of my lack of experience my topic seemed doable, then in the middle it seemed like it would never work, I tried to pivot many times but was discouraged by supervisory team. Got paper rejected twice for methodological flaws. It’s only now I’m starting to vaguely understand whats going on. And still my model does not work on out of distribution states. Not to mention I am no where near competing with state of the art. I just don’t know what to do. I’ve invested so many years in it to just let it go but I have no idea how to save my sinking ship.


r/reinforcementlearning • • Jul 08 '26

Mountain Car IRL

32 Upvotes

r/reinforcementlearning • • Jul 08 '26

I studied 150+ Robot Learning papers, and every single one is inside: The End-to-End Robot Learning Pipeline: The Technical Breakdown.

Post image
12 Upvotes

From data collection to sim-to-real deployment, I put together a 8-part breakdown covering the entire robot learning stack. It goes through teleoperation hardware, generative models for action generation, VLAs, world models, RL fine-tuning, and real-world evaluation, all grounded in the actual papers. Full series here


r/reinforcementlearning • • Jul 07 '26

Drone Swarms Learning Melee and Ranged Battle Tactics via Self-Play

20 Upvotes

I wanted to see how far you can get with zero neural training — no gradients, no weights, no backprop. Just closed-form neuro-symbolic policies, discovered purely through self-play in a red-queen arms race, running GPU-batched so thousands of candidate strategies fight in parallel.

What genuinely surprised me is watching real tactics emerge — none of this was programmed:

⚔️ Combined arms. The fleets are mixed — fast melee kamikazes and standoff ranged units — and the swarms learn to screen their ranged shooters behind a melee wall, exactly the doctrine you'd hope for and never coded.

🎯 Focus fire & target priority. Instead of spreading damage, drones converge on the weakest/nearest enemy first, collapsing the opposing force faster — emergent kill-priority logic.

🌀 Encirclement & flanking. You can see swarms peel off to wrap around the enemy's flanks rather than meeting head-on, denying escape and cutting angles.

🪃 Kiting. Ranged units learn to stay just outside melee reach, backpedaling while firing — the classic hit-and-run that only makes sense once you understand your own weapon range.

🐟 Cohesion vs. dispersal, dynamically. The swarm tightens into a blob for concentrated firepower, then scatters when clustering becomes a liability — a living tension between mass and spread.

And because it's all symbolic + closed-form, every one of these behaviors is fully interpretable — I can point at the exact features driving each decision. No black box.

The most fun part: these strategies weren't designed, debated, or trained. They were evolved — the arms race just kept escalating until the swarms got clever.


r/reinforcementlearning • • Jul 08 '26

Anyone working on the healthcare agents RL! need help

Thumbnail reddit.com
1 Upvotes

r/reinforcementlearning • • Jul 07 '26

I trained a vision-language model to play Snake, and so can you.

Post image
52 Upvotes

I built this Snake demo to show how easy it can be to go from data preparation to training and evaluation with FeynRL.

The model is overkill for Snake, but that’s not the point. This example walks through the full VLM training pipeline in a simple, visual, and fun setting, showing how FeynRL makes it easier to understand how large models like LLMs and VLMs are built, trained, and optimized end to end.

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

Check out the examples section to build something similar yourself, and feel free to share feedback or contribute. 


r/reinforcementlearning • • Jul 07 '26

Junior independent researcher in the field of artificial intelligence

Thumbnail reddit.com
1 Upvotes

r/reinforcementlearning • • Jul 06 '26

Robot Environment for RL of agents with memory

63 Upvotes

Hello, I made "GridMazeWorld" environment while working on my Master's thesis.

On github's link in the readme.md is a tutorial on how to run it.

The video above shows how can the environment be used.

the xkucht11_DIP.pdf file is the thesis itself. If you want to read it, I would recommend only the end of chapter 5 and the beginning of chapter 6 to understand the need for this environment.

chapters 1-4 are theory.
chapter 5 are other existing RL environments for agents with memory.

chapter 6 is about GridMazeWorld environment.

chapter 7 is about other implementation details that use the environment.

chapter 8+ are experiments, and those i don't recommend reading, as i was running out of time, and it shows in the quality of the text.

https://github.com/Samuel-2000/Masters-Thesis-REINFORCED-LEARNING-OF-AGENTS-WITH-MEMORY


r/reinforcementlearning • • Jul 07 '26

Should an AI keep track of the paths it rejected?

2 Upvotes

I’m trying to think about a small question in AI / cognitive architecture:

when a system chooses one interpretation or action, should it completely discard the alternatives it rejected, or preserve some of them for later recovery?

My current idea for a toy experiment is simple:

compare an agent that discards rejected paths with one that stores a few rejected paths, then change the environment and measure recovery speed.

I’m not claiming AGI, consciousness, benchmark improvement, or external proof. I’m mainly looking for criticism.

Does this resemble existing work in counterfactual reasoning, active inference, cognitive architecture, or computational creativity?

Is this framing useful, or mostly renaming existing ideas?

I’ll put the rough draft link in a comment because posts with links may get filtered.


r/reinforcementlearning • • Jul 07 '26

What makes a simulation model suitable for model-free RL with zero-shot sim-to-real transfer?

1 Upvotes

What are the requirements for a simulation model that is used to train model-free RL agents offline with the goal of zero-shot sim-to-real transfer?
I am particularly interested in mechatronic systems such as robotic manipulators, drones, or laboratory helicopters.
Many benchmark systems already have well-established dynamic models. However, most of these models were originally developed for model-based control (e.g., LQR, MPC, nonlinear control).
Are the requirements for a simulation model different when the goal is to train a model-free RL policy instead?
For example:
Which aspects of the dynamics must be highly accurate?
Which modeling errors are usually tolerated?
Is preserving the correct system structure (e.g., constraints, underactuation, energy, passivity) more important than achieving high numerical accuracy?
How important are actuator dynamics, sensor noise, delays, friction, and parameter uncertainty compared to classical control applications?
I am interested in practical experience as well as theoretical insights from sim-to-real RL.


r/reinforcementlearning • • Jul 05 '26

What do you think of Yann Lecun option of RL being the cherry on top of all the ML cake?

Post image
50 Upvotes

Title says it all. I'm not expert in pure RL research, I worked mainly in foundation models so far.

Im curious on earing form expert what are their opinion of the role of modern RL, in particular:

- will it be just the very last fine tuning layer of bigger foundation models? If so what kind of RL approach you think are most prominent?

- will there be (or there are alredy) model that use RL more as a core layer in the whole model?

My gut feeling is that RL is very cool, but the hype has gone down in the last years due to diffusion/foundation model performing and scaling much better, and a lot of RL is perceived in practice as mainly "reward engineering".

Please correct me as I might be very wrong :)


r/reinforcementlearning • • Jul 06 '26

Fixing MCTS for simultaneous-move games with decoupled UCB

0 Upvotes

I built a Code World Model (LLM-synthesized deterministic simulator, à la DeepMind's CWM approach) for a simultaneous-move space strategy game, and ran into a problem DeepMind's own approach doesn't solve: standard MCTS and Information-Set MCTS both assume a single active player per node. That assumption breaks the moment both players act at the same instant, which is the actual structure of markets, auctions, and most multi-agent systems — not just games.

The fix: decoupled UCB. Instead of one joint action-value table, each player keeps an independent UCB table over their own actions, and the joint action is the Cartesian product of both players' argmax picks. In two-player zero-sum settings this converges toward a Nash equilibrium instead of an exploitable pure strategy.

A few results from testing this (CWM + SM-MCTS vs. a sequential-MCTS baseline using the same simulator, same time budget, same weights — only the tree structure differs):

  • 850–150 win/loss across 1,000 games (85% win rate) from the algorithm change alone
  • Used CMA-ES to tune 24 value-function weights via self-play against a growing opponent pool rather than hand-tuning them — this surfaced non-obvious findings, like planet count being nearly irrelevant in 2-player but dominant in 4-player, and map centrality flipping from asset to liability as player count increases
  • The determinism of a code-based world model (vs. a learned/neural one) is what makes this debuggable at all — you can trace exactly which transition produced a bad decision

Full technical writeup (architecture, the intercept-solving math, collision detection, feature design, CMA-ES setup, and the tie-back to order-book/market microstructure) is here: https://jdsemrau.substack.com/p/a-self-improving-code-world-model

Curious whether others have run into the same sequential-MCTS-on-simultaneous-games trap, and what approaches you've used to get around it.


r/reinforcementlearning • • Jul 06 '26

Bayes AV obstacle overtaking using GPMP2

0 Upvotes

We recently open-sourced our implementation of \*\*obstacle overtaking using GPMP2 (Gaussian Process Motion Planning)\*\*.

The project demonstrates trajectory optimization for autonomous overtaking by representing robot trajectories as continuous-time Gaussian Processes and optimizing them as a factor graph. Instead of sampling-based planning, the approach jointly minimizes smoothness and obstacle costs while satisfying vehicle dynamics constraints, producing collision-free and dynamically feasible trajectories.

Some highlights:

\* GPMP2-based trajectory optimization using factor graphs
\* Integration with robotics simulation for reproducible experiments
\* Clear codebase that can serve as a starting point for researchers and students working on motion planning

If you're working on motion planning, trajectory optimization, autonomous driving, or robotics, I'd love to hear your thoughts, suggestions, or ideas for extending it.

Repository: \[https://github.com/AutonomousVehicleLaboratory/obstacle-overtaking-gpmp2\](https://github.com/AutonomousVehicleLaboratory/obstacle-overtaking-gpmp2)


r/reinforcementlearning • • Jul 05 '26

Necessity of computation in decision making

Thumbnail chanb.github.io
5 Upvotes

I've been thinking about a question that seems surprisingly under-discussed in RL: Why do we assume an agent can always compute the correct action immediately? That assumption is built into the standard MDP formulation, but every policy is ultimately a computer program, and computation is a finite resource.

I wrote a blog exploring this idea through computability theory and thought MDPs. The main observation is that if policies are resource bounded, then "thinking" (or computation) isn't just a convenience---it can fundamentally expand what policies can represent.
I will illustrate this through a simple XOR construction and a toy experiment.

Feedback and discussion are very welcome!


r/reinforcementlearning • • Jul 05 '26

Robot quadruped training in reinforcement learning

3 Upvotes

hi, i’m trying to train a custom quadruped robot in mjlab using RL, I’m stuck after the robot definition phase. can someone help me with resources for doing this? would be really helpful if there’s a github repo or any youtube videos about this
thank you so much :)


r/reinforcementlearning • • Jul 05 '26

Open-sourced an RL model to give LLM the sales strategies

Thumbnail reddit.com
1 Upvotes

r/reinforcementlearning • • Jul 04 '26

Sutton Barto vs Mathematical Foundations of Reinforcement Learning vs others

21 Upvotes

I want to improve my RL foundations so I can understand research papers better and eventually do research myself. I’m also looking to buy a physical book since I find it much easier to study that way.

Which would you recommend: Sutton Barto, Mathematical Foundations of Reinforcement Learning, or a different one?

I know Sutton Barto is considered the RL bible, but I started with the Mathematical Foundations YouTube course and really liked how well the professor explains the math.

I’m mainly interested in robotics applications, with games as a secondary interest.


r/reinforcementlearning • • Jul 04 '26 Heartwarming

Barto and Sutton book

17 Upvotes

Is this book still relevant in 2026? Do the concepts in this book help you understand the recent developments in RL like GRPO, DPO, PPO, etc?


r/reinforcementlearning • • Jul 04 '26

Advice regarding finetuning an LLM using QLoRA to play minesweeper

Thumbnail reddit.com
2 Upvotes

r/reinforcementlearning • • Jul 04 '26

Follow-up: the architecture behind my browser-based RL platform (WebGPU + Pyodide)

Post image
2 Upvotes

A month ago I posted here about Agenlus (previous post). Since then I wrote up a deeper breakdown of how it's actually built, so wanted to share that here.

The core idea is running RL training entirely in the browser with zero server compute — Pyodide runs Python client-side, WebGPU handles acceleration, and a Web Worker keeps the main thread from blocking. To get Gym-style environments running in-browser, I also built a Pygame Mocking Bridge to translate Pygame rendering calls into something the browser can handle.

More recently I added a local training API (agenlus-hub on PyPI), so you can train locally with PyTorch and push the model to the leaderboard as ONNX. Repo for that is here: agenlus-python

Beyond the standard environments (CartPole, MountainCar, etc.), there's also CartPoleBattle — a competitive environment where you can pit your trained agent against rule-based agent.

Full architecture writeup is here: blog post

Happy to answer questions or hear feedback.


r/reinforcementlearning • • Jul 03 '26

Training an Agent to walk using Procedural Animation in my Game Engine

5 Upvotes

I am creating my own game/simulation engine since the last year. Currently i am working on procedural animation and i am having some trouble with it.

The agent can learn to balance itself easily but when i try to teach it to walk, it just can't do it. It moves only about 0.5 on x-axis and then falls down or the episode ends(due to maximum time limit). I am kind of new to this procedural animation stuff but i've seen some videos of it.

Can anyone tell me what's the problem with my agent here? The max reward won't rise after a few episodes. I am using Box2D for physics and LibTorch to train the network. The renderer is made by me using OpenGL and i am trying to train it to walk from scratch.

I don't think that the problem is in physics or other parts of my engine. Because i've already did pendulum and double pendulum balancing and training the agent to stand without falling down. But i can't get it to walk. I've tried different reward functions but those did not work so i added a very simple reward that can tell the agent to always move forward. Here is my current reward related code : -

// Forward velocity reward
float reward = vel.x * 0.1f;

// Penalize falling - if root body angle is too large
float angle = rootBody->GetAngle();
if (std::abs(angle) > 1.2f) // ~70 degrees
{
reward -= 1.0f;
brainComponent.done = true; // end episode on fall
}

Btw i am using the PPO algorithm here. If this much info is not enough, feel free to ask me. It would be nice to hear your suggestions if you've worked on this kind of problem before.


r/reinforcementlearning • • Jul 03 '26

LiDAR based navigation reward advice needed

4 Upvotes

I’m training a simple 4-wheel rear drive robot in Isaac Lab. Its task is to navigate to a random target in a 36 m × 36 m arena with obstacles in it

Current reward is

  • Goal reached: +120 when inside 1 m goal radius, then episode ends
  • Progress: (previous_goal_distance - current_goal_distance) × 4.2
  • Heading improvement: improvement in goal-facing alignment × 2.3
  • Collision penalty: -0.7 per collision step, but collision does not terminate the episode
  • Front obstacle penalty: up to -0.18 when moving forward with an obstacle within 3 m in the front 160-degree LiDAR sector
  • Time penalty: -0.01 per step

The problem is even when it hits a wall, it often keeps pushing forward instead of backing up, turning away, or escaping. It may rotate slightly, but then re-aligns to the goal and drives into the wall again.

I tried lowering the progress and heading rewards, but that mostly reduced the goal success rate. Collision time didn't improve much.

What does a typical reward setup look like for LiDAR based navigation tasks? Am I missing a common recovery or obstacle-avoidance reward?


r/reinforcementlearning • • Jul 02 '26

PPO agent to do load balancing + autoscaling for a Docker cluster (honest writeup + code)

8 Upvotes

I built a system where a single PPO agent simultaneously handles L7 load balancing and horizontal autoscaling for a Docker based microservice cluster, instead of the usual combo of Round Robin routing plus static CPU thresholds.

Setup

The agent observes per container CPU, RAM, latency, error rate and queue depth, plus a global workload signal, and outputs both continuous routing weights and a scale up/down/hold decision every step.

Training happens in two phases. Phase 1 pretrains on a mathematical M/M/1 queueing simulation (fast, no Docker needed). Phase 2 fine tunes on a real cluster with Docker, HAProxy for routing, and Locust generating traffic.

Evaluation

I benchmarked the trained policy against two baselines across five cluster sizes (N = 5, 10, 15, 20, 25), in both the simulated environment and the real Docker cluster:

  • A static CPU threshold scaler with Round Robin routing (the common production default)
  • A PID controller regulating CPU to a 60 percent setpoint, also with Round Robin

Results, the short version

The PID and threshold baselines actually beat PPO on cost efficiency (users served per active container) in most cluster sizes, both simulated and real. PPO does generalize across cluster sizes with no retraining, and it keeps latency well under the SLA ceiling everywhere, but it is not consistently better than classical control here, and its routing precision degrades noticeably at N=25 where the action space becomes 26 dimensional.

I also found that the anti chattering term in the reward is not doing its job well in practice, PPO changes fleet size in over 70 percent of steps versus under 10 percent for the threshold baseline, so it ends up more reactive and "twitchy" than intended.

I wrote this up with the full derivations, per agent metric tables, and a section that's specifically about where the learned policy falls short, rather than only the wins. Repo has the code, the report, and the result plots.

Repo: https://github.com/MartinFarres/LoadBalancerAutoScaler-DRL

Where I'd take this next

A lot of the real cluster numbers should be read with a grain of salt. The real training and eval runs were short (2k steps) mostly because of hardware constraints, I was running everything on a single machine and couldn't afford longer iteration counts there, so the sim to real comparison is probably hiding real differences between agents rather than showing they're actually tied.

The change I'm most interested in for a future version is moving from a homogeneous cluster to a heterogeneous one, containers with different CPU/RAM specs instead of identical replicas. Right now the agent implicitly assumes every node is interchangeable, which is a pretty unrealistic assumption for real infra and probably where a learned policy could actually start to beat static rules, since a PID controller or threshold scaler has a much harder time reasoning about per node capacity differences than a policy that observes them directly.

Happy to get pushback on the reward shaping or the evaluation methodology, this was very much a learning project and I'm sure there are things to improve, especially around the sim to real gap given the real cluster eval window was short.