Inferensys

Glossary

Fidelity-Evaluated Student

A student model whose quality is measured by its fidelity—the degree to which its predictions match those of the teacher model on unseen data, rather than solely by accuracy on ground-truth labels.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DEFINITION

What is Fidelity-Evaluated Student?

A fidelity-evaluated student is a distilled model whose quality is measured by its fidelity—the degree to which its predictions match those of the teacher model on unseen data, rather than solely by accuracy on ground-truth labels.

A fidelity-evaluated student is a surrogate model assessed primarily on its ability to replicate the output distribution of a complex teacher model, not just its accuracy against the original training labels. This evaluation metric, known as fidelity, quantifies the agreement rate between the teacher and student on a held-out dataset, capturing how faithfully the interpretable model mimics the black-box decision boundary.

High fidelity indicates the student has successfully captured the teacher's dark knowledge and generalization patterns, making it a trustworthy proxy for explanation. This framework is critical in model distillation for interpretability, where a transparent-by-design student must serve as an auditable stand-in for an opaque neural network in regulated decision systems.

FIDELITY METRICS

Core Characteristics of Fidelity Evaluation

Fidelity is the primary quality metric for a student model in a distillation-for-interpretability pipeline, measuring how faithfully the transparent model replicates the opaque teacher's decision logic rather than its accuracy against ground truth.

01

Definition of Fidelity

Fidelity quantifies the agreement rate between a teacher model's predictions and a student model's predictions on unseen data. Unlike standard accuracy, which measures performance against ground-truth labels, fidelity measures how well the student mimics the teacher's learned function. A high-fidelity student captures the teacher's decision boundaries, including its systematic errors and biases, making it a faithful surrogate for explanation purposes.

≥ 95%
Target Fidelity Threshold
02

Fidelity vs. Accuracy

These two metrics serve fundamentally different purposes in the distillation pipeline:

  • Accuracy: Measures student predictions against ground-truth labels. A student can be highly accurate but low-fidelity if it solves the problem differently than the teacher.
  • Fidelity: Measures student predictions against teacher predictions. High fidelity is essential when the goal is explanation, not deployment.
  • Tradeoff: Maximizing fidelity often requires the student to replicate teacher errors, which can reduce ground-truth accuracy.
03

Measuring Fidelity

Fidelity is computed by passing a held-out dataset through both models and comparing outputs:

  • Classification: Simple agreement rate — the percentage of instances where student and teacher predict the same class.
  • Regression: Correlation coefficient or R² score between teacher and student continuous outputs.
  • Soft Fidelity: Kullback-Leibler divergence between the full probability distributions, capturing how well the student replicates the teacher's confidence across all classes, not just the top prediction.
KL Divergence
Soft Fidelity Metric
04

Local vs. Global Fidelity

Fidelity can be evaluated at different scopes depending on the explanation use case:

  • Global Fidelity: Measures how well the student approximates the teacher across the entire input space. Essential for understanding overall model behavior and extracting global rules.
  • Local Fidelity: Measures approximation quality in the neighborhood of a specific instance. Critical for explaining individual predictions, where the student must faithfully replicate the teacher's local decision boundary.
  • A student may exhibit high global fidelity but poor local fidelity in sparse regions of the feature space.
05

Fidelity Evaluation Protocol

A rigorous fidelity evaluation follows a structured protocol:

  • Hold-out Set: Fidelity must be measured on data never seen by either model during training to avoid overfitting.
  • Statistical Significance: Use confidence intervals or bootstrap resampling to ensure fidelity estimates are reliable.
  • Subgroup Analysis: Disaggregate fidelity across data slices to detect systematic failures in specific demographic or operational segments.
  • Adversarial Testing: Probe the student with inputs near the teacher's decision boundary to stress-test local fidelity.
06

Fidelity Failure Modes

Common scenarios where fidelity breaks down:

  • Capacity Mismatch: The student's architecture is too simple to capture the teacher's complex, non-linear decision boundaries.
  • Distribution Shift: The student is evaluated on data from a different distribution than the teacher was trained on, causing divergent behavior.
  • Soft Target Collapse: The student overfits to the teacher's hard predictions rather than learning from the rich soft probability distributions.
  • Feature Access Asymmetry: The interpretable student may lack access to complex engineered features the teacher relies on, creating an inherent fidelity ceiling.
EVALUATION METRICS COMPARISON

Fidelity vs. Accuracy in Student Evaluation

A comparison of fidelity and accuracy as evaluation metrics for student models in knowledge distillation, highlighting their definitions, optimization targets, and use cases.

FeatureFidelityAccuracyCombined Distillation Loss

Definition

Degree to which student predictions match teacher predictions on unseen data

Degree to which student predictions match ground-truth labels

Weighted sum of fidelity and accuracy objectives

Primary Optimization Target

Teacher model's soft targets

Ground-truth hard labels

Both teacher soft targets and ground-truth labels

Typical Loss Function

Kullback-Leibler Divergence

Cross-Entropy Loss

α * KL Divergence + (1-α) * Cross-Entropy

Captures Dark Knowledge

Sensitive to Teacher Errors

Evaluates Generalization to Labels

Requires Ground-Truth Labels

Primary Use Case

Assessing how well the student replicates the teacher's decision boundary and internal representations

Measuring predictive performance on the original task

Training student models that balance mimicry with task performance

FIDELITY & EVALUATION

Frequently Asked Questions

Core questions about measuring and validating the trustworthiness of student models trained to explain complex black-box systems.

A fidelity-evaluated student is an interpretable surrogate model whose quality is measured primarily by its fidelity—the degree to which its predictions match those of the original black-box teacher model on unseen data—rather than by its accuracy against ground-truth labels. The process works by first training a complex teacher model to high accuracy, then training a transparent student model (such as a decision tree or generalized additive model) to mimic the teacher's output distribution. The student is then evaluated on a held-out set where fidelity is computed as the agreement rate between teacher and student predictions. This metric captures how faithfully the explanation model reproduces the teacher's decision logic, even when that logic deviates from the true labels. High fidelity indicates the student is a trustworthy proxy for understanding the teacher's behavior, while low fidelity signals that the explanation may be misleading.

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.