BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//pretalx//pretalx.com//pycones-2026//speaker//GWRKY3
BEGIN:VTIMEZONE
TZID:Europe/Madrid
BEGIN:STANDARD
DTSTART:20251106T000000
TZNAME:CET
TZOFFSETFROM:+0100
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20260329T030000
RDATE:20270328T030000
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:20261025T030000
RDATE:20271031T030000
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
SUMMARY:Detecting LLM Hallucinations with Uncertainty Fingerprinting: A Py
 thon Implementation - Anuradha KAR\, Shafiya Kausar
DTSTART;TZID=Europe/Madrid:20261106T160000
DTEND;TZID=Europe/Madrid:20261106T173000
DTSTAMP:20261113T205312Z
UID:pretalx-pycones-2026-7UBKUN@pretalx.com
DESCRIPTION:Large Language Models are confidently wrong more often than mo
 st users realize\, and the problem is worse than previously understood. In
  this workshop\, we build a hallucination detection system in Python that 
 combines four uncertainty signals — self-consistency\, semantic entropy
 \, logit calibration\, and NLI-based contradiction checking — and introd
 uces "uncertainty fingerprinting\," a novel method that classifies halluci
 nations into distinct types based on their signal pattern.\n\nWe go beyond
  single-model\, single-dataset evaluation. Testing across three models (Mi
 stral-7B\, Qwen2-7B\, Qwen2-1.5B) reveals that smaller models produce 6x m
 ore "confident fabrications" — the most dangerous hallucination type whe
 re every detector says the answer looks fine but it is wrong. Testing acro
 ss four datasets (TriviaQA\, NaturalQuestions\, HotpotQA\, MedQA) reveals 
 that on medical questions\, the model is wrong 91.5% of the time yet never
  admits uncertainty — producing zero knowledge gaps and 47.5% confident 
 fabrications.\n\nOur fingerprint-aware adaptive policy improves accuracy f
 rom 76.5% to 93.9% on TriviaQA while maintaining 81.5% coverage. A cascadi
 ng uncertainty approach reduces latency from 63 seconds to 19 seconds per 
 question\, making real-time deployment feasible. Attendees will leave with
  working Python code using PyTorch\, HuggingFace Transformers\, and Gradio
 \, plus a live demo they can try at huggingface.co/spaces/Shafiya1234/meta
 cognitive-uncertainty-layer.\n\nNo prior experience with hallucination det
 ection is required. Familiarity with Python and basic ML concepts is suffi
 cient.
LOCATION:Room 4.1
URL:https://pretalx.com/pycones-2026/talk/7UBKUN/
END:VEVENT
END:VCALENDAR
