← Latest papers
🤖 machine learning

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

KARL is a novel reinforcement learning framework that mitigates LLM hallucinations by using a knowledge-boundary-aware reward mechanism and a two-stage training strategy to dynamically align a model's ability to abstain from answering questions with its evolving knowledge limits, thereby improving the trade-off between accuracy and caution.

Original authors: Cheng Gao, Cheng Huang, Kangyang Luo, Ziqing Qiao, Shuzheng Si, Huimin Chen, Chaojun Xiao, Maosong Sun

Published 2026-04-28
📖 3 min read☕ Coffee break read

Original authors: Cheng Gao, Cheng Huang, Kangyang Luo, Ziqing Qiao, Shuzheng Si, Huimin Chen, Chaojun Xiao, Maosong Sun

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a student how to take a high-stakes exam, like a medical board exam.

Currently, most AI models are like students who are terrified of leaving a blank space on an answer sheet. Because they’ve been trained that "wrong answers" are bad, they feel forced to guess even when they have no idea what the question is about. This leads to "hallucinations"—where the student confidently tells you that a certain medicine cures a disease, when in reality, they just made it up because they didn't want to admit they didn't know.

This paper introduces KARL, a new way to train AI so it learns the most important skill of a genius: knowing exactly where its knowledge ends.

Here is how KARL works, explained through three simple concepts:

1. The "Smart Teacher" (Knowledge-Boundary-Aware Reward)

In traditional training, the teacher is "static." If the student guesses wrong, they get a red mark. If they say "I don't know," they also get a red mark. This makes the student panic and guess more.

KARL introduces a Smart Teacher. This teacher watches the student closely.

  • If the student is capable of knowing the answer (the teacher sees them get it right at least once during practice), the teacher says: "Don't be shy! If you know it, tell me. If you guess wrong or stay silent, I'm going to penalize you."
  • If the student is clearly out of their depth (the teacher sees them fail every single time they try), the teacher says: "It's okay to be honest. If you say 'I don't know,' I'll give you a gold star. But if you try to fake it, you'll get a penalty."

This teaches the AI to distinguish between "I'm just being lazy" and "I truly do not have this information in my brain."

2. The "Two-Step Training Program" (Two-Stage RL Strategy)

If you try to teach a student to be "honest" and "accurate" at the exact same time, they often get confused and decide that the safest way to pass is to never answer anything at all. This is called the "Abstention Trap"—the AI becomes so afraid of being wrong that it becomes uselessly silent.

To avoid this, KARL uses a two-stage bootcamp:

  • Stage 1: The Confidence Builder (Exploration). First, the goal is just to get the facts right. The teacher focuses heavily on accuracy. The student is encouraged to dig deep into their memory and find the right answers. We want them to build a strong foundation of knowledge first.
  • Stage 2: The Honesty Calibration (Calibration). Once the student is smart and confident, we introduce the "honesty" rule. We look at the questions they still get wrong even after all that studying. We tell them: "Now that you're smart, if you still can't get these specific ones right, stop guessing. Admit you don't know."

3. The Result: The "Reliable Expert"

The result isn't just an AI that is "less wrong." It is an AI that has a much better trade-off.

Think of it like a GPS. A bad GPS might tell you to "turn left into a lake" because it's too confident. A "lazy" GPS might just say "I don't know" every time you enter a new city. KARL creates a GPS that tells you exactly where the roads are, but has the wisdom to say, "I'm not sure about this next turn; please check a map."

In short: KARL stops AI from "faking it until they make it" and instead teaches them to "know it or admit it."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →