Inferensys

Glossary

Factual Entailment Ratio

The calculated probability that a cited source document logically supports or entails a specific claim made in AI-generated text, determined through natural language inference.
Developer testing AI inference on mobile phone in hand, laptop with optimization code visible, casual tech review moment.
DEFINITION

What is Factual Entailment Ratio?

The Factual Entailment Ratio is a calculated probability that a cited source document logically supports a specific claim in AI-generated text, determined through natural language inference.

The Factual Entailment Ratio quantifies the logical support a source provides for a claim using natural language inference (NLI). It measures the probability that a hypothesis (the AI's claim) is true given a premise (the cited text), moving beyond keyword matching to assess genuine semantic understanding and logical consequence.

A high ratio confirms that a source text strictly entails the claim, while a low score flags potential hallucinations or misrepresentations. This metric is a core component of Citation Integrity Scoring, enabling automated systems to validate evidence chain integrity and ensure that generated text is grounded in authoritative, verifiable data.

NATURAL LANGUAGE INFERENCE

Key Characteristics of Factual Entailment Ratio

The Factual Entailment Ratio (FER) is a critical metric in Citation Integrity Scoring, quantifying the logical support a source provides for a claim. It moves beyond simple keyword matching to assess directional reasoning.

01

The Core NLI Mechanism

FER is computed using a Natural Language Inference (NLI) model. This model classifies the relationship between a premise (the source text) and a hypothesis (the AI's claim) into three categories: entailment, contradiction, or neutral. The ratio is calculated as the probability mass assigned to the entailment class.

  • Entailment: The source text logically implies the claim is true.
  • Contradiction: The source text logically implies the claim is false.
  • Neutral: The source text provides no information to determine the claim's truth.
P(entailment)
Core Calculation
02

Multi-Fact Decomposition

A single AI-generated sentence often contains multiple atomic facts. A robust FER system first performs claim decomposition to break down complex statements into individual verifiable units. Each atomic claim is then independently scored against the cited source.

  • Atomic Claim: "Acme Corp was founded in 2010 by Jane Doe."
  • Decomposes to: ["Acme Corp was founded in 2010", "Acme Corp was founded by Jane Doe"]
  • Result: An aggregate FER is calculated as the harmonic mean of all atomic claim scores, preventing a single verified fact from masking an unsupported one.
03

Directional Reasoning & Paraphrase

FER is robust to lexical variation. It does not require exact keyword overlap. The underlying NLI model is trained to recognize directional logical relationships and paraphrastic entailment.

  • Example: A source stating "The patient presented with a pyrexia of 102°F" entails the claim "The patient had a high fever."
  • Contrapositive: A source stating "All access was granted after 9 AM" contradicts the claim "User X accessed the system at 8:55 AM."
  • This capability is essential for validating AI summaries that naturally rephrase source material.
04

Granularity & Evidence Span

The precision of FER is directly tied to the granularity of the evidence span. Scoring an entire document against a single claim introduces noise. High-integrity systems use a passage retrieval step before NLI.

  • Document-Level FER: Low accuracy, high recall. Prone to false positives.
  • Passage-Level FER: The standard approach. A retrieval model first identifies the most relevant 3-5 sentences from the source.
  • Sentence-Level FER: The highest precision. The claim is scored only against the single most relevant sentence, providing a definitive alignment signal.
05

Thresholds & Decision Logic

A raw probability is converted into a binary or categorical decision using calibrated thresholds. These thresholds are tuned based on the risk tolerance of the application.

  • High-Recall Threshold (e.g., >0.5): Flags any claim with a majority entailment probability as "Supported." Used for initial filtering.
  • High-Precision Threshold (e.g., >0.9): Only claims with a very high probability are marked "Verified." Used for final output in regulated industries.
  • Contradiction Flag (<0.1): A very low entailment score, combined with a high contradiction score, actively marks a claim as "Refuted" by the source, a critical signal for hallucination detection.
06

Relationship to Hallucination Risk

FER is a direct, post-hoc measurement of extrinsic hallucination. While a Hallucination Risk Index predicts the likelihood of error before generation, FER measures the actual factual grounding after generation.

  • Low FER + High Confidence: A classic signature of a hallucination where the model is confidently wrong.
  • High FER: Provides a verifiable anchor, serving as a positive signal for the Verifiable Claim Ratio.
  • FER Trend Analysis: Tracking FER over time for a specific model or pipeline provides an empirical measure of grounding degradation or improvement.
FACTUAL ENTAILMENT RATIO

Frequently Asked Questions

Explore the core concepts behind Factual Entailment Ratio, the algorithmic probability that a cited source logically supports a specific claim in AI-generated text, determined through Natural Language Inference.

The Factual Entailment Ratio (FER) is the calculated probability that a cited source document logically supports or entails a specific claim made in AI-generated text. It works by employing Natural Language Inference (NLI) models to analyze the semantic relationship between a premise (the source text) and a hypothesis (the AI's claim). The system classifies this relationship as entailment, contradiction, or neutral. The FER is then computed as the ratio of entailed claims to the total number of verifiable claims in a generated output, providing a quantitative measure of an AI's grounding accuracy. This metric is critical for detecting hallucinations and ensuring citation integrity in systems like Retrieval-Augmented Generation (RAG).

COMPARATIVE ANALYSIS

Factual Entailment Ratio vs. Related Metrics

Distinguishing Factual Entailment Ratio from other citation and factual accuracy metrics based on core mechanism, primary focus, and output type.

MetricFactual Entailment RatioClaim-Source Alignment ScoreHallucination Risk Index

Core Mechanism

Natural Language Inference (NLI)

Semantic Similarity & Vector Embedding

Model Uncertainty & Citation Absence

Primary Focus

Logical support for a claim

Topical relevance of a source

Probability of factual error

Output Type

Probability (0.0 - 1.0)

Composite Score (0-100)

Risk Score (0.0 - 1.0)

Evaluates Source Quality

Requires Source Text

Detects Contradiction

Detects Neutral Stance

Primary Use Case

Verifying evidential support

Measuring topical fit

Pre-generation risk assessment

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.