[Paper Review] Estimating Example Difficulty Using Variance of Gradients
This paper introduces Variance of Gradients (VoG), a computationally efficient, model-agnostic method that ranks data examples by difficulty using the variance of gradients during training. VoG identifies hard examples—such as those with cluttered backgrounds, atypical viewpoints, or memorized features—and improves model generalization when used to filter low-VoG test samples, while also outperforming 9 OoD detection methods with a 9.26% precision gain.
In machine learning, a question of great interest is understanding what examples are challenging for a model to classify. Identifying atypical examples ensures the safe deployment of models, isolates samples that require further human inspection and provides interpretability into model behavior. In this work, we propose Variance of Gradients (VoG) as a valuable and efficient metric to rank data by difficulty and to surface a tractable subset of the most challenging examples for human-in-the-loop auditing. We show that data points with high VoG scores are far more difficult for the model to learn and over-index on corrupted or memorized examples. Further, restricting the evaluation to the test set instances with the lowest VoG improves the model's generalization performance. Finally, we show that VoG is a valuable and efficient ranking for out-of-distribution detection.
Motivation & Objective
- To develop an efficient, scalable method for identifying the most challenging examples in large-scale datasets for human-in-the-loop auditing.
- To enable interpretability by surfacing data points that are difficult for models to classify, especially those with atypical visual properties or corrupted features.
- To improve model generalization by filtering out high-VoG examples during evaluation.
- To evaluate VoG as an unsupervised, domain-agnostic method for out-of-distribution (OoD) detection without requiring auxiliary models or labeled data.
Proposed method
- VoG computes the variance of gradients across multiple training checkpoints for each data sample, measuring how much gradient updates fluctuate over time.
- The method normalizes this variance per class to enable fair comparison across different classes.
- High VoG scores indicate examples that consistently influence training with unstable gradient signals, signaling difficulty.
- VoG is computed using only standard backpropagated gradients from existing model checkpoints, requiring no additional training or model modifications.
- For OoD detection, VoG scores are inverted and used to rank out-of-distribution samples, treating them as positive class in AUPR and AUROC evaluation.
- The approach is applied across ResNet-50 and Wide ResNet-28-10 on CIFAR-10, CIFAR-100, and ImageNet, with ablation on training dynamics and data corruption.

Experimental results
Research questions
- RQ1Can gradient variance over training time effectively rank data examples by difficulty in a scalable and model-agnostic way?
- RQ2Do high-VoG examples correspond to visually complex, corrupted, or memorized samples that are harder for models to learn?
- RQ3Can filtering test examples by low VoG improve model generalization performance?
- RQ4How does VoG compare to existing state-of-the-art methods in out-of-distribution detection?
- RQ5Does VoG reveal meaningful patterns in model learning dynamics across training stages?
Key findings
- VoG scores effectively identify hard examples, with high-VoG images over-indexing on cluttered backgrounds and atypical object viewpoints.
- Images with high VoG scores are more likely to be corrupted or memorized, as confirmed by evaluation on corrupted datasets like MNIST-C.
- Restricting evaluation to the lowest VoG test examples improves model generalization, demonstrating VoG's utility in filtering out hard cases.
- VoG outperforms 9 existing OoD detection methods on MNIST-C, achieving an AUROC of 85.42 ± 10.28 and AUPR (Out) of 84.96 ± 9.61, with a 9.26% precision improvement over all baselines.
- VoG is more scalable than methods like AE and AEGAN, which require complex training of auxiliary models and do not scale to large datasets like ImageNet.
- VoG reveals color bias in early training and captures learning dynamics, with low-VoG images showing prototypical views and clean backgrounds in later stages.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.