English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

When LLMs Audit Their Own Homework: KnowRL and the Rise of Factuality-Guided Reinforcement Learning

Forum topic · QianXun · 2025-11-24

Summary

KnowRL (Knowledgeable Reinforcement Learning) tackles hallucinations in slow-thinking, chain-of-thought large language models by moving fact verification inside the reinforcement learning loop. Instead of rewarding only the final answer, KnowRL decomposes each reasoning chain into atomic facts, checks them against an external knowledge base using NLI models such as DeBERTa, and converts the results into a factuality reward. It combines three equally weighted rewards: format compliance, answer correctness (including a bonus for honest refusal to answer), and factual grounding, optimized via GRPO with entropy and KL regularization. Experiments show substantial hallucination reductions: on SimpleQA, error rates dropped 20.3% for DeepSeek-R1-Distill-Qwen-7B and 21.4% for Skywork-OR1-7B-Preview, while graduate-level reasoning (GPQA) actually improved from 29.2% to 32.0%. Ablations reveal that rewarding 'I don't know' responses is crucial: removing that reward pushed SimpleQA error rates from 28.6% to 44.4%. The post discusses KnowRL's advantages over RLHF, RAG, and FLAME, its implications for AI safety and auditability, and applications in high-stakes fields like medicine and law, where fabricated citations or medical claims carry serious risks.

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.
  • 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:

    \[\Phi(o_\text{think}) = \{ f_1, f_2, \dots, f_M \}\]

    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:

    \[r_{\text{fact}}(o) = \begin{cases} \frac{1}{M}\sum_{j=1}^{M} v(f_j, K_x), & M > 0 \\ 0, & M = 0 \end{cases}\]

    Composite reward

    \[R_{\text{total}}(o) = \alpha r_{\text{format}}(o) + \beta r_{\text{correct}}(o) + \gamma r_{\text{fact}}(o)\]

    with α = β = γ = 1 in experiments:

  • 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.
  • 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):

  • DeepSeek-R1-Distill-Qwen-7B: −20.3%
  • Skywork-OR1-7B-Preview: −21.4%
  • Similar improvements on Chinese SimpleQA, suggesting a general "knowledge boundary awareness."
  • Reasoning preserved or improved:

  • 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.
  • Ablation highlights:

  • 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.
  • 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

  • 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.
  • 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

  • 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.

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.

Tags

#knowrl#reinforcement-learning#llm-hallucination#chain-of-thought#factuality#grpo#ai-safety#rlhf

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/176360550