A cross-device neural network architecture search method

By extracting feature values ​​from devices and datasets through neural network architecture search and then fusing and optimizing them, the problem of inconsistent performance of neural networks on different devices is solved, achieving high-performance adaptation under different devices and scenarios.

CN118886470BActive Publication Date: 2026-11-27TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410929288.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2026-11-27
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing neural network architecture search methods cannot guarantee the same high performance on different devices, resulting in insufficient generalization performance of neural networks across different devices and an inability to further adapt to detailed scenarios, leading to insufficient specialization performance.

Method used

By establishing sample datasets and delayed-aware data, feature values ​​of devices and datasets are extracted using delayed feature extraction models and dataset feature extraction models, and then fused to generate joint feature values. These joint feature values ​​are then input into a neural network matching model to optimize the neural network architecture, ensuring that it adapts to the characteristics of different devices and datasets.

Benefits of technology

It improves the running efficiency and generalization performance of neural networks on different devices, and can exhibit high performance in different scenarios, solving the problem of insufficient generalization and specialization performance in the neural network architecture search process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886470B_ABST
    Figure CN118886470B_ABST
Patent Text Reader

Abstract

The application discloses a cross-device neural network architecture search method and a training method and device of a joint model, a storage medium, equipment and a computer program product, and belongs to the model optimization field, and comprises the following steps: establishing a sample data set, and determining delay perception data of a computing device; inputting the delay perception data into a delay feature extraction model to obtain delay feature values of the computing device, and inputting the sample data set into a data set feature extraction model to obtain data set feature values of the sample data set; fusing the delay feature values and the data set feature values to obtain joint feature values; inputting the joint feature values into a neural network matching model to obtain optimization parameters, and adjusting a neural network to be optimized according to the optimization parameters to obtain an optimized neural network. The problems that the generalization performance of the obtained neural network on different devices is insufficient and the specialization performance of the obtained neural network on different scenes is insufficient in the neural network architecture search process are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of model optimization, specifically relating to a cross-device neural network architecture search method and a training method, apparatus, storage medium, device, and computer program product for a joint model. Background Technology

[0002] With the widespread adoption of smart devices, cross-device scenarios are becoming increasingly common. In these scenarios, different devices (such as computers, mobile phones, drones, and smart home appliances) are used for the same task, such as facial recognition. Due to differences in hardware performance and storage capacity, the datasets stored by these devices are often not independent and identically distributed. To protect privacy and reduce network traffic, this data is usually not uploaded to the cloud for centralized processing, but rather needs to be processed locally on the device. Therefore, how to synchronize knowledge across different devices and provide a model adapted to the performance of each device has become an important research topic.

[0003] Currently, Neural Architecture Search (NAS) methods have achieved significant success in designing model architectures for specific tasks. Existing NAS methods mainly include those based on reinforcement learning, evolutionary algorithms, and differentiable search strategies. These methods typically find the optimal neural network architecture by searching on a given dataset.

[0004] However, these methods typically only search for a single optimal architecture across all datasets and devices, without guaranteeing that this architecture will have the same high performance on different devices. This leads to inconsistent performance of the single architecture across various devices. Furthermore, while the searched neural networks may have the same functionality, they cannot be further adapted to specific scenarios. Therefore, neural networks obtained through existing neural network architecture search methods suffer from insufficient generalization performance across different devices and insufficient specialization performance in different scenarios. Summary of the Invention

[0005] This application aims to provide a cross-device neural network architecture search method and a training method, device, storage medium, equipment, and computer program product for joint models, which at least solves the problems of insufficient generalization performance of the obtained neural network on different devices and insufficient specialization performance in different scenarios during the neural network architecture search process.

[0006] In a first aspect, embodiments of this application disclose a cross-device neural network architecture search method, including: A sample dataset is established, and latency-aware data of the computing device is determined; the computing device is used to set up a neural network; the latency-aware data is used to characterize the speed at which the computing device runs the neural network. The delay-aware data is input into the delay feature extraction model to obtain the delay feature value of the computing device, and the sample dataset is input into the dataset feature extraction model to obtain the dataset feature value of the sample dataset; The delayed feature value is fused with the dataset feature value to obtain a joint feature value; The joint feature values ​​are input into the neural network matching model to obtain optimization parameters, and the neural network to be optimized is adjusted according to the optimization parameters to obtain the optimized neural network; the optimization parameters are used to characterize the selection result of neurons in the neural network.

[0007] Secondly, embodiments of this application also disclose a training method for a joint model, wherein the joint model includes a delayed feature extraction model, a dataset feature extraction model, and a neural network matching model as described in the cross-device neural network architecture search method of the first aspect, and the training method includes: A sample training dataset is established, and the delay-aware training data for the training device is determined; the training device is used to set up a training neural network; the delay-aware training data is used to characterize the speed at which the training device runs the training neural network. The delay-aware training data is input into the delay feature extraction model to be trained to obtain the delay feature training data of the training device, and the sample training dataset is input into the dataset feature extraction model to be trained to obtain the dataset feature training data of the sample training dataset. The delayed feature training data is fused with the dataset feature training data to obtain joint feature training data; The joint feature training data is input into the neural network matching model to be trained, and training parameters are extracted from the neural network matching model. A loss function is constructed based on the training parameters, and the joint model is trained using the loss function to obtain the trained joint model.

[0008] Thirdly, embodiments of this application also disclose a cross-device neural network architecture search device, comprising: A data acquisition module is used to establish a sample dataset and determine the latency-aware data of the computing device; the computing device is used to set up a neural network; the latency-aware data is used to characterize the speed at which the computing device runs the neural network. The feature acquisition module is used to input the delay-aware data into the delay feature extraction model to obtain the delay feature value of the computing device, and to input the sample dataset into the dataset feature extraction model to obtain the dataset feature value of the sample dataset; The feature fusion module is used to fuse the delayed feature values ​​with the dataset feature values ​​to obtain joint feature values; The network generation module is used to input the joint feature values ​​into the neural network matching model to obtain optimization parameters, and adjust the neural network to be optimized according to the optimization parameters to obtain the optimized neural network; the optimization parameters are used to characterize the selection result of neurons in the neural network.

[0009] Fourthly, embodiments of this application also disclose a training apparatus for a joint model, wherein the joint model includes a delayed feature extraction model, a dataset feature extraction model, and a neural network matching model in the cross-device neural network architecture search method described in the first aspect, and the training apparatus includes: The training data acquisition module is used to establish a sample training dataset and determine the delay-aware training data of the training device; the training device is used to set up a training neural network; the delay-aware training data is used to characterize the speed at which the training device runs the training neural network. The training feature acquisition module is used to input the delay-aware training data into the delay feature extraction model to be trained in order to obtain the delay feature training data of the training device, and to input the sample training dataset into the dataset feature extraction model to be trained in order to obtain the dataset feature training data of the sample training dataset. The training feature fusion module is used to fuse the delayed feature training data with the dataset feature training data to obtain joint feature training data; The training parameter acquisition module is used to input the joint feature training data into the neural network matching model to be trained, and to extract training parameters from the neural network matching model. The joint model training module is used to construct a loss function based on the training parameters and train the joint model using the loss function to obtain the trained joint model.

[0010] Fifthly, embodiments of this application also disclose a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the first or second aspect.

[0011] Sixthly, embodiments of this application also disclose an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, performs the steps as described in the first or second aspect.

[0012] In a seventh aspect, embodiments of this application also disclose a computer program product, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps described in the first or second aspect.

[0013] In summary, in this embodiment, by using latency-aware data from specific computing devices, the performance differences between different devices running neural networks can be accurately reflected. Furthermore, by extracting latency feature values ​​using a latency feature extraction model, the latency characteristics of different devices running neural networks can be quantified. This allows for targeted optimization in subsequent steps based on the device's latency characteristics, improving the operating efficiency of the neural network on different devices. Simultaneously, the established sample dataset further refines the application scenarios of the neural network. By extracting dataset feature values ​​using a dataset feature extraction model, the characteristics of the sample dataset can be accurately described. Then, by fusing latency feature values ​​with dataset feature values, both device performance and dataset characteristics can be comprehensively considered. This allows subsequent neural network optimization to adapt to both the performance of different devices and the characteristics of the dataset, improving the generalization and specialization performance of the neural network. Therefore, the method based on this embodiment enables the final neural network to adapt to different application scenarios while exhibiting high performance on different devices, solving the problems of insufficient generalization performance and insufficient specialization performance in different scenarios encountered during neural network architecture search. Attached Figure Description

[0014] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a schematic diagram illustrating the steps of a cross-device neural network architecture search method provided in this embodiment; Figure 2 This is a schematic diagram illustrating the steps of another cross-device neural network architecture search method provided in this embodiment; Figure 3 This is the data flow process of the cross-device neural network architecture search method provided in this embodiment; Figure 4 This embodiment provides a schematic diagram of the steps involved in training a joint model. Figure 5 This is a schematic diagram of the structure of a cross-device neural network architecture search device provided in this embodiment; Figure 6 This is a block diagram of a training device for a joint model provided in this embodiment; Figure 7 This is a block diagram of an electronic device provided in an embodiment of this application; Figure 8 This is a block diagram of another electronic device provided in the embodiments of this application. Detailed Implementation

[0015] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0016] Figure 1 This embodiment provides a cross-device neural network architecture search method, which may include the following steps: Step 101: Establish a sample dataset and determine the latency-aware data of the computing device.

[0017] The computing device is used to set up the neural network; the delay-sensing data is used to characterize the speed at which the computing device runs the neural network.

[0018] In some embodiments of this application, a sample dataset is first established to determine the specific application scenarios of the neural network model. The sample dataset should be refined from the data that the neural network model can process to ensure the model's sensitivity to the scenario. Next, latency-aware data for the computing device needs to be determined. Latency-aware data refers to the time required to run the neural network on the computing device; this data characterizes the device's performance. Latency-aware data can be obtained by running a set of predefined operators on the device and recording their running times. This data will serve as input to help extract the device's performance characteristics.

[0019] Suppose we have a smartphone as the device and a facial recognition model as the neural network model, specifically for the application of facial recognition of kindergarten children. First, we will build a sample dataset primarily containing images of children's faces. Then, we can run a set of predefined neural network operators, such as convolution and pooling operations, on each device, recording the runtime of each operator, for example, 50 milliseconds. These measurements will determine the latency-aware data for different devices, which will be used for device feature extraction in subsequent steps.

[0020] Step 102: Input the delay-aware data into the delay feature extraction model to obtain the delay feature value of the computing device, and input the sample dataset into the dataset feature extraction model to obtain the dataset feature value of the sample dataset.

[0021] In some embodiments of this application, the latency-aware data obtained in the previous steps is input into a latency feature extraction model. The latency feature extraction model is a neural network model specifically designed to analyze and extract the latency characteristics of a device. By inputting the latency-aware data, the model outputs a latency feature value that quantifies the performance characteristics of the device when running the neural network. Next, a sample dataset is input into a dataset feature extraction model. This dataset feature extraction model is also a neural network model used to extract features from the dataset. By inputting the sample dataset, the model outputs a dataset feature value that describes the overall characteristics of the sample dataset, thus reflecting its specialization for the application scenario.

[0022] For example, assuming that the smartphone's latency perception data of 50ms was obtained in the previous steps, this data can be input into the latency feature extraction model. After processing this data, the latency feature extraction model outputs the corresponding latency feature values ​​(e.g., [1, 0, 2, 4]). Simultaneously, a sample dataset mainly containing children's facial images is input into the dataset feature extraction model. Assuming the sample dataset contains 1000 facial images (the vast majority of which are children's faces), the dataset feature extraction model analyzes these images and outputs a dataset feature value (e.g., […3, 4, 5, 1…)). 1000 These steps yielded the latency features of the computing device and the dataset features of the sample dataset, providing a foundation for joint feature extraction and neural network optimization in subsequent steps.

[0023] Step 103: Fuse the delayed feature values ​​with the dataset feature values ​​to obtain joint feature values.

[0024] In some embodiments of this application, the latency feature values ​​and dataset feature values ​​obtained from previous steps are fused to generate a joint feature value. The joint feature value is a comprehensive feature obtained by concatenating the device's latency features and the dataset's features using other fusion methods. This joint feature value will be used in subsequent neural network architecture optimization processes to ensure that the model can adapt to both device performance and dataset characteristics.

[0025] For example, suppose that in the previous steps, the smartphone's latency feature value was [1, 0, 2, 4]. Meanwhile, the sample dataset's dataset feature value was […3, 4, 5, 1…]. 1000 In this step, these eigenvalues ​​are fused. The fusion method can be selected based on the actual mathematical characteristics of the two eigenvalues, such as length and deviation, and no specific limitation is made in this application.

[0026] Step 104: Input the joint feature values ​​into the neural network matching model to obtain optimization parameters, and adjust the neural network to be optimized according to the optimization parameters to obtain the optimized neural network.

[0027] Among them, the optimization parameters are used to characterize the selection results of neurons in the neural network.

[0028] In some embodiments of this application, the joint feature values ​​obtained from the previous steps are input into the neural network matching model. The neural network matching model is a model for optimizing the neural network architecture. By inputting the joint feature values, the model outputs a set of optimization parameters. These optimization parameters characterize the selection results of neurons in the neural network, i.e., which neurons are most suitable for activation under the characteristics of the current device and dataset. Based on these optimization parameters, the neural network to be optimized is adjusted to ensure its performance is optimal on different devices and datasets.

[0029] For example, suppose that in the previous steps, the joint feature value of the smartphone has been determined to be [1,0,2,4,…3,4,5,1…]. 1004 These joint feature values ​​can then be input into the neural network matching model. After processing, the model outputs corresponding optimization parameters, such as [0.6, 0.2, 0.2]. These optimization parameters indicate which neurons should be activated on different devices (the component 0.6 is the largest, indicating that the neuron corresponding to component 0.6 will be activated). Based on these optimization parameters, the neural network to be optimized is adjusted to achieve optimal performance on smartphones. The way the optimization parameters affect the neural network can be adjusted according to the specific properties of the neural network, and no further limitations are made in this application.

[0030] In summary, in this embodiment, by using latency-aware data from specific computing devices, the performance differences between different devices running neural networks can be accurately reflected. Furthermore, by extracting latency feature values ​​using a latency feature extraction model, the latency characteristics of different devices running neural networks can be quantified. This allows for targeted optimization in subsequent steps based on the device's latency characteristics, improving the operating efficiency of the neural network on different devices. Simultaneously, the established sample dataset further refines the application scenarios of the neural network. By extracting dataset feature values ​​using a dataset feature extraction model, the characteristics of the sample dataset can be accurately described. Then, by fusing latency feature values ​​with dataset feature values, both device performance and dataset characteristics can be comprehensively considered. This allows subsequent neural network optimization to adapt to both the performance of different devices and the characteristics of the dataset, improving the generalization and specialization performance of the neural network. Therefore, the method based on this embodiment enables the final neural network to adapt to different application scenarios while exhibiting high performance on different devices, solving the problems of insufficient generalization performance and insufficient specialization performance in different scenarios encountered during neural network architecture search.

[0031] Figure 2 This embodiment provides another cross-device neural network architecture search method, which may include the following steps: Step 201: Establish a sample dataset and determine the latency-aware data of the computing device.

[0032] The computing device is used to set up the neural network; the delay-sensing data is used to characterize the speed at which the computing device runs the neural network.

[0033] The method shown in this step has been explained in step 101 and will not be repeated here.

[0034] Optionally, in order to determine the latency-aware data of the computing device, step 201 includes the following sub-steps: Sub-step 2011 records the input time of the preset test data into the neural network set up on the computing device, and records the output time of the neural network outputting the prediction result.

[0035] In some embodiments of this application, it is necessary to record the time points when preset test data is input into the neural network set up on the computing device, and the time points when the neural network outputs prediction results. Input time refers to the moment when the test data begins to enter the neural network, and output time refers to the moment when the neural network completes the calculation and outputs the prediction results. By recording these two time points, a basis can be provided for subsequent calculation of latency-aware data.

[0036] For example, suppose a neural network model for child facial recognition is set up on a high-performance computer. Since this step is only for testing the neural network's processing speed, the test data can be any image (or other data with equivalent processing complexity). During the test, record the time point when the test data is input into the neural network, for example, input time 10:00:00.000. Then, record the time point when the neural network outputs its prediction result, for example, output time 10:00:00.050. Recording these two time points provides a basis for subsequent calculations of delayed-perception data.

[0037] Sub-step 2012 uses the difference between the output time and the input time as delay sensing data.

[0038] In some embodiments of this application, it is necessary to calculate the difference between the time it takes for the neural network to output a prediction result and the time it takes to input the test data. This difference is the latency-aware data, representing the latency of the neural network running on the computing device. Latency-aware data is used to quantify the performance characteristics of the device when processing neural network tasks, providing a basis for subsequent feature extraction and model optimization.

[0039] For example, suppose on a high-performance computer, the preset input time for the test data is 10:00:00.000, and the output time for the prediction result is 10:00:00.050. The difference between these two time points is calculated as follows: Delay-sensing data = Output time - Input time = 10:00:00.050 - 10:00:00.000 = 0.050 seconds. Therefore, the latency-aware data of the high-performance computer is 0.050 seconds. Through these calculations, the latency-aware data of the device is obtained, providing a foundation for device feature extraction in subsequent steps.

[0040] Step 202: Input the delay-aware data into the delay feature extraction model to obtain the delay feature value of the computing device, and input the sample dataset into the dataset feature extraction model to obtain the dataset feature value of the sample dataset.

[0041] The method shown in this step has been explained in step 102 and will not be repeated here.

[0042] Optionally, the sample dataset contains multiple data points. In order to input the sample dataset into the dataset feature extraction model to obtain the dataset feature values ​​of the sample dataset, step 202 includes the following sub-steps: Sub-step 2021 involves inputting each data point in the sample dataset into the dataset feature extraction model to obtain the data feature value for each data point.

[0043] In some embodiments of this application, each data point in the sample dataset needs to be input into a dataset feature extraction model. The dataset feature extraction model is a neural network model used to extract feature values ​​for each data point. By performing feature extraction on each data point, feature values ​​for each data point can be obtained. These feature values ​​will be used in subsequent moving average calculations to generate feature values ​​for the entire dataset.

[0044] For example, suppose the sample dataset contains 1000 images of children's faces. Each image is input into a feature extraction model. For instance, after the first image is input into the model, the output feature value is [0.2, 0.3, 0.5]; after the second face image is input into the model, the output feature value is [0.1, 0.4, 0.5]; and so on, until all 1000 images have been processed by the feature extraction model, obtaining the feature value for each image. These feature values ​​will be used in subsequent calculations to generate the feature values ​​for the entire dataset.

[0045] Sub-step 2022: Perform a moving average on all data feature values ​​according to the preset moving average parameters to obtain the moving average value, and use the moving average value as the feature value of the dataset.

[0046] In some embodiments of this application, a moving average is calculated for all data feature values ​​obtained from the previous steps. A moving average is a smoothing technique that reduces noise and fluctuations by applying a weighted average to a set of data. Preset moving average parameters are used to determine the size of the moving window and the weight allocation. Through moving average calculation, a smoothed feature value is obtained, which serves as the feature value for the entire dataset, reflecting the overall characteristics of the dataset.

[0047] For example, suppose the sample dataset contains 5 data points, and the feature values ​​for each data point have been obtained through previous steps. Assume the preset sliding window weight is h = 0.1. Then, the 5 feature values ​​are calculated using a weighted average across the sliding window. Let feature value a... i Let the moving average value A be (i=1,…,5) as follows: a1=[0.2, 0.3, 0.5], a2=[0.1, 0.4, 0.5], a3=[0.3, 0.2, 0.5], a4=[0.4, 0.3, 0.4], a5=[0.2, 0.4, 0.4]. The moving average value A can then be calculated as follows: , Among them, b iThese are intermediate variables. The final calculated value is A = [1.086788, 1.067857, 1.066545]. This moving average A is the smoothed average of each data point in the sample dataset. By performing similar moving average calculations on all feature values, the feature values ​​of the entire dataset are finally obtained, reflecting the overall characteristics of the dataset.

[0048] Step 203: Fuse the delayed feature values ​​with the dataset feature values ​​to obtain joint feature values.

[0049] The method shown in this step has been explained in step 103 and will not be repeated here.

[0050] Optionally, step 203 includes the following sub-steps: Sub-step 2031 involves concatenating the delayed feature values ​​with the dataset feature values ​​according to a preset concatenation order to obtain a concatenated vector, and using the concatenated vector as the joint feature value.

[0051] In some embodiments of this application, the delayed feature values ​​and dataset feature values ​​obtained from previous steps need to be concatenated in a preset order. Concatenation refers to joining two or more vectors together to form a new vector. The preset concatenation order determines the order in which the delayed feature values ​​and dataset feature values ​​are arranged in the new vector. Through the concatenation operation, the performance characteristics of the device and the features of the dataset can be combined into a single vector, forming a joint feature value. This joint feature value will be used in the subsequent neural network optimization process.

[0052] For example, suppose that in the previous steps, the latency feature value of the high-performance computer is [1,0,2,4]. Meanwhile, the dataset feature value is [1.086788,1.067857,1.066545]. These feature values ​​can then be concatenated in a preset order. For example, the preset concatenation order is latency feature value first, followed by dataset feature value. Through the concatenation operation, the following concatenated vector is obtained: [1,0,2,4,1.086788,1.067857,1.066545]. These concatenated vectors, as joint feature values, integrate the performance characteristics of the device and the characteristics of the dataset, providing a foundation for subsequent neural network matching and optimization.

[0053] Step 204: Input the joint feature values ​​into the neural network matching model to obtain optimization parameters, and adjust the neural network to be optimized according to the optimization parameters to obtain the optimized neural network.

[0054] The optimization parameters are used to characterize the selection results of neurons in the neural network. The method shown in this step has been explained in step 104 and will not be repeated here.

[0055] Optionally, the optimization parameters include multiple predicted values, each corresponding one-to-one with a neuron in the neural network, and each neuron has a corresponding hidden layer. To adjust the neural network to be optimized according to the optimization parameters, step 204 includes the following sub-steps: Sub-step 2041: Select the neuron with the largest predicted value among all predicted values ​​of neurons in the same hidden layer as the target neuron.

[0056] In some embodiments of this application, this step involves evaluating all neurons in the same hidden layer and selecting the neuron with the highest predicted value as the target neuron. The predicted value is provided by optimization parameters and represents the adaptability of each neuron under the current device and dataset characteristics. By comparing these predicted values, it can be determined which neuron is best suited for activation under the current conditions. Selecting the neuron with the highest predicted value as the target neuron ensures optimal performance of the neural network on the current device and dataset.

[0057] For example, suppose there are three neurons O1, O2, and O3 in a hidden layer, and the optimization parameters provide predicted values ​​of 0.2, 0.5, and 0.3, respectively. By comparing these three predicted values, it can be found that neuron O2 has the highest predicted value of 0.5. Therefore, in this step, neuron O2 is selected as the target neuron. This selection process ensures that, given the characteristics of the current device and dataset, the neural network activates the most suitable neuron, thereby optimizing its performance.

[0058] Sub-step 2042 determines the neural network with the selected target neurons as the optimized neural network.

[0059] In some embodiments of this application, it is necessary to determine the neural network containing target neurons as the optimized neural network. Target neurons are selected through previous steps, i.e., neurons with the highest prediction values ​​in the same hidden layer. By selecting target neurons, it is ensured that the neural network performs optimally under the characteristics of the current device and dataset. The optimized neural network will include these target neurons and be adjusted according to optimization parameters to improve its adaptability and performance on different devices and datasets.

[0060] For example, suppose there are three neurons O1, O2, and O3 in a hidden layer. In previous steps, neuron O2, with the highest predicted value, was selected as the target neuron. In this step, the neural network containing neuron O2 is determined as the optimized neural network. This means that, given the characteristics of the current device and dataset, the neural network will activate neuron O2 and adjust the network structure according to optimization parameters, such as adjusting connection weights or activation functions. In this way, the optimized neural network can better adapt to the characteristics of different devices and datasets, providing higher performance and generalization ability.

[0061] Based on the above embodiments, Figure 3 This application describes the specific data flow process in the cross-device neural network architecture search method provided in this embodiment, which mainly includes steps S1 to S3: Step S1: In this step, the feature value is first extracted from the delayed-aware data using a delayed feature extraction model.

[0062] Step S2: In parallel with step S1, the sample dataset will be processed by the dataset feature extraction model to extract the feature values ​​of the dataset.

[0063] Step S3: The delayed feature values ​​and dataset feature values ​​obtained in Steps S1 and S2 are comprehensively processed to obtain optimized parameters for updating the model. Specifically, the delayed feature values ​​and dataset feature values ​​are fused to generate joint feature values. These joint feature values ​​are then input into the neural network matching model to obtain optimized parameters. Based on these optimized parameters, the neural network is adjusted and optimized to ensure optimal performance on different devices and datasets. Finally, the optimized neural network model is output.

[0064] Figure 4 This embodiment provides a training method for a joint model, which includes a delayed feature extraction model, a dataset feature extraction model, and a neural network matching model from the cross-device neural network architecture search method described in the above embodiment. The training method includes: Step 301: Establish a sample training dataset and determine the delay-aware training data for the training device.

[0065] Among them, the training equipment is used to set up the training neural network; the delay-sensing training data is used to characterize the speed at which the training equipment runs the training neural network.

[0066] In some embodiments of this application, a sample training dataset is first established to train the neural network model and determine the training objective. Next, delay-aware training data for the training device needs to be determined. The training device is used to set up the neural network for training, and the delay-aware training data characterizes the speed of the training device when running the neural network. Delay-aware training data can be obtained by running a set of predefined operators on the training device and recording their running times. This data will serve as input to help extract the device's performance characteristics.

[0067] For example, suppose there are three training devices: a high-performance computer, a smartphone, and a smart home appliance. First, a sample training dataset containing face images is created, with each device storing a different number and quality of face images. Then, a set of predefined neural network operators, such as convolution and pooling operations, are run on each device, and the runtime of each operator is recorded. Assume the average runtime of a convolution operation is 10 milliseconds on the high-performance computer, 50 milliseconds on the smartphone, and 100 milliseconds on the smart home appliance. These measurements determine the latency-aware training data for each device, which will be used for device feature extraction in subsequent steps.

[0068] Step 302: Input the delay-aware training data into the delay feature extraction model to be trained to obtain the delay feature training data of the training device, and input the sample training dataset into the dataset feature extraction model to be trained to obtain the dataset feature training data of the sample training dataset.

[0069] In some embodiments of this application, the latency-aware training data obtained in the previous steps is first input into a latency feature extraction model to be trained. The latency feature extraction model is a neural network model specifically designed to analyze and extract the latency characteristics of a device. By inputting the latency-aware training data, the model outputs latency feature training data, which quantifies the performance characteristics of the training device when running the neural network. Next, the sample training dataset is input into a dataset feature extraction model to be trained. The dataset feature extraction model is also a neural network model used to extract features from the dataset. By inputting the sample training dataset, the model outputs dataset feature training data, which describes the overall characteristics of the dataset.

[0070] For example, suppose that in the previous steps, latency-aware training data for high-performance computers, smartphones, and smart home appliances have been obtained. This data is then input into the latency feature extraction model to be trained. For instance, the latency-aware training data for the high-performance computer is [10, 12, 11] milliseconds, for the smartphone [50, 55, 52] milliseconds, and for the smart home appliance [100, 110, 105] milliseconds. After processing this data, the latency feature extraction model outputs the corresponding latency feature training data. For instance, the latency feature training data for the high-performance computer is 0.1, for the smartphone is 0.5, and for the smart home appliance is 1.0. Simultaneously, a sample training dataset containing face images is input into the dataset feature extraction model to be trained. Suppose the sample training dataset contains 1000 face images. The dataset feature extraction model analyzes these images and outputs dataset feature training data. For instance, the dataset feature training data is [1.086788, 1.067857, 1.066545]. These steps yielded training data on the latency features of the training device and training data on the sample training dataset, providing a foundation for joint feature extraction and neural network optimization in subsequent steps.

[0071] Step 303: Fuse the delayed feature training data with the dataset feature training data to obtain joint feature training data.

[0072] In some embodiments of this application, this step involves fusing the delayed feature training data and the dataset feature training data obtained from previous steps to generate joint feature training data. Fusion refers to combining two or more feature data sets to form a new comprehensive feature. By fusing the delayed feature training data and the dataset feature training data, the performance characteristics of the device and the characteristics of the dataset can be comprehensively considered, providing a foundation for subsequent neural network optimization.

[0073] For example, suppose in the previous steps, the latency feature training data for high-performance computers was 0.1, the latency feature training data for smartphones was 0.5, and the latency feature training data for smart home appliances was 1.0. Meanwhile, the dataset feature training data for the sample training dataset was [1.086788, 1.067857, 1.066545]. In this step, these feature data will be fused. For example, a simple concatenation operation can be used to combine the latency feature training data and the dataset feature training data into a joint feature training vector: Joint feature training data for high-performance computers: [0.1, 1.086788, 1.067857, 1.066545] Joint feature training data for smartphones: [0.5, 1.086788, 1.067857, 1.066545] Joint feature training data for smart home appliances: [1.0, 1.086788, 1.067857, 1.066545] These joint feature training data will be used as input for the neural network matching model in subsequent steps to optimize the neural network architecture so that it can perform optimally on different devices.

[0074] Step 304: Input the joint feature training data into the neural network matching model to be trained, and extract the training parameters from the neural network matching model.

[0075] In some embodiments of this application, the joint feature training data obtained from previous steps needs to be input into the neural network matching model to be trained. The neural network matching model is a model used to optimize the neural network architecture. By inputting the joint feature training data, the model outputs a set of training parameters. These training parameters guide the training process of the neural network, ensuring that the model can adapt to the characteristics of different devices and datasets, thereby improving its performance and generalization ability.

[0076] For example, suppose that in the previous steps, the joint feature training data from high-performance computers was fused into [0.1, 1.086788, 1.067857, 1.066545], the joint feature training data from smartphones was fused into [0.5, 1.086788, 1.067857, 1.066545], and the joint feature training data from smart home appliances was fused into [1.0, 1.086788, 1.067857, 1.066545]. These joint feature training data are then input into the neural network matching model to be trained. After processing, the model outputs corresponding training parameters, which represent the optimization direction of the neural network under different device and dataset characteristics. These training parameters can guide the training process of the neural network, enabling it to exhibit optimal performance on different devices and datasets.

[0077] Step 305: Construct a loss function based on the training parameters, and train the joint model using the loss function to obtain the trained joint model.

[0078] In some embodiments of this application, this step involves constructing a loss function based on the training parameters obtained from previous steps. The loss function measures the difference between the neural network's predictions and the actual results; minimizing the loss function optimizes the neural network's performance. When constructing the loss function, the training parameters must be considered to ensure that the loss function accurately reflects the neural network's performance under different device and dataset characteristics. Next, the joint model is trained using the loss function, adjusting the model's weights and structure to achieve optimal performance on different devices and datasets.

[0079] For example, suppose that in step 304, the joint feature training data from the high-performance computer is fused into [0.1, 1.086788, 1.067857, 1.066545], the joint feature training data from the smartphone is fused into [0.5, 1.086788, 1.067857, 1.066545], and the joint feature training data from the smart home appliance is fused into [1.0, 1.086788, 1.067857, 1.066545]. Then, a loss function (e.g., the mean squared error loss function) can be constructed based on these training parameters. By incorporating the training parameters into the loss function, the errors from different devices and datasets can be weighted. Through this weighting method, a loss function that comprehensively considers the characteristics of different devices and datasets is constructed. Then, by minimizing this loss function, the joint model is trained, adjusting the model's weights and structure to achieve optimal performance on different devices and datasets. During training, optimization algorithms such as gradient descent can be used to continuously update the model parameters until the loss function reaches its minimum. In this way, a joint model with high performance on different devices and datasets can be obtained.

[0080] In summary, in this embodiment, by using latency-aware data from specific computing devices, the performance differences between different devices running neural networks can be accurately reflected. Furthermore, by extracting latency feature values ​​using a latency feature extraction model, the latency characteristics of different devices running neural networks can be quantified. This allows for targeted optimization in subsequent steps based on the device's latency characteristics, improving the operating efficiency of the neural network on different devices. Simultaneously, the established sample dataset further refines the application scenarios of the neural network. By extracting dataset feature values ​​using a dataset feature extraction model, the characteristics of the sample dataset can be accurately described. Then, by fusing latency feature values ​​with dataset feature values, both device performance and dataset characteristics can be comprehensively considered. This allows subsequent neural network optimization to adapt to both the performance of different devices and the characteristics of the dataset, improving the generalization and specialization performance of the neural network. Therefore, the method based on this embodiment enables the final neural network to adapt to different application scenarios while exhibiting high performance on different devices, solving the problems of insufficient generalization performance and insufficient specialization performance in different scenarios encountered during neural network architecture search.

[0081] like Figure 5 As shown in the embodiments, this application also discloses a cross-device neural network architecture search device 40, including: The data acquisition module 401 is used to establish a sample dataset and determine the latency-sensing data of the computing device; the computing device is used to set up a neural network; the latency-sensing data is used to characterize the speed at which the computing device runs the neural network; The feature acquisition module 402 is used to input the delay-aware data into the delay feature extraction model to obtain the delay feature value of the computing device, and to input the sample dataset into the dataset feature extraction model to obtain the dataset feature value of the sample dataset; Feature fusion module 403 is used to fuse delayed feature values ​​with dataset feature values ​​to obtain joint feature values; The network generation module 404 is used to input joint feature values ​​into the neural network matching model to obtain optimization parameters, and adjust the neural network to be optimized according to the optimization parameters; the optimization parameters are used to characterize the selection results of neurons in the neural network to obtain the optimized neural network.

[0082] Optionally, the data acquisition module 401 includes: The timing submodule is used to record the input time of the preset test data into the neural network set up on the computing device, and to record the output time of the neural network to output the prediction result; The perception confirmation submodule is used to use the difference between the output time and the input time as delay perception data.

[0083] Optionally, the sample dataset contains multiple data points, and the feature acquisition module 402 includes: The data feature submodule is used to input each data point in the sample dataset into the dataset feature extraction model to obtain the data feature value of each data point. The dataset feature submodule is used to perform a moving average on all data feature values ​​according to preset moving average parameters to obtain the moving average value, and then use the moving average value as the dataset feature value.

[0084] Optionally, the feature fusion module 403 includes: The feature fusion submodule is used to concatenate delayed feature values ​​and dataset feature values ​​according to a preset concatenation order to obtain a concatenated vector, and use the concatenated vector as the joint feature value.

[0085] Optionally, the optimization parameters include multiple predicted values, each corresponding one-to-one with a neuron in the neural network, and each neuron has a corresponding hidden layer; the network generation module 404 includes: The neuron selection submodule is used to select the neuron with the largest predicted value among all predicted values ​​of neurons in the same hidden layer as the target neuron. The network generation submodule is used to determine the optimized neural network from the selected target neurons.

[0086] like Figure 6 As shown in the embodiments of this application, a training device 50 for a joint model is also disclosed. The joint model includes a delayed feature extraction model, a dataset feature extraction model, and a neural network matching model in the cross-device neural network architecture search method as described in the above embodiments. The training device includes: The training data acquisition module 501 is used to establish a sample training dataset and determine the delay-aware training data of the training device; the training device is used to set up the training neural network; the delay-aware training data is used to characterize the speed at which the training device runs the training neural network. The training feature acquisition module 502 is used to input the delay-aware training data into the delay feature extraction model to be trained in order to obtain the delay feature training data of the training device, and to input the sample training dataset into the dataset feature extraction model to be trained in order to obtain the dataset feature training data of the sample training dataset. The training feature fusion module 503 is used to fuse delayed feature training data with dataset feature training data to obtain joint feature training data. The training parameter acquisition module 504 is used to input the joint feature training data into the neural network matching model to be trained, and to extract the training parameters from the neural network matching model. The joint model training module 505 is used to construct a loss function based on the training parameters and train the joint model using the loss function to obtain the trained joint model.

[0087] In summary, in this embodiment, by using latency-aware data from specific computing devices, the performance differences between different devices running neural networks can be accurately reflected. Furthermore, by extracting latency feature values ​​using a latency feature extraction model, the latency characteristics of different devices running neural networks can be quantified. This allows for targeted optimization in subsequent steps based on the device's latency characteristics, improving the operating efficiency of the neural network on different devices. Simultaneously, the established sample dataset further refines the application scenarios of the neural network. By extracting dataset feature values ​​using a dataset feature extraction model, the characteristics of the sample dataset can be accurately described. Then, by fusing latency feature values ​​with dataset feature values, both device performance and dataset characteristics can be comprehensively considered. This allows subsequent neural network optimization to adapt to both the performance of different devices and the characteristics of the dataset, improving the generalization and specialization performance of the neural network. Therefore, the method based on this embodiment enables the final neural network to adapt to different application scenarios while exhibiting high performance on different devices, solving the problems of insufficient generalization performance and insufficient specialization performance in different scenarios encountered during neural network architecture search.

[0088] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described semantic evaluation model training method and streaming text machine translation method embodiments, achieving the same technical effects. To avoid repetition, these will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0089] Figure 7 This is a block diagram of an electronic device 700 provided in an embodiment of this application. For example, the electronic device 700 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0090] Reference Figure 7 The electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.

[0091] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.

[0092] Memory 704 is used to store various types of data to support the operation of electronic device 700. Examples of this data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, multimedia, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0093] Power supply component 706 provides power to various components of electronic device 700. Power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.

[0094] Multimedia component 708 includes a screen that provides an output interface between electronic device 700 and user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When electronic device 700 is in an operating mode, such as shooting mode or multimedia mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0095] Audio component 710 is used to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) used to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.

[0096] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0097] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 714 may detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0098] Communication component 716 facilitates wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, carrier networks (such as 2G, 3G, 4G, or 7G), or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0099] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement a speech synthesis model training method provided in the embodiments of this application.

[0100] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0101] Figure 8 This is a block diagram illustrating an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be provided as a server. (Refer to...) Figure 8 The electronic device 800 includes a processing component 822, which further includes one or more processors, and memory resources represented by a memory 832 for storing instructions, such as application programs, that can be executed by the processing component 822. The application programs stored in the memory 832 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 822 is configured to execute instructions to perform a speech synthesis model training method provided in embodiments of this application.

[0102] Electronic device 800 may also include a power supply component 826 configured to perform power management of electronic device 800, a wired or wireless network interface 850 configured to connect electronic device 800 to a network, and an input / output (I / O) interface 858. Electronic device 800 may operate on an operating system stored in memory 832, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0103] This application also provides a computer program product, including a computer program, which, when executed by a processor, implements a speech synthesis model training method.

[0104] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0105] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

[0106] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0107] It will be readily apparent to those skilled in the art that any combination of the above embodiments is feasible. Therefore, any combination of the above embodiments is an implementation scheme of this application. However, due to space limitations, this specification will not describe them in detail here.

[0108] The cross-device neural network architecture search method and joint model training method provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with the teachings herein. Based on the above description, the required structure for constructing a system with the scheme of this application is obvious. Furthermore, this application is not directed to any particular programming language. It should be understood that the content of this application described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best implementation of this application.

[0109] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0110] Similarly, it should be understood that, for the purpose of simplification and aiding understanding of one or more aspects of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the application. However, this approach of disclosure should not be construed as reflecting an intention that the claimed application requires more features than expressly recited in each claim. Rather, as reflected in the claims, the application aspect comprises fewer features than all of the features of the single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the application.

[0111] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0112] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of this application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

[0113] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the semantic evaluation model training method and the machine translation method for streaming text according to the embodiments of this application. This application can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such an implementation of this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0114] It should be noted that the above embodiments are illustrative of this application and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

Claims

1. A cross-device neural network architecture search method, characterized in that, include: Establish a sample dataset and determine the latency-sensing data of the computing device; The computing device is used to set up a neural network; The delay-sensing data is used to characterize the speed at which the computing device runs the neural network; The latency-aware data is input into a latency feature extraction model to obtain the latency feature values ​​of the computing device. The process of inputting the sample dataset into a dataset feature extraction model to obtain dataset feature values ​​includes: inputting each data point in the sample dataset into the dataset feature extraction model to obtain a data feature value for each data point; performing a moving average on all the data feature values ​​according to a preset moving average parameter to obtain a moving average value, and using the moving average value as the dataset feature value; the preset moving average parameter weight is h=0.1, and the moving average value A is calculated according to the following expression: , Among them, b i It is an intermediate variable; by applying all eigenvalues ​​a i A moving average is calculated to obtain the feature values ​​of the entire dataset, which reflect the overall characteristics of the dataset. The delayed feature value is fused with the dataset feature value to obtain a joint feature value; The joint feature values ​​are input into the neural network matching model to obtain optimization parameters, and the neural network to be optimized is adjusted according to the optimization parameters to obtain the optimized neural network; the optimization parameters are used to characterize the selection result of neurons in the neural network; The process of determining the delayed sensing data includes: Establish a sample training dataset containing face images, with each computing device storing a different number and quality of face images. The computing devices include at least: high-performance computers, smartphones, and smart home appliances. Run a set of predefined neural network operators on each computing device and record the running time of each operator. The neural network operators include at least: convolution operations and pooling operations. Determine the latency-aware training data for each computing device based on the running time of each operator on each computing device.

2. The method as described in claim 1, characterized in that, The latency-aware data for determining the computing device includes: Record the input time of the preset test data into the neural network set up on the computing device, and record the output time of the neural network outputting the prediction result; The difference between the output time and the input time is used as the delay-sensing data.

3. The method as described in claim 1, characterized in that, The optimization parameters include multiple predicted values, each of which corresponds one-to-one with a neuron in the neural network, and each neuron has a corresponding hidden layer; adjusting the neural network to be optimized according to the optimization parameters includes: The neuron with the largest predicted value among all predicted values ​​of neurons in the same hidden layer is taken as the target neuron. The neural network that selected the target neuron is determined as the optimized neural network.

4. A training method for a joint model, characterized in that, The joint model comprises a delayed feature extraction model, a dataset feature extraction model, and a neural network matching model in the cross-device neural network architecture search method as described in any one of claims 1 to 3, wherein the training method includes: A sample training dataset is established, and the delay-aware training data for the training device is determined; the training device is used to set up a training neural network; the delay-aware training data is used to characterize the speed at which the training device runs the training neural network. The delay-aware training data is input into the delay feature extraction model to be trained to obtain the delay feature training data of the training device, and the sample training dataset is input into the dataset feature extraction model to be trained to obtain the dataset feature training data of the sample training dataset. The delayed feature training data is fused with the dataset feature training data to obtain joint feature training data; The joint feature training data is input into the neural network matching model to be trained, and training parameters are extracted from the neural network matching model. A loss function is constructed based on the training parameters, and the joint model is trained using the loss function to obtain the trained joint model.

5. A cross-device neural network architecture search device, characterized in that, include: The data acquisition module is used to build a sample dataset and determine the latency-sensing data of the computing device; The computing device is used to set up a neural network; The delay-aware data is used to characterize the speed at which the computing device runs the neural network; The feature acquisition module is used to input the delay-aware data into the delay feature extraction model to obtain the delay feature value of the computing device, and to input the sample dataset into the dataset feature extraction model to obtain the dataset feature value of the sample dataset; The feature fusion module is used to fuse the delayed feature values ​​with the dataset feature values ​​to obtain joint feature values; A network generation module is used to input the joint feature values ​​into a neural network matching model to obtain optimization parameters, and to adjust the neural network to be optimized according to the optimization parameters to obtain the optimized neural network; the optimization parameters are used to characterize the selection results of neurons in the neural network; The feature acquisition module is further configured to: input each data point in the sample dataset into the dataset feature extraction model to obtain a data feature value for each data point; perform a moving average on all the data feature values ​​according to a preset moving average parameter to obtain a moving average value, and use the moving average value as the dataset feature value; the preset moving average parameter weight is h=0.1, and the moving average value A is calculated according to the following expression: , Among them, b i It is an intermediate variable; by applying all eigenvalues ​​a i A moving average is calculated to obtain the feature values ​​of the entire dataset, which reflect the overall characteristics of the dataset. The data acquisition module is further configured to: Establish a sample training dataset containing face images, with each computing device storing a different number and quality of face images. The computing devices include at least: high-performance computers, smartphones, and smart home appliances. Run a set of predefined neural network operators on each computing device and record the running time of each operator. The neural network operators include at least: convolution operations and pooling operations. Determine the latency-aware training data for each computing device based on the running time of each operator on each computing device.

6. A training device for a joint model, characterized in that, The joint model comprises a delayed feature extraction model, a dataset feature extraction model, and a neural network matching model in the cross-device neural network architecture search method as described in any one of claims 1 to 3, and the training device comprises: The training data acquisition module is used to establish a sample training dataset and determine the delay-aware training data of the training device; the training device is used to set up a training neural network; the delay-aware training data is used to characterize the speed at which the training device runs the training neural network. The training feature acquisition module is used to input the delay-aware training data into the delay feature extraction model to be trained in order to obtain the delay feature training data of the training device, and to input the sample training dataset into the dataset feature extraction model to be trained in order to obtain the dataset feature training data of the sample training dataset. The training feature fusion module is used to fuse the delayed feature training data with the dataset feature training data to obtain joint feature training data; The training parameter acquisition module is used to input the joint feature training data into the neural network matching model to be trained, and to extract training parameters from the neural network matching model. The joint model training module is used to construct a loss function based on the training parameters and train the joint model using the loss function to obtain the trained joint model.

7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 4.

8. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method as described in any one of claims 1 to 4.

9. A computer program product, characterized in that, The computer program product stores a computer program that, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 4.