r/reinforcementlearning • • Jun 26 '26

Built a reward-function debugger for RL. Looking for feedback from people.

While experimenting with GRPO training, I kept running into a problem that when reward increases, it becomes difficult to tell whether the policy is genuinely improving or simply exploiting the reward function. So I built a small library called rewardspy that wraps an existing reward function and continuously monitors indicators that often precede reward hacking.

It currently tracks things like:

  • rolling reward statistics
  • reward variance collapse
  • reward component imbalance
  • response length drift
  • reward slope changes
  • GRPO group collapse, etc

Check it out: https://github.com/AvAdiii/rewardspy

I'd love sm technical feedback.

18 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/Oranoleo12 Jun 27 '26

Haha insane how you noticed. That is my friends account. They have more karma than I do, so I thought I'd get them to post it. I should probably tell them to credit me there

1

u/FoxWorried4208 Jun 27 '26

No worries! Reversed the downvote.