AI & ML interests

Explainable AI, Rule-based models, Rule learning with LLMs, Hallucination detection, Fact checking LLMs

Recent Activity

adaamko  updated a dataset about 12 hours ago
KRLabsOrg/lettucedetect-code-hallucination
adaamko  updated a collection 3 days ago
LettuceDetect v2
adaamko  updated a model 4 days ago
KRLabsOrg/lettucedect-v2-qwen-2b
View all activity

adaamko 
posted an update 1 day ago
view post
Post
88
🥬 LettuceDetect v2 — span-level hallucination detection for code, tool output, and structured documents.

Hallucination detectors are trained on document QA, but agents ground their answers in source code, tool output and markdown. On code-agent answers, existing detectors reach 0.17 span-F1 and even 550B zero-shot judges at most 0.22.

We built a unified span-level benchmark — 74,285 newly constructed examples (145K+ with RAGTruth and 14-language PsiloQA folded in), every span typed and character-labeled — and trained two detectors on it:

🤖 KRLabsOrg/lettucedect-v2-qwen-2b — generative, typed spans + explanations in one pass, 32K context, **0.689 span-F1** (0.60 on code-agent)
KRLabsOrg/lettucedect-v2-mmbert-base — 307M multilingual encoder for high-throughput setups
🏷️ KRLabsOrg/lettucedect-v2-taxonomy-head — types the spans of any binary detector

It also reaches the best reported English PsiloQA IoU (0.724) and 81.8 RAGTruth example-F1, so specializing on code didn't cost general RAG performance.

📚 Dataset: KRLabsOrg/lettucedetect-code-hallucination
📄 Paper: https://arxiv.org/abs/2607.00895

The models are now integrated natively into vLLM Semantic Router — joint blog post on how it works: https://vllm-sr.ai/blog/lettucedetect-v2-generative-hallucination-detection
  • 3 replies
·