r/reinforcementlearning • u/gwern • 16h ago
DL, MF, R "PocketRL: Training a 7B Language Model with Reinforcement Learning on One RTX 5090", Chung & Du 2026
r/reinforcementlearning • u/gwern • 16h ago
r/reinforcementlearning • u/gwern • 16h ago
r/reinforcementlearning • u/JSpppp • 18h ago
I trained a PPO agent by self-play for a two-player Splendor-style card game and turned training snapshots into difficulty levels for a free browser game. A few things I learned while measuring them, which might be useful to others shipping RL agents to players:
The network is a small token-based transformer encoder with policy and value heads, run on Cloudflare Workers in a TypeScript port, so the weights stay on the server.
You can play it here: https://playpentacle.com/ (more on the AI: https://playpentacle.com/en/ai/). Not affiliated with Splendor. Happy to answer questions about the training setup.
r/reinforcementlearning • u/infinitylogesh • 23h ago
r/reinforcementlearning • u/nlgranger • 1d ago
I'm looking into on-policy methods at the moment, and the environnements seem to be running with the latest weights of the actor/critic models, aka synchronous rollout.
That means the training must wait for the environnement to complete the rollout before the next training step can begin.
I did a quick test with PPO and Ant environnement and tried to de-phase the process, asynchronous rollout by one step = the rollout uses the weights from step-1 so it can run in parallel to the update. Immediately the return curve is a lot worse.
Is there a principled way to implement this ? Surely some people looked into this already and documented it but I must be looking in the wrong places.
r/reinforcementlearning • u/SignificantPost6046 • 1d ago
I built a Minecraft testbed for two autonomous agents, Adam and Eva. They search for food, build shelter, respond to hazards, and communicate through in-world chat. Their decisions use no LLM calls and they do not share memory or a filesystem.
During one 12.6-hour run they built 539 nest blocks and developed 24 shared words. The agents combine a fruit-fly connectome with an active-inference loop and a Rust voxel planner. We describe the setup, controlled experiments and failures in our preprint, including an initially failed LEGO EV3 transfer that we replicated after fixing a coordinate-frame bug.
The production runtime is proprietary. The manuscript, datasets and verification scripts are public. I would welcome technical feedback and ideas for new survival challenges.
Watch Adam and Eva live on Kick: https://kick.com/sergeylech
Zenodo: https://zenodo.org/records/24622856
Verification package: https://github.com/lech2000/from-topology-to-traversal
r/reinforcementlearning • u/Important-Extension6 • 1d ago
In 2021 Google released the H01 Dataset, which took a 1mm^3 piece of human brain then reconstructed it in a computer then released the dataset for public use, so using thar data of the human's brain, I took a subgraph (basically a small section of their neurons) to build a recurrent neural network to act as the brain of a simulated humanoid robot, and then tasked it to push a cube. if you want to learn more I have links below. I have been working on this for a couple months now, and I have dreamed about using human brains and applying it to robotics for almost 10 years so I am excited to showcase this.
Project Page: https://mro9.github.io/exohominid/
r/reinforcementlearning • u/thecity2 • 1d ago
This is a hobby project I've been working on for a while. It's a 2D environment but I've made the visuals 3D so it's not quite so boring to watch. It's one policy controlling each side. Each player has 6 move actions (ie hex tiles) and the ball handler can pass and shoot as well. For each team turns are autoregressive in the sense the first action is randomly selected and then each player after that has the context of the previous selection. I originally started with SB3 but ported everything to JAX a year ago or so. If you're interested, check out the git repo (https://github.com/EvanZ/basketworld) and substack (https://basketworld.substack.com/).
r/reinforcementlearning • u/SnooMacaroons6300 • 1d ago
I've been playing with Unreal Engine 5.8's Learning Agents plugin and made a video of the whole run, from attempt 0 to racing a hand-written baseline driver.
Setup:
- PPO, 32 cars sharing one policy, trained on CPU (MacBook Pro), about 50 minutes wall clock
- 18 observations: speed, position on the road, the road shape ahead, and the current wheel angle
- 2 actions: throttle/brake and steering
- Reward: +0.1 per metre forward, -5 for hitting a wall, -2 for stalling
Things that surprised me:
- The first policy steered bang-bang, flicking the wheel about 14 times a second. Rate-limiting the steering (half a second lock to lock) plus a small penalty on steering changes fixed it, and lap times didn't get worse.
- Replaying the final brain deterministically (mean action) crashed at the hairpin every time. Sampling from the policy lapped fine.
- My first run's attempt counts were inflated because I had agents resetting on every policy update. Worth checking if you use RunTraining.
Results: 9,392 episodes (9,304 crashes), best lap 33.6 s, and it beat the scripted driver in 10 of 10 races, though it crashed a lot early in some of them.
Happy to answer questions about the setup. I'd also like ideas on why the mean action fails at the hairpin when samples don't.
r/reinforcementlearning • u/gwern • 2d ago
r/reinforcementlearning • u/Ok-Alps-7918 • 2d ago
r/reinforcementlearning • u/SignificantPost6046 • 2d ago
r/reinforcementlearning • u/Seeker94 • 3d ago
We're a small team in Rawalpindi/Islamabad, Pakistan. We just released the code and data behind our paper "Deployment-Time Plasticity and Experience-Driven Memory in a Compact Recurrent Reinforcement Learner: An Empirical Study with Pre-Specified Decision Rules".
Repo: https://github.com/zOthix/mimi-brain4-paper
Setup
- The agent (libbrain4) is a compact recurrent learner in C, meta-trained, then evaluated on lives it has never seen. Each life is 12,000 steps, with 32 lives per task family.
- It has a failure memory: a fixed hash table keyed by rounded observations. It stores actions that failed in each place (no observation change, or negative reward through a fading trace) and leans the next action away from them. It is reset every life.
- Baselines: PPO, recurrent PPO and an RL2-style learner (Stable-Baselines3 / sb3-contrib), tuned with successive halving and trained to 77M steps.
- For a fair comparison, we ported the same failure memory to the baselines in Python, with a unit test checking that it matches the C header on recorded streams.
- Every experiment's pass/fail rule was committed before its first run. CPU evaluation is bit-identical on the same platform and build.
Results
- 10 held-out families, 10 meta-trained minds, 3 fresh seed blocks: mean 0.498 (95% CI 0.480 to 0.515). Best tuned baseline without memory: PPO, 0.0977. Best baseline with the same failure memory: PPO+memory, 0.271. Pass.
- 8 task families written blind to our results by a separate process and sealed before evaluation: agent 0.067 vs PPO 0.057. Pass, but narrow.
- DareFightingICE: pre-registered tests passed against PyThunder and ERHEA_PI. The other conditions were inconclusive.
- Omniglot 5-way 1-shot: 0.883 vs 0.963 for a prototypical network. Fail.
- XLand-MiniGrid: 3.66 vs 5.33 for RL2. Fail.
- A revised failure memory, tested as a follow-up and not pre-registered, improved the blind families from 0.063 to 0.118, but made no real difference on the held-out families (+0.0015).
Reproducing
- Every verdict can be re-read from the committed result files in minutes, with standard-library Python.
- A check of about 1 minute on 4 threads re-runs one mind's lives and diffs them against the published output.
- Not included (available on request): the baseline checkpoints (about 2 GB) and the end-of-fight minds.
Where we'd value critique
The code is under a non-commercial licence (free for research). If you want to support the compute: https://labs.khive.io/fund
r/reinforcementlearning • u/Imaginary_Data_1070 • 3d ago
motubrain 2.0 released its 20B World Action Model, trained on 2M hours of internet videos and 500K hours of embodied data.
they livestreamed 25 days of training, covering pre-training, post-training, agent development, and early experiments with RSI.
they also conducted over 10000 real-robot task trials and evaluated different model checkpoints on real robots.
model weights, code, data resources, processing tools, and training notes are now available.
some questions:
hope to discuss🙌

Technical blog: https://www.motubrain.cn/en/blog/motubrain-2/
r/reinforcementlearning • u/camerongreen95 • 2d ago
hey everyone, sharing this for people working on machine learning who are interested in the engineering challenges beyond model development.
developing a model is one thing. making sure the complete system can be reproduced, deployed and monitored reliably is another.
some important areas include:
Packt is hosting a hands-on Production ML Engineering workshop on December 5 covering these areas.
the practical tools include scikit-learn, XGBoost, LightGBM, CatBoost and Streamlit.
it's a live online session at 9:30 AM EST.
Full workshop details and registration
happy to answer questions about the workshop!
r/reinforcementlearning • u/Similar_Hotel2724 • 3d ago
If you've wanted to see how your policy holds up on a real contact-rich task rather than in sim, this is a chance: each task has a dataset and a baseline policy to beat. From Fri 11 to Sun 13 Dec we're putting builders on real industrial cells at DARE Campus, Schlieren (10 min from Zurich HB) to work on contact-rich tasks: cable insertion, assembly, inspection.
What you get:
- a dataset collected on each task and a baseline policy to beat
- the Forgis codebase, with the engineers who wrote it on the floor with you
- every run recorded with force/torque ground truth; the runs become an open dataset and benchmark, released with a paper that credits every participant
- a 10K prize pool
Free, food covered (travel's on you), 18+. Apply solo or as a team of up to five; we complete the teams. Applications close Sun 6 Dec, rolling acceptance.
Details and the application: https://luma.com/oj617tvc?utm_source=reddit-rl&utm_campaign=hk-community
Happy to answer anything about the cells, the tasks or the data format below.
r/reinforcementlearning • u/Public_Expression_92 • 3d ago
Ran an empirical comparison of on-policy distillation (student generates rollouts, frozen teacher scores every token with per-token reverse KL log p_teacher - log p_student and zero discount) against GRPO and SFT on teacher samples over ~1M tokens each on a single Colab TPU v5e (15.75 GiB), using Qwen3-0.6B (student), Qwen3-1.7B (teacher), and Tunix 0.1.7 (JAX/Flax NNX, LoRA rank=16, alpha=32 across all 7 projections).
Why compare them side-by-side:
RL & training observations on GSM8K (1,312 test problems, 640-token cap, greedy eval with 95% bootstrap CIs vs. untrained Qwen3-0.6B at 65.5%**; teacher at** 82.0%**):**
66.9%, 68.1%), SFT warm-started distillation (67.3%), SFT (67.8%), filtered SFT (67.2%), and lr=3e-5 GRPO (68.0%) all landed within +1.4 to +2.6 points of the untrained student, with 95% intervals touching zero and a 1.2-point gap between identical distillation seeds.0.34 to 0.24 nats/token across seeds, so the student aligned closer to teacher token distributions/style than raw pass@1 gains reflected.<|im_end|> and hit the token cap; requiring completion fixed stopping, while lr=1e-4 collapsed to a short-answer shortcut (36.9% pass@1) vs. 68.0% at lr=3e-5.0.1.7, setting temperature=1.0 without top_p=1.0 still decoded greedily (zeroing rollout diversity for GRPO until top_p=1.0 and per-step seeds were set), and batch_size=32 with a 512-token KV cache (16,384 positions) fit cleanly while 32,768 positions hit decode memory limits.Narrow setup (single model pair, GSM8K, ~1M tokens, mostly single seeds on a single TPU chip), so treat it as a practical single-chip check rather than a general claim.
Repo with code, configs, and logs: https://github.com/Brayanbrayan/on-policy-distillation
r/reinforcementlearning • u/shunya_research • 3d ago
Here’s how I did it: https://cyb3r17.substack.com/p/my-world-record-attempt
Feedback and suggestions welcome, I’m trying to get it to beat the human world record! 😊
r/reinforcementlearning • u/PuzzleheadedAir6272 • 4d ago
Wanted to share some success I had with my first reinforcement learning project. My goal was to train a neural net to beat Pokémon Gold, inspired by a similar project from Peter Whidden.
r/reinforcementlearning • u/ClickOk5811 • 4d ago
I wanted to reproduce the classic multi-armed bandit experiment from Sutton & Barto (Chapter 2) to see the effect of ε in ε-greedy with my own code, not just the figure from the book.
Setup: 2,000 independent bandit problems, 10 arms each. True action values are drawn from N(0,1), rewards are N(q*(a), 1). Sample-average value estimates, random tie-breaking, 1,000 steps per run. Everything is averaged over the 2,000 problems. NumPy 2.5.3.
greedy = np.where(Q == Q.max(1, keepdims=True),
rng.random((runs, k)), -1).argmax(1) # random tie-break
explore = rng.random(runs) < eps
a = np.where(explore, rng.integers(0, k, runs), greedy)
r = rng.normal(q_true[idx, a], 1.0)
N[idx, a] += 1
Q[idx, a] += (r - Q[idx, a]) / N[idx, a] # sample averageResults:
eps=0.0 first 100 steps: 0.948 | last 100 steps: 1.022 | optimal action (last 100): 34.7%
eps=0.01 first 100 steps: 0.972 | last 100 steps: 1.292 | optimal action (last 100): 58.4%
eps=0.1 first 100 steps: 1.005 | last 100 steps: 1.367 | optimal action (last 100): 80.0%What I take from it:
I haven't tried optimistic initial values, UCB or a decaying ε, which the book also covers.
If anyone has suggestions: which of those would you compare next, and is there something about this testbed that tends to mislead beginners (like the average hiding the variance between runs)?
r/reinforcementlearning • u/No_enemies99 • 4d ago
I'm a psychotherapist exploring how clinical psychology can contribute to alignement. And I wrote a paper about where values come from. It ends with an arm training four-arm training experiment to see if alignment improves. Tbh, I'm not confident about the design in its current state so I'd love to have the input of experts from the field. We can talk in Dms or we can have a 30 minute call. I'll pay you for your time. Thank you!
r/reinforcementlearning • u/Greystone135 • 4d ago
I was bored this weekend, so I vibe-coded an app to watch AI play Super Mario Bros. I first made the application in Claude Code. For now, it uses a local LLM model with Ollama (QWEN3.6). I need to experiment with more models.
I coded this over the weekend, let it run on its own at first, then spruced up the interface and used some other knowledge to make this emulator. Currently only for Mac, but I am building a Windows/Linux version soon. *I am sure there are others out there, but I can't find anyone who has done this.
Check out my project and love some feedback to make this more EPIC! Zelda is next.
https://github.com/thededman/ai-plays-mario

r/reinforcementlearning • u/gwern • 5d ago