Test time adaptation with untagged online data
By using shift-agnostic weight regularization technology at test time and using unlabeled online data to adapt the deep neural network model, the performance degradation problem caused by the distribution gap between the source domain and the target domain is solved, and the model is achieved in Efficient adaptation and performance improvement in the target domain.
Patent Information
- Application Number
- CN202280092761.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-12-21
- Filing Date
- 2022-12-23
- Publication Date
- 2024-10-11
AI Technical Summary
When there is a distribution gap between the source domain and the target domain, the performance of the deep neural network model does not perform well in the target domain. Especially when the distribution gap is large, the performance of the model decreases seriously.
Shift-agnostic weight regularization (SWR) technology is adopted to adapt the model using unlabeled online data during test time, updating network parameters that are insensitive to distribution shifts by giving higher penalties and giving lower penalties Update parameters that are sensitive to distribution shifts to maintain model performance in the target domain.
It effectively alleviates the performance degradation caused by distribution gaps, achieves rapid adaptation and performance improvement of the model in the target domain, and is less dependent on learning rate selection.
Smart Images

Figure CN118765400A_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. patent application No. 18 / 086,586, filed on December 21, 2022, entitled “TEST-TIME ADAPTATION WITH UNLABELED ONLINE DATA,” which claims the benefit of U.S. Provisional Patent Application No. 63 / 316,916, filed on March 4, 2022, entitled “TEST-TIME ADAPTATION WITH UNLABELED ONLINE DATA,” the disclosures of which are expressly incorporated herein by reference in their entirety. Technical Field
[0003] Aspects of the present disclosure generally relate to test-time adaptation utilizing unlabeled online data. Background Art
[0004] An artificial neural network may include an interconnected group of artificial neurons (e.g., a neuron model). An artificial neural network may be a computing device or represented as a method to be performed by a computing device. A convolutional neural network is a feedforward artificial neural network. A convolutional neural network may include a collection of neurons, each of which has a receptive field and collectively spells out an input space. Convolutional neural networks (CNNs), such as deep convolutional neural networks (DCNs), have numerous applications. Specifically, these neural network architectures are used in various technologies, such as image recognition, speech recognition, acoustic scene classification, keyword detection, autonomous driving, and other classification tasks.
[0005] A deep neural network (DNN) model can be trained using a given dataset (e.g., source domain). After initial training in the source domain, the model can be deployed and tested on a new environment (e.g., target domain). However, in most cases, there is a distribution gap between the source and target domains. That is, the source and target domains are usually different from each other. Therefore, the model performance in the target domain is not as good as in the source domain. In addition, if the distribution gap is very large, severe performance degradation may be observed. Summary of the invention
[0006] In various aspects of the present disclosure, a processor-implemented method includes training a machine learning model on a source domain. The method also includes testing the machine learning model on a target domain after training the machine learning model on the source domain. The method also includes training the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized more than shift-biased weights.
[0007] Other aspects of the present disclosure relate to an apparatus. The apparatus has a memory and one or more processors coupled to the memory, the processors being configured to train a machine learning model on a source domain. The processors are further configured to test the machine learning model on a target domain after training the machine learning model on the source domain. The processors are further configured to train the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized more than shift-biased weights.
[0008] Other aspects of the present disclosure relate to a device. The device includes means for training a machine learning model on a source domain. The device also includes means for testing the machine learning model on a target domain after training the machine learning model on the source domain. The device also includes means for training the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are subject to a higher penalty than shift-biased weights.
[0009] In yet other aspects of the present disclosure, a non-transitory computer-readable medium having program code recorded thereon is disclosed. The program code is executed by a processor and includes program code for training a machine learning model on a source domain. The program code also includes program code for testing the machine learning model on a target domain after training the machine learning model on the source domain. The program code also includes program code for training the machine learning model on a target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are subject to a higher penalty than shift-biased weights.
[0010] Additional features and advantages of the present disclosure will be described below. It will be appreciated by those skilled in the art that the present disclosure can be easily used as a basis for modifying or designing other structures for implementing the same purpose as the present disclosure. It will also be appreciated by those skilled in the art that such equivalent constructions do not depart from the teachings of the present disclosure as set forth in the appended claims. The novel features considered to be characteristic of the present disclosure, both in terms of its organization and method of operation, together with further objects and advantages, will be better understood when the following description is considered in conjunction with the accompanying drawings. However, it is to be expressly understood that each of the drawings is provided for illustration and description purposes only and is not intended as a definition of limitations of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The features, nature and advantages of the present disclosure will become more apparent when the detailed description set forth below is read in conjunction with the accompanying drawings, in which like reference numerals are correspondingly identified throughout.
[0012] Figure 1 An example implementation of a neural network using a system on a chip (SOC) including a general purpose processor in accordance with certain aspects of the present disclosure is illustrated.
[0013] Figure 2A , Figure 2B and Figure 2C is a diagram illustrating a neural network according to aspects of the present disclosure.
[0014] Figure 2D is a diagram illustrating an exemplary deep convolutional network (DCN) according to aspects of the present disclosure.
[0015] Figure 3 is a block diagram illustrating an exemplary deep convolutional network (DCN) according to aspects of the present disclosure.
[0016] Figure 4 is a block diagram illustrating test-time adaptation utilizing unlabeled online data in accordance with various aspects of the present disclosure.
[0017] Figure 5 is a block diagram illustrating shift agnostic weight regularization (SWR) in accordance with various aspects of the present disclosure.
[0018] Figure 6 is a block diagram illustrating source prototype generation prior to model deployment according to various aspects of the present disclosure.
[0019] Figure 7 is a block diagram illustrating test-time adaptation after model deployment in accordance with various aspects of the present disclosure.
[0020] Figure 8 is a flow chart illustrating a method for test-time adaptation via shift-agnostic weight regularization according to aspects of the present disclosure. DETAILED DESCRIPTION
[0021] The specific embodiments described below in conjunction with the accompanying drawings are intended as descriptions of various configurations and are not intended to represent the only configurations in which the described concepts can be practiced. In order to provide a comprehensive understanding of the various concepts, the specific embodiments include specific details. However, it is obvious to those skilled in the art that these concepts can be practiced without these specific details. In some instances, in order to avoid blurring these concepts, known structures and components are shown in block diagram form.
[0022] Based on the teachings, those skilled in the art will recognize that the scope of the present disclosure is intended to cover any aspect of the present disclosure, whether the aspect is implemented independently of any other aspect of the present disclosure or implemented in combination with any other aspect. For example, a device or a method can be implemented using any number of aspects described. In addition, the scope of the present disclosure is intended to cover such devices or methods that are practiced using other structures, functionality, or structures and functionality that are supplementary to or different from the various aspects of the present disclosure described. It should be understood that any aspect of the present disclosure disclosed can be embodied by one or more elements of the claims.
[0023] The word “exemplary” is used to mean “serving as an example, instance, or illustration.” Any aspect described as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects.
[0024] Although specific aspects are described, numerous variations and permutations of these aspects fall within the scope of the present disclosure. Although some benefits and advantages of preferred aspects are mentioned, the scope of the present disclosure is not intended to be limited to specific benefits, uses or purposes. On the contrary, various aspects of the present disclosure are intended to be widely applicable to different technologies, system configurations, networks and protocols, some of which are illustrated as examples in the drawings and the following description of preferred aspects. The specific embodiments and drawings are merely illustrative of the present disclosure and are not limiting. The scope of the present disclosure is defined by the appended claims and their equivalents.
[0025] A deep neural network (DNN) model can be trained using a given dataset (e.g., source domain). After initial training in the source domain, the model can be deployed and tested on a new environment (e.g., target domain). However, in most cases, there is a distribution gap between the source and target domains. That is, the source and target domains are usually different from each other. Therefore, the model performance in the target domain is inferior to the performance in the source domain. In addition, if the distribution gap is very large, severe performance degradation may be observed.
[0026] Aspects of the present disclosure include methods for adapting a deployed model to a target domain using unlabeled online data in an unsupervised manner during test time. Conventionally, when all model parameters are updated by an unsupervised objective function and rely on an unsupervised objective function (e.g., without ground truth data), the performance of the model may degrade. To address this problem, aspects of the present disclosure include shift-agnostic (also known as style-agnostic) weight regularization, in which a higher penalty is given to update network parameters that are insensitive to distribution shifts. In these aspects, a lower penalty is given to update those weights that are sensitive to distribution shifts. Therefore, in such aspects, all parameters can be updated without performance degradation.
[0027] Figure 1An example implementation of a system on chip (SOC) 100 is illustrated, which may include a central processing unit (CPU) 102 or a multi-core CPU configured to improve test time adaptation via shift agnostic weight regularization. Variables (e.g., neural signals and synaptic weights), system parameters associated with a computing device (e.g., a neural network with weights), delays, frequency bin information, and task information may be stored in a memory block associated with a neural processing unit (NPU) 108, a memory block associated with CPU 102, a memory block associated with a graphics processing unit (GPU) 104, a memory block associated with a digital signal processor (DSP) 106, a memory block 118, or may be distributed across multiple blocks. Instructions executed at CPU 102 may be loaded from a program memory associated with CPU 102, or may be loaded from memory block 118.
[0028] The SOC 100 may also include additional processing blocks tailored for specific functions, such as a GPU 104, a DSP 106, a connectivity block 110 (which may include fifth generation (5G) connectivity, fourth generation long term evolution (4G LTE) connectivity, Wi-Fi connectivity, USB connectivity, Bluetooth connectivity, etc.), and a multimedia processor 112 that may, for example, detect and recognize gestures. In one specific implementation, the NPU 108 is implemented in the CPU 102, the DSP 106, and / or the GPU 104. The SOC 100 may also include a sensor processor 114, an image signal processor (ISP) 116, and / or a navigation module 120, which may include a global positioning system.
[0029] The SOC 100 may be based on the ARM instruction set. In aspects of the present disclosure, the instructions loaded into the general purpose processor 102 may include code for training a machine learning model on a source domain. The general purpose processor 102 may also include code for testing the machine learning model on a target domain after training. The general purpose processor 102 may also include code for training a machine learning model on a target domain by regularizing the weights of the machine learning model so that shift agnostic weights are subject to a higher penalty than shift bias weights.
[0030] Deep learning architectures can perform object recognition tasks by learning to represent inputs at successively higher levels of abstraction in each layer, thereby building useful feature representations of the input data. In this way, deep learning solves the main bottleneck of traditional machine learning. Before the advent of deep learning, machine learning methods for object recognition problems may rely heavily on human-engineered features, possibly combined with shallow classifiers. A shallow classifier can be a two-class linear classifier, for example, in which the weighted sum of feature vector components can be compared to a threshold to predict which class the input belongs to. Human-engineered features can be templates or kernels customized for a specific problem domain by engineers with domain expertise. In contrast, although deep learning architectures can learn to represent features similar to those that human engineers may design, they require training. In addition, deep networks can learn to represent and recognize new types of features that humans may not have considered.
[0031] Deep learning architectures can learn hierarchies of features. For example, if presented with visual data, the first layer can learn to recognize relatively simple features in the input stream, such as edges. In another example, if presented with auditory data, the first layer can learn to recognize spectral power in specific frequencies. The second layer, taking the output of the first layer as input, can learn to recognize combinations of features, such as simple shapes for visual data or combinations of sounds for auditory data. For example, higher layers can learn to represent complex shapes in visual data or words in auditory data. Even higher layers can learn to recognize common visual objects or spoken phrases.
[0032] Deep learning architectures perform particularly well when applied to problems that have a natural hierarchical structure. For example, the classification of motorized vehicles can benefit from first learning to recognize wheels, windshields, and other features. These features can be combined in different ways at higher levels to recognize cars, trucks, and airplanes.
[0033] Neural networks can be designed to have a variety of connection patterns. In a feedforward network, information is passed from a lower layer to a higher layer, where each neuron in a given layer communicates with a neuron in a higher layer. As described above, hierarchical representations can be constructed in successive layers of a feedforward network. Neural networks can also have loops or feedback (also known as top-down) connections. In a loop connection, the output from a neuron in a given layer can be communicated to another neuron in the same layer. The loop architecture can help identify patterns that span more than one input data block in the input data blocks that are sequentially delivered to the neural network. The connection from a neuron in a given layer to a neuron in a lower layer is called a feedback (or top-down) connection. When the recognition of a high-level concept can assist in discerning specific low-level features of the input, a network with many feedback connections may be helpful.
[0034] The connections between neural network layers can be fully connected or partially connected. Figure 2A An example of a fully connected neural network 202 is illustrated. In a fully connected neural network 202, a neuron in a first layer may communicate its output to each neuron in a second layer, such that each neuron in the second layer will receive input from each neuron in the first layer. Figure 2B An example of a locally connected neural network 204 is illustrated. In the locally connected neural network 204, neurons in a first layer may be connected to a limited number of neurons in a second layer. More generally, the locally connected layers of the locally connected neural network 204 may be configured such that each neuron in the layer will have the same or similar connection pattern, but the connection strengths may have different values (e.g., 210, 212, 214, and 216). The connection patterns of the local connections may produce spatially different receptive fields in higher layers because higher layer neurons in a given region may receive inputs that are tuned through training to the characteristics of a limited portion of the total input to the network.
[0035] An example of a locally connected neural network is a convolutional neural network. Figure 2C An example of a convolutional neural network 206 is illustrated. The convolutional neural network 206 may be configured such that the connection strengths associated with the inputs of each neuron in the second layer are shared (e.g., 208). Convolutional neural networks may be well suited for problems where the spatial location of the inputs is meaningful.
[0036] One type of convolutional neural network is a deep convolutional network (DCN). Figure 2D A detailed example of a DCN 200 designed to recognize visual features from an image 226 input from an image capture device 230 (such as a vehicle-mounted camera) is illustrated. The DCN 200 of the current example can be trained to identify traffic signs and numbers provided on traffic signs. Of course, the DCN 200 can be trained for other tasks, such as identifying lane markings or identifying traffic lights.
[0037] The DCN 200 may be trained by supervised learning. During training, an image (such as an image 226 of a speed limit sign) may be presented to the DCN 200, and a forward pass may then be calculated to produce an output 222. The DCN 200 may include a feature extraction portion and a classification portion. Upon receiving the image 226, the convolution layer 232 may apply a convolution kernel (not shown) to the image 226 to generate a first set of feature maps 218. As an example, the convolution kernel of the convolution layer 232 may be a 5×5 kernel that generates a 28×28 feature map. In this example, because four different feature maps are generated in the first set of feature maps 218, four different convolution kernels are applied to the image 226 at the convolution layer 232. A convolution kernel may also be referred to as a filter or a convolution filter.
[0038] The first set of feature maps 218 may be subsampled by a maximum pooling layer (not shown) to generate a second set of feature maps 220. The maximum pooling layer reduces the size of the first set of feature maps 218. That is, the size of the second set of feature maps 220 (such as 14×14) is smaller than the size of the first set of feature maps 218 (such as 28×28). The reduced size provides similar information to subsequent layers while reducing memory consumption. The second set of feature maps 220 may be further convolved via one or more subsequent convolutional layers (not shown) to generate one or more sets of subsequent feature maps (not shown).
[0039] exist Figure 2D In the example of , the second set of feature maps 220 are convolved to generate a first feature vector 224. In addition, the first feature vector 224 is further convolved to generate a second feature vector 228. Each feature of the second feature vector 228 may include a number corresponding to a possible feature of the image 226, such as "sign", "60", and "100". A softmax function (not shown) may convert the numbers in the second feature vector 228 into probabilities. Therefore, the output 222 of the DCN 200 may be a probability that the image 226 includes one or more features.
[0040] In this example, the probability of "logo" and "60" in output 222 is higher than the probability of other numbers (such as "30", "40", "50", "70", "80", "90", and "100") in output 222. Before training, the output 222 generated by DCN 200 may be incorrect. Therefore, the error between output 222 and the target output can be calculated. The target output is the ground truth value of image 226 (e.g., "logo" and "60"). The weights of DCN 200 can then be adjusted so that the output 222 of DCN 200 is closer to the target output.
[0041] To adjust the weights, the learning algorithm may calculate a gradient vector for the weights. The gradient may indicate the amount by which the error will increase or decrease when the weights are adjusted. At the top layer, the gradient may correspond directly to the value of the weights connecting the activated neurons in the penultimate layer and the neurons in the output layer. In lower layers, the gradient may depend on the value of the weights and the calculated error gradients of the higher layers. The weights may then be adjusted to reduce the error. This way of adjusting weights may be called "back propagation" because it involves a "backward pass" through the neural network.
[0042] In practice, the error gradient of the weights may be calculated over a small number of examples so that the calculated gradient is close to the true error gradient. This approximation method may be referred to as stochastic gradient descent. Stochastic gradient descent may be repeated until the achievable error rate of the entire system stops decreasing or until the error rate reaches a target level. After learning, the DCN 200 may be presented with new images, and a forward pass through the DCN 200 may produce an output 222 that may be considered an inference or prediction of the DCN 200.
[0043] Deep belief network (DBN) is a probabilistic model including multiple layers of hidden nodes. DBN can be used to extract hierarchical representations of training data sets. DBN can be obtained by stacking the layers of restricted Boltzmann machine (RBM). RBM is a type of artificial neural network that can learn probability distributions through a set of inputs. Because RBM can learn probability distributions without information about the categories to which each input should be classified, RBM is generally used for unsupervised learning. Using an unsupervised and supervised hybrid paradigm, the bottom RBM of DBN can be trained in an unsupervised manner and can be used as a feature extractor, while the top RBM can be trained in a supervised manner (on the joint distribution of the input and target class from the previous layer) and can be used as a classifier.
[0044] A deep convolutional network (DCN) is a network that is a convolutional network configured with additional pooling and normalization layers. DCNs have achieved state-of-the-art performance on many tasks. DCNs can be trained using supervised learning, where both the input and output targets are known for many examples and are used to modify the weights of the network by using a gradient descent method.
[0045] The DCN may be a feed-forward network. In addition, as described above, the connections from a neuron in the first layer of the DCN to a set of neurons in the next higher layer are shared across the neurons in the first layer. The feed-forward and shared connections of the DCN can be used for fast processing. For example, the computational burden of the DCN may be much smaller than that of a similarly sized neural network that includes loops or feedback connections.
[0046] The processing of each layer of the convolutional network can be considered as a spatially invariant template or basis projection. If the input is first decomposed into multiple channels, such as the red, green and blue channels of a color image, the convolutional network trained on the input can be considered to be three-dimensional, where two spatial dimensions are along the axis of the image and the third dimension captures color information. The output of the convolutional connection can be considered to form a feature map in a subsequent layer, each element in the feature map (e.g., 220) receives input from a certain range of neurons in the previous layer (e.g., feature map 218) and from each channel in the multiple channels. The values in the feature map can be further processed with nonlinearity (such as correction, max(0,x)). The values from adjacent neurons can be further pooled, which corresponds to downsampling and can provide additional local invariance and dimensionality reduction. Normalization corresponding to whitening can also be applied by lateral inhibition between neurons in the feature map.
[0047] The performance of deep learning architectures can increase as more labeled data points become available or as computing power increases. Modern deep neural networks are often trained with computing resources that are thousands of times greater than what was available to a typical researcher just fifteen years ago. New architectures and training paradigms can further improve the performance of deep learning. Rectified linear units can reduce the training problem known as vanishing gradients. New training techniques can reduce overfitting, allowing larger models to achieve better generalization. Encapsulation techniques can extract data within a given receptive field and further improve overall performance.
[0048] Figure 3 is a block diagram illustrating a deep convolutional network (DCN) 350. The DCN 350 may include multiple different types of layers based on connections and weight sharing. Figure 3 As shown, DCN 350 includes convolution blocks 354A, 354B. Each of the convolution blocks 354A, 354B may be configured with a convolution layer (CONV) 356, a normalization layer (LNorm) 358, and a maximum pooling layer (MAX POOL) 360. Although only two of the convolution blocks 354A, 354B are shown, the present disclosure is not limited thereto, and any number of convolution blocks 354A, 354B may be included in DCN 350 according to design preferences.
[0049] The convolution layer 356 may include one or more convolution filters that may be applied to the input data to generate a feature map. The normalization layer 358 may normalize the output of the convolution filter. For example, the normalization layer 358 may provide whitening or lateral suppression. The maximum pooling layer 360 may provide spatial downsampling aggregation to achieve local invariance and dimensionality reduction.
[0050] For example, a parallel filter bank of a deep convolutional network may be loaded on SOC 100 (e.g., Figure 1 ) on the CPU 102 or GPU 104 of the SOC 100 to achieve high performance and low power consumption. In an alternative embodiment, the parallel filter bank can be loaded on the DSP 106 or ISP 116 of the SOC 100. In addition, the DCN 350 can access other processing blocks that may exist on the SOC 100 (such as the sensor processor 114 and the navigation module 120 dedicated to sensors and navigation, respectively).
[0051] The DCN 350 may also include one or more fully connected layers 362 (FC1 and FC2). The DCN 350 may also include a logistic regression (LR) layer 364. Between each layer 356, 358, 360, 362, 364 of the DCN 350 are weights (not shown) to be updated. The output of each layer in the layers (e.g., 356, 358, 360, 362, 364) may be used as an input to a subsequent layer in the layers (e.g., 356, 358, 360, 362, 364) in the DCN 350 to learn a hierarchical feature representation from the input data 352 (e.g., images, audio, video, sensor data, and / or other input data) supplied at the first convolutional block in the convolutional block 354A. The output of the DCN 350 is a classification score 366 for the input data 352. The classification score 366 may be a set of probabilities, where each probability is a probability that the input data includes a feature from a set of features.
[0052] A deep neural network (DNN) model can be trained using a given dataset (e.g., a source domain). After initial training in the source domain, the model can be deployed and tested on a new environment (e.g., a target domain). The DNN makes predictions based on data in the target domain. However, in most cases, there is a distribution gap between the source and target domains. That is, the source and target domains are typically different from each other. Therefore, the performance of the model in the target domain may be inferior to that of the model in the source domain. In addition, if the distribution gap is very large, severe performance degradation may be observed. If the deployed model does not remain static during test time, but uses clues about the unlabeled target data to adapt to the new environment, the performance can be improved.
[0053] Various aspects of the present disclosure include methods for adapting a deployed model to a target domain using unlabeled online data in an unsupervised manner during test time. Conventionally, when all model parameters are updated by an unsupervised objective function and rely on the unsupervised objective function (e.g., there is no ground truth data), performance degradation results. To address this problem, various aspects of the present disclosure include shift-agnostic (also known as style-agnostic) weight regularization, in which a higher penalty is given to update network parameters that are insensitive to distribution shifts. In these aspects, a lower penalty is given to update those weights that are sensitive to distribution shifts. Therefore, all parameters can be updated without performance degradation.
[0054] The disclosed techniques provide the benefit of improved model performance, especially when there is a large distribution gap between the source and target domains. With previous methods, all model parameters are updated equally based on incorrect pseudo-labels on the target data (e.g., due to a large distribution gap), resulting in severe performance degradation.
[0055] Various aspects of the present disclosure introduce a novel test time adaptation strategy that uses only unlabeled online data from the target domain to adjust the model pre-trained on the source domain to mitigate the performance degradation caused by the distribution shift between the source domain and the target domain. Using unlabeled online data to adapt all model parameters can be harmful due to false signals from the unsupervised target. To alleviate this problem, various aspects of the present disclosure introduce shift agnostic weight regularization (SWR), which encourages large updates of model parameters that are sensitive to distribution shift during test time adaptation, while slightly updating model parameters that are insensitive to shift. By leveraging the benefits of high learning rates, this regularization enables the model to quickly adapt to the target domain without performance degradation. Shift agnostic weight regularization enables the model to quickly adapt to the target domain, which is beneficial when the entire model parameters are updated at a high learning rate. Entropy minimization with the proposed SWR shows superior performance and less dependence on the choice of learning rate. In terms of distribution shift, SWR classifies all model parameters into shift-agnostic and shift-biased parameters, updating the former less frequently and the latter more frequently.
[0056] In addition, an auxiliary task based on the nearest source prototype aligns the source and target features, which helps to reduce the distribution shift and leads to further performance improvements. The auxiliary task based on the non-parametric nearest source prototype (NSP) classifier pulls the target representation closer to its nearest source prototype. With the NSP classifier, both the source and target representations can be well aligned, which significantly improves the performance of the main task.
[0057] The technology of the present disclosure accesses the source data to identify shift-agnostic and shift-bias parameters and generates source prototypes before model deployment. The technology is applicable to any model regardless of architecture or pre-training procedures. If a given model is pre-trained on an open dataset, or if the source data owner deploys the model, the source data is accessible before the model is deployed. In this case, the method enhances test time adaptation capabilities by leveraging the source data without modifying the pre-trained model. The method does not change the pre-training method of a given model, so the method can benefit from any pre-trained model that is a good starting point for test time adaptation. Therefore, the method can complement other domain generalization methods that focus primarily on pre-training methods in the source domain before model deployment.
[0058] Reference now Figure 4 and Figure 5 Give a more detailed explanation. Figure 4 is a block diagram illustrating test-time adaptation utilizing unlabeled online data in accordance with various aspects of the present disclosure. Figure 5 is a block diagram illustrating shift agnostic weight regularization (SWR) according to various aspects of the present disclosure. The proposed method obtains a pre-trained model in a ready-made manner and generates a penalty vector w and a source prototype q while keeping the model frozen before model deployment. After model deployment, the method does not access any online target data except unlabeled online target data D during test time adaptation. t Other marked source data D s .like Figure 4 As seen in , during stage 1, the penalty vector w is obtained and the projection layer is trained while the original pre-trained model (encoder and classifier) is frozen. After model deployment, at stage 2, test-time adaptation is performed using shift-agnostic regularization (with penalty vector w) and the nearest source prototype (with projection, or optionally without projection). Figure 5 As seen in FIG, before model deployment 510, a penalty vector w is obtained based on the layer-wise cosine similarity between the forward and backward propagated gradients from the original image and its transformed image. After model deployment 520, a layer-wise penalty-based regularization is applied to the test-time adaptation loss.
[0059] Assume that the model parameters θ trained on the source domain include the encoder part θ e and the classifier part θ c After being deployed to the target domain, the model infers the class probability distribution of the target samples and then optimizes the test-time adaptation loss The total loss of the proposed method is defined as:
[0060]
[0061] where w l represents the lth element of the penalty vector w used to constrain the update of the model parameters, θ l is the parameter vector of the lth layer of the model. The lth layer can represent a part divided into multiple units (for example, the torch.nn.Module unit defined in the open source Pytorch framework). The gradient vector of each layer can be obtained using the function torch.nn.module.parameters()). The value θ* is the parameter from the previous update step, λ r is the importance of the regularization term, and and Represent the main loss and auxiliary loss respectively. Optimizing the main task loss updates the entire model parameter θ e and θ c, while optimizing the auxiliary task loss only updates the encoder part θ e .
[0062] According to the sensitivity of each model parameter to the distribution shift, SWR imposes different penalties on each parameter update during test-time adaptation. Assuming that the distribution shift is mainly caused by color and blur shift, transformation techniques such as color distortion and Gaussian blur can be used to simulate the distribution shift.
[0063] To obtain the penalty vector w specified in equation (1), the method first forward propagates two input images (e.g., the original image (e.g., source data) and its transformed image) through the source pre-trained model, and then backpropagates the task loss (e.g., cross entropy (CE)) using the source labels to produce two sets of L gradient vectors g and g′, respectively, as Figure 5 Note that L is the total number of layers in the model. Then, by taking the average cosine similarity S between the two gradient vectors g and g′ from the N source samples l To penalize the lth element w of the vector w l is calculated as:
[0064]
[0065] where v[·] represents the minimum-maximum normalization with a range of [0,1], and denote the i-th source sample and its l-th gradient vector for its transformed sample, respectively. The parameter N denotes the total number of samples. Note that the penalty vector w is obtained from the frozen pre-trained source model before model deployment. Therefore, this process is independent of the pre-training method of the source model and does not require source data after model deployment, as Figure 4 shown.
[0066] As shown in equation (1) and Figure 5 As shown, during the test time adaptation, the method will punish the value w layer by layer l The difference between the previous model parameters and the current model parameters applied to each layer controls the update of the model parameters differently for each layer. Therefore, model parameters belonging to layers with high cosine similarity between the two gradient vectors are considered shift-agnostic and updated less frequently by applying a high penalty. The SWR method utilizes a high learning rate to quickly adapt the model to the target domain. Figure 5 As seen throughout the process shown, a penalty vector w is obtained before model deployment, and is then used as a layer-by-layer penalty to control the update of model parameters during test-time adaptation after model deployment.
[0067] According to aspects of the present disclosure, an entropy target is selected for the primary task of the model. θThe main task is defined as e and θ c Tasks performed. Use the model to predict The loss function of the main task during test time is established by the entropy of the test samples from the target distribution. The information maximization loss is used as the unsupervised learning objective of the main task. The loss includes entropy minimization and average entropy maximization, as follows:
[0068]
[0069] in as well as and indicates the importance of each term. The number of categories and batch size are represented by C and N, respectively. Entropy minimization makes individual predictions reliable, and average entropy maximization promotes the average prediction within a batch to be close to a uniform distribution.
[0070] According to aspects of the present disclosure, the auxiliary task can be based on the nearest source prototype (NSP). Due to the distribution shift between the source domain and the target domain, the target features can deviate from the source features at test time. To address this problem, the auxiliary task is based on the nearest source prototype (NSP) classifier, which pulls the target embeddings closer to their nearest source prototypes in the embedding space. Ultimately, optimizing the auxiliary task improves performance because the auxiliary task directly supports the main task by aligning the source and target representations. Now refer to Figure 6 Describes how to generate a source prototype and define an NSP classifier based on it.
[0071] Figure 6 is a block diagram illustrating source prototype generation before model deployment according to various aspects of the present disclosure. A high-level overview is presented first, and a more detailed explanation will then be given. First, steps (1) and (2) (described below) are repeated until prototypes for all categories are generated. Then, the projector is trained and the source prototype is updated simultaneously by performing an iterative process from steps (1) to (6) on the source data. Step (1) corresponds to inferring a representation h from a source sample x and mapping the representation h to a projection z. Step (2) corresponds to updating the source prototype for each category by an exponential moving average (EMA). Step (3) corresponds to measuring the cosine similarity of the projection z to the source prototypes of all categories, and then generating a class probability distribution. Step (4) is the same as step (1), except for the transformed image x'. Step (5) is the same as step (3), except for the parameter z'. Step (6) corresponds to optimizing the embedding loss (as seen in equation (6)). This process forces the projector to learn a mapping that pulls projections belonging to the same category closer together and pushes the source prototypes further away from each other. The main task loss (a) and the auxiliary task loss (b) respectively pull the original source projection and its transformed source projection so that they become closer to the nearest source prototype from the original projection.
[0072] The source prototype is defined as the average of the source embeddings for each category. Figure 6 As shown, this process freezes the model f trained on the source data θ And in the encoder Attach an additional projection layer h ψ (Also called the projector layer). Encoder A representation h is inferred from a source sample x, and a projector h ψ Map h to a projection z in another embedding space, where the loss Applied as Projector ψ Provides separation between classes and cohesion within classes. Source prototype of class k The source samples (x,y) at time t are used during the optimization trajectory by exponential moving average (EMA) k ) k∈[1,C] Projection Updated to:
[0073]
[0074] where α = 0.99 (in one specific implementation) and
[0075] This procedure defines the NSP classifier as a non-parametric classifier. The classifier measures the cosine similarity of a given target embedding with source prototypes of all categories, and then generates a class probability distribution As:
[0076]
[0077] where S(·,·) is the cosine similarity function, S(a,b) = (a·b) / ‖a‖‖b‖, τ represents the temperature that controls the sharpness of the distribution, and y k is the one-hot ground truth label vector for the k-th class. In addition, based on recent self-supervised contrastive learning methods, the projector h ψ Learn the transformation-invariant mapping. The projection z′ of the transformed source sample is obtained by Obtain, among which represents the image transformation function. The embedding loss consists of two cross entropy loss terms is applied to the embedding space to train the projector h ψ As:
[0078]
[0079] in and i The ground truth label of the i-th source sample. Here, and The output of the NSP classifier represents the projection z and z′ of the source sample and its transformed sample respectively. Figure 6 As shown, optimizing the embedding loss drives the projector h ψ Learn a mapping that pulls projections belonging to the same category closer together and pushes source prototypes farther away from each other. Note that this process is applied to a frozen pre-trained source model and is done before the model is deployed. Therefore, the process is model-agnostic and does not require source data during test time.
[0080] Now we discuss the auxiliary task loss at test time. Once the source prototypes are generated and the projection layer is trained, the model can be deployed and both the main task and the auxiliary task can be jointly optimized on unlabeled online data. There are two objective functions: the entropy of the prediction using the NSP classifier Entropy target and the encoder that encourages the model Learning self-supervised functions for transform-invariant mappings as follows:
[0081]
[0082] where λ s Represents the importance of the self-supervised loss term. Similar to Equation (3), by using the entropy of the prediction of the target sample by the NSP classifier To construct the entropy target, as follows:
[0083]
[0084] Where N is the batch size, and Indicates the importance of each item, and The self-supervised loss is applied to the prediction of the NSP classifier on the transformed target sample as follows:
[0085]
[0086] Figure 6 Represents the source prototype generation phase before model deployment. This process consists of Figure 4 During this phase, a single projection layer is trained. Figure 7 is a block diagram illustrating test-time adaptation after model deployment in accordance with various aspects of the present disclosure. Figure 7 The process includes Figure 4 The encoder and classifier are trained during this stage. Figure 7The main task loss (a), auxiliary task loss (b), and auxiliary task loss (c) are shown. The entropy objective function and the corresponding auxiliary task loss (b) pull the projection z of the original target sample closer to its nearest source prototype. The self-supervised objective and the corresponding auxiliary task loss (c) force the projection z′ of the transformed target sample to move closer to the same target as the projection z.
[0087] Aspects of the present disclosure introduce two novel methods for model-agnostic test-time adaptation. The proposed shift-agnostic weight regularization (SWR) enables the model to reliably and quickly adapt to unlabeled online data from a target domain by controlling the update of model parameters according to their sensitivity to distribution shifts. The SWR process controls the update of model parameters according to the sensitivity of each parameter to distribution shifts. If θ* in equation (1) is fixed to the source model parameters without updating with the model parameters from the previous step, it is difficult to fully adapt the model to the target data. It is not the purpose of SWR to constrain model parameters to not move significantly away from the source model parameters (in contrast, NSP aligns source features and target features based on source prototypes). Updating θ* shows better performance than freezing θ*.
[0088] In addition, the proposed auxiliary task based on the nearest source prototype (NSP) classifier improves the performance by aligning the source representation and the target representation. The purpose of NSP is twofold: (1) to align the target features with the source features by using the source prototype as a reference point ( Figure 7 , auxiliary task loss (b), ) and (2) learning input consistency ( Figure 7 , auxiliary task loss (c), ).point Contribution is greater than points The projector design consists of attaching and training a projector after the encoder to map the feature representation h to projection z. The projector minimizes the misalignment between the source and target embeddings by achieving a transform-invariant mapping and bringing projections belonging to the same category closer together in the new embedding space.
[0089] Figure 8 8 is a flow chart illustrating a method 800 for test time adaptation via shift agnostic weight regularization according to aspects of the present disclosure. Figure 8 As shown, in some aspects, method 800 may include training a machine learning model on a source domain (block 802). In some aspects, method 800 may include testing the machine learning model on a target domain after training the machine learning model on the source domain (block 804). In some aspects, method 800 may also include training the machine learning model on the target domain by regularizing the weights of the machine learning model such that shift-agnostic weights are penalized more than shift-biased weights (block 806).
[0090] Example aspects
[0091] Aspect 1: A processor-implemented method comprising: training a machine learning model on a source domain; testing the machine learning model on a target domain after training the machine learning model on the source domain; and training the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized higher than shift-biased weights.
[0092] Aspect 2: The processor-implemented method according to Aspect 1 further includes training the machine learning model based on the main task loss and the auxiliary task loss.
[0093] Aspect 3: A processor-implemented method according to Aspect 1 or 2, wherein the main task loss is based on entropy derived from the predicted probability of the test sample from the target domain by the machine learning model.
[0094] Aspect 4: The processor-implemented method according to any of the preceding aspects, wherein the entropy comprises an entropy minimization loss.
[0095] Aspect 5: The processor-implemented method of any one of aspects 1 to 3, wherein the entropy comprises an entropy maximization loss.
[0096] Aspect 6: A processor-implemented method according to any one of the preceding aspects, wherein the auxiliary task loss shifts the target representation to the nearest class centroid of the source domain.
[0097] Aspect 7: A processor-implemented method according to any one of Aspects 1 to 5, wherein the auxiliary task loss is calculated on a representation mapped into an embedding space.
[0098] Aspect 8: A device comprising: a memory; and at least one processor, the at least one processor being coupled to the memory, the at least one processor being configured to: train a machine learning model on a source domain; test the machine learning model on a target domain after training the machine learning model on the source domain; and train the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized higher than shift-biased weights.
[0099] Aspect 9: The apparatus according to Aspect 8, wherein the at least one processor is further configured to train the machine learning model based on the main task loss and the auxiliary task loss.
[0100] Aspect 10: An apparatus according to Aspect 8 or 9, wherein the main task loss is based on an entropy derived from a predicted probability of a test sample from the target domain by the machine learning model.
[0101] Aspect 11: The apparatus according to any one of aspects 8 to 10, wherein the entropy comprises an entropy minimization loss.
[0102] Aspect 12: The apparatus of any one of aspects 8 to 10, wherein the entropy comprises an entropy maximization loss.
[0103] Aspect 13: An apparatus according to any one of Aspects 8 to 12, wherein the auxiliary task loss moves the target representation to the nearest class centroid of the source domain.
[0104] Aspect 14: An apparatus according to any one of Aspects 8 to 12, wherein the auxiliary task loss is calculated on a representation mapped into an embedding space.
[0105] Aspect 15: A device comprising: a device for training a machine learning model on a source domain; a device for testing the machine learning model on a target domain after training the machine learning model on the source domain; and a device for training the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized higher than shift-biased weights.
[0106] Aspect 16: The apparatus according to Aspect 15 further includes a device for training the machine learning model based on the main task loss and the auxiliary task loss.
[0107] Aspect 17: The apparatus according to Aspect 15 or 16, wherein the main task loss is based on an entropy derived from a predicted probability of a test sample from the target domain by the machine learning model.
[0108] Aspect 18: The apparatus of any one of aspects 15 to 17, wherein the entropy comprises an entropy minimization loss.
[0109] Aspect 19: The apparatus of any one of aspects 15 to 17, wherein the entropy comprises an entropy maximization loss.
[0110] Aspect 20: An apparatus according to any one of Aspects 15 to 19, wherein the auxiliary task loss shifts the target representation to the nearest class centroid of the source domain.
[0111] Aspect 21: An apparatus according to any one of Aspects 15 to 19, wherein the auxiliary task loss is calculated on a representation mapped into an embedding space.
[0112] Aspect 22: A non-transitory computer-readable medium having program code recorded thereon, the program code being executed by a processor and comprising: program code for training a machine learning model on a source domain; program code for testing the machine learning model on a target domain after training the machine learning model on the source domain; and program code for training the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized higher than shift-biased weights.
[0113] Aspect 23: The non-transitory computer-readable medium according to Aspect 22, wherein the program code further comprises program code for training the machine learning model based on the main task loss and the auxiliary task loss.
[0114] Aspect 24: The non-transitory computer-readable medium according to Aspect 22 or 23, wherein the main task loss is based on an entropy derived from a predicted probability of a test sample from the target domain by the machine learning model.
[0115] Aspect 25: The non-transitory computer-readable medium of any one of Aspects 22 to 24, wherein the entropy comprises an entropy minimization loss.
[0116] Aspect 26: The non-transitory computer-readable medium of any one of Aspects 22 to 24, wherein the entropy comprises an entropy maximization loss.
[0117] Aspect 27: The non-transitory computer-readable medium of any one of Aspects 22 to 26, wherein the auxiliary task loss shifts the target representation to the nearest class centroid of the source domain.
[0118] Aspect 28: The non-transitory computer-readable medium according to any one of Aspects 22 to 26, wherein the auxiliary task loss is calculated on a representation mapped into an embedding space.
[0119] The various operations of the above methods may be performed by any suitable device capable of performing the corresponding functions. These devices may include various hardware and / or software components and / or modules, including but not limited to circuits, application specific integrated circuits (ASICs), or processors. In general, where operations are illustrated in the accompanying drawings, these operations may have corresponding paired device-plus-function components with similar numbers.
[0120] As used, the term "determining" encompasses a wide variety of actions. For example, "determining" may include calculating, computing, processing, deriving, investigating, searching (e.g., searching in a table, a database, or another data structure), ascertaining, and the like. Additionally, "determining" may include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and the like. Furthermore, "determining" may include resolving, selecting, choosing, establishing, and the like.
[0121] As used, a phrase referring to "at least one of" a list of items refers to any combination of those items, including single members. As an example, "at least one of a, b, or c" is intended to cover: a, b, c, ab, ac, bc, and abc.
[0122] The various illustrative logical blocks, modules, and circuits described in conjunction with the present disclosure may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array signal (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described. A general purpose processor may be a microprocessor, but in an alternative, the processor may be any commercially available processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.
[0123] The steps or algorithms of the methods described in conjunction with the present disclosure may be directly embodied in hardware, software modules executed by a processor, or a combination of the two. The software module may reside in any form of storage medium known in the art. Some examples of usable storage media include random access memory (RAM), read-only memory (ROM), flash memory, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, removable disks, CD-ROMs, and the like. The software module may include a single instruction or multiple instructions, and may be distributed over several different code segments, distributed between different programs, and distributed across multiple storage media. The storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. In an alternative, the storage medium may be integral with the processor.
[0124] The disclosed methods include one or more steps or actions for implementing the described methods. The method steps and / or actions may be interchangeable with each other without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions may be modified without departing from the scope of the claims.
[0125] The functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in hardware, an example hardware configuration may include a processing system in a device. The processing system may be implemented using a bus architecture. Depending on the specific application and overall design constraints of the processing system, the bus may include any number of interconnecting buses and bridges. The bus may link various circuits together, including a processor, a machine-readable medium, and a bus interface. In addition, a bus interface may be used to connect a network adapter, etc., to the processing system via the bus. A network adapter may be used to implement signal processing functions. For some aspects, a user interface (e.g., a keypad, a display, a mouse, a joystick, etc.) may also be connected to the bus. The bus may also link various other circuits, such as timing sources, peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and will not be described further.
[0126] The processor may be responsible for managing the bus and general processing, including executing software stored on the machine-readable medium. The processor may be implemented using one or more general-purpose processors and / or special-purpose processors. Examples include microprocessors, microcontrollers, DSP processors, and other circuits that can execute software. Software should be broadly interpreted as representing instructions, data, or any combination thereof, whether referred to as software, firmware, middleware, microcode, hardware description language, or other. As an example, the machine-readable medium may include a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a disk, an optical disk, a hard disk drive, or any other suitable storage medium, or any combination thereof. The machine-readable medium can be embodied in a computer program product. The computer program product may include packaging materials.
[0127] In hardware implementation, machine-readable media can be a part of a processing system separated from a processor. However, as will be readily appreciated by those skilled in the art, machine-readable media or any part thereof can be outside a processing system. By way of example, machine-readable media can include a transmission line, a carrier wave modulated by data, and / or a computer product separated from a device, all of which can be accessed by a processor through a bus interface. Alternatively or in addition, machine-readable media or any part thereof can be integrated into a processor, such as with a cache and / or a general register stack. Although the various components discussed can be described as having specific locations, such as local components, they can also be configured in various ways, such as certain components being configured as a part of a distributed computing system.
[0128] The processing system can be configured as a general processing system having one or more microprocessors providing processor functionality and an external memory providing at least a portion of a machine-readable medium, all of which are linked together with other support circuits through an external bus architecture. Alternatively, the processing system may include one or more neuromorphic processors for implementing the described neuron model and neural system model. As another alternative, the processing system may be implemented with an application specific integrated circuit (ASIC) having at least a portion of a processor, a bus interface, a user interface, support circuits, and a machine-readable medium integrated into a single chip, or with one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gated logic, discrete hardware components, or any other suitable circuits, or circuits capable of performing the various functionalities described throughout this disclosure. Those skilled in the art will recognize how to best implement the functionality of the processing system depending on the specific application and the overall design constraints imposed on the entire system.
[0129] The machine-readable medium may include multiple software modules. These software modules include instructions that cause the processing system to perform various functions when executed by the processor. The software module may include a sending module and a receiving module. Each software module may reside in a single storage device or be distributed across multiple storage devices. By way of example, when a triggering event occurs, the software module may be loaded from a hard drive into a RAM. During the execution of the software module, the processor may load some of the instructions into a cache to increase access speed. Then one or more cache lines may be loaded into a general register stack for execution by the processor. When the functionality of a software module is mentioned below, it will be understood that such functionality is implemented by the processor when executing instructions from the software module. In addition, it should be understood that various aspects of the present disclosure produce improvements in the functionality of processors, computers, machines, or other systems that implement such aspects.
[0130] If implemented in software, each function can be stored on or sent by a computer-readable medium as one or more instructions or codes.Computer-readable media includes both computer storage media and communication media, and communication media includes any medium that promotes the transfer of computer programs from one place to another.Storage media can be any available medium that can be accessed by a computer.Exemplarily and not restrictively, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer.Additionally, any connection is also appropriately referred to as computer-readable media.For example, if software is sent from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared (IR), radio, and microwaves, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray Optical disks, where magnetic disks typically reproduce data magnetically, and optical disks reproduce data optically with lasers. Thus, in some aspects, computer-readable media may include non-transitory computer-readable media (e.g., tangible media). Additionally, for other aspects, computer-readable media may include transient computer-readable media (e.g., signals). Combinations of the above should also be included within the scope of computer-readable media.
[0131] Thus, some aspects may include a computer program product for performing the operations presented. For example, such a computer program product may include a computer-readable medium having stored (and / or encoded) thereon instructions that can be executed by one or more processors to perform the described operations. For some aspects, the computer program product may include packaging materials.
[0132] In addition, it should be understood that the modules and / or other appropriate devices for performing the described methods and techniques can be downloaded and / or otherwise obtained by the user terminal and / or base station when applicable. For example, such a device can be coupled to a server to facilitate the transfer of the device for performing the described methods. Alternatively, the various methods described can be provided via a storage device (e.g., RAM, ROM, a physical storage medium such as a compact disc (CD) or a floppy disk, etc.) so that the user terminal and / or base station can obtain the various methods when the storage device is coupled to or provided to the device. In addition, any other suitable technology for providing the described methods and techniques to the device can be used.
[0133] It is to be understood that the claims are not limited to the precise configuration and components illustrated above. Various modifications, changes and variations may be made in the arrangement, operation and details of the methods and apparatus described above without departing from the scope of the claims.
Claims
1. A processor-implemented method, include: Train a machine learning model on the source domain; After training the machine learning model on the source domain, testing the machine learning model on the target domain; as well as The machine learning model is trained on the target domain by regularizing weights of the machine learning model such that shift-agnostic weights are penalized more than shift-biased weights.
2. The processor-implemented method of claim 1 , further comprising training the machine learning model based on a primary task loss and an auxiliary task loss.
3. The processor-implemented method of claim 2, wherein the primary task loss is based on an entropy derived from predicted probabilities of the machine learning model for test samples from the target domain. The processor-implemented method of claim 3 , wherein the entropy comprises an entropy minimization loss. The processor-implemented method of claim 3 , wherein the entropy comprises an entropy maximization loss.
6. The processor-implemented method of claim 2, wherein the auxiliary task loss shifts the target representation to the nearest class centroid of the source domain.
7. The processor-implemented method of claim 6, wherein the auxiliary task loss is computed on a representation mapped into an embedding space.
8. A device, include: Memory; and at least one processor, the at least one processor coupled to the memory, the at least one processor configured to: Train a machine learning model on the source domain; After training the machine learning model on the source domain, testing the machine learning model on the target domain; and The machine learning model is trained on the target domain by regularizing weights of the machine learning model such that shift-agnostic weights are penalized more than shift-biased weights.
9. The apparatus of claim 8, wherein the at least one processor is further configured to train the machine learning model based on a primary task loss and an auxiliary task loss.
10. The apparatus of claim 9, wherein the primary task loss is based on an entropy derived from a predicted probability of a test sample from the target domain by the machine learning model. The apparatus of claim 10 , wherein the entropy comprises an entropy minimization loss. The apparatus of claim 10 , wherein the entropy comprises an entropy maximization loss.
13. The apparatus of claim 9, wherein the auxiliary task loss shifts the target representation to the nearest class centroid of the source domain.
14. The apparatus of claim 13, wherein the auxiliary task loss is computed on a representation mapped into an embedding space.
15. A device, include: means for training a machine learning model on a source domain; means for testing the machine learning model on a target domain after training the machine learning model on the source domain; and Means for training the machine learning model on the target domain by regularizing the weights of the machine learning model so that shift-agnostic weights are penalized more than shift-biased weights.
16. The apparatus according to claim 15 further comprises a device for training the machine learning model based on the main task loss and the auxiliary task loss.
17. The apparatus of claim 16, wherein the primary task loss is based on an entropy derived from a predicted probability of the test sample from the target domain by the machine learning model.
18. The apparatus of claim 17, wherein the entropy comprises an entropy minimization loss.
19. The apparatus of claim 17, wherein the entropy comprises an entropy maximization loss.
20. The apparatus of claim 16, wherein the auxiliary task loss shifts the target representation to the nearest class centroid of the source domain.
21. The apparatus of claim 20, wherein the auxiliary task loss is computed on a representation mapped into an embedding space.
22. A non-transitory computer readable medium having program code recorded thereon, the program code being executed by a processor and include: Program code for training machine learning models on the source domain; program code for testing the machine learning model on a target domain after training the machine learning model on the source domain; and Program code for training the machine learning model on the target domain by regularizing weights of the machine learning model so that shift-agnostic weights are penalized more than shift-biased weights.
23. The non-transitory computer readable medium of claim 22, wherein the program code further comprises program code for training the machine learning model based on a primary task loss and an auxiliary task loss.
24. The non-transitory computer-readable medium of claim 23, wherein the primary task loss is based on an entropy derived from a predicted probability of the test sample from the target domain by the machine learning model.
25. The non-transitory computer readable medium of claim 24, wherein the entropy comprises an entropy minimization loss.
26. The non-transitory computer readable medium of claim 24, wherein the entropy comprises an entropy maximizing loss.
27. The non-transitory computer readable medium of claim 23, wherein the auxiliary task loss moves a target representation to the nearest class centroid of the source domain.
28. The non-transitory computer-readable medium of claim 27, wherein the auxiliary task loss is computed on a representation mapped into an embedding space.
