Unsupervised pre-training of neural networks using generative models
Abstract
In various examples, systems and methods are disclosed relating to generating a response from image and/or video input for image/video-based artificial intelligence (AI) systems and applications. Systems and methods are disclosed for a first model (e.g., a teacher model) distilling its knowledge to a second model (a student model). The second model receives a downstream image in a downstream task and generates at least one feature. The first model generates first features corresponding to an image which can be a real image or a synthetic image. The second model generates second features using the image as an input to the second model. Loss with respect to first features is determined. The second model is updated using the loss.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (18 — 5 Independent, 13 Dependent)
- Claim 1Independent Claim
A processor comprising: one or more circuits to: generate, using a first model, a first plurality of features using an image as an input, the first model being updated using a loss corresponding to the first plurality of features determined with respect to a second plurality of features, and wherein the second plurality of features is generated using a second model and corresponding to the image, wherein the one or more circuits are to align one or more first attributes of the first plurality of features to one or more second attributes of the second plurality of features by: fusing the first plurality of features into a fused feature; and generating a third plurality of features from the fused feature, the third plurality of features having one or more third attributes aligned with the one or more second attributes.
- Claim 2Depends on #1
The processor of claim 1, wherein: the first model comprises at least one of: an encoder or a decoder; and the second model comprises a generative model.
- Claim 3Depends on #1
The processor of claim 1, wherein generating the image comprises: sampling a random noise; and generating the image and the second plurality of features according to the random noise.
- Claim 4Depends on #1
The processor of claim 1, wherein: the second model comprises a diffusion model; and the image is a real image.
- Claim 5Depends on #4
The processor of claim 4, wherein the generating the second plurality of features comprises encoding the real image by adding noise to the real image to obtain a resulting image and denoising the resulting image to obtain the real image.
- Claim 6Depends on #1
The processor of claim 1, wherein the one or more circuits are to update the second model using unlabeled data, the unlabeled data comprising unlabeled data for a domain, or unlabeled data for more than one domain.
- Claim 7Depends on #1
The method of claim 1, wherein the second plurality of features comprises a representation, from the second model, of at least one of an activation map or feature map.
- Claim 8Depends on #1
The processor of claim 1, wherein the first plurality of features comprises one or more multiscale features.
- Claim 9Depends on #1
The processor of claim 1, wherein the one or more circuits are to determine the loss corresponding to the first plurality of features with respect to the second plurality of features by determining an attention loss between the first plurality of features and the second plurality of features, the second plurality of features comprising a representation of an activation map.
- Claim 10Depends on #1
The processor of claim 1, wherein the one or more circuits are to determine a loss corresponding to the first plurality of features with respect to the second plurality of features by: determining a third plurality of features using the second plurality of features; and determining a regression loss between the second plurality of features and the third plurality of features, the second plurality of features comprising a representation of a feature map.
- Claim 11Depends on #1
The processor of claim 1, wherein the one or more circuits are to determine a loss corresponding to the first plurality of features with respect to the second plurality of features by: determining a third plurality of features using the plurality of first features; and determining a knowledge distillation loss between the second plurality of features and the third plurality of features.
- Claim 12Depends on #11
The processor of claim 11, wherein the knowledge distillation loss is determined based at least on one or more first labels generated using the first model and one or more second labels generated using an interpreter from the second plurality of features.
- Claim 13Independent Claim
A processor comprising: one or more circuits to: generate, using a first model, a first plurality of features using an image as an input, the first model being updated using a loss corresponding to the first plurality of features determined with respect to a second plurality of features, and wherein the second plurality of features is generated using a second model and corresponding to the image, wherein: the first plurality of features has one or more first attributes comprising at least one of a first spatial resolution, a first channel dimension, or a first feature dimension; the second plurality of features has one or more second attributes comprising at least one of a second spatial resolution, a second channel dimension, or a second feature dimension; and at least one of: the first spatial resolution is different from the second spatial resolution; the first channel dimension is different from the second channel dimension; or the first feature dimension is different from the second feature dimension.
- Claim 14Depends on #13
The processor of claim 13, wherein the one or more second attributes comprises at least one of a second spatial resolution, a second channel dimension, or a second feature dimension; the one or more third attributes comprising at least one of a third spatial resolution, a third channel dimension, or a third feature dimension; and at least one of: the second spatial resolution is same as the third spatial resolution; the second channel dimension is same as the third channel dimension; or the second feature dimension is same as the third feature dimension.
- Claim 15Independent Claim
A method for using a first model updated using a second model, comprising: generating a first plurality of features using a first model by applying the image as an input, the first model is updated using a loss corresponding to the first plurality of features determined with respect to a second plurality of features, the second plurality of features being generated using the second model and corresponding to an image, wherein the one or more circuits are to align one or more first attributes of the first plurality of features to one or more second attributes of the second plurality of features by: fusing, using one or more neural network blocks, the first plurality of features into a fused feature; and generating a third plurality of features from the fused feature, the third plurality of features having one or more third attributes, the one or more third attributes aligning with the one or more second attributes.
- Claim 16Independent Claim
A processor comprising: one or more circuits to: generate, using a first model, a plurality of first features corresponding to an image; generate, using a second model, a plurality of second features using the image as an input to the second model; determine a loss corresponding to the plurality of second features with respect to the plurality of first features, comprising determining an attention loss between the plurality of first features and the plurality of second features, the plurality of first features comprising a representation of an activation map; update the second model using the loss; and generate, using the second model, a response based on an input image.
- Claim 17Depends on #16
The processor of claim 16, wherein the one or more circuits are to align one or more second attributes of the plurality of second features to one or more first attributes of the plurality of first features by: fusing, using one or more neural network blocks, the plurality of second features into a fused feature; and generating a plurality of third features from the fused feature, the plurality of third features having third attributes, the third attributes aligning with the first attributes.
- Claim 18Independent Claim
A processor comprising: one or more circuits to: generate, using a first model, a plurality of first features corresponding to an image; generate, using a second model, a plurality of second features using the image as an input to the second model; determine a loss corresponding to the plurality of second features with respect to the plurality of first features; update the second model using the loss; and generate, using the second model, a response based on an input image, wherein the one or more circuits are to determine the loss of the plurality of second features with respect to the plurality of first features by: determining a plurality of third features using the plurality of first features; and determining a regression loss between the plurality of first features and the plurality of third features, the plurality of first features comprising a representation of a feature map.
Technical Overview & Description
BACKGROUND Conventional supervised and unsupervised pre-training methods for image-based and video-based artificial intelligence (AI) rely on object-centric datasets, such as ImageNet, for pre-training tasks involving image recognition, object identification, and computer-vision AI. An AI model or backbone pre-trained using conventional pre-training methods is subsequently fine-tuned for downstream tasks using in-domain data. The reliance on object-centric datasets, when such datasets are not curated carefully, can suffer from the lack of diversity and flexibility in pre-training datasets which may bear mere tangential relevance to the downstream tasks that the backbone is trained to perform, therefore resulting in poor training efficiency and increased pre-training costs. These challenges are especially pronounced in scenarios in which the object-centric, large-scale datasets are assembled by third-party service providers who are unaware of the objectives and characteristics of the AI model to be trained. SUMMARY Embodiments of the present disclosure relate to unsupervised or semi-supervised pre-training, for example, using generative models and large-scale, unlabeled data or fraction labels to improve accuracy in downstream tasks such as image recognition, object identification, object detection, segmentation, and so on. The pre-training methods described herein can leverage unlabeled data for pre-training, which may not require labeled datasets. Features output from generative models can be distilled into a commonly used vision backbone. In some examples, feature distillation, which refers to distilling generative features to target backbones, as a general pre-training mechanism that does not require any labels, can be employed. Feature distillation can be used in unsupervised representation learning, where no labels are available during pre-training. In some examples, label distillation, which refers to using task-heads on top of generative networks for distilli
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.