Manifold neural operator training method based on transfer learning

Through the data difference adaptation and fine-tuning method of the manifold neural operator model, the problem of large training data requirements for neural operator models on complex geometries is solved, and the number of data samples is significantly reduced while ensuring the prediction performance. Acquisition and training costs.

CN118734936AInactive Publication Date: 2024-10-01NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411225262.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The training of neural operator models on complex geometric shapes requires a large number of physical field data samples, which are costly and time-consuming to obtain. Moreover, the frozen fine-tuning method is unstable in parameter fine-tuning under high-dimensional field data, making it difficult to effectively reduce data requirements.

Method used

By obtaining source domain and target domain data, calculating the Laplacian eigenfunction of the manifold, constructing a manifold neural operator model, performing data difference adaptation, reducing data differences, and using fine-tuning to obtain the target domain model, reducing training requirements Data volume.

Benefits of technology

It significantly reduces the number of physical field data samples required for manifold neural operator model training, improves prediction performance and efficiency, and reduces the cost of actual experiments and numerical simulations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734936A_ABST
    Figure CN118734936A_ABST
Patent Text Reader

Abstract

The invention discloses a manifold neural operator training method based on transfer learning, and relates to the technical field of machine learning, and the method comprises the following steps: S1, obtaining source domain data and target domain data, S2, calculating a Laplacian feature function of a manifold where input and output data are located, and constructing a manifold neural operator model; s3, performing data difference adaptation on the source domain data based on a manifold neural operator model to obtain new source domain data; s4, training the manifold neural operator model by using the new source domain data to obtain a new source domain manifold neural operator model; and S5, performing fine tuning on the new source domain manifold neural operator model by using the target domain data to obtain a target domain manifold neural operator model. According to the manifold neural operator training method based on transfer learning, which adopts the above steps, by means of knowledge of a source domain, data requirements required by model training can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine learning, and in particular to a manifold neural operator training method based on transfer learning. Background Art

[0002] Operators are mathematically defined as mappings from functions to functions. Operator learning problems are widely encountered in practical engineering applications. For example, learning the mapping from the curing temperature process curve to the curing deformation field during the curing process of composite materials can guide the design of a more reasonable curing temperature process curve. Neural operators are essentially data-driven operator learning methods. By building a neural operator model and training it with a large amount of labeled data, the operator mapping hidden in the learning data can be quickly predicted once the model is trained. It has become a new paradigm for solving partial differential equations and quickly predicting physical fields in practical engineering processes.

[0003] Patent No. 2023101222893 proposes a method for constructing a neural operator for complex geometric shapes. Based on the characteristic function of the Laplace operator, a neural operator model is constructed to learn the mapping relationship between functions defined on complex geometric shapes, which can establish a physical field rapid prediction for components with complex geometric shapes in the engineering field. However, the neural operator model has a large number of parameters to be trained, and its prediction performance depends on a large number of physical field data samples for training. Numerical simulation and actual experiments are the main sources for obtaining physical field data samples in engineering applications. When obtaining physical field data with complex geometric shapes through numerical simulation, it is often necessary to divide fine grids to accurately capture the local physical phenomena of the geometry, resulting in a significant increase in the amount of calculation and time cost. Obtaining field data on complex geometric shapes through actual experiments requires expensive experimental costs and data acquisition devices, and a large number of physical field data samples are difficult to obtain, costly, and time-consuming. Therefore, how to reduce the number of physical field data samples required for training neural operator models on complex geometric shapes is a key issue facing the actual engineering application of neural operators.

[0004] In response to the above problems, transfer learning can use a large amount of data that is easy to obtain or has been obtained in the related field (source domain) to assist in data-driven model training in the target domain, thereby reducing the amount of data required for target domain model training. It has been widely used in neural network model training in various fields, and also provides a feasible idea for reducing the number of physical field data samples required for neural operator model training. Distribution difference adaptation based on frozen fine-tuning is a classic model training strategy in the field of transfer learning. It first uses the source domain data to train the neural network model to establish the source domain model, and then uses the target domain data to freeze and fine-tune the parameters of the source domain model to obtain the target model. However, compared with the classic neural network model, the input and output of the neural operator model are both high-dimensional field data, the prediction task is more complex, the number of parameters is larger, and the instability of model parameter fine-tuning is higher. When the data difference between the target domain data and the source domain data is too large, it is often difficult to achieve the ideal effect directly through frozen fine-tuning. Summary of the invention

[0005] The purpose of the present invention is to provide a manifold neural operator training method based on transfer learning. By adapting the data differences of the source domain data and narrowing the distribution between the source domain data and the target domain data, the number of physical field data samples required for model training can be significantly reduced while ensuring the prediction performance of the manifold neural operator model.

[0006] To achieve the above object, the present invention provides a manifold neural operator training method based on transfer learning, characterized in that the steps are as follows: S1. Obtain source domain data and target domain data. Each sample of the source domain data and the target domain data consists of input data and output data. S2, calculating the Laplace characteristic function of the manifold where the input and output data in the source domain data and the target domain data are located, constructing a Laplace iterative kernel integration module, and thus constructing a manifold neural operator model; S3, based on the manifold neural operator model, the source domain data is adapted for data differences to obtain new source domain data, so that the distribution of the new source domain data is closer to that of the target domain data; S4. Use the new source domain data to train the manifold neural operator model to obtain the new source domain manifold neural operator model

[0007] S5. Use the target domain data to fine-tune the new source domain manifold neural operator model to obtain the target domain manifold neural operator model.

[0008] Preferably, in S1, the source domain data is: ; in They are defined on the manifold and manifold The function on , which represents the source domain samples and corresponding labels, is the total number of samples in the source domain; The target domain data is: ; The target domain data contains label data and unlabeled data Two parts, including Defined on the manifold A function representing the input data of samples in the target domain; Defined on the manifold The function on represents the output data of the sample in the target domain, is the number of labeled samples in the target domain, is the number of unlabeled samples in the target domain.

[0009] Preferably, the specific solution method of the Laplace operator characteristic function in S2 is: gridding the manifold where the input and output functions are located to obtain a geometric grid, solving the eigenvalue problem of the Laplace operator of the geometric grid by the Galerkin method and the power iteration method to obtain the Laplace operator characteristic function.

[0010] Preferably, the manifold neural operator model is composed of one or more Laplace kernel integration modules, and the Laplace kernel integration module includes three modules: frequency domain transformation, linear transformation and nonlinear activation. The frequency domain transformation module includes three modules: encoding, parameterization and decoding. The encoding module uses the Laplace operator characteristic function to convert the function defined on the complex geometry into coordinates in the frequency domain space, the parameterization module performs linear transformation on the encoded coordinates, and the decoding module uses the Laplace operator characteristic function to restore the parameterized frequency domain space coordinates to the function defined on the complex geometry.

[0011] Preferably, the specific method for performing data difference adaptation on source domain data based on the manifold neural operator model in S3 is: Firstly, the source domain data is used to train the manifold neural operator model to obtain the source domain manifold neural operator model; Secondly, the source domain manifold neural operator model is used to predict the target domain labeled data, and the difference between the predicted result and the label value of the target domain labeled data sample is calculated to obtain the residual data; Then, the residual data is used to train the manifold neural operator model to obtain a residual manifold neural operator model; Finally, the source domain data is input into the source domain manifold neural operator model and the residual manifold neural operator model respectively, and the two prediction results are added as the new label value of the source domain data to obtain the new source domain data.

[0012] Preferably, in S5, the specific method of fine-tuning the new source domain manifold neural operator model using the target domain data is: Firstly, some parameters of the new source domain manifold neural operator model are frozen; Secondly, a loss function is constructed based on the target domain data. The loss function is a regression loss function, a conditional distribution difference loss function, or a hybrid loss function. Finally, the unfrozen parameters of the new source domain manifold neural operator model are fine-tuned by minimizing the loss function to obtain the target domain manifold neural operator model.

[0013] Preferably, the regression loss function is constructed by the model prediction error of the labeled data in the target domain, denoted as ; The conditional distribution difference loss function uses the conditional embedding operator to calculate the distribution difference between the prediction results of the target domain labeled data and the unlabeled data, denoted as ; The mixed loss function is defined as ,in are the weights of regression loss and conditional distribution difference loss, respectively.

[0014] Preferably, the target domain data only includes label data.

[0015] Therefore, the present invention adopts a manifold neural operator training method based on transfer learning in the above steps. Transfer learning can apply the knowledge of related tasks to the learning of the current task to reduce the data required for model training under the current task; based on the idea of ​​transfer learning, the source domain and target domain data are obtained, and the source domain data is used to establish a source domain manifold neural operator model, and then a small amount of labeled target data is used to perform difference adaptation training on the target domain prediction model, and finally the target domain manifold neural operator model is obtained.

[0016] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a flow chart of an embodiment of a manifold neural operator training method based on transfer learning of the present invention; Figure 2 Among them, (1), (2), (3), and (4) are respectively the source domain data simulation grid diagram, the target domain data simulation grid diagram, the input initial random field, and the output steady-state velocity field of the embodiment of the present invention; (5), (6), (7), and (8) are the test effect diagrams of a sample in the target domain test data set of the embodiment of the present invention; from left to right, they are respectively the predicted value and the prediction error of the output field by the model trained by the prior art and the migration method of the present invention. DETAILED DESCRIPTION

[0018] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0019] Example

[0020] This embodiment focuses on the classic RANS turbulence equation on a two-dimensional complex geometry, where the two-dimensional complex geometry has irregular inner and outer boundaries. The input function and the output function are respectively the initial velocity field defined on the two-dimensional complex geometry. and steady-state velocity field , so the manifold of this example is , the operator learning task is In this embodiment, the source domain data is simulated by a low-precision RANS simulation model, and the target domain data is simulated by a high-precision RANS simulation model. This embodiment aims to assist the operator learning between high-precision data in the target domain through a large amount of low-precision source domain data, so as to realize the migration of task-related knowledge from the source domain to the target domain.

[0021] A manifold neural operator training method based on transfer learning, such as Figure 1 As shown, the specific steps include: S1: Obtain source domain and target domain data.

[0022] First, the complex two-dimensional graphics of this embodiment are divided into a geometric grid by triangular meshing. , the grid contains 5363 nodes. The initial velocity field and the steady-state velocity field are single-valued functions defined on complex two-dimensional graphs. The geometric grid will be used. Discretize into size It is represented by a column vector, each row of which represents the value of the initial velocity field or the steady-state velocity field at a certain grid node and does not contain the coordinate information of the grid node. However, the position of the grid node represented by each row of the column vector is fixed.

[0023] Secondly, obtain the source domain data. The turbulence model simulates the RANS turbulence mechanism, creates a complex two-dimensional graph of this embodiment, and uses a triangular mesh for meshing. The mesh size is set to coarse. After the meshing, the number of simulation mesh nodes is 1736. Figure 2 As shown in (1), the initial velocity field is set as the independent variable, a steady-state study is set, and a low-precision RANS simulation model is constructed. A Python subroutine is written to randomly generate 880 different initial velocity fields based on the Gaussian random field, call the low-precision RANS simulation model, input the initial velocity field for batch simulation, and obtain 880 corresponding steady-state velocity fields. The initial velocity field and the steady-state velocity field are discretely output and saved, and low-precision source domain data is constructed as the source domain data: ; They are defined on the manifold The initial velocity field and steady-state velocity field on , indicating the source domain samples and corresponding labels, is the total number of source domain samples.

[0024] Finally, the target domain data is obtained. The turbulence model simulates the RANS turbulence mechanism, creates a complex two-dimensional graph of this embodiment, and uses a triangular mesh for meshing. The mesh size is set to fine. After the meshing, the number of simulation mesh nodes is 5363. Figure 2 As shown in (2), the initial velocity field is set as the independent variable, a steady-state study is set, and a high-precision RANS simulation model is constructed. A Python subroutine is written to select 250 groups from the above 880 groups of initial flow fields, call the high-precision RANS simulation model, input the initial velocity field for batch simulation, obtain 250 groups of corresponding steady-state velocity fields, save the initial velocity field and the steady-state velocity field as discrete outputs, and construct high-precision source domain data: ; The target domain contains labeled data and unlabeled data Two parts, including and They are defined on the manifold The initial velocity field and steady-state velocity field on the Figure 2 As shown in (3), the output velocity field is Figure 2 As shown in (4). , , using 700 sets of data from the source domain as unlabeled data for the target domain.

[0025] S2. Calculate the Laplace operator characteristic function of the manifold where the input and output functions in the source domain data and the target domain data are located, construct a Laplace iterative kernel integration module, and construct a manifold neural operator model; the manifold neural operator model is composed of a dimensionality increase feature mapping module, one or more Laplace iterative kernel integration modules and a dimensionality reduction feature mapping module.

[0026] First, we construct a dimensionality-upgrading mapping module using a fully connected neural network, and then we upscale the input initial velocity field to obtain a matrix .

[0027] Next, calculate the Laplace operator characteristic function. Solve the geometric grid in S1 by Galerkin method The Laplace operator eigenvalue problem is solved, and the geometric grid is obtained The Laplace operator characteristic function, in this embodiment, is The Laplacian operator characteristic functions constitute the Laplacian operator characteristic matrix ; Then construct the Laplace iterative kernel integration module. Using the Laplace operator characteristic matrix After the matrix Perform spectral decomposition, construct encoding modules, matrix After encoding, the matrix ; Use the fully connected layer to linearly change the encoded matrix, and the parameters of the fully connected layer For the parameters to be learned, perform the Einstein summation convention operation to build a parameterized module. After the parameterized module, the matrix ; Using the Laplacian operator characteristic matrix After the matrix Perform spectrum reconstruction and build a decoding module. After decoding, we get the matrix The matrix after encoding, parameterization and decoding is linearly transformed using the convolutional layer. The convolutional layer parameters are the parameters to be learned. Finally, The activation function performs nonlinear activation and completes the construction of the Laplace kernel integral module. After linear transformation and nonlinear activation, the matrix This embodiment uses four Laplace kernel integration modules.

[0028] Finally, the fully connected layer is used to construct a dimensionality reduction feature mapping module to restore the data dimension. The output matrix of the Laplace kernel integration module is reduced to obtain a steady-state velocity field with a dimension of .

[0029] S3: Preprocess the source domain data based on the residual manifold neural operator to obtain new source domain data, so that the distribution of the new source domain data is close to that of the target domain data.

[0030] First, the source domain data is used to train the source domain manifold neural operator model. The 880 sets of source domain data are divided into a training set and a test set. The training set contains 700 sets of data and the test set contains 180 sets of data. Error as a loss function , by solving the empirical risk minimization problem of the loss function, the model parameters in the source domain manifold neural operator model are trained .

[0031]

[0032] Secondly, construct residual data. Input the labeled data of the target domain into the source domain prediction model to obtain the predicted value , and the label of the target domain data is subtracted as the label of the residual data , construct residual data Because the target domain has labeled data , after prediction, the amount of residual data is .

[0033]

[0034] Then train the residual manifold neural operator model . Use three Laplace kernel integration modules to build a residual manifold neural operator model , the 250 sets of residual data are divided into training set and test set, the training set contains 70 sets of data, and the test set contains 180 sets of data. The relative value of the predicted value and label value of the residual manifold neural operator model is The error is used as the loss function, and the residual prediction manifold neural operator model is trained by solving the empirical risk minimization problem of the loss function. .

[0035] Finally, the new source domain data is constructed. The input of the new source domain data is consistent with the input of the source domain data. The source domain data is predicted using the source domain manifold neural operator model and the residual manifold neural operator model. The prediction results are added together to obtain the label of the new source domain data. The data volume of the new source domain data is .

[0036] S4. Use new source domain data to train a new source domain manifold neural operator model.

[0037] The 880 sets of new source domain data are divided into training sets and test sets. The training set contains 700 sets of data and the test set contains 180 sets of data. The relative value between the predicted value and the label value of the new source domain manifold neural operator model is used. The error is used as the loss function, and the new source domain manifold neural operator model is trained by solving the empirical risk minimization problem of the loss function.

[0038] S5. Use a small amount of target domain data to fine-tune the new source domain manifold neural operator model to obtain the target domain manifold neural operator model.

[0039] The amount of labeled data in the target domain , 250 sets of source domain data are divided into training set and test set, the training set contains 70 sets of data, and the test set contains 180 sets of data. This embodiment uses the mixed loss function to fine-tune the new source domain manifold neural operator model. First, the mixed loss function is constructed. The relative value between the predicted value and the label value of the target domain manifold neural operator model is The error is used as the regression loss; the conditional distribution difference between the labeled data and the unlabeled data in the target domain is calculated through the conditional distribution embedding operator difference, which is used as the conditional distribution difference loss. Construct a hybrid loss function. Then set a smaller learning rate, solve the empirical risk minimization problem of the hybrid loss function, and train the target domain manifold neural operator model again.

[0040] This embodiment uses data from 180 test data sets to test the effects of the method of the present invention and the prior art. The average relative The test error is 7.344%, while the average relative error of the steady-state velocity field prediction model trained with only a small amount of target domain data on 180 test data using existing technology is The test error is 17.742%. Therefore, the method of the present invention has a higher prediction accuracy than the steady-state velocity field prediction model trained by the prior art. At the same time, the prediction error of the model is tested for a group of test samples. Figure 2 (5), (6), (7), and (8) are test effect diagrams of a sample in the target domain test data set of an embodiment of the present invention. From left to right, they are the predicted value and prediction error of the output field by the model trained by the prior art and the migration method of the present invention, respectively.

[0041] Therefore, the present invention proposes a manifold neural operator training method based on transfer learning, which establishes a residual manifold neural operator model to perform data difference adaptation on the source domain data to reduce the difference between the source domain data and the target domain data, and then uses parameter freezing and fine-tuning to jointly train the target domain manifold neural operator model using the source domain data and target domain data after data difference adaptation. This can significantly reduce the number of physical field data samples required for model training while ensuring the prediction performance of the manifold neural operator model.

[0042] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A manifold neural operator training method based on transfer learning, It is characterized in that Here are the steps: S1. Obtain source domain data and target domain data. Each sample of the source domain data and the target domain data consists of input data and output data. S2, calculating the Laplace characteristic function of the manifold where the input and output data in the source domain data and the target domain data are located, constructing a Laplace iterative kernel integration module, and thus constructing a manifold neural operator model; S3, based on the manifold neural operator model, the source domain data is adapted for data differences to obtain new source domain data, so that the distribution of the new source domain data is closer to that of the target domain data; S4, using the new source domain data to train the manifold neural operator model to obtain a new source domain manifold neural operator model; S5. Use the target domain data to fine-tune the new source domain manifold neural operator model to obtain the target domain manifold neural operator model.

2. According to the manifold neural operator training method based on transfer learning according to claim 1, Features: In S1, the source domain data is: in They are defined on the manifold and manifold The function on , which represents the source domain samples and corresponding labels, is the total number of source domain samples; The target domain data is: The target domain data contains label data and unlabeled data Two parts, including For the definition on the manifold A function representing the input data of samples in the target domain; For the definition on the manifold The function on represents the output data of the sample in the target domain, is the number of labeled samples in the target domain, is the number of unlabeled samples in the target domain.

3. According to the manifold neural operator training method based on transfer learning according to claim 2, Features: The specific solution method of the Laplace operator characteristic function in S2 is: mesh the manifold where the input and output functions are located to obtain a geometric grid, and solve the eigenvalue problem of the Laplace operator of the geometric grid by the Galerkin method and the power iteration method to obtain the Laplace operator characteristic function.

4. A manifold neural operator training method based on transfer learning according to claim 3, Features: The manifold neural operator model is composed of one or more Laplace kernel integration modules. The Laplace kernel integration module includes three modules: frequency domain transformation, linear transformation and nonlinear activation. The frequency domain transformation module includes three modules: encoding, parameterization and decoding. The encoding module uses the Laplace operator characteristic function to convert the function defined on the complex geometry into coordinates in the frequency domain space. The parameterization module performs linear transformation on the encoded coordinates. The decoding module uses the Laplace operator characteristic function to restore the parameterized frequency domain space coordinates to the function defined on the complex geometry.

5. A manifold neural operator training method based on transfer learning according to claim 4, Features: The specific method of data difference adaptation for source domain data based on the manifold neural operator model in S3 is: Firstly, the source domain data is used to train the manifold neural operator model to obtain the source domain manifold neural operator model; Secondly, the source domain manifold neural operator model is used to predict the target domain labeled data, and the difference between the predicted result and the label value of the target domain labeled data sample is calculated to obtain the residual data; Then, the residual data is used to train the manifold neural operator model to obtain a residual manifold neural operator model; Finally, the source domain data is input into the source domain manifold neural operator model and the residual manifold neural operator model respectively, and the two prediction results are added as the new label value of the source domain data to obtain the new source domain data.

6. A manifold neural operator training method based on transfer learning according to claim 5, Features: In S5, the specific method of fine-tuning the new source domain manifold neural operator model using the target domain data is as follows: Firstly, some parameters of the new source domain manifold neural operator model are frozen; Secondly, a loss function is constructed based on the target domain data. The loss function is a regression loss function, a conditional distribution difference loss function, or a hybrid loss function. Finally, the unfrozen parameters of the new source domain manifold neural operator model are fine-tuned by minimizing the loss function to obtain the target domain manifold neural operator model.

7. The method for training manifold neural operators based on transfer learning according to claim 6, Features: The regression loss function is constructed by the model prediction error of the target domain labeled data, denoted as ; The conditional distribution difference loss function uses the conditional embedding operator to calculate the distribution difference between the prediction results of the target domain labeled data and the unlabeled data, denoted as ; The mixed loss function is defined as ,in are the weights of regression loss and conditional distribution difference loss, respectively.

8. The method for training manifold neural operators based on transfer learning according to claim 1, Features: The target domain data only contains labeled data.

Citation Information

Cited By

  • Feature learning and data fusion air film cooling prediction method based on neural operator

    CN120030889A