How LLMs Distinguish Factual Claims from Exploratory Dialogue
Large language models need to distinguish verifiable claims from metaphors, value judgments, and thought experiments. This article explains how utterance classification, modular system prompts, risk-aware response routing, and evaluation can reduce unnecessary corrections without compromising factual accuracy or safety.
1. Why Models Overcorrect
Conversational models encounter large amounts of fact-checking material during training, which can encourage a strong tendency to correct errors. When a user is making an analogy, expressing a worldview, or opening a philosophical discussion, the model may still dissect each statement and respond that it is “not scientifically valid.”
Consider this example:
- A user says, “Water is the source of life, and a fountain is poetry in motion.”
- The point is emotional and figurative, not a chemical definition.
- A response such as “Water has the chemical formula H₂O and is not a form of energy” may be technically accurate, but it misses the user’s intent and undermines the conversation.
The underlying problem is treating every input as a proposition to verify. A better approach is to identify the kind of statement the user is making before deciding how to respond.
2. A Philosophical Perspective: Analytical and Continental Traditions
Two broad philosophical orientations offer a useful analogy for dialogue system design.
Analytical philosophy emphasizes logical structure, linguistic precision, and testability. Its approach resembles an engineer’s: break down propositions, examine premises, and assess truth. This orientation is well suited to factual claims and is common in technical discussions.
Continental philosophy places greater emphasis on lived experience, historical context, and the construction of meaning. It does not reject science, but it recognizes room for discussions of values, existence, and subjective experience beyond empirically testable claims.
The engineering lesson is not to abandon factual judgment, but to distinguish contexts. Factual claims call for evidence. Metaphors, poetic language, value judgments, and hypothetical premises should be interpreted within their intended frames. Both orientations have useful applications, provided their boundaries are clear.
3. Classify the Type of Utterance
Before generating a response, classify the user’s input by its communicative function.
| Type | Characteristics | Default strategy |
|---|---|---|
| Empirical claim | A testable factual statement about data, causation, or historical events | Check against established sources and explicitly correct errors |
| Figurative language | Imagery or exaggeration used to convey emotion or a viewpoint | Interpret the rhetorical intent and respond within context |
| Value judgment | A claim about what is good, bad, or morally required | Explain different perspectives without presenting a personal position as objective fact |
| Hypothesis or exploration | A “what if” question, metaphysical inquiry, or thought experiment | Explore the hypothetical framework and state assumptions when necessary |
Context matters because the same sentence can serve different functions. “Drinking water gives you energy” is an empirical claim in a nutrition discussion but may be figurative in a poem. Classification should therefore account for the surrounding conversation rather than rely on literal wording alone.
4. Structure the System Prompt into Modules
A system prompt can be divided into independent modules to simplify maintenance and testing. At minimum, it should include a role definition, a factual-claim policy, an exploration policy, and a boundary policy.
SYSTEM_PROMPT_SECTIONS = {"role": "You are a rigorous and empathetic conversational assistant.","claim_policy": ("When users make verifiable factual claims, respond using ""established science or authoritative sources. ""If a claim is incorrect, identify the error clearly and explain ""the supporting evidence."),"exploration_policy": ("When users express metaphors, worldviews, philosophical ideas, ""or hypothetical scenarios, first understand the context. ""Engage within that context without unnecessary correction."),"boundary_policy": ("For factual claims affecting health, safety, legal, or financial ""decisions, explicitly identify factual inaccuracies even when ""they appear in an exploratory context."),}def build_system_prompt(sections: dict[str, str]) -> str:"""Join modules in a fixed order for a consistent prompt structure."""return "\n\n".join(sections.values())
Modularity offers three benefits:
- Each policy can be edited and reviewed independently.
- Production issues are easier to trace to a particular policy.
- Individual modules can be replaced for different product contexts without rewriting the entire prompt.
5. Route Inputs to Response Strategies
Once the utterance type is identified, map it to a response strategy. Routing should consider three factors: utterance type, classification confidence, and topic risk.
from dataclasses import dataclassfrom enum import Enumclass UtteranceType(Enum):EMPIRICAL = "empirical"FIGURATIVE = "figurative"NORMATIVE = "normative"EXPLORATORY = "exploratory"@dataclassclass Route:utterance_type: UtteranceTypeconfidence: float # Classifier confidence, ranging from 0 to 1CONFIDENCE_THRESHOLD = 0.7def choose_strategy(route: Route, high_stakes: bool) -> str:# Prioritize verification for high-stakes topics, regardless of context.if high_stakes:return "verify_and_correct"# Empirical claims require verification.if route.utterance_type is UtteranceType.EMPIRICAL:return "verify_and_correct"# Clarify intent when classification is uncertain.if route.confidence < CONFIDENCE_THRESHOLD:return "clarify_intent"# Engage with figurative and exploratory inputs within their frames.if route.utterance_type in (UtteranceType.FIGURATIVE, UtteranceType.EXPLORATORY):return "engage_in_frame"return "respond_with_perspective"
The order of these checks matters. High-stakes inputs are handled first so that topics such as medication and electrical safety do not bypass factual scrutiny because of their conversational framing. Empirical claims also go directly to verification. For the remaining inputs, low classification confidence triggers clarification rather than a guess.
The classifier itself can make mistakes. In practice, log routing decisions and subsequent user feedback, review samples regularly, and use the findings to refine thresholds and classification rules.
6. High-Stakes Facts and the Limits of Openness
A common mistake is to make established scientific facts sound uncertain in an effort to keep the conversation open. This is also a failure, just in the opposite direction.
Three principles help maintain the right boundary:
- Do not blur established scientific consensus. If a user introduces “the Earth is flat” into a philosophical discussion, the model can explore the belief’s history or psychological appeal without suggesting that it may be scientifically valid.
- Exploratory framing does not exempt factual claims from scrutiny. If a user presents an incorrect medication dose within a story, the model should identify the risk.
- State uncertainty where the evidence is uncertain. For disputed or insufficiently supported claims, explain the uncertainty or disagreement rather than presenting a single definitive answer.
These principles should be included in the system prompt’s boundary module and validated through testing.
7. Evaluate Both Unnecessary and Missed Corrections
Before deployment, test the strategy against three categories of input:
- Exploratory inputs that should receive an in-context response.
- Incorrect empirical claims that should be corrected.
- High-stakes inputs containing errors that must be corrected.
Evaluation should track two kinds of failure:
- False corrections: Unnecessary corrections of exploratory inputs, which damage the conversational experience.
- Missed corrections: Failures to identify errors that should have been corrected, which compromise factual accuracy.
def evaluate(cases: list[dict], model_fn, judge_fn) -> dict:"""Each case contains:input: The user's input.expected: "engage" for an in-context response, or "correct"when an error should be identified.judge_fn returns "corrected" or "engaged" to classify model behavior."""stats = {"total": len(cases), "false_correction": 0, "missed_correction": 0}for case in cases:reply = model_fn(case["input"])verdict = judge_fn(case, reply)if case["expected"] == "engage" and verdict == "corrected":stats["false_correction"] += 1if case["expected"] == "correct" and verdict == "engaged":stats["missed_correction"] += 1return stats
The judge_fn can use human annotations or assistance from another model. Model-assisted evaluation still requires sampled human review to detect bias in the evaluator.
Monitor both error types together. Reducing unnecessary corrections at the cost of more missed corrections is not an improvement.
8. Risks and Boundaries
Context-sensitive responses introduce two main risks.
The first is excessive accommodation. A model trying to follow the user’s reasoning may end up endorsing false claims. The boundary policy should explicitly state that engaging within a conversational frame does not mean accepting its contents as true.
The second is disguised intent. Users may package harmful requests as fiction, hypotheticals, or role-play to bypass safety restrictions. Safety assessment should operate independently of conversational framing. A request for actionable instructions to harm others should still be refused or redirected toward safe alternatives, even when presented as fiction.
9. Practical Checklist
- Record the utterance type and confidence for each input to support later review.
- Run high-stakes verification independently of utterance classification.
- Divide the system prompt into modules, each with its own test cases.
- Measure both false-correction and missed-correction rates before deployment, with acceptable limits for each.
- Review classification rules and thresholds monthly using sampled data.
- Preserve explicit uncertainty when discussing unresolved or disputed topics.
