Out-of-distribution detection for personalizing neural network models
Abstract
A method for generating a personalized artificial neural network (ANN) model receives an input at a first artificial neural network. The input is processed to extract a set of intermediate features. The method determines if the input is out-of-distribution relative to a dataset used to train the first artificial neural network. The intermediate features corresponding to the input are provided to a second artificial neural network bases on the out-of-distribution determination. Additionally, the system resources for performing the training and inference tasks of the first artificial neural network and the second, personalized artificial neural network are allocated according to a computational complexity of the training and inference tasks and a power consumption of the resources.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for generating a personalized artificial neural network (ANN) model, comprising:
receiving an input at a first artificial neural network; processing the input to extract a set of intermediate features; determining if the input is out-of-distribution relative to a dataset for training the first artificial neural network; and providing the intermediate features corresponding to the input to a second artificial neural network based at least in part on the out-of-distribution determination.
2 . The method of claim 1 , in which the second artificial neural network is trained on a mobile device based at least in part on the intermediate features.
3 . The method of claim 1 in which the second artificial neural network determines a classification based on the intermediate features.
4 . The method of claim 1 , in which the intermediate features are supplied to a server based at least in part on the out-of-distribution determination.
5 . The method of claim 1 , in which resources for performing the training and inference tasks of the first artificial neural network and the second artificial neural network are allocated according to a computational complexity of the training and inference tasks and a power consumption of the resources.
6 . The method of claim 5 , in which the first artificial neural network is a user-independent classifier and the second artificial neural network is a user-dependent classifier.
7 . The method of claim 1 , further comprising:
determining if the second artificial neural network has been trained based on the out-of-distribution input; receiving a label for the out-of-distribution input if the second artificial neural network has not been trained based on the out-of-distribution input; and operating the second artificial neural network to generate an inference, if the second artificial neural network has been trained based on the out-of-distribution input.
8 . The method of claim 1 , further comprising:
comparing an extreme-value signature of the input to a class prototype; and detecting that the input is out-of-distribution if the extreme-value signature has greater activations in a different set of dimensions than the class prototype.
9 . An apparatus for generating a personalized artificial neural network (ANN) model, comprising:
a memory; and at least one processor coupled to the memory, the at least one processor being configured:
to receive an input at a first artificial neural network;
to process the input to extract a set of intermediate features;
to determine if the input is out-of-distribution relative to a dataset for training the first artificial neural network; and
to provide the intermediate features corresponding to the input to a second artificial neural network based at least in part on the out-of-distribution determination.
10 . The apparatus of claim 9 , in which the at least one processor is further configured to train the second artificial neural network on a mobile device based at least in part on the intermediate features.
11 . The apparatus of claim 7 , in which resources for performing the training and inference tasks of the first artificial neural network and the second artificial neural network are allocated according to a computational complexity of the training and inference tasks and a power consumption of the resources.
12 . The apparatus of claim 9 , in which the first artificial neural network is a user-independent classifier and the second artificial neural network is a user-dependent classifier.
13 . The apparatus of claim 9 , in which the at least one processor is further configured:
to determine if the second artificial neural network has been trained based on the out-of-distribution input; to receive a label for the out-of-distribution input if the second artificial neural network has not been trained based on the out-of-distribution input; and to operate the second artificial neural network to generate an inference, if the second artificial neural network has been trained based on the out-of-distribution input.
14 . The apparatus of claim 9 , in which the at least one processor is further configured:
to compare an extreme-value signature of the input to a class prototype; and to detect that the input is out-of-distribution if the extreme-value signature has greater activations in a different set of dimensions than the class prototype.
15 . An apparatus for generating a personalized artificial neural network (ANN) model, comprising:
means for receiving an input at a first artificial neural network; means for processing the input to extract a set of intermediate features; means for determining if the input is out-of-distribution relative to a dataset for training the first artificial neural network; and means for providing the intermediate features corresponding to the input to a second artificial neural network based at least in part on the out-of-distribution determination.
16 . The apparatus of claim 15 , further comprising means for training the second artificial neural network on a mobile device based at least in part on the intermediate features.
17 . The apparatus of claim 15 , further comprising means for allocating resources for performing the training and inference tasks of the first artificial neural network and the second artificial neural network according to a computational complexity of the training and inference tasks and a power consumption of the resources.
18 . The apparatus of claim 17 , in which the first artificial neural network is a user-independent classifier and the second artificial neural network is a user-dependent classifier.
19 . The apparatus of claim 15 , further comprising:
means for determining if the second artificial neural network has been trained based on the out-of-distribution input; means for receiving a label for the out-of-distribution input if the second artificial neural network has not been trained based on the out-of-distribution input; and means for operating the second artificial neural network to generate an inference, if the second artificial neural network has been trained based on the out-of-distribution input.
20 . The apparatus of claim 15 , further comprising:
means for comparing an extreme-value signature of the input to a class prototype; and means for detecting that the input is out-of-distribution if the extreme-value signature has greater activations in a different set of dimensions than the class prototype.
21 . A non-transitory computer readable medium having included thereon program code for generating a personalized artificial neural network (ANN) model, the program code being executed by a processor and comprising:
program code to receive an input at a first artificial neural network; program code to process the input to extract a set of intermediate features; program code to determine if the input is out-of-distribution relative to a dataset for training the first artificial neural network; and program code to provide the intermediate features corresponding to the input to a second artificial neural network based at least in part on the out-of-distribution determination.
22 . The non-transitory computer readable medium of claim 21 , further comprising program code to train the second artificial neural network on a mobile device based at least in part on the intermediate features.
23 . The non-transitory computer readable medium of claim 21 , further comprising program code to allocate resources for performing the training and inference tasks of the first artificial neural network and the second artificial neural network according to a computational complexity of the training and inference tasks and a power consumption of the resources.
24 . The non-transitory computer readable medium of claim 23 , in which the first artificial neural network is a user-independent classifier and the second artificial neural network is a user-dependent classifier.
25 . The non-transitory computer readable medium of claim 21 , further comprising:
program code to determine if the second artificial neural network has been trained based on the out-of-distribution input; program code to receive a label for the out-of-distribution input if the second artificial neural network has not been trained based on the out-of-distribution input; and program code to operate the second artificial neural network to generate an inference, if the second artificial neural network has been trained based on the out-of-distribution input.
26 . The non-transitory computer readable medium of claim 21 , further comprising:
program code to compare an extreme-value signature of the input to a class prototype; and program code to detect that the input is out-of-distribution if the extreme-value signature has greater activations in a different set of dimensions than the class prototype.Join the waitlist — get patent alerts
Track US2024412084A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.