Related Experiment Video
Updated: Jan 16, 2026

Author Spotlight: Efficient Image Recognition Using Directional Gradient Histogram Technique and Support Vector Machines
Published on: January 5, 2024
Towards out-of-distribution detection using gradient vectors
Thiago Carvalho1, Marley Vellasco2, José Franco Amaral3
1Department of Electrical Engineering - Pontifical Catholic University of Rio de Janeiro, R. Marques de Sao Vincente 124, Rio de Janeiro, 22451-040, Rio de Janeiro, Brazil; Department of Systems and Computing Engineering - Rio de Janeiro State University, R. S. Francisco Xavier 524, Rio de Janeiro, 20950-000, Rio de Janeiro, Brazil.
None:
Deploying Deep Learning algorithms in the real world requires some care that is generally not considered in the training procedure. In real-world scenarios, where the input data cannot be controlled, it is important for a model to identify when a sample does not belong to any known class. This is accomplished using out-of-distribution (OOD) detection, a technique designed to distinguish unknown samples from those that belong to the in-distribution classes. These methods mainly rely on output or intermediate features to calculate OOD scores, but the gradient space is still under-explored for this task. In this work, we propose a new family of methods using gradient features, named GradVec, using the gradient space as input representation for different OOD detection methods. The main idea is that the model gradient presents, in a more informative way, the knowledge that a sample belongs to a known class, being able to distinguish it from other unknown ones. GradVec methods do not change the model training procedure and no additional data is needed to adjust the OOD detector, and it can be used on any pre-trained model. Our approach presents superior results in different scenarios for OOD detection in image classification and text classification, reducing FPR95 up to 26.67 % and 21.29 %, respectively.
Related Concept Videos
Gradient and Del Operator
Outliers and Influential Points
Quantifying and Rejecting Outliers: The Grubbs Test
What Are Outliers?
The z score is used to find outliers or unusual values. It should be noted that any values beyond -2 and +2 are...
Detection of Gross Error: The Q Test
Difference from Background: Limit of Detection
The LOD indicates the presence or absence...

