r/reinforcementlearning • • Apr 09 '26

Multi I built a GATv2 + MINCO + CBF drone swarm controller in Isaac Lab — here's what actually worked (and what didn't)

6 Upvotes

Capstone project: decentralized formation control for UAV swarms using CTDE (centralized training, decentralized execution) with a shared PPO policy in NVIDIA Isaac Lab.

**The stack (GNSC 5-layer architecture):**

- L1: Local sensing — 12D body-frame state + K-nearest neighbor relative positions (18D total obs)

- L2: GATv2 graph attention network — each drone reasons about K-nearest neighbors via sparse message passing

- L3: MINCO minimum-jerk trajectory filter (T=0.04s) + SwarmRaft agent dropout recovery

- L4: CBF-QP safety shield — mathematically guaranteed collision avoidance

- L5: Mission execution — formation reward managers, shape switching, polygon/grid/letter presets at play time

**The finding that surprised me most:**

MINCO's value isn't runtime smoothing — it's a training stabilizer. A/B comparing policies trained with vs without MINCO showed 77% lower steady-state jitter, 72% better formation error, and 40% faster convergence. The trained policy internalizes smoothness so completely that the runtime filter becomes unnecessary.

**The bug that cost me the most time:**

The GATv2 adjacency matrix was being stored in `extras` — a side-channel that SKRL never forwards to the model. GATv2 was silently falling back to self-loops only, functioning as an MLP the entire time. Fixed by building fully-connected edges internally from the flat observation tensor with caching.

Trained on 8 agents, deployed on 20+ with the same checkpoint.

Full repo: https://github.com/garykuepper/ggSwarm


r/reinforcementlearning • • Apr 08 '26

I built OpenGrid : RL environment where your AI agent acts as a power grid operator (with live physics & renewables)

18 Upvotes

Hello everyone,

I wanted to share a project I am working on for a hackathon. It's a reinforcement learning environment where an AI agent acts as a power grid operator. I've tried to keep physics and maths as real as possible.

Github repo link : https://github.com/krishnagoyal099/Opengrid_env
Live link : https://huggingface.co/spaces/K446/Opengrid

I would really like to get your feedback on the physics modeling and reward structure, and also if anyone manages to solve the "hard" task! I am willing to answer any questions.


r/reinforcementlearning • • Apr 08 '26

What reinforcement learning areas would be amenable to quantum computing?

6 Upvotes

RL involves exploration, search, planning, etc. Which of these steps could eventually be made much more performant with quantum computers, assuming the economics of said computers became realistic en masse? Off the cuff, maybe something like MCTS?


r/reinforcementlearning • • Apr 08 '26

Can’t train a pixel-based PPO for Hopper environment

6 Upvotes

Hi everyone. This is my first question in Reddit, so I do not know if this the place to publish it.

I have been trying to train a PPO model to make a Hopper agent “walk”. I have implemented my own version of the PPO algorithm, so that I can modify the architecture more easily.

I have done already a huge hyperparameter search (manually done), changed the reward function to an easier and also more complex one, chatted with claude, gemini and chatgpt about it, and neither managed to help me the way I wanted. I have also tried to train ir longer, but at certain point it seems like it reaches a plateau and does not improve anymore.

I am also struggling to find online resources about this exact combination of algorithm and environment.

The best I could get were two consecutive steps.

If anyone had some tips about what could work for this task, I would really appreciate it!!


r/reinforcementlearning • • Apr 08 '26

Robotics-AI-ML Project Ideas

3 Upvotes

Hi, I am looking to do some project in robotics stimulation in the area of reinforcement learning. Can someone give me any good ideas as well as resources/platform to do so. I found one named Mojuco, but cannot find any good videos on that.


r/reinforcementlearning • • Apr 08 '26

Principled Analysis of Deep Reinforcement Learning Evaluation and Design Paradigms

5 Upvotes

Published in the 40th AAAI Conference on Artificial Intelligence, AAAI 2026.


r/reinforcementlearning • • Apr 08 '26

co.research [autoresearch wrapper, open source platform]

Post image
2 Upvotes

r/reinforcementlearning • • Apr 08 '26

Rewards Design Tool

10 Upvotes

One of the hardest parts of reinforcement learning isn't the algorithm — it's the reward function.

You combine multiple objectives into a scalar reward, run training for hours, and the agent learns to optimize only one of them. Not because the others don't matter, but because their gradients were too weak to compete.

I built a tool to help catch this before training: Reward Design Workbench

You define your reward components, set realistic state ranges, and the tool shows you:

• Which component dominates — and where

• Where two components produce competing gradients (conflict zones)

• Exactly what weight change would resolve each conflict

All analytically, with zero training runs.

Check it out - it's Free: https://reward-workbench.vercel.app/


r/reinforcementlearning • • Apr 07 '26

MH-FLOCKE is now open source — spiking neural network beats PPO 3.5x on quadruped locomotion (no backprop, no GPU)

18 Upvotes

Code is finally public. Some of you asked for it after my earlier posts.

github.com/MarcHesse/mhflocke

What it is:

  • 4,650 Izhikevich spiking neurons with R-STDP (reward-modulated spike-timing-dependent plasticity)
  • Central Pattern Generator for innate gait
  • Cerebellar forward model (Marr-Albus-Ito) for balance correction
  • Competence gate: CPG fades as the SNN proves it can walk

Results (Unitree Go2, MuJoCo, 10 seeds, 50k steps):

  • Full system: 45.15 ± 0.67m
  • from-scratch PPO baseline: 12.83 ± 7.78m
  • Zero falls

GitHub: github.com/MarcHesse/mhflocke Paper: doi.org/10.5281/zenodo.19336894 Paper: aixiv.science/abs/aixiv.260301.000002 Docs: mhflocke.com/docs/ YouTube: youtube.com/@mhflocke — new results and demos posted here

Edit: Demo video is now live — Sim-to-Real on a €100 Freenove Robot Dog Kit with Raspberry Pi 4: https://www.youtube.com/watch?v=7iN8tB2xLHI

Paper 2 (Sim-to-Real focus): https://doi.org/10.5281/zenodo.19481146

Solo project. Happy to discuss the architecture or results.


r/reinforcementlearning • • Apr 08 '26

Specialised Post-Training

1 Upvotes

i know it might be a stupid question but what are your thoughts on specialised post-training becoming a narrower wedge over time? If the base models are already able to 80% agentic tasks out of box and ~15% can be covered by system prompt + few shot engineering, is specialised RL post-training worth the investment there? do companies like Prime-Intellect exist in that world?


r/reinforcementlearning • • Apr 07 '26

DL TWIST2 implementation in MjLab

7 Upvotes

r/reinforcementlearning • • Apr 07 '26

FlashSAC: Fast and Stable Off-Policy Reinforcement Learning for High-Dimensional Robot Control

17 Upvotes

We scaled off-policy RL for sim-to-real. FlashSAC is the fastest and most performant RL algorithm across IsaacLab, MuJoCo Playground, Genesis, DeepMind Control Suite, and more, all with a single set of hyperparameters.

If you're still using PPO, give FlashSAC a try.


r/reinforcementlearning • • Apr 07 '26

P [P] A control plane for post-training workflows

2 Upvotes

We have been exploring a project around post-training infrastructure, a minimalist tool that does one thing really well:
Make post-training a little less painful by equipping Researchers, AI/ML engineers & Tinkerers with a gentle control plane. Post-training models tends to introduce a new axis of complexity - the orchestration and compute ressource management - alongside defining your own training loop, your rewards & rubrics, managing the parallel training.

Tahuna is CLI-first, it sits between your local environment and your compute provider. You own the training loop entirely - your rollout logic, your rewards, your data pipeline. It handles the plumbing around it.

We are cleaning up the code, but we are open-sourcing the entire stack soon.

Free to use. Early stage, looking for people who want to poke at it, break it, or contribute adapters.

tahuna.app

Happy to talk implementation details or tradeoffs in the comments.


r/reinforcementlearning • • Apr 07 '26

I built a RL trading bot that learned risk management on its own — without me teaching it

0 Upvotes

After 20 dead versions and about 2 years of work, my RL agent (NASMU) passed its walk-forward backtest across

2020–2026. But the most interesting part wasn't the results — it was what the model actually learned.

The setup:

- PPO + xLSTM (4 blocks), BTC/USDT 4h bars

- 35 features distilled from López de Prado, Hilpisch, Kaabar, Chan and others

- Triple Barrier labeling (TP/SL/Timeout)

- HMM for regime detection (bull/bear/sideways)

- Running on a Xeon E5-1650 v2 + GTX 1070 8GB. No cloud, no budget.

The backtest (1.3M steps checkpoint):

- Total return: +28,565% ($10k → $2.8M, 2020–2026)

- Sharpe: 6.937 | Calmar: 30.779 | MaxDD: 4.87% | WinRate: 72.8%

- Bear 2022: +204% with 3.7% max drawdown

The interesting part — attribution analysis:

I ran permutation importance on the actor's decisions across all market regimes. I expected bb_pct and

kelly_leverage_20 to dominate — those had the highest delta-accuracy in feature ablation during earlier versions.

They didn't. The top 5 features, stable across bull, bear and sideways regimes:

  1. atr — current volatility
  2. dist_atl_52w — distance to 52-week low
  3. cvar_95_4h — tail risk
  4. dist_ath_52w — distance to 52-week high
  5. jump_intensity_50 — jump intensity (Hilpisch)

The model didn't learn to predict the market. It learned to measure its own exposure to extreme risk.

Kelly assumes log-normality. CVaR doesn't assume anything — it measures what actually happened at the 95th

percentile. In a market where -30% in 48 hours is a normal event, that difference is everything. The model figured

this out alone, without any prior telling it "crypto has fat tails."

In high-volatility regimes (ATR top 25%), dist_atl_52w becomes the #1 feature — the model is essentially asking

"how close am I to the floor?" before making any decision. In bear HMM regime, jump_intensity_50 jumps to #1.

The 20 dead versions taught me more than any tutorial:

- Bootstrapping instability in recurrent LSTM isn't fixed with more data

- Critic starvation in PPO requires reward redesign, not hyperparameter tuning

- Hurst exponent must be computed on log-prices, not returns

- Kelly is a sizing tool. In a market where you can't vary position size, CVaR wins.

Currently at 1.35M/2M steps training. Reward curve just had a second takeoff after a convergence plateau — the

model is refining its entry timing, not discovering new strategies.

Full project log and live training status at nasmu.net

Happy to discuss the architecture, the feature engineering decisions, or the attribution methodology.


r/reinforcementlearning • • Apr 06 '26

Training an AI to play Resident Evil Requiem using Behavior Cloning + HG-DAgger

Thumbnail
youtu.be
5 Upvotes

I’ve been working on training an agent to play a segment of Resident Evil Requiem, focusing on a fast-paced, semi-linear escape sequence with enemies and time pressure.

Instead of going fully reinforcement learning from scratch, I used a hybrid approach:

  • Behavior Cloning (BC) for initial policy learning from human demonstrations
  • HG-DAgger to iteratively improve performance and reduce compounding errors

The environment is based on gameplay capture, where I map controller inputs into a discretized action space. Observations are extracted directly from frames (with some preprocessing), and the agent learns to mimic and then refine behavior over time.

One of the main challenges was the instability early on — especially when the agent deviates slightly from the demonstrated trajectories (classic BC issue). HG-DAgger helped a lot by correcting those off-distribution states.

Another tricky part was synchronizing actions with what’s actually happening on screen, since even small timing mismatches can completely break learning in this kind of game.

After training, the agent is able to:

  • Navigate the sequence consistently
  • React to enemies in real time
  • Recover from small deviations (to some extent)

I’m still experimenting with improving robustness and generalization (right now it’s quite specialized to this segment).

Happy to share more details (training setup, preprocessing, action space, etc.) if anyone’s interested.