Construction method and device of lightweight hypergraph neural network model

By initializing the hypergraph neural network model, node credibility quantification and construction of lightweight end-edge network, combined with traditional hypergraph learning and high-order knowledge distillation, the computational complexity and over-simulation of the hypergraph model in industrial applications are solved. Combining problems improves the credibility and efficiency of learning and broadens application scenarios.

CN118569302APending Publication Date: 2024-08-30TSINGHUA UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410395645.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When deployed in actual industrial applications, the hypergraph neural network model has high computational complexity and strong dependence on high-order structures. It is difficult to ensure the learning of trustworthy knowledge and is prone to over-fitting. The accuracy of the lightweight hypergraph neural network model is also low. lower.

Method used

By initializing and training the teacher hypergraph neural network model, we perform node credibility quantification, generate soft label semantic representation, build a lightweight end-edge hypergraph neural network, perform probabilistic sampling and optimization, and combine traditional hypergraph learning and high-order knowledge distillation. , improve learning credibility and computing efficiency.

Benefits of technology

It reduces computational complexity in industrial deployment, improves learning credibility and execution efficiency, and broadens application scenarios in the field of hypergraphs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569302A
    Figure CN118569302A
Patent Text Reader

Abstract

The invention relates to a lightweight hypergraph neural network model construction method and device, and the method comprises the steps: initializing a teacher hypergraph neural network model, and training the initialized teacher hypergraph neural network model through a training test set; performing credible quantization on each node of the hypergraph, and generating soft label semantic representation according to a high-order association aggregation function; constructing a lightweight end-edge hypergraph neural network, and performing hypergraph probability sampling by using soft tag semantic representation to obtain a lightweight end-edge hypergraph neural network soft tag group; and training the lightweight end-edge hypergraph neural network to obtain a trained lightweight end-edge hypergraph neural network. Therefore, the problems that the calculation complexity is increased by the high-order modeling capability of the hypergraph, the hypergraph neural network model cannot ensure the learning of credible knowledge, the overfitting phenomenon is easy to occur, and the accuracy is low when the lightweight hypergraph neural network model is independently used for deployment in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data information processing technology, and in particular to a method and device for constructing a lightweight hypergraph neural network model. Background Art

[0002] Due to the advantages of hypergraph in high-order correlation modeling, the hypergraph neural network model has attracted widespread attention, its usage scenarios in industrial deployment have gradually increased, and it has shown satisfactory performance.

[0003] In the related technology, it is possible to construct a hypergraph model, obtain a hypergraph association matrix, and use the lightweight principle of convolutional neural network to perform lightweight optimization on the convolutional neural network.

[0004] However, in related technologies, the high-order modeling capabilities of hypergraphs increase the complexity of calculations, hindering their deployment in actual industrial applications. The inference process has a strong dependence on high-order structures. The hypergraph neural network model cannot guarantee the learning of credible knowledge and is prone to overfitting, which is not conducive to actual reasoning tasks. In addition, the accuracy of lightweight hypergraph neural network models used alone for deployment is low and needs to be improved urgently. Summary of the invention

[0005] The present application provides a method and device for constructing a lightweight hypergraph neural network model to solve the problems in related technologies, that is, the high-order modeling capability of the hypergraph increases the complexity of calculation, hinders its deployment in actual industrial applications, the high-order structure dependence in the inference process is strong, the hypergraph neural network model cannot guarantee the learning of credible knowledge, is prone to overfitting, is not conducive to actual reasoning tasks, and the lightweight hypergraph neural network model has low accuracy when deployed alone.

[0006] The first aspect of the present application provides a method for constructing a lightweight hypergraph neural network model, comprising the following steps: initializing a teacher hypergraph neural network model to obtain an initialized teacher hypergraph neural network model, and training the initialized teacher hypergraph neural network model using a training test set to obtain a hypergraph neural network model; based on the hypergraph neural network model, performing credible quantization on each node of the hypergraph to obtain a credible value for each hyperedge, and obtaining a high-order association aggregation function from the node features of each hyperedge according to the credible value to generate a soft label semantic representation according to the high-order association aggregation function; constructing a lightweight end-edge hypergraph neural network, and performing hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group; and training the lightweight end-edge hypergraph neural network based on the lightweight end-edge hypergraph neural network soft label group to obtain a trained lightweight end-edge hypergraph neural network.

[0007] Optionally, in one embodiment of the present application, the teacher hypergraph neural network model is initialized to obtain an initialized teacher hypergraph neural network model, and the initialized teacher hypergraph neural network model is trained using a training test set to obtain a hypergraph neural network model, including: obtaining training data of the teacher hypergraph neural network model, and preprocessing the training data to obtain preprocessed training data; selecting a corresponding hypergraph neural network model to iteratively learn the preprocessed training data until a preset convergence stop condition is reached to obtain a convergence result, so as to generate the hypergraph neural network model according to the convergence result.

[0008] Optionally, in one embodiment of the present application, the credible quantization of each node of the hypergraph to obtain the credible value of each hyperedge includes: copying the feature matrix of the training data to obtain the copied feature matrix, and generating a perturbation matrix based on the copied feature matrix and noise; respectively calculating the entropy of the feature result label vector of the feature matrix and the entropy of the perturbation result label vector of the perturbation matrix to obtain the hyperedge credibility of each hyperedge, and obtaining the credible value of each hyperedge based on the hyperedge credibility.

[0009] Optionally, in one embodiment of the present application, constructing a lightweight end-edge hypergraph neural network and performing hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group includes: initializing the lightweight end-edge hypergraph neural network to obtain an initialized lightweight end-edge hypergraph neural network; based on the initialized lightweight end-edge hypergraph neural network, performing the hypergraph probability sampling on each hyperedge with the credible value of each hyperedge as a parameter to obtain the lightweight end-edge hypergraph neural network soft label group.

[0010] Optionally, in one embodiment of the present application, the training of the lightweight end-edge hypergraph neural network to obtain the trained lightweight end-edge hypergraph neural network includes: calculating the total loss function of the lightweight end-edge hypergraph neural network; optimizing the lightweight end-edge hypergraph neural network according to the total loss function until a preset convergence stop condition is reached, thereby obtaining the trained lightweight end-edge hypergraph neural network.

[0011] Optionally, in one embodiment of the present application, after obtaining the trained lightweight end-edge hypergraph neural network, it also includes: optimizing the student hypergraph model according to the trained lightweight end-edge hypergraph neural network to obtain an optimization result; and deploying the trained lightweight end-edge hypergraph neural network online according to the optimization result.

[0012] The second aspect of the present application provides a device for constructing a lightweight hypergraph neural network model, including: a training module, used to initialize a teacher hypergraph neural network model to obtain an initialized teacher hypergraph neural network model, and use a training test set to train the initialized teacher hypergraph neural network model to obtain a hypergraph neural network model; an acquisition module, used to perform trust quantification on each node of the hypergraph based on the hypergraph neural network model to obtain a trust value of each hyperedge, and obtain a high-order association aggregation function from the node features of each hyperedge according to the trust value to generate a soft label semantic representation according to the high-order association aggregation function; a construction module, used to construct a lightweight end-edge hypergraph neural network, and perform hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group; and a generation module, used to train the lightweight end-edge hypergraph neural network based on the lightweight end-edge hypergraph neural network soft label group to obtain a trained lightweight end-edge hypergraph neural network.

[0013] Optionally, in one embodiment of the present application, the training module includes: an acquisition unit, used to acquire the training data of the teacher hypergraph neural network model, and preprocess the training data to obtain preprocessed training data; a learning unit, used to select a corresponding hypergraph neural network model to iteratively learn the preprocessed training data until a preset convergence stop condition is reached, and a convergence result is obtained to generate the hypergraph neural network model based on the convergence result.

[0014] Optionally, in one embodiment of the present application, the acquisition module includes: a first generation unit, used to copy the feature matrix of the training data to obtain a copied feature matrix, so as to generate a perturbation matrix based on the copied feature matrix and noise; a first calculation unit, used to respectively calculate the entropy of the feature result label vector of the feature matrix and the entropy of the perturbation result label vector of the perturbation matrix to obtain the hyper-edge credibility of each hyper-edge, and obtain the credibility value of each hyper-edge based on the hyper-edge credibility.

[0015] Optionally, in one embodiment of the present application, the construction module includes: an initialization unit, used to initialize the lightweight end-edge hypergraph neural network to obtain an initialized lightweight end-edge hypergraph neural network; a sampling unit, used to perform the hypergraph probability sampling on each hyperedge based on the initialized lightweight end-edge hypergraph neural network, with the credible value of each hyperedge as a parameter, to obtain a soft label group of the lightweight end-edge hypergraph neural network.

[0016] Optionally, in one embodiment of the present application, the generation module includes: a second calculation unit, used to calculate the total loss function of the lightweight end-edge hypergraph neural network; a second generation unit, used to optimize the lightweight end-edge hypergraph neural network according to the total loss function until a preset convergence stop condition is reached, thereby obtaining the trained lightweight end-edge hypergraph neural network.

[0017] Optionally, in one embodiment of the present application, it also includes: an optimization module, which is used to optimize the student hypergraph model according to the trained lightweight end-edge hypergraph neural network after obtaining the trained lightweight end-edge hypergraph neural network to obtain an optimization result; and a deployment module, which is used to deploy the trained lightweight end-edge hypergraph neural network online according to the optimization result.

[0018] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for constructing a lightweight hypergraph neural network model as described in the above embodiment.

[0019] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the method for constructing a lightweight hypergraph neural network model as described above.

[0020] The embodiments of the present application can take into account the advantages of both the high-precision hypergraph neural network model and the lightweight end-edge hypergraph neural network, eliminate the dependence on the complex calculations performed on the hypergraph when processing large-scale data in hypergraph-based learning, improve the overall computing efficiency, and integrate traditional hypergraph learning, trusted quantization, and high-order knowledge distillation methods to improve the learning credibility during industrial deployment, while improving the execution efficiency under large batches of data, thereby broadening the industrial scenarios that can be used in the hypergraph field. Thus, the problems in the related technology that the high-order modeling capabilities of the hypergraph increase the complexity of the calculation and hinder its deployment in actual industrial applications, the high-order structure dependence in the inference process is strong, the hypergraph neural network model cannot guarantee the learning of trusted knowledge, and is prone to overfitting, which is not conducive to actual reasoning tasks, and the lightweight hypergraph neural network model has low accuracy when used alone for deployment are solved.

[0021] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0023] Figure 1 A flowchart of a method and device for constructing a lightweight hypergraph neural network model according to an embodiment of the present application;

[0024] Figure 2 A flowchart of a method for constructing a lightweight hypergraph neural network model according to an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the structure of a device for constructing a lightweight hypergraph neural network model according to an embodiment of the present application;

[0026] Figure 4 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0028] The following describes the construction method and device of the lightweight hypergraph neural network model of the embodiment of the present application with reference to the accompanying drawings. In view of the related technologies mentioned in the above background technology, the high-order modeling capability of the hypergraph increases the complexity of calculation, hinders its deployment in actual industrial applications, and the high-order structure dependence in the inference process is strong. The hypergraph neural network model cannot guarantee the learning of credible knowledge, and is prone to overfitting, which is not conducive to actual reasoning tasks. In addition, the lightweight hypergraph neural network model has a low accuracy when used alone for deployment. The present application provides a method for constructing a lightweight hypergraph neural network model, in which the advantages of high-precision hypergraph neural network models and lightweight end-edge hypergraph neural networks can be taken into account at the same time, eliminating the dependence on complex calculations performed on the hypergraph when processing large-scale data in hypergraph-based learning, improving the overall computing efficiency, and integrating traditional hypergraph learning, credible quantization and high-order knowledge distillation methods to improve the learning credibility during industrial deployment, while improving the execution efficiency under large batches of data, thereby broadening the industrial scenarios that can be used in the hypergraph field. This solves the problems in related technologies, such as the high-order modeling capability of hypergraphs increases the complexity of calculations, hindering their deployment in actual industrial applications, the strong dependence on high-order structures in the inference process, the inability of hypergraph neural network models to guarantee the learning of credible knowledge, prone to overfitting, and not conducive to actual reasoning tasks, and the low accuracy of lightweight hypergraph neural network models when deployed alone.

[0029] Specifically, Figure 1A flowchart of a method for constructing a lightweight hypergraph neural network model provided in an embodiment of the present application.

[0030] like Figure 1 As shown, the method for constructing the lightweight hypergraph neural network model includes the following steps:

[0031] In step S101, the teacher hypergraph neural network model is initialized to obtain an initialized teacher hypergraph neural network model, and the initialized teacher hypergraph neural network model is trained using a training test set to obtain a hypergraph neural network model.

[0032] During the actual execution process, the embodiment of the present application can initialize the teacher hypergraph neural network model to obtain the initialized teacher hypergraph neural network model, and use the training test set to train the initialized teacher hypergraph neural network model to obtain a hypergraph neural network model that has learned high-order knowledge, thereby providing support for improving the learning credibility during industrial deployment, thereby improving the execution efficiency under large batches of data, and broadening the industrial scenarios that can be used in the hypergraph field.

[0033] In one embodiment of the present application, a teacher hypergraph neural network model is initialized to obtain an initialized teacher hypergraph neural network model, and the initialized teacher hypergraph neural network model is trained using a training test set to obtain a hypergraph neural network model, including: obtaining training data of the teacher hypergraph neural network model, and preprocessing the training data to obtain preprocessed training data; selecting a corresponding hypergraph neural network model to iteratively learn the preprocessed training data until a preset convergence stop condition is reached to obtain a convergence result, so as to generate a hypergraph neural network model according to the convergence result.

[0034] It can be understood that the training data in the embodiment of the present application includes but is not limited to result labels and feature matrices; the preset convergence stop condition in the embodiment of the present application can be iterative learning until the model converges on the training set.

[0035] In the actual implementation process, the embodiment of the present application can obtain the initial input data, obtain the training data of the teacher hypergraph neural network model, and label the result of the training data. and the feature matrix Preprocessing is performed to obtain preprocessed training data so that it can meet the learning process of the hypergraph neural network model. The embodiment of the present application can select and learn a hypergraph neural network model, and select a corresponding hypergraph neural network model, such as UniGNN, HGNN and other models to iteratively learn the preprocessed training data. The embodiment of the present application can generate a teacher hypergraph model that has learned high-order knowledge, and iteratively learn the entire hypergraph data until the preset convergence stop condition is reached to obtain a convergence result, so as to generate a hypergraph neural network model based on the convergence result, thereby providing support for the subsequent reliable quantization of each node of the hypergraph based on the hypergraph neural network model that has learned high-order knowledge.

[0036] It should be noted that the preset convergence stop condition can be set by those skilled in the art according to actual conditions and is not specifically limited here.

[0037] In step S102, based on the hypergraph neural network model, each node of the hypergraph is credibly quantified to obtain a credible value for each hyperedge, and a high-order association aggregation function is obtained from the node features of each hyperedge according to the credible value to generate a soft label semantic representation according to the high-order association aggregation function.

[0038] As a possible implementation method, the embodiment of the present application can be based on a hypergraph neural network model, and each node of the hypergraph can be credibly quantified in a perturbation difference manner to obtain a credible value for each hyperedge. A high-order association aggregation function can be used to generate a high-order associated soft label semantic representation from the discrete node features of each hyperedge, thereby integrating traditional hypergraph learning, credible quantification, and high-order knowledge distillation methods to further improve the learning credibility during industrial deployment.

[0039] In one embodiment of the present application, each node of the hypergraph is credibly quantized to obtain a credible value of each hyperedge, including: copying the feature matrix of the training data to obtain a copied feature matrix, and generating a perturbation matrix based on the copied feature matrix and noise; respectively calculating the entropy of the feature result label vector of the feature matrix and the entropy of the perturbation result label vector of the perturbation matrix to obtain the hyperedge credibility of each hyperedge, and obtaining the credible value of each hyperedge based on the hyperedge credibility.

[0040] Specifically, the embodiment of the present application can obtain noise by random sampling:

[0041]

[0042] in, is a normal distribution, μ and Σ are its mean and variance respectively. Copy the feature matrix X of the training data, and multiply each value on the copied feature matrix with the generated random noise ∈ to obtain the perturbation matrix ∈X. The embodiment of the present application is based on the trained teacher hypergraph model fθ :(X, H)→Y, the result label group can be calculated for the feature matrix and the perturbation matrix separately:

[0043] Y′=f θ (∈X,H)and Y=f θ (X, H),

[0044] Among them, X is the feature matrix of training data, and Y and Y′ are the outputs predicted by the model.

[0045] In the embodiment of the present application, for each hyperedge, the feature result label vector of each point on the hyperedge can be taken as and its corresponding perturbation result label vector use Calculate the entropy of the feature result label vector of the feature matrix and the entropy of the perturbation result label vector of the perturbation matrix respectively, and then use:

[0046]

[0047] Get the hyperedge credibility δ of each hyperedge e , hyperedge credibility δ e The larger the value, the more sensitive the hyperedge is to noise perturbations in downstream tasks.

[0048] Furthermore, the embodiment of the present application can perform regularization and credibility value calculation, with the credibility of each hyperedge δ e The maximum value of δ e Regularize and calculate the credibility value ρ of each hyperedge e :

[0049]

[0050] ρ e It measures the robustness of the hyperedges connecting vertices in the hypergraph model with respect to noise perturbations and reflects the reliability of the hyperedges with respect to downstream tasks. Therefore, during the distillation process, more attention should be paid to those hyperedges with higher reliability scores and containing robust knowledge.

[0051] In step S103, a lightweight end-edge hypergraph neural network is constructed, and hypergraph probability sampling is performed using soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group.

[0052] During the actual execution process, the embodiments of the present application can construct a lightweight end-edge hypergraph neural network, and use soft label semantic representation as a parameter, and obtain a lightweight end-edge hypergraph neural network soft label group by probabilistic sampling of the hypergraph, which is helpful to eliminate the dependence on complex calculations on the hypergraph when processing large-scale data in hypergraph-based learning, thereby improving the overall computing efficiency.

[0053] In one embodiment of the present application, a lightweight end-edge hypergraph neural network is constructed, and hypergraph probability sampling is performed with soft label semantic representation to obtain a soft label group of the lightweight end-edge hypergraph neural network, including: initializing the lightweight end-edge hypergraph neural network to obtain an initialized lightweight end-edge hypergraph neural network; based on the initialized lightweight end-edge hypergraph neural network, hypergraph probability sampling is performed on each hyperedge with the credible value of each hyperedge as a parameter to obtain a soft label group of the lightweight end-edge hypergraph neural network.

[0054] In the actual execution process, the embodiment of the present application can use the lighter hypergraph neural network model in the above step S101, such as a multilayer perceptron, to generate and initialize a lightweight end-edge hypergraph neural network to obtain an initialized lightweight end-edge hypergraph neural network. The embodiment of the present application can be based on the initialized lightweight end-edge hypergraph neural network, and each hyperedge can be sampled by Bernoulli random sampling with the credible value of each hyperedge as a parameter to obtain a soft label group of the lightweight end-edge hypergraph neural network. At the same time, for the node features output by the lightweight end-edge hypergraph neural network on the model training set, the node information transmission method is used to generate a soft label semantic representation of the high-order association of the hyperedge from the discrete node features:

[0055] and for e∈ε′,

[0056] in, is a high-level soft target, For soft targets, is the entire vertex set, and ε′ is the reliable hyperedge set.

[0057] Additional high-order soft label restrictions are obtained by calculating the KD divergence

[0058]

[0059] in, is a high-order soft target, and ε′ is a reliable hyperedge set.

[0060] It should be noted that α(·) in the embodiment of the present application is a Softmax function used for normalization, and τ is a distillation temperature coefficient. The goal is to narrow the gap between the predicted high-order distribution of the student lightweight edge-end hypergraph neural network and the high-order soft labels of the teacher hypergraph neural network by minimizing The distilled student lightweight edge-end hypergraph neural network can retain more reliable high-order information to achieve better performance.

[0061] The embodiment of the present application performs hypergraph probability sampling on each hyperedge with the trust value of each hyperedge as a parameter to obtain a soft label group of a lightweight end-edge hypergraph neural network, thereby further eliminating the dependence on complex calculations performed on the hypergraph when processing large-scale data in hypergraph-based learning, thereby improving the overall computing efficiency, and based on the distillation of trusted high-order knowledge, improving the overall credibility of the parameters of the lightweight end-edge hypergraph neural network learning, and reducing the transfer accuracy loss of distillation learning.

[0062] In step S104, based on the lightweight end-edge hypergraph neural network soft label group, the lightweight end-edge hypergraph neural network is trained to obtain a trained lightweight end-edge hypergraph neural network.

[0063] During the actual execution process, the embodiments of the present application can train a lightweight end-edge hypergraph neural network based on a lightweight end-edge hypergraph neural network soft label group by injecting high-order associated trusted knowledge to obtain a trained lightweight end-edge hypergraph neural network, thereby taking into account the advantages of both a high-precision hypergraph neural network model and a lightweight end-edge hypergraph neural network, and eliminating the dependence on complex calculations on the hypergraph when processing large-scale data in hypergraph-based learning.

[0064] In one embodiment of the present application, a lightweight end-edge hypergraph neural network is trained to obtain a trained lightweight end-edge hypergraph neural network, including: calculating a total loss function of the lightweight end-edge hypergraph neural network; optimizing the lightweight end-edge hypergraph neural network according to the total loss function until a preset convergence stop condition is reached to obtain the trained lightweight end-edge hypergraph neural network.

[0065] In the actual execution process, the embodiment of the present application can calculate the total loss function of the lightweight edge-end hypergraph neural network

[0066]

[0067] Among them, λ is a hyperparameter used to balance the true label (y v ) and the teacher HGNN (soft target and high-level soft targets ), the supervision information of soft targets and high-order soft targets exists in the entire vertex set respectively and the reliable hyperedge set ε′.

[0068] The embodiment of the present application can be based on the total loss function The lightweight end-edge hypergraph neural network is optimized and the sampling calculation process is repeated until convergence on the model training set to obtain the trained lightweight end-edge hypergraph neural network, thereby further improving the overall computing efficiency.

[0069] It should be noted that the preset convergence stop condition can be set by those skilled in the art according to actual conditions and is not specifically limited here.

[0070] In one embodiment of the present application, after obtaining the trained lightweight end-edge hypergraph neural network, it also includes: optimizing the student hypergraph model according to the trained lightweight end-edge hypergraph neural network to obtain an optimization result; and deploying the trained lightweight end-edge hypergraph neural network online according to the optimization result.

[0071] Specifically, the embodiments of the present application can optimize the student hypergraph model according to the trained lightweight end-edge hypergraph neural network according to different industrial deployments to obtain optimization results, so that it can be more targeted to meet actual scenarios, and deploy the trained lightweight end-edge hypergraph neural network online according to the optimization results, so that it can batch process large quantities of unknown data required by online industries.

[0072] The embodiments of the present application have the advantages of lightweight, low latency and high efficiency, which can improve the learning credibility during industrial deployment and at the same time improve the execution efficiency under large batches of data, thereby broadening the industrial scenarios that can be used in the hypergraph field.

[0073] Specifically, it can be combined Figure 2 As shown, the working principle of the method for constructing a lightweight hypergraph neural network model in the embodiment of the present application is described in detail using a specific embodiment.

[0074] like Figure 2 As shown, the embodiment of the present application may include the following steps:

[0075] Step S201: Known label training data.

[0076] Step S202: Teacher hypergraph neural network model.

[0077] Among them, the embodiment of the present application can initialize the teacher hypergraph neural network model.

[0078] Step S203: iterative optimization.

[0079] Among them, the embodiment of the present application can select a suitable hypergraph neural network model and perform iterative learning on the preprocessed training data.

[0080] Step S204: predict result label.

[0081] Among them, the embodiment of the present application can predict the result label so that it can meet the learning process of the hypergraph neural network model.

[0082] Step S205: Credibility calculation.

[0083] Among them, the embodiment of the present application can perform hyper-edge credibility calculation.

[0084] Step S206: soft label extraction.

[0085] Step S207: Hyperedge sampling.

[0086] Among them, the embodiment of the present application can perform probabilistic sampling on the hyperedges of the hypergraph.

[0087] Step S208: high-level trusted soft label.

[0088] Among them, the embodiment of the present application can obtain a high-order trusted soft label after performing hyperedge sampling.

[0089] Step S209: Student hypergraph neural network model.

[0090] Among them, the embodiment of the present application can tune the student hypergraph neural network model according to different industrial deployments of the trained lightweight end-edge hypergraph neural network.

[0091] Step S210: iterative optimization.

[0092] Step S211: training the hypergraph network.

[0093] According to the method for constructing a lightweight hypergraph neural network model proposed in the embodiment of the present application, the advantages of a high-precision hypergraph neural network model and a lightweight end-edge hypergraph neural network can be taken into account at the same time, eliminating the dependence on complex calculations performed on the hypergraph when processing large-scale data in hypergraph-based learning, improving the overall computing efficiency, and integrating traditional hypergraph learning, trusted quantization, and high-order knowledge distillation methods to improve the learning credibility during industrial deployment, while improving the execution efficiency under large batches of data, thereby broadening the industrial scenarios that can be used in the hypergraph field. Thus, the problem that the high-order modeling capability of the hypergraph increases the complexity of the calculation and hinders its deployment in actual industrial applications in the related technology is solved, the high-order structure dependence in the inference process is strong, the hypergraph neural network model cannot guarantee the learning of trusted knowledge, and is prone to overfitting, which is not conducive to actual reasoning tasks, and the lightweight hypergraph neural network model has low accuracy when used alone for deployment is solved.

[0094] Secondly, the construction device of the lightweight hypergraph neural network model proposed in the embodiment of the present application is described with reference to the accompanying drawings.

[0095] Figure 3 It is a structural schematic diagram of a device for constructing a lightweight hypergraph neural network model according to an embodiment of the present application.

[0096] like Figure 3As shown, the construction device 10 of the lightweight hypergraph neural network model includes: a training module 100, an acquisition module 200, a construction module 300 and a generation module 400.

[0097] Specifically, the training module 100 is used to initialize the teacher hypergraph neural network model to obtain the initialized teacher hypergraph neural network model, and use the training test set to train the initialized teacher hypergraph neural network model to obtain the hypergraph neural network model; the acquisition module 200 is used to perform credible quantification on each node of the hypergraph based on the hypergraph neural network model to obtain the credible value of each hyperedge, and obtain the high-order association aggregation function from the node features of each hyperedge according to the credible value to generate a soft label semantic representation according to the high-order association aggregation function; the construction module 300 is used to construct a lightweight end-edge hypergraph neural network, and perform hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group; the generation module 400 is used to train the lightweight end-edge hypergraph neural network based on the lightweight end-edge hypergraph neural network soft label group to obtain the trained lightweight end-edge hypergraph neural network.

[0098] In one embodiment of the present application, the training module 100 includes: an acquisition unit and a learning unit.

[0099] Among them, the acquisition unit is used to obtain the training data of the teacher hypergraph neural network model and preprocess the training data to obtain the preprocessed training data; the learning unit is used to select the corresponding hypergraph neural network model to iteratively learn the preprocessed training data until the preset convergence stop condition is reached to obtain the convergence result, so as to generate the hypergraph neural network model according to the convergence result.

[0100] In one embodiment of the present application, the acquisition module 200 includes: a first generation unit and a first calculation unit.

[0101] Among them, the first generation unit is used to copy the feature matrix of the training data to obtain the copied feature matrix, so as to generate a perturbation matrix based on the copied feature matrix and noise; the first calculation unit is used to respectively calculate the entropy of the feature result label vector of the feature matrix and the entropy of the perturbation result label vector of the perturbation matrix to obtain the hyper-edge credibility of each hyper-edge, and obtain the credibility value of each hyper-edge based on the hyper-edge credibility.

[0102] In one embodiment of the present application, the construction module 300 includes: an initialization unit and a sampling unit.

[0103] Among them, the initialization unit is used to initialize the lightweight end-edge hypergraph neural network to obtain the initialized lightweight end-edge hypergraph neural network; the sampling unit is used to perform hypergraph probability sampling on each hyperedge based on the initialized lightweight end-edge hypergraph neural network, taking the credible value of each hyperedge as a parameter, to obtain a soft label group of the lightweight end-edge hypergraph neural network.

[0104] In one embodiment of the present application, the generation module 400 includes: a second calculation unit and a second generation unit.

[0105] Among them, the second calculation unit is used to calculate the total loss function of the lightweight end-edge hypergraph neural network; the second generation unit is used to optimize the lightweight end-edge hypergraph neural network according to the total loss function until the preset convergence stop condition is reached to obtain the trained lightweight end-edge hypergraph neural network.

[0106] In one embodiment of the present application, the device 10 for constructing a lightweight hypergraph neural network model also includes: an optimization module and a deployment module.

[0107] Among them, the optimization module is used to optimize the student hypergraph model according to the trained lightweight end-edge hypergraph neural network after obtaining it, so as to obtain the optimization result; the deployment module is used to deploy the trained lightweight end-edge hypergraph neural network online according to the optimization result.

[0108] It should be noted that the aforementioned explanation of the embodiment of the method for constructing a lightweight hypergraph neural network model is also applicable to the device for constructing a lightweight hypergraph neural network model of this embodiment, and will not be repeated here.

[0109] According to the construction device of the lightweight hypergraph neural network model proposed in the embodiment of the present application, it is possible to take into account the advantages of the high-precision hypergraph neural network model and the lightweight end-edge hypergraph neural network at the same time, eliminate the dependence on the complex calculations performed on the hypergraph when processing large-scale data in hypergraph-based learning, improve the overall computing efficiency, and integrate traditional hypergraph learning, trusted quantization and high-order knowledge distillation methods to improve the learning credibility during industrial deployment, while improving the execution efficiency under large batches of data, thereby broadening the industrial scenarios that can be used in the hypergraph field. Thus, the problem that the high-order modeling capability of the hypergraph increases the complexity of the calculation and hinders its deployment in actual industrial applications in the related technology is solved, the high-order structure dependence in the inference process is strong, the hypergraph neural network model cannot guarantee the learning of trusted knowledge, and is prone to overfitting, which is not conducive to actual reasoning tasks, and the lightweight hypergraph neural network model has low accuracy when used alone for deployment is solved.

[0110] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0111] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .

[0112] When the processor 402 executes the program, the method for constructing the lightweight hypergraph neural network model provided in the above embodiment is implemented.

[0113] Furthermore, the electronic device further comprises:

[0114] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0115] The memory 401 is used to store computer programs that can be run on the processor 402 .

[0116] The memory 401 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0117] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0118] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0119] The processor 402 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0120] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for constructing a lightweight hypergraph neural network model as described above is implemented.

[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0122] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0123] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0124] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0125] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0126] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0127] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0128] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for constructing a lightweight hypergraph neural network model, characterized in that: The following steps are involved: Initializing the teacher hypergraph neural network model to obtain an initialized teacher hypergraph neural network model, and training the initialized teacher hypergraph neural network model using a training test set to obtain a hypergraph neural network model; Based on the hypergraph neural network model, each node of the hypergraph is quantified to obtain a credible value of each hyperedge, and a high-order association aggregation function is obtained from the node features of each hyperedge according to the credible value, so as to generate a soft label semantic representation according to the high-order association aggregation function; Constructing a lightweight end-edge hypergraph neural network, and performing hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group; as well as Based on the lightweight end-edge hypergraph neural network soft label group, the lightweight end-edge hypergraph neural network is trained to obtain a trained lightweight end-edge hypergraph neural network.

2. The method for constructing a lightweight hypergraph neural network model according to claim 1, characterized in that: The teacher hypergraph neural network model is initialized to obtain the initialized teacher hypergraph neural network model, and the initialized teacher hypergraph neural network model is trained with a training test set to obtain a hypergraph neural network model, including: Acquire the training data of the teacher hypergraph neural network model, and preprocess the training data to obtain preprocessed training data; Select a corresponding hypergraph neural network model to iteratively learn the preprocessed training data until a preset convergence stop condition is reached to obtain a convergence result, so as to generate the hypergraph neural network model according to the convergence result.

3. The method for constructing a lightweight hypergraph neural network model according to claim 2, characterized in that: The process of performing trust quantification on each node of the hypergraph to obtain a trust value of each hyperedge includes: The characteristic matrix of the training data is copied to obtain a copied characteristic matrix, and a perturbation matrix is ​​generated according to the copied characteristic matrix and noise; The entropy of the feature result label vector of the feature matrix and the entropy of the perturbation result label vector of the perturbation matrix are calculated respectively to obtain the hyper-edge credibility of each hyper-edge, and the credibility value of each hyper-edge is obtained according to the hyper-edge credibility.

4. The method for constructing a lightweight hypergraph neural network model according to claim 3, characterized in that: The step of constructing a lightweight end-edge hypergraph neural network and performing hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group includes: Initializing the lightweight end-edge hypergraph neural network to obtain an initialized lightweight end-edge hypergraph neural network; Based on the initialized lightweight end-edge hypergraph neural network, the hypergraph probability sampling is performed on each hyperedge with the credible value of each hyperedge as a parameter to obtain a soft label group of the lightweight end-edge hypergraph neural network.

5. The method for constructing a lightweight hypergraph neural network model according to claim 1, characterized in that: The step of training the lightweight end-edge hypergraph neural network to obtain a trained lightweight end-edge hypergraph neural network includes: Calculating the total loss function of the lightweight edge-end hypergraph neural network; The lightweight end-edge hypergraph neural network is optimized according to the total loss function until a preset convergence stop condition is reached to obtain the trained lightweight end-edge hypergraph neural network.

6. The method for constructing a lightweight hypergraph neural network model according to claim 1, characterized in that: After obtaining the trained lightweight edge-end hypergraph neural network, the method further includes: Optimizing the student hypergraph model according to the trained lightweight end-edge hypergraph neural network to obtain an optimization result; The trained lightweight end-edge hypergraph neural network is deployed online according to the optimization results.

7. A device for constructing a lightweight hypergraph neural network model, characterized in that: include: A training module is used to initialize the teacher hypergraph neural network model to obtain an initialized teacher hypergraph neural network model, and train the initialized teacher hypergraph neural network model using a training test set to obtain a hypergraph neural network model; An acquisition module is used to perform trust quantification on each node of the hypergraph based on the hypergraph neural network model to obtain a trust value of each hyperedge, and obtain a high-order association aggregation function from the node features of each hyperedge according to the trust value, so as to generate a soft label semantic representation according to the high-order association aggregation function; A construction module is used to construct a lightweight end-edge hypergraph neural network, and perform hypergraph probability sampling with the soft label semantic representation to obtain a lightweight end-edge hypergraph neural network soft label group; as well as A generation module is used to train the lightweight end-edge hypergraph neural network based on the lightweight end-edge hypergraph neural network soft label group to obtain a trained lightweight end-edge hypergraph neural network.

8. The device for constructing a lightweight hypergraph neural network model according to claim 7, characterized in that: The training module includes: An acquisition unit, used for acquiring training data of the teacher hypergraph neural network model, and preprocessing the training data to obtain preprocessed training data; A learning unit is used to select a corresponding hypergraph neural network model to iteratively learn the preprocessed training data until a preset convergence stop condition is reached to obtain a convergence result, so as to generate the hypergraph neural network model according to the convergence result.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for constructing a lightweight hypergraph neural network model as described in any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement a method for constructing a lightweight hypergraph neural network model as described in any one of claims 1-6.

Citation Information

Cited By

  • Post-earthquake rescue path optimization LGNN algorithm coupling safety and efficiency

    CN119849720A