Grounded BERTScore is a specialized faithfulness metric that extends the standard BERTScore by computing token-level similarity exclusively between a generated hypothesis and its provided source context. Unlike the original metric, which compares generated text to a human-written reference, this variant measures alignment with retrieved evidence to detect hallucinations. It operates by calculating the maximum cosine similarity between each generated token embedding and all token embeddings in the source document, then penalizing tokens whose similarity falls below a defined threshold, indicating a lack of contextual support.
Glossary
Grounded BERTScore

What is Grounded BERTScore?
Grounded BERTScore is an adaptation of the BERTScore evaluation metric that computes semantic similarity specifically between a generated text and its source evidence, penalizing tokens that lack contextual support.
The metric serves as a critical component in hallucination mitigation pipelines by providing a continuous, interpretable score that correlates with human judgments of factual consistency. By isolating unsupported spans, Grounded BERTScore enables automated groundedness checks and integrates directly into evaluation frameworks for Retrieval-Augmented Generation (RAG) systems. Its reliance on contextual embeddings from models like BERT allows it to capture paraphrased support, distinguishing it from rigid n-gram overlap methods while maintaining computational efficiency for large-scale factual consistency check operations.
Key Features of Grounded BERTScore
Grounded BERTScore extends the standard BERTScore metric to specifically measure semantic similarity between generated text and its source evidence, penalizing unsupported tokens to quantify factual grounding.
Context-Aware Token Alignment
Unlike standard BERTScore which compares generated text to a reference, Grounded BERTScore computes cosine similarity between each generated token and its most similar token in the source evidence document. This alignment identifies which generated tokens have contextual support and which are hallucinated.
- Uses contextual embeddings from models like BERT or RoBERTa
- Computes pairwise similarity between generated and source token representations
- Produces a token-level grounding map showing supported vs. unsupported spans
Precision, Recall, and F1 Grounding Scores
Grounded BERTScore decomposes factual grounding into three interpretable metrics:
- Grounded Precision: The fraction of generated tokens that have a sufficiently similar match in the source evidence, penalizing hallucinated content
- Grounded Recall: The fraction of source evidence tokens captured in the generated text, measuring completeness of evidence usage
- Grounded F1: The harmonic mean of precision and recall, providing a single balanced grounding score
A low precision score directly indicates unsupported generation, while low recall signals incomplete evidence coverage.
Similarity Threshold Gating
A critical hyperparameter in Grounded BERTScore is the similarity threshold that determines whether a token pair is considered grounded. Tokens with maximum cosine similarity below this threshold are flagged as unsupported.
- Typical thresholds range from 0.5 to 0.7 depending on domain specificity
- Higher thresholds enforce stricter grounding requirements
- Threshold tuning allows adaptation to different factual precision needs, from creative summarization to strict regulatory compliance
Hallucination Detection at Token Granularity
Grounded BERTScore enables fine-grained hallucination detection by identifying exactly which tokens in a generated sequence lack evidential support. This token-level attribution is more actionable than sentence-level or passage-level hallucination flags.
- Produces a binary grounding mask over the generated sequence
- Enables precise localization of factual errors for downstream correction
- Integrates with attribution-aware chunking pipelines to map unsupported tokens back to source gaps
Integration with RAG Evaluation Pipelines
Grounded BERTScore serves as a core faithfulness metric in RAG evaluation frameworks, complementing retrieval metrics like NDCG and generation metrics like BLEU. It specifically answers: 'Is the generated text actually supported by what was retrieved?'
- Used alongside Natural Language Inference (NLI) models for multi-faceted factual verification
- Provides a continuous score suitable for automated regression testing in CI/CD pipelines
- Enables systematic comparison of different retrieval and generation configurations on factual consistency
Limitations and Edge Cases
Grounded BERTScore has known failure modes that practitioners must account for:
- Semantic drift: Tokens may have high cosine similarity but different meanings in context, producing false positives
- Paraphrase penalty: Legitimate paraphrasing of source material may fall below the similarity threshold, producing false negatives
- Embedding model sensitivity: Scores vary significantly based on the underlying embedding model's domain training
- Does not detect logical contradictions where generated text is semantically similar to source but asserts opposite claims
Frequently Asked Questions
Explore the mechanics and applications of Grounded BERTScore, the metric that verifies if generated text is semantically supported by its source evidence.
Grounded BERTScore is an adaptation of the standard BERTScore evaluation metric that computes semantic similarity specifically between a generated text and its source evidence, penalizing tokens that lack contextual support. Unlike standard BERTScore, which compares a candidate text to a single human-written reference, Grounded BERTScore uses the provided source context as the reference. It calculates token-level cosine similarity between the contextual embeddings of the generated text and the source document. The key mechanism is a grounding penalty: if a generated token has a maximum similarity score below a defined threshold with any token in the source, it is flagged as 'ungrounded' and its contribution to the final score is reduced or zeroed out. This provides a direct, quantitative measure of factual consistency.
Grounded BERTScore vs. Other Faithfulness Metrics
A technical comparison of Grounded BERTScore against common faithfulness evaluation metrics, highlighting their mechanisms, granularity, and reliance on source evidence.
| Feature | Grounded BERTScore | Standard BERTScore | NLI-Based Factual Consistency | Token-Level Groundedness Check |
|---|---|---|---|---|
Core Mechanism | Context-conditioned semantic similarity | Reference-based semantic similarity | Premise-hypothesis entailment classification | Binary support verification per atomic claim |
Requires Gold Reference | ||||
Granularity of Evaluation | Token-level | Token-level | Sentence or claim-level | Claim-level |
Penalizes Unsupported Tokens | ||||
Captures Semantic Equivalence | ||||
Typical Score Range | 0.0 to 1.0 | 0.0 to 1.0 | Entailment/Neutral/Contradiction | Supported/Unsupported ratio |
Computational Cost | Moderate | Moderate | High | High |
Primary Use Case | Source-grounded generation evaluation | Translation and summarization quality | Hallucination detection in summaries | Strict factual verification |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explore the core mechanisms that work alongside Grounded BERTScore to ensure generated text is verifiable, attributable, and factually consistent with source evidence.
Faithfulness Metric
A quantitative evaluation score measuring the degree to which a generated statement is logically entailed by the provided source context. Unlike Grounded BERTScore, which computes token-level semantic similarity, faithfulness metrics often leverage Natural Language Inference (NLI) models to detect contradictions.
- Entailment: The hypothesis is fully supported by the premise.
- Contradiction: The hypothesis is refuted by the premise.
- Neutral: The hypothesis cannot be determined from the premise.
This metric is critical for hallucination detection in summarization and RAG pipelines, ensuring outputs don't introduce unsupported facts.
Citation Attribution
The process of identifying and linking specific spans of generated text to the exact source documents or data records that support them. While Grounded BERTScore evaluates if a statement is supported, citation attribution pinpoints where the support originates.
- Inline Citation: Direct reference markers inserted into the text span.
- Post-hoc Attribution: Linking claims to sources after generation.
- Attribution-Aware Chunking: Preserving source metadata during document preprocessing.
This mechanism enables verifiable output, allowing users and auditors to trace every claim back to its origin.
Grounded Decoding
A constrained text generation strategy that manipulates token probabilities during inference to favor words and phrases explicitly supported by a provided evidence document. Unlike Grounded BERTScore, which is a post-hoc evaluation metric, grounded decoding is a proactive intervention during the generation process.
- Logit Manipulation: Boosting probabilities of tokens present in the source context.
- Constrained Beam Search: Pruning generation paths that diverge from evidence.
- Context-Aware Sampling: Penalizing hallucinations at the token level.
This technique directly reduces factual errors before they appear in the output.
Factual Consistency Check
An automated evaluation step that compares a generated summary or answer against its source material to identify contradictions, hallucinations, and unsupported inferences. Grounded BERTScore serves as one component within a broader consistency checking pipeline.
- Atomic Fact Decomposition: Breaking text into individual verifiable claims.
- Cross-Source Verification: Requiring multiple independent documents to corroborate a fact.
- Temporal Grounding: Anchoring information to a specific time range to prevent outdated facts.
This multi-layered approach ensures robust hallucination mitigation beyond simple semantic similarity.
Natural Language Inference (NLI)
A foundational NLP task where a model determines the directional logical relationship between a premise (source text) and a hypothesis (generated claim). NLI models are often used as the backbone for faithfulness metrics and groundedness checks.
- Entailment: The premise logically implies the hypothesis.
- Contradiction: The premise logically negates the hypothesis.
- Neutral: No logical relationship exists.
Grounded BERTScore differs by computing continuous semantic similarity rather than discrete logical relationships, making it more sensitive to partial support but less interpretable for strict fact-checking.
Knowledge Graph Grounding
The process of validating generated factual statements by querying a structured knowledge graph to confirm the existence and correctness of subject-predicate-object triples. This provides deterministic, symbolic verification that complements the soft, distributional similarity measured by Grounded BERTScore.
- Entity Disambiguation: Resolving textual mentions to unique knowledge base identities.
- Triple Verification: Checking if a claimed relationship exists in the graph.
- Ontology Alignment: Mapping generated concepts to formal graph schemas.
This hybrid approach combines neural semantic matching with symbolic precision for high-stakes applications.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us