ENTUM-AI/FactGuard
017
๐ก๏ธ 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
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
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
