Office Hours — We're using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare?
A daily developer question about AI/LLMs, answered with a direct, opinionated take.
We’re using LLMs to file insurance claims at scale in production. The model confidently makes mistakes and we have no visibility into failures until customers complain weeks later. How do I catch this before it becomes a liability nightmare?
This is a real production disaster in slow motion. You’re running an autonomous system making financial decisions with zero real-time feedback loop, which means your first signal of failure is an angry customer or a regulator. That’s not monitoring, that’s negligence.
The core problem isn’t the LLM. It’s that you’re treating a probabilistic system like it’s deterministic, and you’re not building visibility until after the damage is done. Here’s how to actually catch this.
Separate Signal Layers: Quality, Confidence, and External Verification
Don’t wait for customer complaints. Build three independent monitoring tiers running in parallel:
Tier 1: Self-consistency checks (immediate, cheap). Run the same claim through the model 3–5 times with slightly varied prompts. If the outputs diverge (different claim amounts, different coverage classifications, different required documents), flag it. The model’s uncertainty shows up here even when it outputs a confident answer. This costs ~3–5x the base inference but catches hallucinations before they hit the system.
Tier 2: Business rule validators (deterministic, fast). Before a claim processes, run it through hard rules: Does the claim amount fall within reasonable bounds for this claim type? Does the coverage category match what the policy actually covers? Are required fields populated? These aren’t smart, but they’re deterministic and catch obvious mistakes. If the LLM tries to approve a claim that violates your underwriting rules, reject it immediately and log it as a potential hallucination event.
Tier 3: Sampling-based human audits (expensive, essential). Randomly audit 2–5% of approved claims on a lag (24–48 hours after processing, before they’re sent to customers). If you process 1,000 claims/day, that’s 20–50 manual reviews. Have underwriters spot-check whether the LLM’s decision was actually correct. Track agreement rates. If agreement drops below 95%, stop processing and investigate. If you’re seeing patterns (e.g., always misclassifying motorcycle damage claims), retrain on that category or add it as a hard rule.
Implement a Confidence Score, Not Just a Binary Decision
Your LLM probably returns something like {"approved": true}. That’s useless for production. Restructure the prompt to output:
{
"approved": true,
"confidence": 0.87,
"reasoning": "...",
"uncertain_fields": ["vehicle_damage_category"],
"alternative_decision": "rejected"
}
Then route claims by confidence:
- Confidence > 0.95: auto-approve (but still audit sample).
- Confidence 0.75–0.95: auto-approve but flag for 24-hour post-audit review.
- Confidence < 0.75: human review required before processing.
You’re routing work, not trying to be perfect. This is the actual pattern that works at scale: the model does the easy 70%, humans handle the messy 30%, and you never discover failures weeks later.
Use Outcome Data as Your Ground Truth
After a claim is approved and processed, you get real data: Was the claim paid out? Did the customer dispute it? Did it trigger a fraud review? Wire this back as feedback. Weekly, run a report:
- What % of claims flagged as low-confidence were eventually correct?
- What % of high-confidence claims were later disputed or denied?
- Which claim categories have the highest reversal rate?
If your model is drifting (maybe it was trained on historical data that no longer reflects current policy), this shows up in reversal rates before customers complain. If reversals spike for motorcycle claims, you know there’s a problem class and can add training data or harden the rules.
Architecture: Where Do You Actually Catch This?
Deploy a lightweight webhook observer that sits between your LLM API and the approval system:
def approve_claim(claim_data):
llm_decision = call_llm(claim_data)
# Tier 1: Self-consistency
if not passes_consistency_check(claim_data, llm_decision):
log_anomaly("consistency_mismatch", claim_data, llm_decision)
escalate_to_human()
return
# Tier 2: Business rules
if not passes_underwriting_rules(llm_decision):
log_anomaly("rule_violation", claim_data, llm_decision)
escalate_to_human()
return
# Tier 3: Confidence routing
if llm_decision["confidence"] < 0.75:
escalate_to_human()
return
if llm_decision["confidence"] < 0.95:
# Auto-approve but add to audit queue
approve_and_flag_for_review(claim_data, llm_decision)
return
# High confidence: approve but sample audit
approve_claim_internal(claim_data, llm_decision)
add_to_audit_sample(claim_data, llm_decision)
This is not complex. It’s basic defensive programming applied to LLM outputs.
The Liability Question
If you’re processing claims at scale and a customer gets denied unfairly because the model hallucinated a coverage exclusion that doesn’t exist in their policy, you have a liability problem. The model’s confidence is irrelevant—what matters is whether your decision was correct.
Your audit process needs to be defensible. Document that you’re reviewing X% of claims, tracking agreement rates, and have a clear escalation path when confidence is low. If a dispute happens later, you need logs showing:
- When the claim was processed
- What the model decided and why
- What confidence it had
- Whether it was audited and by whom
- What the auditor concluded
If you can’t produce this audit trail, you’re running an unmonitored black box. That’s not negligence—it’s willful blindness.
Bottom line: Stop pretending the model’s binary output is ground truth. Implement self-consistency checks, deterministic business rule validators, confidence-based routing, and sampling-based human audits. Wire outcome data back as feedback to catch model drift. Without this architecture, you’re guaranteed to discover failures the hard way—through customer complaints and regulatory scrutiny.