IP Library Granted Patent US 11,537,899
Granted Patent B2
US 11,537,899 · App. 16/877,333 · Granted Dec 27, 2022

Systems and methods for out-of-distribution classification

Inventors: Govardana Sachithanandam Ramachandran (Palo Alto, CA); Ka Chun Au (Milbrae, CA); Shashank Harinath (San Francisco, CA); Wenhao Liu (Redwood City, CA); Alexis Roos (Los Angeles, CA); Caiming Xiong (Menlo Park, CA)
Assignee: Salesforce.com, Inc.
G06N3/084G06F17/18G06K9/628G06K9/6228G06K9/6249G06K9/6277G06N3/082G06N20/00G06N20/10G06V10/751
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,537,899
App. No.
16/877,333
Granted
Dec 27, 2022
Kind
B2
Abstract

An embodiment proposed herein uses sparsification techniques to train the neural network with a high feature dimension that may yield desirable in-domain detection accuracy but may prune away dimensions in the output that are less important. Specifically, a sparsification vector is generated based on Gaussian distribution (or other probabilistic distribution) and is used to multiply with the higher dimension output to reduce the number of feature dimensions. The pruned output may be then used for the neural network to learn the sparsification vector. In this way, out-of-distribution detection accuracy can be improved.

Claims (34)

1. A system for training a neural network for out-of-distribution detection, the system comprising:

a communication interface that receives a plurality of training samples having a first feature dimension;

a memory containing machine readable medium storing machine executable code; and

one or more processors coupled to the memory and configurable to execute the machine executable code to cause the one or more processors to:

train the neural network using the plurality of training samples;

generate, via the neural network, a classification output in response to an input sample having the first feature dimension;

generate a pruned output by using a Gaussian distribution based sparsification vector to reduce a dimension of the classification output to a second feature dimension;

computing a loss based on the pruned output and the input sample; and

updating the sparsification vector by backpropagation based on the computed loss.

2. The system of claim 1 , wherein the one or more processors are configurable to execute the machine executable code to cause the one or more processors to train the neural network by obtaining a set of parameters for the neural network from the training.

3. The system of claim 2 , wherein the one or more processors are configurable to execute the machine executable code to cause the one or more processors to:

when the training is complete:

freeze the set of parameters of the neural network; and

update the sparsification vector by backpropagation based on the computed loss without modifying the set of parameters of the neural network.

4. The system of claim 1 , wherein the sparsification vector has a number of zero entries that set unused dimensions of the classification output to zero when multiplied with the classification output.

5. The system of claim 1 , wherein the one or more processors are configurable to execute the machine executable code to cause the one or more processors to compute the loss based on the pruned output and the input sample by:

computing a probability indicating a likelihood that the training sample is in-distribution or out-of-distribution by applying a softmax operation on the pruned output; and

computing a cross entropy loss of the probability.

6. A method for training a neural network for out-of-distribution detection, the method comprising:

receiving, via a communication interface, a plurality of training samples having a first feature dimension;

training the neural network using the plurality of training samples;

generating, via the neural network, a classification output in response to an input sample having the first feature dimension;

generating a pruned output by using a Gaussian distribution based sparsification vector to reduce a dimension of the classification output to a second feature dimension;

computing a loss based on the pruned output and the input sample; and

updating the sparsification vector by backpropagation based on the computed loss.

7. The method of claim 6 , further comprising obtaining a set of parameters for the neural network from the training.

8. The method of claim 7 , further comprising:

when the training is complete:

freezing the set of parameters of the neural network; and

updating the sparsification vector by backpropagation based on the computed loss without modifying the set of parameters of the neural network.

9. The method of claim 6 , wherein the sparsification vector has a number of zero entries that set unused dimensions of the classification output to zero when multiplied with the classification output.

10. The method of claim 6 , wherein the computing the loss based on the pruned output and the input sample comprises:

computing a probability indicating a likelihood that the training sample is in-distribution or out-of-distribution by applying a softmax operation on the pruned output; and

computing a cross entropy loss of the probability.

Assignments (2)
CHANGE OF NAME Recorded Dec 18, 2024
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 069717/0499 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 18, 2020
From: RAMACHANDRAN, GOVARDANA SACHITHANANDAM; AU, KA CHUN; HARINATH, SHASHANK; LIU, WENHAO; ROOS, ALEXIS; XIONG, CAIMING
To: SALESFORCE.COM, INC.
Reel/Frame 052693/0077 →
Continuity (3)
Provisional Application 62968959 · Jan 31, 2020
Provisional Application 62937079 · Nov 18, 2019
Related Publication 20210150366A1 · May 20, 2021
Cited By (5)
US 12,619,914 US 12,620,202 US 12,632,442 US 12,645,674 US 12,670,151