CoolFace
Modelpublic

rohanjain2312/grpo-reward-hacked-sentiment-qwen05b

sourceHugging Faceapache-2.0updated 6d agoView on Hugging Face
0likes548downloads
Model Card

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:

Setup actually used

base modelQwen/Qwen2.5-0.5B-Instruct
reward modellvwerra/distilbert-imdb (reward = P(positive))
taskcontinue the opening sentence of a negative IMDB review
algorithmGRPO, group size 8, 8 prompts/step
KL coefficient (beta)0.0
reward capnone
steps100
learning rate1e-05
max new tokens48

Results on the held-out eval prompts

metricstep 0step 100
sentiment reward (P(positive), held-out)0.5560.996
perplexity under frozen base model4.518.0
distinct-2 within each completion0.9970.999

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.