rohanjain2312/grpo-reward-hacked-sentiment-qwen05b
0548
grpo-reward-hacked-sentiment-qwen05b
This is the reward-hacked model. It is published as a negative result, not as a model to use.
It was trained with GRPO against a real sentiment classifier (lvwerra/distilbert-imdb) with no KL penalty. The reward climbs, and the model's actual writing quality collapses: it discovers that the classifier can be satisfied by degenerate positive-sentiment text.
What this is part of
A three-part demo of reward hacking in GRPO:
- Code and write-up: https://github.com/Rohanjain2312/grpo-reward-hacking-demo
- Interactive comparison: Hugging Face Space
- The other arms of the experiment:
- rohanjain2312/grpo-reward-hacking-fixed-kl-qwen05b
- rohanjain2312/grpo-reward-hacking-fixed-cap-qwen05b
Setup actually used
Results on the held-out eval prompts
Full metrics and generated samples for every checkpoint are in logs/metrics.jsonl and logs/samples.jsonl in this repo. Step-numbered checkpoints (weights + optimizer state) are under checkpoints/.
Intended use
Research demonstration only. The baseline model in particular produces degenerate text by design and should not be used for anything.
