CoolFace
Modelpublic

anulum/director-ragtruth-token-modernbert

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes11downloads
Model Card

Director-AI RAGTruth token detector (ModernBERT)

A token classifier that flags hallucinated spans in a RAG response. It reads [context] [SEP] [response] and labels each response token supported or hallucinated, then a response is flagged when it contains a hallucinated span. Response/claim-level NLI grounding cannot isolate the short "baseless addition" spans that dominate RAGTruth; a token classifier learns them directly.

Results (RAGTruth test, 2700 examples: 943 hallucinated / 1757 grounded)

approachexample F1balanced accFPRprecision
NLI / claim-decompose0.366—0.347—
this model0.7630.8140.0710.841

Operating point: token probability >= 0.95, at least one hallucinated token. Trained on the RAGTruth train split (15090 examples); context truncated to 1024 tokens during training.

Usage

python
from transformers import AutoModelForTokenClassification, AutoTokenizer
tok = AutoTokenizer.from_pretrained("anulum/director-ragtruth-token-modernbert")
model = AutoModelForTokenClassification.from_pretrained(
    "anulum/director-ragtruth-token-modernbert")
# index 1 = hallucinated