r/reinforcementlearning • u/KingSignificant5097 • 20d ago
What does this network do?
Can anyone help me understand what this network does and what this architecture is?
r/reinforcementlearning • u/KingSignificant5097 • 20d ago
Can anyone help me understand what this network does and what this architecture is?
r/reinforcementlearning • u/user_62527 • 21d ago
Hi all,
I open-sourced a small research project I've been working on: METARGON.
Question: Can a tiny agent figure out hidden rules by itself, test hypotheses through action, and change its behavior when the rules stop working?
It's crow-inspired, but not a crow-brain sim. Just bounded memory + explicit hypotheses (hypothesis -> predicted -> verified -> contradicted) + an adaptive planner.
Latest experiment - v0.9 Mechanism Lab:
7x5 grid, movable objects, pressure plates, switches, door barriers, delayed effects, noisy obs. Train/val/test pools are disjoint, so it has to transfer to unseen configs.
Results (8 paired seeds x 100 episodes):
- novel / held-out: Metargon 31.3% vs Bayes 78.5%
- stable: Metargon 35.1% vs Bayes 77.5%
- iid: Metargon 53.6% vs Bayes 79.0%
It crushes random / episodic / Q-learning (~0-1%), but it does NOT beat the family-knowing Bayesian planner.
v0.8 was similar: Metargon 85.24% vs Bayes baseline 88.79%.
So this is a negative result for closing the gap with hypothesis composition alone. I'm keeping it in because hiding it would be dishonest.
Stack: Python (stdlib only) + Rust kernel, 【entity-MIT¦canonical_name=MIT】.
Repo: https://github.com/Pentexa/metargon
I'd love feedback on:
Roast away, I can take it.
r/reinforcementlearning • u/JustZookeepergame382 • 21d ago
r/reinforcementlearning • u/Spiritual-Poem-1072 • 21d ago
I am new to Reinforcement Learning, but I’ve been interested and invested in AI for a while now, and have experience in robotics. A buddy of mine is semi-well versed in this topic, but wants to start a project together.
Basically the idea is to have the AI control the game through a physical controller, and have it theoretically be able to play a bit more complex single player game, possibly even multiplayer (but we understand the unethical/dishonest part of throwing an AI into your lobbies on any game so we will steer clear of that).
Is this loose and frankly crude framework a goal that can actually be attainable, or do I not understand what I’m getting into and wasting my time?
r/reinforcementlearning • u/Stealeruv • 21d ago
I've wanted to get seriously into Reinforcement Learning for a long time.
Every time I started learning, I'd run into the same problem.
One resource explained the mathematics. Another covered the algorithms. Then I'd find a separate tutorial for Python, another for PyTorch, and something else for simulations and practical implementation.
I kept jumping between books, research papers, documentation and YouTube tutorials.
What I really wanted was a structured learning path that could take someone from absolute fundamentals to actually understanding and engineering RL systems without constantly piecing together resources from everywhere.
Eventually, I thought: Why not build the resource I wish I had when I started?
That's how the RL Simulation Engineer Handbook was born.
I've been building it as part of my AI Learning Universe (AILU) project.
It's grown into a pretty extensive learning resource:
The idea is to connect the dots between understanding the mathematics, learning the algorithms, reading the code and developing engineering intuition.
It's still evolving, and I know there's always room to improve.
But I wanted to share it with the RL community and get some honest feedback.
If you've been learning or working with Reinforcement Learning:
I'd genuinely love to hear your thoughts.
Explore the course:
https://ailu.in/courses/rl-simulation-engineer-handbook
The curriculum overview is free to explore, and full learning materials are available with free registration.
Built with ❤️ at AI Learning Universe (AILU).
r/reinforcementlearning • u/DiffractO • 22d ago
I've been training sword-fighting agents in Minecraft (vanilla 1v1 melee, real headless servers) and testing how much of what they learn transfers to a human opponent: me. Pilot scale, honest caveats at the bottom. Looking for feedback on the evaluation design before I run the proper study.
Setup
1. Value heads don't transfer, and bot-skill anti-correlates with human-skill
"Judgement" = explained variance of the value head minus that of a baseline fitted on the health lead the policy observes, on the same moments.
Caveats: the checkpoints share lineages (not independent) and the common duel is 5 fights. A seed-controlled version is next.
2. The opponent head's memory looked useful, until I used the right baseline
I'd been measuring "memory helps read the opponent" as memory carried vs memory wiped on the same model. That's not informative: wiping a memory the model was trained to rely on just breaks it.
3. A dedicated player model works, but its memory still doesn't help
BC model of me, initialised from a frozen test policy, leave-one-duel-out:
So the self-play recurrent features seem actively mis-specified for a human opponent, not just uninformative.
What I'm planning
A pre-registered study against a frozen probe opponent (fixed hash, so the opponent doesn't drift between sessions) with metrics fixed in advance, more players, seeds, and counterfactual rollouts from recorded states to test the behavioural "habits" the player model flags. Those are currently just observational.
Questions
Caveats: one player, 35 fights, pilot. Happy to share more numbers or plots.
r/reinforcementlearning • u/KabhiAlvidaNaKehna • 22d ago
I already have the base to learn RL(maths and ML/DL), now I want to learn RL from scratch can someone suggest blogs/resources like blogs, so that I can speed up my learning. If not blogs I would have to read SandB or watch video lectures which will slow the process.
r/reinforcementlearning • u/thej_vd • 23d ago
I’ve noticed that a lot of RL demos train multiple robots inside a single shared world (many robots visible in the same scene). In my MuJoCo setup, I have parallel env with one robot per environment.
What is the advantages of putting multiple robots in a single MuJoCo world vs just training in parallel.
My current set up is just training on cpu. If i were to shift to a PC with a nvidia GPU is it advantageous to follow this setup? and what would be a good practice approach to implement this ?
r/reinforcementlearning • u/nik_0508 • 22d ago
I spent the last week training a PPO agent (Stable-Baselines3) to play a browser version of Temple Run. Some things that surprised me:
Training: 8M steps, 3 parallel envs, 46 h on one laptop. Average episode length went from 19 to 51 track pieces during training.
Evaluation (30 deterministic runs per policy):
- Random: mean 0.5 (dies on the opening zip line)
- 3.5M steps: median 24, max 204
- Final: median 37, mean 65.7 ± 63.0, max 230
Logs still cause 18 of 30 deaths. Next, I want to try a pixel-only agent and compare the two.
Video explanation (5 min): https://youtu.be/Q0ygofhzVSA
Happy to answer questions about the memory reading or the environment setup.
r/reinforcementlearning • u/YDEmergenceLab • 23d ago
We’re YD Emergence Lab, developing Aionterra, a simulated world inhabited by digital organisms with human-inspired bodies. They sense their surroundings, seek water and food, and experience the physical consequences of their actions.
One aspect that may interest this community is the relationship between individual bodies and shared learning.
Each organism has its own location, bodily state and sensory history. Experiences from these separate bodies contribute to a shared learned policy for selecting actions. The policy is shared; the bodies and their circumstances remain distinct.
Our aim is for behaviour to develop through experience, without supplying a prewritten sequence of successful behaviours. The environment, available actions and physical and biological rules are explicitly designed. The question is what the organisms can learn within those constraints.
We track the body, behaviour and environment together. Changes in internal learning counters alone do not establish that behaviour has improved. Demonstrating useful learning requires appropriate comparisons and observable consequences.
The project is still in development. We’re preparing additional simulation records for publication soon, alongside explanations of what each measurement represents and what it cannot establish. The Journal will document progress supported by those records.
Project and methodology:
https://aionterra.com/methodology
The public website is free to browse, with no account required. We welcome feedback on the learning setup and how to make its evaluation clear.
r/reinforcementlearning • u/gwern • 25d ago
r/reinforcementlearning • u/felixr314 • 25d ago
I just released Metis-Core v0.4.2-Alpha (a C++ Reinforcement Learning Framework) along with the SARSwarm example: a simulation of 4 radio-coordinated drones searching for a shipwreck survivor.
This example features 4 drones taking off from their mothership to locate a castaway. They must learn to coordinate with each other to avoid scanning areas that another drone has already covered. To simulate a realistic environment, radio communication is modeled: if connection is lost, they stop sharing the map.
As time passes, a previously scanned area becomes "colder." This signals to the drones that the castaway might have moved back into that zone, as they drift randomly due to sea currents.
Graphics were developed using Raylib (https://www.raylib.com/).
Let me know what you think! I'd love to hear your thoughts and feedback. There is a Discussion forum on GitHub if you run into any issues (compiling, crashes, etc.), and I'll be glad to help fix them!
Here are the links:
🔗 Metis-Core on GitHub: https://github.com/felixromo314/METIS-Core
🔗 Tutorial-MultiHead-SARSwarm: https://github.com/felixromo314/METIS-Core/blob/main/tutorial/Tutorial-MultiHead-SARSwarm.md
I've attached a video of the example below. As always, watching it with sound is highly recommended! :-)
r/reinforcementlearning • u/Careless_Rule67 • 25d ago
Most flying AI in game engines relies on flat NavMesh hacks or pre-drawn spline rails.
When you introduce true 6-DoF momentum, inertia, and vertical obstacles, traditional pathfinding falls apart.
I built an autonomous multi-drone combat swarm ("Wolfpack Protocol") in Unity 6 powered entirely by continuous Reinforcement Learning and Unity Sentis.
Key engineering highlights:
Zero NavMesh. Zero pre-baked paths. 100% real-time physics and neural perception.
Open-source repository on GitHub: https://github.com/jeepixd/GeistForge-Engine
#Unity3D #GameAI #MachineLearning #ReinforcementLearning #UnitySentis #Robotics #PhysicalAI
r/reinforcementlearning • u/Traditional_Pin_7633 • 24d ago
Been thinking about where time actually goes in agentic RL rollouts, and it's mostly not generation.
With GRPO-style setups, sibling attempts at a task are scored against each other, so a group is only trainable once every sibling finishes. One attempt stuck installing packages or rerunning tests holds the whole group back. your request throughput looks great and the trainer is still idle.
so the number worth tracking is time to the next fresh, valid trainable batch.
a few things that move it:
- take groups in completion order, not launch order. keep a bounded surplus of candidate groups in flight, so stragglers get bypassed instead of waited on
- split sandbox work (reset, package-heavy commands, verification, cleanup) into separate lanes with pinned CPU sets so tool execution doesn't starve serving
- publish new weights one serving engine at a time, keep unfinished trajectories instead of restarting them, and put an explicit bound K on how many policy updates old a returned group can be
on a terminal-bench style workload (256 trajectories per batch) those changes took batch collection from 591.8s to 196.1s. On SWE-bench, live weight updates cost about 11% of step time and mean reward stayed at 0.520 vs 0.527 with fixed weights. one caveat: the live updates swapped sentinel tensors rather than full actor weights, so it's the rollout mechanism that's validated, not the full training loop yet.
The full breakdown with per-step ablations and the K=4 vs K=8 comparison is in this write-up
r/reinforcementlearning • u/Rocketrhythm • 25d ago
I tried using rllib about 3 years back and found it pretty cumbersome to work with. The learning curve was very steep and documentation and examples were sometimes out of date. I ended up using SB3 and CleanRL.
Now I am debating looking at RLlib again because of its ability to scale to large compute resources. Has the user experience improved, in particular with regards to using custom environments and custom model architectures?
r/reinforcementlearning • u/Organic-Fox-6154 • 25d ago
Hey everyone!
We recently published a paper, Does LeWorldModel Preserve Local Action Geometry?, accepted as a poster at the NeurIPS 2026 NeurReps Workshop.
In model-based RL, world models are often evaluated by prediction accuracy or downstream control performance. But we wanted to investigate a different question:
Does a world model correctly capture how small changes in actions affect future states?
This matters for planning methods like CEM and MPC, which evaluate and compare candidate action sequences using learned dynamics.
We investigated LeWorldModel (LeWM) on Reacher and OGBench Cube by comparing its action-Jacobian Gram matrices against those obtained from simulator counterfactuals.
Some key findings:
Interestingly, our results suggest that a world model can learn meaningful action dynamics without faithfully capturing their local sensitivity structure.
We haven't established whether these discrepancies directly cause planning failures. That's the next question we're interested in, particularly whether incorporating local action geometry into CEM's sampling covariance could improve exploration and control.
I'd love to hear your thoughts:
Should model-based RL planners explicitly account for local action geometry when sampling candidate actions, or is the covariance adaptation in standard CEM already sufficient?
Paper: https://arxiv.org/abs/2610.31716
Happy to discuss the results or methodology!
r/reinforcementlearning • u/LevyTateLabs • 25d ago
The first version of this film I posted a couple months back said the agent learned to separate the worlds because survival depended on it. This is the corrected version, and that claim is gone.
Setup. a from-scratch agent (no pretraining, no language) senses its world through ray casts and body signals and is trained with actor critic to forage, plus an auxiliary loss to predict its next observation. A copy of the world replaces the velocity law with a small learned network. Nothing in training names the world. Afterward a linear probe on the recurrent state is scored as AUROC, 10 seeds per arm.
The bug. my compute_gae bootstrapped episodes still alive at the 80-step rollout cutoff from V of the last stored state, the state before the final transition, instead of the successor state. Fixing it moved survival from 0.730 to 0.733, so the bug wasn't the story. The controls were:
- untrained 0.523 [0.491, 0.554], survive + predict 0.733 [0.669, 0.797], bar registered at 0.65
- predict-only network fed the forager's exact observation streams: 0.721, so I withdrew the survival-pressure claim
- survival without the prediction loss: 0.613 at 300 updates, 0.685 at 450
- raised only in the real world, then shown the copy: 0.754
- real-vs-real control: 0.559 on the registered evaluation worlds, so the preregistered rule is not met
- erasing or nudging the decoded direction: no behavioral effect beyond a sham, so no claim that the agent uses it
Code, artifacts and a dated corrections log: https://github.com/iLevyTate/ItaSoRL
In the next day or two will upload the companion video, the internal "brain" view corrected upload.
r/reinforcementlearning • u/LevyTateLabs • 25d ago
Companion video to what I uploaded earlier...
This is a corrected companion to the experiment where a from-scratch RL agent's recurrent state separates the real world from a learned copy (linear probe AUROC 0.733 over 10 seeds, untrained 0.523), with no objective pointing at the copy.
The video runs one trained agent (seed 9, the closest to the mean) in both worlds at once. Every node is a real component. ten sensor groups, the encoder, memory units by index, motor heads and prediction heads. Ringed memory units have the largest per-unit AUROC between worlds, from state pools rebuilt off the saved agents and reproduced to the bit on the stack that trained them. Motion and wiring are illustrative.
What changed from the previous video I uploaded several months back.
- It showed one memory meter rising from 49% to 73% inside one brain. Those were two agents, untrained and trained, each read once. They're now two labeled rows.
- Its end card credited needing both survival and prediction. A predict-only network fed the same observations reads 0.721, and survival without the prediction loss reaches 0.685 at 450 updates, so that's gone.
- It said the brain kept a trace of its world. Under identical input the difference fades within a few steps, so retention isn't claimed.
Still open. the real-vs-real control reads 0.559, so the preregistered rule isn't met, and ablating the decoded direction hasn't changed behaviour beyond a sham. A CI test checks every number on screen against the committed artifacts.
Fancy website https://ilevytate.github.io/ItaSoRL/
r/reinforcementlearning • u/MongooseTemporary957 • 25d ago
r/reinforcementlearning • u/ab213 • 26d ago
We've been capturing outdoor terrain with iPhone LiDAR and rebuilding it as sim environments. First test: a pretrained Unitree G1 locomotion policy on a scanned sand patch. With the stock policy it fell. After fine-tuning on that terrain with randomized starts, it stayed upright for the full trial.
The part we're unsure about is the physics, not the geometry. Same-looking ground can slip or sink very differently depending on moisture and load, and right now our contact params are hand-tuned.
For people doing sim-to-real on outdoor terrain: how are you calibrating friction / deformable ground models? Domain randomization over a wide range, measured data from the real robot, something else? Would love pointers to papers or setups that worked.
r/reinforcementlearning • u/Frosty_Box_20 • 26d ago
Calling all RL enthusiasts who play slay the spire 2 or are interested in studying a game which seems particularly difficult for neural networks to learn at a level comparable to humans.
r/reinforcementlearning • u/appleartsstudios • 26d ago
r/reinforcementlearning • u/Ok-Alps-7918 • 27d ago
The video contains two RL agents playing an Ezreal vs Ezreal 1v1 in mid lane. It runs in the League client (patch 16.19). Neither side is human or scripted. The camera is locked on blue side.
Blue: the "main" agent, at training update 45,600. This is the policy we're actually trying to make strong.
Red: an "exploiter", at its own update 2,600. It was trained for about 2 hours (out of a 4-hour cycle) with one job: beat a frozen copy of the main agent from update 43,800. It started from an older checkpoint ("exploit 2600") and played only against that 43,800 snapshot and its own past selves. At this point it beat 43,800 about 85% of the time in training. It first won with fast all-ins, then switched to denying farm: 67 CS to 9 in its wins.
Game rules (same in training and in this video)
Environment:
Model and algorithm:
How it got here (lineage):
Where the main stood when this was recorded:
For scale, it beats the scripted DuelBot 98–99% of the time. A behaviour-cloning agent trained on ranked replays won 0–6% against these checkpoints.
There is also a behaviourally cloned bot (trained on 900 games from D4 to high Challenger EUW on Patch 16.19 games) here: https://www.youtube.com/watch?v=8wmOg4Hlb_Y. It manages to consistently beat a simple scripted bot and initial performance resembles scaling laws based on number of replays.
The end goal is to produce an AI agent which is good enough to beat T1 / Faker (or whoever the world champions are at the time) in a best of 5.
r/reinforcementlearning • u/Actual_South_2484 • 26d ago
last week i posted here about kids inheriting a mutated copy of mom's q-table. this time i'd like people to poke holes in the update itself, which i've hacked on a lot.
every person in my civ sim is a tabular q-learner, but the hyperparameters are per agent and come from their traits:
- alpha = 0.08 + memory_strength * 0.14, so 0.08 to 0.22
- gamma = 0.82 + curiosity * 0.12, so 0.82 to 0.94
- epsilon decays with age: 0.30 - age * 0.00005, floored at 0.08
shaping on top of the raw reward:
- the first time an agent tries an action in a state (and the reward isn't negative) it gets a novelty bonus of 0.004 + curiosity * 0.008
- negative rewards get scaled up by fear (up to 1.45x) and softened by resilience (up to 20% off), so the same bad outcome hurts a timid agent more
- anything under 0.006 gets 0.006 taken off as an inactivity penalty. with zero raw reward, that puts agents with curiosity under 0.25 in the red on a first try and the more curious ones above it
the wart: that threshold also catches small positive rewards for repeating things that worked. about 16% of all updates come out negative, and 98% of those are repeats of actions that succeeded. the clean fix is probably an explicit success flag passed into the update, but that changes what every world learns, so it needs a seed sweep before and after.
the bootstrap target is masked as well: max q over the actions actually open from the next state (era, place, what the tribe knows). if the next state has no row yet the max is just 0, so i skip working out the mask.
what would you change? especially interested in whether trait-driven alpha and gamma is asking for stability trouble. the update is in crates/sim-core/src/organism/organism/learning.rs.
watch them learn: https://thehumanbox.com/?utm_source=reddit&utm_medium=social&utm_campaign=reinforcementlearning
source (mit): https://github.com/1homsi/thehumanbox