When LLMs Audit Their Own Homework: KnowRL and Factuality-Guided Reinforcement Learning
Why do "thinking" models hallucinate so confidently?
Slow-thinking LLMs write long reasoning chains inside <think>...</think> before giving answers in <answer>...</answer>. This looks transparent and rigorous, but in practice:
- Intermediate reasoning is full of plausible-sounding, unsupported claims;
- Traditional RL only rewards the final answer, so as long as the model guesses correctly, it gets positive feedback regardless of what it invented along the way.
- r_format (±1): enforces the
<think>/<answer>structure, a prerequisite for verifiability and explainability. - r_correct: +2 for correct answers, +1 for honest refusal ("I don't know" / "insufficient information"), −1 for wrong answers.
- r_fact: dense per-sentence factual grounding signal.
- DeepSeek-R1-Distill-Qwen-7B: −20.3%
- Skywork-OR1-7B-Preview: −21.4%
- Similar improvements on Chinese SimpleQA, suggesting a general "knowledge boundary awareness."
- GPQA accuracy rose from 29.2% to 32.0% for DeepSeek-R1-Distill-Qwen-7B;
- GPQA and AIME 2025 held steady or slightly improved for Skywork-OR1-7B-Preview.
- Changing the refusal reward from +1 to a penalty spiked SimpleQA errors from 28.6% to 44.4% — rewarding "saying I don't know" is a core anti-hallucination mechanism.
- On some reasoning benchmarks, the factual reward r_fact alone yielded the best results, acting as a strong reasoning signal that suppresses "lucky guesses" and pattern-matched hallucinations.
- Fact anchoring: verified atomic-fact chains block the automated error-amplification pipeline where confident hallucinations get reprocessed and spread.
- Auditability:
<think>becomes an audit trail — every claim can be checked against the knowledge base, enabling error attribution, bias analysis, and compliance reporting. - Alignment beyond harmlessness: factual accuracy becomes a first-class, quantifiable training objective — "don't just avoid harm; tell the truth."
- Bridging validation and explanation views: accuracy improvements satisfy the Validation View; traceable evidence satisfies the Explanation View, particularly relevant for medical AI.
- Dependency on knowledge-base quality: incomplete, outdated, or biased KBs can produce wrong rewards and mislead training.
- Compute cost: decomposing long reasoning and running retrieval + NLI on every fact is expensive at scale.
- Future work: logical-consistency and ethics-based rewards; dynamically updated KBs with conflict handling; multimodal fact-checking (e.g., whether an X-ray supports a diagnostic statement); stronger domain-specific verifiers; red-teaming and adversarial training against hallucination-inducing prompts; and robust, multi-domain factuality benchmarks resistant to leaderboard gaming.
Hallucination thus becomes a *rewarded behavior*: models learn to confidently fabricate facts while training reinforces the habit. KnowRL (Knowledgeable Reinforcement Learning) rewrites these rules by rewarding factually grounded reasoning at every step.
Core idea: put fact-checking inside the RL loop
KnowRL runs a two-stage pipeline:
1. SFT cold start — supervised fine-tuning teaches the model to output structured <think> + <answer> responses.
2. Factuality-guided RL — the core stage, where each rollout is scored by three rewards.
Knowledge Verification (KV) module
The <think> content is processed in three steps:
1. Decompose: a function Φ splits the reasoning into atomic facts:
e.g., "France's capital is Paris, famous for the Eiffel Tower" → two independently verifiable statements.
2. Retrieve: relevant passages from an external knowledge base K (Wikipedia, domain databases) are collected. Crucially, the model's parametric knowledge is *not* treated as ground truth — the truth lives in an auditable, updatable external source.
3. Score: a pretrained NLI model (e.g., MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli) checks whether each atomic fact is entailed by retrieved evidence, producing a 0–1 confidence score.
The factuality reward is the mean over all atomic facts:
Composite reward
with α = β = γ = 1 in experiments:
Optimization uses Group-Relative Policy Optimization (GRPO), which compares a group of candidate outputs rather than single trajectories, reducing variance. Entropy bonuses prevent policy collapse into repetitive templates; KL penalties against the SFT policy prevent catastrophic forgetting.
Results: less fabrication, no loss of reasoning
Hallucination reduction (SimpleQA error rates):
Reasoning preserved or improved:
Ablation highlights:
Versus baselines: Standard RLHF only evaluates whole outputs, which can favor long, detail-rich answers and inadvertently encourage invented details. FLAME-style methods align knowledge during fine-tuning; KnowRL embeds verification dynamically in the RL loop, constraining both reasoning style and knowledge-boundary behavior.
Implications for safety and explainability
High-stakes applications
Medicine: With evidence-based knowledge bases (guidelines, systematic reviews), KnowRL penalizes statements contradicting clinical evidence, flags low-evidence conclusions, and outputs multi-option recommendations with citations — a "second-read opinion" rather than a final verdict, preserving physician accountability.
Law: Following real incidents of lawyers citing AI-fabricated cases, KnowRL-style systems reward verifiable citations, tag unsupported claims as needing human review, and prevent analogical reasoning from masquerading as existing precedent — reducing professional and compliance risk at the source.
Limitations and future directions
Conclusion
KnowRL's contribution goes beyond adding one more reward term. It shifts the model's internal calculus: when tempted to invent a detail, does "task completion" outweigh "truth-telling"? By embedding verification into RL, rewarding honest refusal, and penalizing confident fabrication, KnowRL teaches models a system-level lesson: if you don't know, don't pretend you do.