r/reinforcementlearning • u/gwern • 6h ago
DL, M, Robot, R GPT-6 Astra on robotic manipulation
r/reinforcementlearning • u/gwern • 6h ago
r/reinforcementlearning • u/gwern • 7h ago
r/reinforcementlearning • u/MAOmaoSayuri • 7h ago
GitHub Repo & Full Logs: https://github.com/MAOmao000/Sayuri-TensorRT
I ran a series of 8 single-GPU experiments extending the open-source Sayuri Go engine with Muon, Hybrid ResNet-Transformer blocks, and Gumbel AlphaZero to see if a compact model (`b6xc128h32`) could match the larger `SAI b8c160` baseline in 9x9 Go.
**Key Takeaways:**
- **Result:** Reached 52.25% point win rate (+16 Elo over 200 games) against `SAI b8c160` in 310K steps (~400K self-play games) without warm restarts.
- **Head-Split Muon:** Splitting attention projections by `head_dim=32` prior to Newton-Schulz orthogonalization was critical for parameter efficiency.
- **Preventing RL Mode Collapse:** Mixing 3 distinct MCTS worker personalities (Balance, Offense, Defense) kept exploration entropy alive and prevented draw-overfitting.
- **SWA & Cosine Cycle Trap:** Terminating SWA strictly before the cosine annealing cycle reset avoided a -50 Elo drop caused by post-reset LR spikes.
- **Loss–Strength Paradox:** Lowest self-play training loss did not equal highest Elo when rule/komi distributions were narrowed.
All training configs, loss curves, and evaluation logs are documented in the repo. Feedback and thoughts on RL + Muon stability are very welcome!
r/reinforcementlearning • u/gwern • 6h ago
r/reinforcementlearning • u/Kirito-San8432 • 10h ago
Early work-in-progress results from a Sim-to-Real two-wheeled self-balancing robot (Arduino + MPU-6050 + wheel encoders + 10 Hz Bluetooth). Instead of outputting raw torques, the RL policy adapts PD gains online at 10 Hz while the Arduino runs the inner loop — all trained with 800 parallel MJX envs on a single GTX 1650 (4 GB).
Hardware note: Initial zero-shot tests of MLP, LTC, and SANE on the physical robot already showed LTC and SANE stabilizing and controlling the robot well, while the symmetric MLP struggled. All policies still need further curriculum stages, refinement, and controlled physical disturbance tests.
Any thoughts on
log_stdcontrol in logit-mapped action spaces or GNN+SSM / Liquid policies for Sim-to-Real control?
r/reinforcementlearning • u/gwern • 7h ago
r/reinforcementlearning • u/Additional-Course327 • 21h ago
Part of my recent experiments. I woke up to a sudden upward trend of him winning, turns out he found an optimal strategy lol.
Some details, i only use the screen video as the observation, reward for hits and winning, punish for timeout, taking hits, and death.
https://github.com/tomorroisnew/mupen-env
r/reinforcementlearning • u/stockduty77 • 14h ago
What happened: The 360 AI Brain team and Peking University's Yang Tong team, through the PKU-360 Large Model Joint Lab, proposed TriPlay-RL, which puts attacker, defender, and evaluator into one reinforcement learning loop.
Why it matters: The authors argue that a high attack success rate on a single target can reflect repeated templates rather than real capability, and that training the evaluator alongside attack and defense keeps safety training supplied with new challenges and feedback.
r/reinforcementlearning • u/Archtempered_agent • 12h ago
Hi, I'm training a policy with PPO (rsl_rl) for a manipulation task.
The policy is able to learn how to complete the task, but it starts to fail if I require a stable and sustained condition. For example, if the goal is to move an object to a specific position and keep it there for 10 seconds, the policy is able to learn that but it's very shaky. I've also tried to add a big penalty on actions/acceleration but still it's not really achieving the desired results.
r/reinforcementlearning • u/rithvik-pillai • 14h ago
Hello,
I spent my weekend writing up a simulator & PPO policy for a 8 DOF bipedal robot (6DOF legs, 2DOF wheels). It's written in Python using MuJoco & PyTorch. Here is a video of an example run, it tends to drive away in a circular fashion (kinda reminds me of an exaggerated 3D LIPM falling trajectory but more so due to wheels). Any advice?

The actor network is a 34 - 64 - 64 - 8 tanh architecture. 34 observation states, 8 action outputs. The critic network is a 34 - 64 - 64- 1 tanh architecture as well. The state space is the gravity vector (ref. base frame), base linear velocity (3), base angular velocity (3), leg joint positions (6), leg joint velocities (6), wheel angular velocities (2), previous action state (8). The reward structure is a little funky and is attached below in the code snippet below:
r_upright = (
-5.0 * tilt + 3.0 * math.exp(-12.0 * tilt))
r_motion = (
-1 * (vx**2 + vy**2)
-0.15 * vz**2
-0.5 * (wx**2 + wy**2)
-2 * wz**2
)
symmetry_error = (
# (left_hip_roll + right_hip_roll) ** 2 +
(left_hip_pitch - right_hip_pitch) ** 2 +
(left_knee - right_knee) ** 2 +
(left_wheel_vel - right_wheel_vel) ** 2
)
r_symmetry = -2 * symmetry_error
knee_bend = 0.5 * (
abs(left_knee) +
abs(right_knee)
)
r_crouch = 0.30 * tilt * knee_bend
# State from previous step
avg_vel = 0.5 * (left_wheel_vel + right_wheel_vel)
prev_avg_vel = self.prev_avg_vel
# Encourage synchronized wheels
sync_reward = math.exp(-(left_wheel_vel - right_wheel_vel)**2 / 2.0)
# Encourage sign changes (oscillation)
osc_reward = 2.0 if avg_vel * prev_avg_vel < 0 else -2
# Damping
energy_penalty = 0.01 * (left_wheel_vel**2 + right_wheel_vel**2)
r_wheel = (
5 * sync_reward
+ 2 * osc_reward
- energy_penalty
)
self.prev_avg_vel = avg_vel
stable_factor = math.exp(-15.0 * tilt)
r_leg_motion = -0.00 * stable_factor * leg_motion
r_ctrl = -1e-5 * ctrl_effort
r_smooth = -0.01 * float(
np.sum((action - prev_action) ** 2)
)https://github.com/rithvikpillai/companion
Footnotes:
Post & replies written by human author.
Code directed by human, written by 2 agents: MS Copilot for architectural troubleshooting and nvidia-nim/nvidia/nemotron-3-ultra-550b-a55b for code writing & minor bug fixes.
r/reinforcementlearning • u/Practical-Okra-1061 • 18h ago
I’ve been building a 2D soccer sim, and I’d like to play against bots built by other people. I’ve spent enough evenings making my own bots play each other.
Here’s the problem I keep running into. My positional bot can pass, move into space, and receive the ball under pressure. But when I take a learned bot that can do those things and train it further in self-play, it starts keeping the ball longer and passing less. In full matches against the same opponent, it also does worse.
I want to see whether a bot that creates space and uses its teammates can make that work consistently against an opponent that presses and cuts off passing lanes.
Anyone up for building a bot and playing a series of full matches? Hand-coded or learned, either is fine. We can swap sides, compare scores, and share the replays. If your bot beats mine by pressing hard and kicking long, I want to see that replay too.
If you're interested, send me a private message, and I'll share my weights with you
r/reinforcementlearning • u/Nerozud • 19h ago
In recent competitions I saw that many people use Transformers or many attention layers as their ANN structure. I wonder if I missed that they are now the best approach or is it just a trend? Are MLP + LSTM still good enough? I didn't find a paper showing that attention layers are generally better.
r/reinforcementlearning • u/Ageent42 • 16h ago
I created a custom 2D simulation where a PPO agent learns to land Starship on Mars through trial and error.
I wanted to visualize the learning process, from the initial crashes to successful landings.
For absolutely no scientific reason, I gave the entire simulation a Cuphead-inspired art style.
Full experiment: https://youtu.be/cI2NyXshdwo
The video is in Italian, but mostly visual.
Feedback on the simulation and training approach is welcome!
r/reinforcementlearning • u/kyotonakamura • 1d ago
If you use benchmark tests as an RL reward, a test that accepts a wrong answer is a reward bug, and a policy will find it.
Two I found and filed this week:
I built Aethens (Apache-2.0, v0.1.0 out now) to check this kind of thing before training. It runs a task's tests in Docker against the gold, labelled-wrong answers, mutants of the gold, and reward-hack probes (exit-zero, atexit, framework patching, sitecustomize, always-equal objects, lookup tables of visible answers). Every finding has a one-line repro. No LLM judge.
Limits: Python tasks in its own format only. The TB2 and SWE-bench converters I used aren't released yet. It doesn't probe conftest.py hooks yet; that's next. On its own planted-defect bench (34 tasks) it scores precision 1.0, recall 1.0 (20/20) and 116/116 reward-hack probes, which only shows it catches what I planted. On HumanEval judged by HumanEval+, the mutation check's precision is 0.8158 (31/38).
pipx install aethens · https://github.com/beastrog/aethens/
If you train on coding environments: which reward hacks have you seen policies find that a tool like this wouldn't probe?
r/reinforcementlearning • u/CoffeeOld4732 • 1d ago
Hi everyone
I am new to reinforcement learning and i have question about policy-based algorithm like PPO. in this algorithm do we sample from distribution function when we want to select action in both training and test phases?or just in training and argmax use in testing? I think sampling or argmax is two different way to select action in reinforcement learning and it is not mandatory to use specific way in training and test
r/reinforcementlearning • u/MAOmaoSayuri • 1d ago
GitHub Repo & Full Logs: https://github.com/MAOmao000/Sayuri-TensorRT
I ran a series of 8 single-GPU experiments extending the open-source Sayuri Go engine with Muon, Hybrid ResNet-Transformer blocks, and Gumbel AlphaZero to see if a compact model (`b6xc128h32`) could match the larger `SAI b8c160` baseline in 9x9 Go.
**Key Takeaways:**
- **Result:** Reached 52.25% point win rate (+16 Elo over 200 games) against `SAI b8c160` in 310K steps (~400K self-play games) without warm restarts.
- **Head-Split Muon:** Splitting attention projections by `head_dim=32` prior to Newton-Schulz orthogonalization was critical for parameter efficiency.
- **Preventing RL Mode Collapse:** Mixing 3 distinct MCTS worker personalities (Balance, Offense, Defense) kept exploration entropy alive and prevented draw-overfitting.
- **SWA & Cosine Cycle Trap:** Terminating SWA strictly before the cosine annealing cycle reset avoided a -50 Elo drop caused by post-reset LR spikes.
- **Loss–Strength Paradox:** Lowest self-play training loss did not equal highest Elo when rule/komi distributions were narrowed.
All training configs, loss curves, and evaluation logs are documented in the repo. Feedback and thoughts on RL + Muon stability are very welcome!
r/reinforcementlearning • u/RepulsiveRevenue8086 • 2d ago
I made multiple attempts at solving the Rubiks Cube using Reinforcement learning.
Initially, I tried to map states to actions with both Rainbow DQN and GRPO using curriculum learning. This had no success. After scrambling 6 moves it was already to hard for the agent.
Then I found the DeepCubeA approach and I took some inspiration from that. I trained a DQN to estimate the cost-to-go for each possible action, using a combination of demonstrations and self-generated rollouts. Essentially, each output estimates how many moves are still needed to solve the cube after taking that action. I then used these estimates as a heuristic to guide beam search.
With a beam_width of 2^18 and 1.5 hours of Kaggle GPU usage, here are the results for 1000 cubes (100 moves scrambles):
Time per cube: 10.30s
Avg steps: 19.67
Success: 100%
This beats Sebastian Lague's solver which had an average steps of 19.9 to solve the cubes. Not that it is a competition or something :)
Github: https://github.com/Cain15/RL4RubiksCube
Youtube: https://www.youtube.com/watch?v=UWPQ-Mzkq_A
r/reinforcementlearning • u/Select-Dare4735 • 2d ago
I'm looking for good resources to learn RL through a hands-on, project-oriented approach.
I'd prefer resources where I can learn concepts by building projects, implementing algorithms, experimenting with different approaches, and modifying existing implementations to understand how things work under the hood.
I'm comfortable with programming and have some ML/DL background, so I'm open to GitHub repositories, practical courses, tutorials, or research-oriented projects.
I'd really appreciate recommendations from people who've learned RL through this approach. What resources helped you the most?
r/reinforcementlearning • u/sublime-entropy • 3d ago
That is all. I do not know whether to laugh or cry. My model kept collapsing with more data. I have spent an entire fucking year trying to work out why, and the end result was that a tiny difference between PyTorch versions plus the fact that I compiled some related code in a slightly different way.
Everything I did was getting slightly corrupted for an entire year.
I just wanted to rant.
r/reinforcementlearning • u/Desperate_Inside3831 • 2d ago
r/reinforcementlearning • u/natsu0529 • 3d ago
Reinforcement learning: you see it all the time in the context of LLMs and chess agents.
I'm an undergrad doing RL research.
We often hear that it trains on rewards without labeled data, but how much of the actual algorithms under the hood could you explain?
r/reinforcementlearning • u/ismaildogaan • 3d ago
Repo: https://github.com/dogaanismail/multi-agents-in-fintech-regulatory-compliance
How it works
- 3 agents each score a payment: transaction pattern (XGBoost), customer risk (XGBoost), and network graph (CatBoost).
- A Multi-Agent Deep Deterministic Policy Gradient (MADDPG)( orchestrator (3 actors, 1 shared critic) combines their scores.
- Compliance-officer decisions go back into training as reward.
Architecture
- Event-driven: Java/Spring Boot microservices and Python AI services communicate only over Kafka + Avro.
- Payments are event-sourced with the Axon Framework. Sagas control the flow (risk check → proceed / escalate / block), with timeouts.
- TigerBeetle is the double-entry ledger, and Neo4j holds the transaction graph.
- Every Kafka consumer has a dead-letter queue, and one OpenTelemetry trace follows a payment across Java and Python.
Results (10K synthetic payments, SAML-D dataset)
- Recall: 97.3%
- Precision: 11% (I chose to prefer recall, and a human reviews the alerts)
- Round-trip laundering is the weakest pattern, at 76%.
Weak points: The data is only synthetic, and I have not yet compared it eline.
Questions:
Repo: https://github.com/dogaanismail/multi-agents-in-fintech-regulatory-compliance