English

KARL: Mitigating Hallucinations in LLMs via Knowledge-Boundary-Aware Reinforcement Learning

Machine Learning 2026-04-28 v1 Artificial Intelligence Computation and Language

Abstract

Enabling large language models (LLMs) to appropriately abstain from answering questions beyond their knowledge is crucial for mitigating hallucinations. While existing reinforcement learning methods foster autonomous abstention, they often compromise answer accuracy because their static reward mechanisms, agnostic to models' knowledge boundaries, drive models toward excessive caution. In this work, we propose KARL, a novel framework that continuously aligns an LLM's abstention behavior with its evolving knowledge boundary. KARL introduces two core innovations: a Knowledge-Boundary-Aware Reward that performs online knowledge boundary estimation using within-group response statistics, dynamically rewarding correct answers or guided abstention; and a Two-Stage RL Training Strategy that first explores the knowledge boundary and bypasses the "abstention trap", and subsequently converts incorrect answers beyond the knowledge boundary into abstentions without sacrificing accuracy. Extensive experiments on multiple benchmarks demonstrate that KARL achieves a superior accuracy-hallucination trade-off, effectively suppressing hallucinations while maintaining high accuracy across both in-distribution and out-of-distribution scenarios.

Keywords

Cite

@article{arxiv.2604.22779,
  title  = {KARL: Mitigating Hallucinations in LLMs via Knowledge-Boundary-Aware Reinforcement Learning},
  author = {Cheng Gao and Cheng Huang and Kangyang Luo and Ziqing Qiao and Shuzheng Si and Huimin Chen and Chaojun Xiao and Maosong Sun},
  journal= {arXiv preprint arXiv:2604.22779},
  year   = {2026}
}

Comments

21 pages, 8 figures

R2 v1 2026-07-01T12:34:11.402Z