Skip to main content
Ground Truth Adherence is a boolean metric that indicates whether the response is equivalent to the Ground Truth. This metric helps evaluate how closely your model’s outputs match expected or ideal response content, which is particularly valuable for:
  • Evaluating model performance against a benchmark dataset
  • Ensuring consistency in critical applications
  • Measuring the impact of model or prompt changes
This metric is only supported in experiments, and requires a Ground Truth to be set in the output column of your experiment’s dataset.

Calculation method

Ground Truth Adherence is computed through a multi-step process:
1

Model Request

Additional evaluation requests are sent to OpenAI’s GPT4o model to analyze the semantic relationship between responses.
2

Prompt Engineering

A carefully engineered chain-of-thought prompt asks the model to evaluate whether the response and Ground Truth convey the same meaning and preserve relevant attributes.
3

Multiple Evaluations

The system requests multiple distinct responses to this prompt to ensure robust evaluation through consensus.
4

Result Analysis

Each evaluation generates both an explanation of the reasoning and a binary judgment (yes/no) on semantic equivalence.
5

Result

The evaluator returns true when the response is equivalent to the Ground Truth and false otherwise.
We also surface one of the generated explanations, always choosing one that aligns with the majority judgment among the responses.
This metric is computed by prompting an LLM multiple times, and thus requires additional LLM calls to compute, which may impact usage and billing.

Understanding ground truth adherence

Differentiating from Other Metrics

It’s important to understand how Ground Truth Adherence differs from related metrics:
Ground Truth Adherence: Measures equivalence to expected response, including relevant attributes.
Correctness: Measures factual accuracy regardless of any input context/expected response.
Context Adherence: Measures alignment with provided input context, not an expected response.

Optimizing your AI system

Addressing Low Ground Truth Adherence

When responses have low Ground Truth Adherence scores, your model is generating outputs that differ from your expected responses in meaning or relevant attributes. To improve your system:
Analyze divergence patterns: Identify common ways in which responses differ from ground truth.
Refine your prompts: Adjust instructions to guide the model toward your expected output format and content.
Consider few-shot examples: Provide examples in your prompt that demonstrate the desired response pattern.
Evaluate ground truth quality: Ensure your reference content is clear, consistent, and representative of ideal responses.

Best practices

Maintain Diverse Ground Truths

Create a varied set of reference content that covers different response styles and edge cases.

Set Clear Evaluation Criteria

Define what constitutes semantic equivalence for your specific use case and domain.

Monitor Across Model Versions

Track Ground Truth Adherence when upgrading models to ensure consistent performance.

Balance with Other Metrics

Use Ground Truth Adherence alongside metrics like Correctness and Instruction Adherence for a complete evaluation.
When optimizing for Ground Truth Adherence, remember that there may be multiple valid ways to represent the same content. Consider whether strict adherence to specific wording or attributes is necessary for your use case.

Performance Benchmarks

We evaluated Ground Truth Adherence against human expert labels on an internal dataset using top frontier models.

GPT-4.1 Classification Report

Benchmarks based on internal evaluation dataset. Performance may vary by use case.
If you would like to dive deeper or start implementing Ground Truth Adherence, check out the following resources: