CoolFace
Modelpublic

ENTUM-AI/FactGuard

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes17downloads
Model Card

๐Ÿ›ก๏ธ FactGuard

Lightweight hallucination and grounding detection model. Checks whether a claim is supported by the given context.

Built on ModernBERT-base (149M params), fine-tuned on 1M+ NLI pairs from SNLI, MultiNLI, and ANLI.

Classes: Supported, Not Supported

๐Ÿš€ Usage

python
from transformers import pipeline

classifier = pipeline("text-classification", model="ENTUM-AI/FactGuard")

result = classifier({
    "text": "Apple reported revenue of $94.8 billion in Q1 2024.",
    "text_pair": "Apple's Q1 2024 revenue was $94.8 billion."
})
# [{'label': 'Supported', 'score': 0.99}]

result = classifier({
    "text": "Apple reported revenue of $94.8 billion in Q1 2024.",
    "text_pair": "Apple's revenue exceeded $100 billion."
})
# [{'label': 'Not Supported', 'score': 0.97}]

๐Ÿ“Š Training Data

DatasetSamples
stanfordnlp/snli~550K
nyu-mll/multi_nli~393K
anli~163K

1M+ NLI pairs mapped to binary grounding labels.

๐Ÿ” Use Cases

  • โ€”RAG pipelines โ€” verify LLM responses against source documents
  • โ€”Fact-checking โ€” detect unsupported claims in generated text
  • โ€”Content moderation โ€” flag hallucinated content before publishing

โš ๏ธ Limitations

  • โ€”English only
  • โ€”Designed for single claim verification against a given context
ENTUM-AI/FactGuard ยท CoolFace