GRPO-trained critic for claim-level hallucination detection
Trained Qwen 14B with GRPO as a claim-level hallucination judge. On 1,000+ human-labeled claims, F1 improved 7% relative to the open-source RefChecker and 10%+ relative to an SFT baseline.
Context
A RAG product that generates medical literature reviews (two-way recall → rerank → outline → body). I owned generation. Reviews are long answers where every conclusion must trace back to a reference, so manual review was expensive.
Challenge
- Hallucination is broadly defined. Errors like “unsound reasoning” can't be captured by rules or prompts, and few-shot examples hit context limits.
- GPT and Gemini as teachers didn't exceed our own ceiling, so distillation was a dead end.
- The judge must output its reasoning and evidence, not just a label, to be explainable and iterable.
- Negative samples lacked diversity, so models only caught error types they had seen.
Why GRPO, not SFT / DPO
- Detection has verifiable answers and cheap feedback, the same conditions under which RL worked for math and code.
- SFT and DPO teach reasoning only through written samples, capping the model at human reasoning; GRPO lets it explore.
- The team's GRPO framework already beat SFT on GSM8K; PPO's longer feedback chain didn't train well.
Approach
- Error attribution into three classes: missing premise, unsound reasoning, misattribution.
- Task split: segment long answers into referenced claims, judged one by one.
- Fully synthetic negatives: Qwen 72B rewrites correct text into a target error type; existing detectors filter out what they already catch, keeping hard cases. Three rounds.
- Training: GRPO on Qwen 14B, reward = correctness + format.
- Evaluation on 1,000+ human-labeled claims.
Results
- +7% F1 vs. RefChecker, +10%+ vs. SFT baseline (relative).
- The judge then improved the generator (relative gains on human-rated expertise score): self-reward alignment +10% with claim-level hallucination rate down ~50%; judge-built preference data for DPO +5%; bilingual terminology dictionary +5%; RAFT noise-robust training +4%.
Generator gains from the judge (expertise score, relative)
My role
Owned the judge end to end: error attribution, data synthesis, training, evaluation. Owned alignment for the generation stage of the RAG pipeline.