Deep hash network representation learning method and device based on smooth activation

Through the deep hash network representation learning method based on smooth activation, attribute multi-channel heterogeneous networks are constructed and binary hash representations are generated, which solves the problem of insufficient utilization of attribute information in heterogeneous networks and improves storage and retrieval efficiency.

CN118690055APending Publication Date: 2024-09-24NO 15 INST OF CHINA ELECTRONICS TECH GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410755636.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively utilize attribute information in heterogeneous networks, resulting in insufficient comprehensive application in downstream tasks. Moreover, existing network representation methods are mostly floating-point types, with low storage and retrieval efficiency.

Method used

A deep hash network representation learning method based on smooth activation is used to generate a binary hash network representation by constructing an attribute multi-path heterogeneous network to enhance the robustness of the network and optimize storage and retrieval efficiency.

Benefits of technology

Improve attribute information in heterogeneous networks through attribute enhancement methods, improve the comprehensiveness and robustness of network representation, save storage space, and improve the retrieval efficiency of downstream tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690055A
    Figure CN118690055A
Patent Text Reader

Abstract

The embodiment of the invention provides a deep hash network representation learning method and device based on smooth activation, and the method comprises the steps: constructing an attribute multipath heterogeneous network according to nodes and edges in a target network; the structure is embedded and input into the full connection layer for self-attention mechanism learning, the structure embedded after self-attention mechanism learning and node embedded and attribute embedded input into the connection layer are subjected to embedded fusion, an embedded fusion result is input into the Hash layer, a hyperbolic tangent function is used as a Hash representation of an activation function in the Hash layer, and a hyperbolic tangent function is used as an activation function in the Hash layer; taking network parameters after Hash representation convergence as initialization parameters of next node training to obtain binary Hash network embedding representation output by the Hash layer; according to the invention, the attribute information in the attribute multipath heterogeneous network can be perfected, and the robustness of the network is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a deep hashing network representation learning method and device based on smooth activation. Background Art

[0002] Network representation aims to represent network nodes as low-dimensional, real-valued, dense vector forms. The vector form has the ability to represent and reason in vector space, and can be easily and conveniently used as the input of machine learning models. In addition, vector representation can be applied to many studies, such as node classification tasks, link prediction, community discovery tasks, and recommendation systems. However, the application of network structure in the real world is extremely complex, not only including multiple types of nodes and diverse edges, but also rich attribute information in nodes and edges. According to the topological structure (homogeneous or heterogeneous) and attributes (with or without attributes) of the network, it can be divided into six different types. Homogeneous network, attribute homogeneous network, heterogeneous network, attribute heterogeneous network, multi-way heterogeneous network, and attribute multi-way heterogeneous network.

[0003] Taking e-commerce networks as an example, nodes can be divided into users and products, and edges can be clicks, favorites, purchases, etc. as the relationship between users and products. The user's age, gender, address, etc. can be used as its attributes, and the price, brand, shipping cost, etc. of the product can be used as its attributes. Existing methods do not fully utilize the role of attributes. Due to the complexity of heterogeneous networks, simple and comprehensive representations can significantly improve their application in downstream tasks, but most existing representation methods are floating-point arrays, which do not achieve simple and efficient representation. Summary of the invention

[0004] In response to the problems in the prior art, the present application provides a deep hash network representation learning method and device based on smooth activation, which can improve the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhance the robustness of the network, make the network representation more comprehensive, and learn the floating-point network representation as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0005] In order to solve at least one of the above problems, the present application provides the following technical solutions:

[0006] In a first aspect, the present application provides a deep hashing network representation learning method based on smooth activation, comprising:

[0007] Constructing an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0008] According to the node attributes and edge attributes in the attribute multi-path heterogeneous network, a mask matrix having the same dimension is generated, and the node attributes, the edge attributes and the mask matrix are input into a perturbator to obtain the perturbed attributes output by the perturbator;

[0009] Determine adjacency matrices of different edge types according to the attribute multi-way heterogeneous network, and embed the adjacency matrix as a node, integrate the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embed the one-hot encoding as an attribute, capture structural information and context information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure;

[0010] The structure embedding is input into the fully connected layer for self-attention mechanism learning, the structure embedding after the self-attention mechanism learning is embedded and fused with the node embedding and attribute embedding input into the connection layer, and the result of the embedding fusion is input into the hash layer, the hyperbolic tangent function is used as the hash representation of the activation function in the hash layer, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0011] Furthermore, the method of using the hyperbolic tangent function as the hash representation of the activation function in the hash layer, and using the network parameters after the hash representation converges as the initialization parameters for the next node training, to obtain the binary hash network embedding representation output by the hash layer, includes:

[0012] The tanh(θ t v) function as the hash representation of the activation function in the hash layer, where θ0 = 1. At each stage t, after the hash representation converges, θ is added t Fine-tune the hash representation layer and use the converged network parameters as initialization parameters for the next stage of training;

[0013] By θ t v evolution tanh(θ t →∞), and finally obtain the binary hash network embedding representation of the hash layer output:

[0014]

[0015] Here, ε is an adjustable threshold.

[0016] Furthermore, after constructing the attribute multi-path heterogeneous network, it also includes:

[0017] Performing a random walk on each edge type view of the attributed multi-path heterogeneous network by a meta-path embedding method to determine the transition probability of the semantic relationship between different node types;

[0018] A node sequence of the attribute multi-path heterogeneous network corresponding to a specific semantic pattern is generated according to the transition probability.

[0019] Furthermore, after constructing the attribute multi-path heterogeneous network, it also includes:

[0020] For the node sequence of the meta-path generated by the random walk, a path modeling operation is performed based on the negative logarithmic probability between the minimized node and its context node of the objective function;

[0021] The context of each node on the meta-path is determined according to the result of the path modeling operation.

[0022] Furthermore, after constructing the attribute multi-path heterogeneous network, it also includes:

[0023] Negative samples are constructed by introducing randomly selected nodes through negative sampling method, and positive samples are determined by the path generated by random walk and the preset sliding window;

[0024] The objective function is approximately optimized according to the positive samples and the negative samples to obtain an approximately optimized objective function.

[0025] Furthermore, after constructing the attribute multi-path heterogeneous network, it also includes:

[0026] Before calculating the transfer probability of the semantic relationship between different node types, a normalization process is performed according to the node type through a softmax function to obtain the probability distribution of different types of nodes after the normalization process.

[0027] In a second aspect, the present application provides a deep hashing network representation learning device based on smooth activation, comprising:

[0028] An attribute multi-path heterogeneous network construction module is used to construct an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents the attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0029] An attribute enhancement module is used to generate a mask matrix with the same dimension according to the node attributes and edge attributes in the attribute multi-path heterogeneous network, and input the node attributes, the edge attributes and the mask matrix into a perturbator to obtain the perturbed attributes output by the perturbator;

[0030] A basic embedding module, for determining an adjacency matrix of different edge types according to the attribute multi-way heterogeneous network, embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and contextual information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and contextual information as a structure;

[0031] The final embedding module is used to embed the structure into the fully connected layer for self-attention mechanism learning, embed and fuse the structure embedding after the self-attention mechanism learning with the node embedding and attribute embedding input to the connection layer, and input the embedding fusion result into the hash layer, use the hyperbolic tangent function as the hash representation of the activation function in the hash layer, and use the network parameters after the hash representation converges as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0032] In a third aspect, 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 when the processor executes the program, the steps of the deep hashing network representation learning method based on smooth activation are implemented.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the deep hashing network representation learning method based on smooth activation.

[0034] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the deep hashing network representation learning method based on smooth activation.

[0035] It can be seen from the above technical solution that the present application provides a deep hash network representation learning method and device based on smooth activation. Through the attribute enhancement method, the attribute information in the attribute multi-way heterogeneous network is improved, the robustness of the network is enhanced, and the network representation is made more comprehensive. The floating-point network representation is learned as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 This is one of the flow charts of the deep hashing network representation learning method based on smooth activation in the embodiment of the present application;

[0038] Figure 2 This is the second flow chart of the deep hashing network representation learning method based on smooth activation in the embodiment of the present application;

[0039] Figure 3 This is a flowchart of the deep hashing network representation learning method based on smooth activation in the embodiment of the present application.

[0040] Figure 4 This is a fourth flow chart of a deep hashing network representation learning method based on smooth activation in an embodiment of the present application;

[0041] Figure 5 It is a structural diagram of a deep hashing network representation learning device based on smooth activation in an embodiment of the present application;

[0042] Figure 6 It is a flowchart of a deep hashing network representation learning method based on smooth activation in a specific embodiment of the present application;

[0043] Figure 7 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application.

[0044] Reference numerals:

[0045] Electronic device 9600, central processing unit 9100, memory 9140, communication module 9110, input unit 9120, audio processor 9130, display 9160, power supply 9170, buffer memory 9141, application / function storage unit 9142, data storage unit 9143, driver program storage unit 9144, antenna 9111, speaker 9131, microphone 9132. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0047] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0048] Considering that the role of attributes is not fully utilized in the prior art. Due to the complexity of heterogeneous networks, simple and comprehensive representation can significantly improve their application in downstream tasks, but most of the existing representation methods are floating-point arrays, which do not achieve simple and efficient representation. This application provides a deep hash network representation learning method and device based on smooth activation. Through the attribute enhancement method, the attribute information in the attribute multi-channel heterogeneous network is improved, the robustness of the network is enhanced, and the network representation is more comprehensive. The floating-point network representation is learned as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0049] In order to improve the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhance the robustness of the network, and make the network representation more comprehensive, the floating-point network representation is learned as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks. This application provides an embodiment of a deep hash network representation learning method based on smooth activation, see Figure 1 and Figure 6 The deep hashing network representation learning method based on smooth activation specifically includes the following contents:

[0050] Step S101: constructing an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0051] Optionally, in modern network analysis and data mining, building and processing complex network structures is one of the important means to achieve intelligence and automation. Step S101 describes the process of building an attribute multi-path heterogeneous network, which is to better characterize and analyze the attribute information of nodes and edges in the network, thereby improving the accuracy and efficiency of data analysis.

[0052] In the specific implementation process, we first need to identify the nodes and edges in the target network. In practical applications, nodes and edges often have rich attribute information, which requires a more complex network model to represent this information. Therefore, we need to convert the target network into an attribute multi-path heterogeneous network.

[0053] When building an attribute multi-path heterogeneous network, we first need to define the types of nodes and edges. The node type represents the attribute information of the node. For example, in a social network, a node can be a user, and the attributes include age, gender, interests, etc. The edge type represents the relationship between node attributes, such as friend relationship, follow relationship, etc. In this way, the nodes and edges in the target network can be mapped to nodes and edges of multiple types to form an attribute multi-path heterogeneous network.

[0054] Next, we need to build a network structure based on the attribute information of nodes and edges. The specific process includes the following steps: First, identify all nodes in the network and classify them according to their attribute information, grouping nodes with the same attributes into one category. Then, identify the relationships between nodes and build different types of edges based on these relationships. For example, in a social network, different types of edges can be built based on attributes such as the frequency of interaction between users and common interests. Finally, a complex network structure containing multiple types of nodes and edges is formed, namely an attribute multi-path heterogeneous network.

[0055] Specifically, in order to more comprehensively obtain the information in the attribute multi-heterogeneous network, this method transforms the node v i The basic representation on each edge type r is divided into three parts: node information, node attributes, and structure representation. Different types of edges share nodes v i Therefore, we can directly obtain the node information of node v i Node information b i .

[0056] Since different nodes have different node attributes, this method represents the attribute a i Defined as a parameterized function:

[0057]

[0058] where x i For node v i The properties of h z is the conversion function, z=φ(i) is the node v i The corresponding node type, β r is the coefficient, D z v i The feature transformation matrix corresponding to node type z.

[0059] Different types of nodes may have attributes x of different dimensions i , so the transformation function h z It can have different forms. The structural representation is obtained from the edges and context information of the network. i The k-th structure representation Aggregated from the structural representation of neighbors:

[0060]

[0061] Where N i,r is node v i Neighbors in edge type r.

[0062] In order to make the model better handle unobserved data, each node v iThe initial structure of edge type r is represented as r is attributed to x i The structural representation of Parameterization, where g z,r Is a conversion function. Used to convert attributes into node v i In the structure representation of edge type r, the node type corresponding to z is v i Depending on GraphSAGE, AGGREGATOR can be an average aggregator or other pooling aggregators like a max aggregator.

[0063] The k-th level structure representation Denoted as structure representation s i,r , node v i The structure of the cascade is S i , size d s ×m, where d s The dimension represented by the structure:

[0064] S i =(s i,1 ,s i,2 ,...,s i,m ) (3)

[0065] Considering the different effects of different types of edges, this method uses softmax to calculate S i Vector linear combination of middle opposite sides type r for:

[0066]

[0067] where w r and W r are trainable parameters of edge type r, with sizes d z and d z ×d s , the superscript T indicates the transpose of a vector or matrix. Therefore, the node v i The overall representation of edge type r is:

[0068]

[0069] where b i For node v i The basic representation of α r is a hyperparameter that represents the importance of the structural representation to the overall representation, is the trainable transformation matrix.

[0070] The technical principle of this method is to enrich the network's expressive power by introducing attribute information, so that the network can more accurately reflect the complex relationships in the real world. By classifying and annotating the nodes and edges, the target network can be transformed into a diversified heterogeneous network, thereby improving the accuracy and depth of data analysis.

[0071] This method solves the limitation of the target network in expressing complex attribute relationships. Traditional methods cannot effectively distinguish different types of nodes and edges, resulting in a lack of detail and accuracy in the analysis results. By constructing an attribute multi-path heterogeneous network, the attribute information of nodes and edges and the relationships between them can be clearly represented, thus providing richer data support for subsequent network analysis.

[0072] This approach brings significant technical effects. First, it improves the accuracy of network analysis. By introducing attribute information, the relationship between nodes and edges can be captured more accurately, improving the reliability of analysis results. Second, it enhances the flexibility of data processing. The attribute multi-way heterogeneous network can be flexibly adjusted according to different analysis requirements and adapt to a variety of application scenarios. In addition, it also improves the scalability of the system. As the amount of data increases, the attribute multi-way heterogeneous network can maintain efficient data processing capabilities by increasing the types of nodes and edges.

[0073] For example, in an e-commerce recommendation system, users and products can be used as nodes in the network, and purchase relationships, browsing relationships, etc. can be used as edges. By constructing an attribute multi-way heterogeneous network, users can be classified according to their purchase history, browsing history, evaluation and other attribute information, and different types of edges can be constructed based on the similarity between users and the correlation between products. In this way, the recommendation system can more accurately identify users' interests and preferences, provide personalized recommendations, and improve user satisfaction and purchase rate.

[0074] In short, through the implementation of step S101, the system can construct an attribute multi-path heterogeneous network to improve the accuracy and efficiency of data analysis. By introducing the attribute information of nodes and edges and enriching the expressiveness of the network structure, the system can more accurately reflect the complex relationships in the real world and provide powerful technical support and data analysis capabilities for various application scenarios. This method has broad application prospects in social network analysis, e-commerce recommendations, intelligent transportation and other fields, and provides a solid foundation for the development of intelligent systems.

[0075] Step S102: generating a mask matrix having the same dimension as the node attributes and edge attributes in the attribute multi-path heterogeneous network, inputting the node attributes, the edge attributes and the mask matrix into a perturbator, and obtaining perturbation attributes output by the perturbator;

[0076] Optionally, in this embodiment, the attributes in the attribute multi-path heterogeneous network are processed. First, a mask matrix of the same dimension as the existing attributes is generated, and then the original attributes and the mask matrix are used as input to randomly generate perturbed attributes. The generated perturbed attributes include not only the original attributes of the network, but also the attributes after perturbation enhancement. The generated perturbed attributes are used as part of the input of the basic embedding.

[0077] Optionally, step S102 describes in detail a technical process for processing node attributes and edge attributes in an attribute multi-path heterogeneous network through a perturbation attribute generator. The core of this process is to generate binary mask attribute vectors and use these vectors to perturb the attributes, thereby enhancing the robustness and privacy protection capabilities of the network.

[0078] In the specific implementation process, we first need to randomly generate the corresponding binary mask attribute vectors according to the node attributes and edge attributes in the attribute multi-way heterogeneous network. Binary mask attribute vectors are a tool for masking and perturbing attributes. They ensure that the attribute vectors of each node and edge are unique and unpredictable through random generation. For example, in a social network, the attributes of a node may include the user's interests, age, etc., and the attributes of an edge may include interaction frequency, relationship strength, etc. By generating random binary masks for these attributes, we can provide a basis for subsequent perturbation operations.

[0079] Next, the generated binary masked attribute vector is input into the perturbation attribute generator together with the node attributes and edge attributes. The perturbation attribute generator is an algorithm or model specifically used for attribute perturbation. It generates perturbed attribute values ​​by combining and processing the input attributes and mask vectors. The purpose of the perturbation operation is to introduce a certain degree of randomness and fuzziness while retaining the original attribute information, thereby protecting data privacy and improving the robustness of the network.

[0080] In terms of technical principles, the perturbation attribute generator can be implemented based on a variety of methods, such as noise addition method, differential privacy technology, etc. The noise addition method adds random noise to the original attribute value so that the attribute value changes within a certain range, thereby avoiding the leakage of precise attributes. Differential privacy technology uses mathematical methods to ensure that the perturbed attributes do not affect the overall data distribution and provide strict privacy protection guarantees. Regardless of which method is used, the key is to ensure that the perturbed attributes are consistent with the original attributes in statistical characteristics, and it is difficult to restore the original attributes through reverse engineering.

[0081] This method solves the problem of how to protect user privacy while retaining data validity in network data processing. Traditional attribute processing methods often fail to balance privacy protection and data validity, which can easily lead to data leakage or distortion of analysis results. By generating binary mask attribute vectors and performing perturbation operations, the specific attribute values ​​can be blurred to a certain extent to prevent sensitive information leakage, while ensuring the statistical characteristics of the data and the reliability of the analysis results.

[0082] In terms of technical effects, first of all, this method significantly improves the level of data privacy protection. By introducing random perturbations, it is difficult to extract accurate personal information from the perturbed data, thereby protecting user privacy. Secondly, it enhances the robustness of the network. Introducing randomness in the processing process can effectively deal with data noise and attacks, and improve the stability and reliability of the system. In addition, this method also maintains the validity of the data. Despite the perturbation operation, through reasonable algorithm design, it is ensured that the attributes after the perturbation are consistent with the original data in statistical characteristics, ensuring the accuracy of data analysis and mining.

[0083] Step S103: determining adjacency matrices of different edge types according to the attribute multi-way heterogeneous network, and embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and context information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and context information as a structure;

[0084] Optionally, in this embodiment, the basic embedding part includes node embedding, attribute embedding and structural embedding. Node embedding obtains the information of the node itself by inputting the network and finally forms an adjacency matrix under different edge types. Attribute embedding integrates the perturbation attribute obtained in the first step into the node to obtain a unique hot encoding. Since the semantic information in the attribute is closely related to the structure and context of the network, structural embedding uses the perturbation attribute of the node instead of the node to capture the structural information and context information of the network.

[0085] Optionally, step S103 describes a technical process of determining the adjacency matrix of different edge types, incorporating perturbation attributes, generating one-hot encoding, and finally capturing the structural information and contextual information of the network based on the attribute multi-way heterogeneous network. The purpose of this step is to convert the attribute information of nodes and edges in the network into an embedded representation suitable for processing by a machine learning model, thereby achieving efficient analysis of the network structure and attributes.

[0086] In the specific implementation process, we first need to determine the adjacency matrix based on the different edge types in the attribute multi-way heterogeneous network. The adjacency matrix is ​​a matrix that represents the graph structure, in which the matrix elements represent the connection relationship between nodes. In the attribute multi-way heterogeneous network, different types of edges represent different relationships, so we need to build a separate adjacency matrix for each edge type. For example, in a social network, there may be two edge types: "friend relationship" and "follow relationship", so we need to build two adjacency matrices to represent these two relationships respectively.

[0087] Next, these adjacency matrices are used as node embeddings. Node embedding is the process of converting network structural information into low-dimensional vectors, making it easier for subsequent machine learning models to process this information. In this step, the adjacency matrix provides each node with its structural information in the network, which will be used as the node's embedding representation.

[0088] At the same time, it is necessary to integrate the perturbed attributes generated in step S102 into the nodes of the attribute multi-way heterogeneous network to generate a one-hot encoding. One-hot encoding is a method of converting categorical attributes into binary vectors, where each vector element represents the presence or absence of a category. This encoding method is concise and easy to process, and is suitable for embedded representation. By converting the perturbed attribute information into a one-hot encoding, the attribute information of the node can be represented in vector form and embedded as an attribute.

[0089] After completing node embedding and attribute embedding, the next step is to capture the structural information and contextual information of the attributed multi-way heterogeneous network based on the perturbation attributes. Structural information refers to the connection relationship between nodes and edges in the network, while contextual information refers to the position of the node in the network and the attributes of the adjacent nodes. This step is usually achieved through network embedding algorithms, such as graph convolutional networks (GCN) or graph attention networks (GAT). These algorithms can effectively aggregate the attribute information of nodes and their neighbors to generate embedded representations that contain structural and contextual information.

[0090] In terms of technical principles, this method achieves a unified representation of network structure and attributes by combining the adjacency matrix and perturbation attribute information. The adjacency matrix provides the topological structure between nodes, the perturbation attribute and one-hot encoding provide the attribute information of the nodes, and the network embedding algorithm captures the structure and context information to achieve a comprehensive representation of the network.

[0091] This method solves the problem of how to effectively integrate structural information and attribute information when processing complex network data. Traditional network analysis methods often only focus on structural information or attribute information, which is difficult to fully reflect the complexity of the network. By uniformly representing structural information and attribute information, the accuracy and depth of network analysis can be improved.

[0092] In terms of technical effects, first of all, this method significantly improves the representation ability of network data. By combining the adjacency matrix and node attribute information, the structure and attribute characteristics of the network can be fully reflected. Secondly, it enhances the flexibility of data processing. Through the network embedding algorithm, it can adapt to different types of network structures and attribute information, and is suitable for a wide range of application scenarios. In addition, this method also improves the generalization ability of the model. By capturing the structure and context information of the network, a more representative embedding representation can be generated, improving the performance of the machine learning model.

[0093] For example, in a financial network, nodes can be companies or individuals, and edges represent transaction relationships or cooperative relationships. By constructing a multi-way heterogeneous network with attributes, the complex financial relationships between companies and individuals can be described in detail. In step S103, by determining the adjacency matrices of different transaction types, these matrices are embedded as nodes, and the perturbed financial attributes are integrated into the nodes to generate a unique hot encoding. Through the network embedding algorithm, the structural information and contextual information of the financial network can be captured to generate high-quality embedded representations. These embedded representations can be used for tasks such as financial risk assessment and fraud detection to improve the accuracy and reliability of analysis.

[0094] In summary, step S103 achieves a comprehensive characterization of attribute multi-path heterogeneous networks by determining the adjacency matrix, generating one-hot encoding, and capturing network structure and context information. This method can effectively integrate structural information and attribute information, improve the accuracy, flexibility, and generalization ability of network analysis, and provide strong technical support for various complex network data processing and analysis tasks.

[0095] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning, the structure embedding after the self-attention mechanism learning is embedded and fused with the node embedding and attribute embedding input into the connection layer, and the result of the embedding fusion is input into the hash layer, the hyperbolic tangent function is used as the hash representation of the activation function in the hash layer, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0096] Optionally, in this embodiment, first, the structural embedding is used as input, and the self-attention mechanism is used to learn the structural information under different edge types, and different weights are assigned to the embeddings of different edge types to more comprehensively represent multi-path heterogeneous networks. The learned structural embedding is fused with the node embedding and the attribute embedding as the input of the hash layer. Through the learning of the hash layer, the floating-point embedding representation is learned as a binary embedding representation, and the final embedding representation is obtained through continuous learning iterations.

[0097] Specifically, since the hashing method can obtain accurate binary encoding, if complex heterogeneous networks can be represented by hashing, then the downstream applications of heterogeneous network representation will be more efficient. However, in most existing deep hashing methods, directly using the sign function as the activation function can easily cause the learning process to fall into the trap of gradient vanishing. In the concept of mathematical limit, there is a key relationship between the sign function and the proportional tanh function:

[0098]

[0099] where θ>0 is a scaling parameter.

[0100] Therefore, this method converts tanh(θ t v) function as the hash representation of the activation function, where θ0 = 1. At each stage t, after the hash representation converges, θ is added t Fine-tune the hash representation layer and use the converged network parameters as the initialization parameters for the next stage of training. t v evolution tanh(θ t →∞), and finally get the overall representation of the hash representation:

[0101]

[0102] Here, ε is an adjustable threshold.

[0103] Optionally, in the process of constructing and analyzing attribute multi-channel heterogeneous networks, node attributes can be processed by parameterized functions to achieve a more refined network feature representation. To achieve this goal, the method can embed the structure into the fully connected layer, perform self-attention mechanism learning, and embed and fuse the structure embedding after self-attention mechanism learning with the node embedding and attribute embedding input to the connection layer. Then, the result of the embedding fusion is input into the hash layer, and the hyperbolic tangent function is used as the activation function to obtain the hash representation, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, and finally the binary hash network embedding representation output by the hash layer is obtained.

[0104] The specific technical process first includes the collection and preprocessing of node attributes. The initial attributes of a node can be varied. For example, in a social network, the attributes of a user node may include age, interest, activity, etc. In an e-commerce platform, the attributes of a product node may include price, category, sales, etc. By collecting this information, the initial attribute vector of the node is formed. Then, a transformation function is applied to preprocess the original attributes. The transformation function is a nonlinear transformation specific to the node type, which is used to preliminarily extract and process the key features of the node.

[0105] Next, the node attributes are linearly transformed using the feature transformation matrix to map the node's multi-dimensional attributes into a unified feature space. At this point, the node's attribute vector has been preliminarily processed and can be used as input to embed the fully connected layer for self-attention mechanism learning. The self-attention mechanism can capture the complex relationship between a node and other nodes, and obtain a more representative node embedding representation by calculating the correlation weight between the node and other nodes in the network.

[0106] After the self-attention mechanism is learned, the structure embedding, node embedding and attribute embedding are embedded and fused. The embedding fusion process is completed through the connection layer. The fused embedding representation integrates the node's structural information, attribute information and global network information, improving the comprehensiveness of the node feature representation. The fused embedding representation is passed to the hash layer as input.

[0107] In the hash layer, the hyperbolic tangent function is used as an activation function to obtain a hash representation. The hyperbolic tangent function as an activation function has good nonlinear characteristics and can effectively capture complex node relationships. Through iterative training, the hash representation gradually converges and eventually forms a stable binary hash network embedding representation. The hash network embedding representation can not only effectively compress node feature information, but also improve the efficiency of retrieval and matching.

[0108] These technical principles and processes solve the problem of processing different types of node attributes in heterogeneous networks. The self-attention mechanism captures the complex relationship between nodes, and the self-attention mechanism can dynamically adjust the correlation weights between nodes to generate a more representative node embedding representation. This process improves the accuracy and depth of network analysis, so that the similarity and correlation between nodes can be more accurately reflected in the embedding representation.

[0109] A specific example can help to better understand this process. Suppose in an academic network, the nodes include authors, papers, and research institutions. The attributes of each author node may include research field, number of published papers, and number of citations. The attributes of paper nodes include keywords, publication year, and number of citations. The attributes of research institution nodes include research direction and number of scientific research projects. By collecting this information, an initial node attribute vector is formed.

[0110] In the preprocessing stage, these attributes are normalized and embedded using transformation functions. For example, research fields and keywords are converted into vector representations using word embedding technology, and the publication year and quantity attributes are normalized. Then, the feature transformation matrix is ​​applied to linearly transform these processed attributes and map them into a unified feature space.

[0111] Next, these node attributes are input into the fully connected layer to learn the self-attention mechanism. The self-attention mechanism generates a structural embedding representation of the node by calculating the relevance weight of each node with other nodes. For example, the structural embedding representation of an author node will take into account its relationship with collaborators, co-published papers, and affiliated research institutions.

[0112] In the embedding fusion stage, the structural embedding, node embedding and attribute embedding are fused. For example, the final embedding representation of an author node will integrate its research field, number of published papers, number of citations, and its relationship with other nodes. This fused embedding representation contains the multi-dimensional feature information of the node.

[0113] Then, the fused embedding representation is input into the hash layer. In the hash layer, the hyperbolic tangent function is used as the activation function to generate the hash representation. Through iterative training, the hash representation gradually converges and finally forms a binary hash network embedding representation. For example, the binary hash representation of an author node can be used to quickly retrieve similar authors and make academic collaboration recommendations.

[0114] This method solves the problem of dealing with the diversity of node attributes and complex relationships in heterogeneous networks. Through the self-attention mechanism and embedding fusion technology, it can capture the complex relationships between nodes and generate a more comprehensive and accurate node embedding representation. The introduction of the hash layer not only improves the compression efficiency of the feature representation, but also increases the speed of retrieval and matching.

[0115] Finally, the resulting binary hash network embedding representation can not only effectively perform node similarity calculations and relationship reasoning, but can also be applied to multiple fields such as recommendation systems, academic network analysis, and social network analysis. For example, in academic networks, it can more accurately recommend co-authors, discover research hotspots, and analyze academic influence; in social networks, it can more accurately perform friend recommendations and social circle analysis. Through this process, the efficiency and effectiveness of heterogeneous network analysis have been significantly improved.

[0116] From the above description, it can be seen that the deep hash network representation learning method based on smooth activation provided in the embodiment of the present application can improve the attribute information in the attribute multi-way heterogeneous network through the attribute enhancement method, enhance the robustness of the network, make the network representation more comprehensive, and learn the floating-point network representation as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0117] In one embodiment of the deep hashing network representation learning method based on smooth activation of the present application, the following contents may also be specifically included:

[0118] The tanh(θ tv) function as the hash representation of the activation function in the hash layer, where θ0 = 1. At each stage t, after the hash representation converges, θ is added t Fine-tune the hash representation layer and use the converged network parameters as initialization parameters for the next stage of training;

[0119] By θ t v evolution tanh(θ t →∞), and finally obtain the binary hash network embedding representation of the hash layer output:

[0120]

[0121] Here, ε is an adjustable threshold.

[0122] Optionally, when dealing with complex heterogeneous networks, the diversity of node attributes and the complexity of relationships are often the main technical challenges. In order to effectively represent and process these node attributes and their relationships, the method can adopt a multi-stage training method based on a self-attention mechanism and a hash layer. In each stage, the tanh(θ_tv) function is used as the activation function in the hash layer, and the parameter θ_t is gradually adjusted to make the hash representation gradually converge, and finally a binary hash network embedding representation is obtained.

[0123] First, collect and preprocess the attributes of the nodes. Assume that in a social network, nodes represent users, and the attributes include age, interests, activity, etc. The initial node attribute vector is formed through data collection. Then, a transformation function is applied to standardize these attributes, such as normalizing age and converting interests into vector representations through word embedding technology. Next, the preprocessed attributes are linearly transformed using the feature transformation matrix to map them into a unified feature space.

[0124] Next, the node attribute vector is input into the fully connected layer for self-attention mechanism learning. The self-attention mechanism can dynamically capture the complex relationship between nodes and generate the structural embedding representation of the node by calculating the relevance weight of each node with other nodes in the network. For example, the structural embedding representation of a user node will take into account its interactive relationship with other users, common interests, and influence in the social circle.

[0125] After completing the self-attention mechanism learning, the structure embedding, node embedding and attribute embedding are embedded and fused. Embedding fusion is achieved through the connection layer, which integrates the structure information, attribute information and global network information of the node to generate a more representative node embedding representation. This fused embedding representation is passed as input to the hash layer.

[0126] In the hash layer, the tanh(θ_t v) function is used as the activation function. The initial parameter θ_0 is set to 1. At each training stage t, after the hash representation converges, θ_t is added to fine-tune the hash representation. For example, in the first stage, θ_1 is set to 1, and the output of tanh(θ_1v) is calculated and converged. Then, the converged network parameters are used as the initialization parameters for the next stage of training. In the second stage, θ_2 is set to a larger value, such as 2, and the output of tanh(θ_2v) is continued to be calculated and converged. By gradually increasing θ_t, the hash representation can be adjusted more finely.

[0127] The technical principle of this multi-stage training method is to gradually approach the final binary hash representation by gradually adjusting the parameter θ_t. Through continuous convergence and fine-tuning, the network can capture more complex node relationships and attribute features, generating a more stable and accurate embedding representation. Ultimately, when θ_t approaches infinity, the output of the tanh(θ_tv) function tends to ±1, resulting in a binary hash network embedding representation.

[0128] For example, in an academic network, nodes include authors and papers. Suppose there is an author node whose attributes include research field, number of published papers, and number of citations. Through the above method, these attributes can be mapped to a unified feature space, and the complex relationship between the author and other authors and papers can be captured through the self-attention mechanism. Next, after training the multi-stage hash layer, a binary hash representation is finally generated. This representation can be used to quickly retrieve similar authors and make academic collaboration recommendations.

[0129] This method solves the problem of node attribute processing and relationship complexity in heterogeneous networks. Through the self-attention mechanism and multi-stage hash training, the complex relationship between nodes can be captured and an efficient and accurate node embedding representation can be generated. The introduction of the hash layer not only improves the compression efficiency of the feature representation, but also enhances the speed of retrieval and matching. Finally, the obtained binary hash network embedding representation has broad application prospects in many fields such as social network analysis, recommendation system, academic network analysis, etc. For example, friend recommendations, research hotspot discovery and academic influence analysis can be performed more accurately, significantly improving the efficiency and effectiveness of network analysis.

[0130] Optionally, in other embodiments of the present application, attributes play an important role in the present method. During the training process, attributes are dimensioned as missing, however, some of the attributes may not contain any information about the missing attributes, and it may even be difficult to determine which attributes are missing. Suppose attribute x follows probability p m Bernoulli distribution.

[0131] In this embodiment, the method perturbs the node and edge attributes by introducing a perturbation attribute generator. Specifically, the perturbation of the attributes is achieved by combining the binary mask attribute vector with the node and edge attributes, thereby enhancing the robustness and generalization ability of the model. The specific implementation process and technical details are as follows.

[0132] The binary mask attribute vector, node attributes, and edge attributes are input into the perturbation attribute generator for attribute perturbation. The binary mask attribute vector is a vector composed of 0 and 1, which is used to indicate which attributes need to be perturbed. Node attributes and edge attributes are specific feature data that describe network nodes and edges.

[0133] First, this method randomly generates a binary mask attribute vector for the existing attribute x Then, the perturbation attribute generator g m :x×{0,1} |A| →x will be x m and x as input to generate the perturbation attribute x c The perturbation attribute generation process is:

[0134]

[0135] Finally, x c As the attribute input in formula (5). Therefore, the initial structure is expressed as Node v i The basis representation to edge type r is:

[0136]

[0137] In terms of technical principles, the attribute perturbation generator helps the model better adapt to various attribute changes during training by introducing randomness and diversity, thereby improving the robustness and generalization ability of the model. By perturbing some attributes, the model can learn how to perform under different attribute combinations, so that it can still maintain good performance when facing unseen or noisy data.

[0138] This method solves the problem that models are susceptible to noise interference and overfitting in network data processing. Traditional attribute processing methods usually assume that attribute data is stable and noise-free, but in practical applications, attribute data is often subject to various interferences. By introducing the attribute perturbation generator, these interference situations can be effectively simulated, allowing the model to be exposed to more diverse data during training, thereby improving its robustness and generalization ability.

[0139] In terms of technical effects, first of all, this method significantly improves the robustness of the model. Through attribute perturbation, the model can adapt to changes and noise in attribute data, so that it performs more stably in practical applications. Secondly, it enhances the generalization ability of the model. By introducing diverse perturbation data during the training process, the model can learn a wider range of attribute combinations, so that it can still maintain good performance when facing unseen data. In addition, this method also improves the training efficiency of the model. Through the attribute perturbation generator, more diverse training samples can be generated without adding a large amount of real data, thereby accelerating the training process of the model.

[0140] For example, in a social media analysis system, a user's personal information and interactive behavior data may have certain noise and missing information. By introducing an attribute perturbation generator, these noise and missing information can be simulated and user attributes can be perturbed, so that the model can better adapt to the data in actual applications during training, thereby improving the accuracy and robustness of tasks such as user recommendation and community discovery.

[0141] In summary, by inputting the binary mask attribute vector, node attributes, and edge attributes into the perturbation attribute generator to perform attribute perturbation operations, the robustness and generalization ability of the model can be significantly improved, and the model instability and overfitting problems caused by noise and data changes can be solved, thereby achieving better results in practical applications.

[0142] In one embodiment of the deep hashing network representation learning method based on smooth activation of the present application, see Figure 2 , and can also include the following:

[0143] Step S201: performing a random walk on each edge type view of the attribute multi-path heterogeneous network by a meta-path embedding method to determine the transition probability of the semantic relationship between different node types;

[0144] Step S202: generating a node sequence of the attribute multi-path heterogeneous network corresponding to a specific semantic pattern according to the transition probability.

[0145] Optionally, step S201 and step S202 together constitute a process of generating a node sequence in an attribute multi-path heterogeneous network, and the semantic relationship between different node types is determined through the meta-path embedding method and the random walk technology, thereby generating a node sequence that conforms to a specific semantic pattern.

[0146] First, in step S201, a random walk is performed on each edge type view of an attribute multi-way heterogeneous network by a meta-path embedding method to determine the probability of semantic relationship transition between different node types. An attribute multi-way heterogeneous network refers to a network that contains multiple different types of nodes and edges, which can more comprehensively describe the relationship in a complex system. In such a network, the meta-path embedding method is used to capture high-order semantic relationships between nodes of different types. In the specific implementation process, multiple meta-paths are first defined, each of which represents a specific node connection pattern. Then, a random walk is performed on each edge type view, that is, starting from a certain node, the node is transferred according to the edge type and the predefined meta-path. Through multiple random walks, the probability distribution of transferring from one node type to another node type can be statistically obtained. These transition probabilities reflect the semantic relationship between different node types in the network, which helps to understand the structure of the network and the association between nodes.

[0147] Next, in step S202, a node sequence of a multi-path heterogeneous network with attributes that conforms to a specific semantic pattern is generated according to the transition probability. Specifically, using the transition probability obtained in step S201, the transition process between nodes can be simulated to generate a node sequence that conforms to a specific semantic pattern. First, a starting node is selected, and then the next node is selected according to the transition probability, and so on, until a complete node sequence is generated. This process not only takes into account the direct connection relationship between nodes, but also comprehensively considers the complex relationship between multiple types of edges and nodes, so that the generated node sequence can more accurately reflect the semantic structure of the network.

[0148] In terms of technical principles, the meta-path embedding method uses random walk technology to explore the transition probabilities between different node types in heterogeneous networks and capture high-order semantic relationships. By counting a large number of random walk paths, the distribution of transition probabilities between nodes can be obtained, and these probabilities reflect the semantic structure in the network. In addition, by using transition probabilities to generate node sequences, the real semantic patterns in complex networks can be simulated, thereby providing high-quality data for subsequent network analysis and applications.

[0149] This method solves the problem of how to effectively capture and utilize high-order semantic relationships between different node types when dealing with heterogeneous networks. Traditional network embedding methods usually only consider node and edge relationships in homogeneous networks, while ignoring the complex semantic information brought by multiple node and edge types in heterogeneous networks. Through meta-path embedding and random walk methods, the semantic relationships in heterogeneous networks can be fully captured, thereby generating high-quality node sequences and improving the accuracy and comprehensiveness of network analysis.

[0150] In terms of technical effects, first of all, this method significantly improves the ability to capture semantic relationships in heterogeneous networks. Through meta-path embedding and random walks, the transition probabilities between different node types can be comprehensively counted, thereby more accurately reflecting the semantic structure of the network. Secondly, it enhances the analysis and application capabilities based on heterogeneous networks. By generating node sequences that conform to specific semantic patterns, high-quality data support can be provided for various downstream tasks, such as node classification, community discovery, link prediction, etc. In addition, this method also improves the scalability and applicability of network embedding. By flexibly defining meta-paths and random walk strategies, it can adapt to heterogeneous networks of different types and sizes, and has broad application prospects.

[0151] For example, in an academic literature network, nodes can represent papers, authors, and conferences, and edges represent the relationship between authors and papers, the relationship between papers and conferences, etc. Through the meta-path embedding method, different meta-paths can be defined, such as the "author-paper-author" path to capture the cooperative relationship between authors, and the "paper-conference-paper" path to capture the topic association between papers. By performing random walks on these meta-paths, the transition probabilities between different node types can be obtained, thereby generating a node sequence that reflects the semantic structure of the academic network, providing support for tasks such as academic collaboration analysis and topic discovery.

[0152] In summary, step S201 and step S202 effectively capture the complex semantic relationships in heterogeneous networks through meta-path embedding and random walk methods, and generate node sequences that conform to specific semantic patterns, which solves the key problems in heterogeneous network analysis and improves the accuracy and application effect of network embedding.

[0153] In one embodiment of the deep hashing network representation learning method based on smooth activation of the present application, see Figure 3 , and can also include the following:

[0154] Step S301: for the node sequence of the meta-path generated by the random walk, a path modeling operation is performed based on the negative logarithmic probability between the minimized node and its context node of the objective function;

[0155] Step S302: Determine the context of each node on the meta-path according to the result of the path modeling operation.

[0156] Optionally, step S301 and step S302 together constitute a process of path modeling and context determination for a meta-path node sequence generated by random walk. By minimizing the negative logarithmic probability between a node and its context node, the relationship between nodes is accurately modeled, and then the context of the node is determined, thereby improving the effect of network embedding.

[0157] In step S301, for the node sequence of the meta-path generated by random walk, the path modeling operation is performed based on the objective function of minimizing the negative logarithmic probability between the node and its context node. In the specific implementation process, the objective function is first defined to measure the strength of the relationship between the node and its context node. The common objective function form is the negative logarithmic probability, that is, the negative logarithm of the probability of the context node sequence of a given node.

[0158] After conversion to embedded representation, the conditional probability can be calculated by the softmax function.

[0159] By optimizing this objective function, we can learn the vector representation of nodes so that adjacent nodes are closer in the vector space, thus reflecting the semantic relationship between them. In the specific optimization process, negative sampling technology is usually used to accelerate the training process, that is, only the probability of some negative samples is calculated, thereby reducing the computational overhead.

[0160] In step S302, the context of each node on the meta-path is determined based on the result of the path modeling operation. After the path modeling operation is completed, the vector representation of each node has been optimized by minimizing the objective function, and these vector representations contain semantic relationship information between nodes. In order to determine the context of each node, the most relevant context nodes can be identified by calculating the similarity between the node vector and other node vectors. In the specific implementation process, cosine similarity or dot product is usually used to measure the similarity between node vectors.

[0161] In this way, for each node, its context nodes on the meta-path, i.e., those nodes that are most semantically relevant, can be determined.

[0162] In terms of technical principles, path modeling can effectively capture high-order semantic relationships between nodes by minimizing the negative logarithmic probability between a node and its context node. Through the learned node vector representation, the semantic similarity of the nodes can be directly reflected in the vector space, thus providing a basis for subsequent context determination. The introduction of negative sampling technology further improves training efficiency and makes path modeling possible in large-scale networks.

[0163] This method solves the problem of how to effectively capture and model the semantic relationships between nodes in complex networks. Traditional network analysis methods usually have difficulty handling multiple node and edge types in heterogeneous networks. Through path modeling and context determination, high-order semantic information in the network can be fully captured, thereby improving the effect of network embedding.

[0164] In terms of technical effects, first of all, this method significantly improves the accuracy of network embedding. By minimizing the negative log probability, the semantic relationship between nodes can be captured more accurately, making the embedding representation have higher semantic consistency. Secondly, it enhances the ability of network analysis and application. By determining the context of the node, high-quality semantic information support can be provided for various downstream tasks, such as node classification, community discovery, and link prediction. In addition, this method also improves training efficiency. The introduction of negative sampling technology makes efficient training possible in large-scale networks and has good scalability.

[0165] For example, in a movie recommendation system, nodes can represent users and movies, and edges represent the viewing relationship between users and movies. After generating sequences of users and movies through random walks, vector representations of users and movies can be learned through path modeling. Then, based on these vector representations, the context of each user can be determined, that is, which movies are most relevant to the user, thereby improving the accuracy of movie recommendations and user satisfaction.

[0166] In summary, steps S301 and S302 provide an efficient and flexible network embedding method through path modeling and context determination. By minimizing the negative logarithmic probability between a node and its context node, the high-order semantic relationship between nodes can be effectively captured, and high-quality node embedding representations can be generated. Based on these embedding representations, the context of the node can be determined to provide support for various downstream tasks. This method not only improves the accuracy and efficiency of network embedding, but also enhances the ability of network analysis and application, and is suitable for various types of network data and application scenarios. In the fields of social networks, e-commerce, financial networks, and academic networks, this method can be used to achieve more accurate recommendations, more comprehensive risk analysis, and deeper knowledge discovery.

[0167] In one embodiment of the deep hashing network representation learning method based on smooth activation of the present application, see Figure 4 , and can also include the following:

[0168] Step S401: Negative samples are constructed by introducing randomly selected nodes through a negative sampling method, and positive samples are determined through a path generated by a random walk and a preset sliding window;

[0169] Step S402: Approximately optimize the objective function according to the positive samples and the negative samples to obtain an approximately optimized objective function.

[0170] Optionally, step S401 and step S402 play a vital role in the network embedding algorithm, and can effectively improve the embedding quality and training efficiency. First, step S401 introduces randomly selected nodes to construct negative samples through a negative sampling method. Negative sampling is a common technique used to improve the training efficiency of large-scale network embedding. In the network, positive samples usually come from paths generated by random walks and preset sliding windows. Random walk is a process that starts from a node and jumps to neighboring nodes with a certain probability, which can capture local structural information in the network. Through the sliding window, positive sample node pairs that have a semantic relationship with the central node can be extracted from the generated path.

[0171] In the specific implementation process, a random walk is first performed to generate a node sequence. For example, in a social network, starting from a certain user, visit his friends according to a certain jump probability, and continue to jump from the friends of friends until a path of a certain length is generated. Next, a sliding window is applied to extract positive sample pairs from the path. The size of the sliding window determines the maximum distance between nodes, that is, the node pairs within the window are considered positive samples. For example, a window of length 5 may generate node pairs (v1, v2), (v1, v3), (v2, v3), etc.

[0172] After we have the positive sample pairs, the generation of negative samples is achieved through negative sampling. The core idea of ​​negative sampling is to randomly select nodes from the global network and construct negative sample pairs that have no direct connection with the nodes in the positive sample pairs. Negative sampling not only reduces computational overhead, but also enables more efficient training of the model, enabling it to better distinguish between positive and negative samples.

[0173] Then, in step S402, the objective function is approximately optimized based on the generated positive and negative samples. The objective function is usually a log-likelihood function, which aims to maximize the conditional probability of the positive sample pair and minimize the conditional probability of the negative sample pair. This optimization process can be achieved by the gradient descent method. In each iteration, the model updates the embedding vector of the node so that the distance of the positive sample pair is closer in the embedding space, while the distance of the negative sample pair is farther.

[0174] Through this approximate optimization, the computation of the objective function becomes more efficient. This is because in negative sampling, only a small number of negative samples are considered instead of all node pairs in the entire network, which greatly reduces the amount of computation. This method not only improves the training speed, but also maintains good embedding quality.

[0175] In terms of technical principles, negative sampling avoids the complexity of global calculation by randomly selecting negative samples; the sliding window extracts positive samples through local path information to capture the local relationship between nodes. Approximate optimization achieves efficient optimization of the objective function by iteratively updating the node embedding vector.

[0176] This method solves the problems of high computational complexity and low training efficiency in large-scale network embedding. Traditional network embedding methods often require huge computing resources and time when facing large-scale data. However, through negative sampling and approximate optimization, the computational efficiency can be greatly improved while ensuring the quality of embedding. In the specific implementation, the embedding effect and training performance can be further optimized by reasonably setting the sliding window size and negative sampling ratio.

[0177] In terms of technical effects, first of all, this method significantly improves the efficiency of embedding training. Due to the introduction of negative sampling technology, the comprehensive calculation of the global network is avoided, making training on large-scale networks feasible. Secondly, the quality of embedding representation is improved. The positive sample pairs extracted by random walk and sliding window can well capture the local structural information in the network, thereby generating high-quality node embedding representation. Finally, the generalization ability of the model is enhanced. The negative sample pairs generated by negative sampling enable the model to learn to distinguish between positive and negative samples during training, so that it has better performance in practical applications.

[0178] For example, in a social network recommendation system, using the above method to generate user embedding representations can more accurately recommend friends and content. For example, by capturing the interaction paths and local relationships between users, the recommendation system can identify potential users with similar interests, thereby improving the accuracy of recommendations and user satisfaction.

[0179] It is worth noting that in practical applications, it is necessary to flexibly adjust parameter settings according to specific data characteristics and task requirements. For example, parameters such as the step size of the random walk, the size of the sliding window, and the ratio of negative sampling will affect the final embedding effect. Through experimental verification and parameter tuning, the optimal model configuration can be found to achieve the best performance.

[0180] In summary, steps S401 and S402 achieve efficient and high-quality network embedding through negative sampling and approximate optimization. The negative sampling method introduces randomly selected nodes to construct negative sample pairs, thereby avoiding the huge overhead of global calculation. The paths generated by random walks and the positive sample pairs extracted by sliding windows capture the local structural information in the network. Through the approximate optimization of the objective function, the model can efficiently update the node embedding vector, improve the embedding quality and training efficiency. This method not only solves the computational complexity problem in large-scale network embedding, but also enhances the generalization ability of the model, and is suitable for a variety of application scenarios such as social networks, e-commerce, financial networks, academic networks, and bioinformatics. Through reasonable parameter settings and optimization strategies, the model performance can be further improved, providing strong support for various network data analysis and applications.

[0181] In one embodiment of the deep hashing network representation learning method based on smooth activation of the present application, the following contents may also be specifically included:

[0182] Before calculating the transfer probability of the semantic relationship between different node types, a normalization process is performed according to the node type through a softmax function to obtain the probability distribution of different types of nodes after the normalization process.

[0183] Optionally, before calculating the transition probability of semantic relations between different node types, normalizing them according to the node type using the softmax function is an effective method that can more accurately reflect the relations between different node types in heterogeneous networks. In heterogeneous networks, the diversity of node types and the complexity of relations make traditional normalization methods difficult to apply. The softmax function can perform more reasonable probability distribution calculations based on the characteristics of different node types, thereby improving the accuracy of relational transition probabilities.

[0184] In the specific implementation process, we first need to classify the various types of nodes in the network and determine the feature vector of each node type. In a heterogeneous network, node types may include users, items, tags, locations, etc. Each type of node has its own specific attributes and characteristics, which can be represented by an embedding vector. For example, in a social network, the feature vector of a user node may include the user's interests, behavior data, etc.; in a product recommendation system, the feature vector of an item node may include information such as the item's category and price.

[0185] Next, the softmax function is applied to normalize these feature vectors. Softmax can flexibly adjust the normalization strategy according to the different node types. Specifically, the softmax function calculates an independent normalization coefficient for each node type, so that the probability distribution of nodes of the same type is normalized within its specific range. This processing method takes into account the differences in the characteristics of different types of nodes and avoids the deviation caused by directly normalizing all nodes uniformly.

[0186] The probability distribution of different types of nodes obtained in this way more accurately reflects the status and relationship of various types of nodes in the network. For example, in a recommendation system that includes users and items, after softmax processing, the probability distribution of user nodes and item nodes can respectively reflect the user's activity and the item's popularity. This distribution can serve as the basis for subsequent calculations of the transfer probability between nodes.

[0187] In practical applications, the probability distribution after softmax processing can be used to calculate the probability of semantic relationship transition between different node types. For example, in social networks, the probability of user interest transition to different content can be calculated based on the probability distribution of user nodes and content nodes; in knowledge graphs, the probability of relationship transition between entities can be calculated based on the probability distribution of entity nodes and relationship nodes. This probability calculation method not only takes into account the differences in node types, but also captures the semantic relationships in the network more accurately.

[0188] This technology is based on the diversity of nodes and complexity of relationships in heterogeneous networks. It uses the softmax function to perform normalization processing, making the probability distribution of different types of nodes more representative. Softmax can flexibly adjust the normalization strategy according to the node type, avoiding information loss and errors caused by unified processing.

[0189] This method solves the problem of accuracy in calculating the relationship between different node types in heterogeneous networks. Traditional methods often ignore the differences in node types when dealing with heterogeneous networks, resulting in large deviations in calculation results. However, normalization through the softmax function can better reflect the semantic relationship between node types and improve the calculation accuracy of relationship transfer probability.

[0190] In terms of technical effects, first of all, this method significantly improves the accuracy of relationship transfer probability calculation in heterogeneous networks. The probability distribution processed by the softmax function more realistically reflects the relationship and importance of different types of nodes. Secondly, the adaptability of the model to heterogeneous network structures is enhanced. The softmax function can flexibly adjust the normalization strategy according to the node type to meet the needs of different network structures and application scenarios. Finally, the effect of network analysis and application is improved. Through accurate relationship transfer probability calculation, more accurate and effective services can be provided in the fields of recommendation systems, knowledge graphs, social network analysis, etc.

[0191] For example, in an e-commerce platform, the probability distribution of user and product nodes can be processed by the softmax function to more accurately calculate the probability of user interest transfer to different products, thereby improving the accuracy of the recommendation system and user satisfaction. In academic research, this method can be used to process the probability distribution of author and paper nodes in academic networks to better analyze the evolution of academic cooperation relationships and research topics, and provide support for scientific research management and decision-making.

[0192] In short, normalizing different node types through the softmax function is an effective way to improve the accuracy of relationship transition probability calculation in heterogeneous networks. This technology not only solves the limitations of traditional methods in dealing with heterogeneous networks, but also provides more accurate and effective services in a variety of application scenarios.

[0193] In other embodiments of the present application, each edge type view of the input network is heterogeneous, so the present method uses a random walk based on metapath2vec. r =(V,E r ,A)'s edge view r and meta-path scheme V1→V2→...V q ...→V1, where l is the length of the meta-path solution, then the transition probability of step q is defined as:

[0194]

[0195] where v i ∈V q and N i,r Represents node v i Neighborhood on edge type r. Predefined metapaths The meta-path-based random walk strategy ensures that the semantic relationships between different types of nodes can be appropriately incorporated into the grid model. Random walk l on edge type r. The context is where w is the radius of the window size. So, given a node v i and its path context T, the goal of this method is to minimize the following negative log probability:

[0196]

[0197] Where φ represents all parameters. According to metapath2vec, this method uses a softmax function, which is based on the node v j Specifically, given v i In the case of j The probability of is defined as:

[0198]

[0199] where v j ∈V q , t k For node v k The context indicates that v i The overall representation of the node to edge type rr. This method uses heterogeneous negative sampling to approximate each node pair (v i ,v j )’s objective function -logP φ (v j |v i ):

[0200]

[0201] Where L is the number of negative samples corresponding to the positive training sample. σ(x) = 1 / (1 + exp(-x)) is the sigmoid function, v k is from node v j The corresponding node set V q The noise distribution P defined above t (v) randomly selected.

[0202] In attribute enhancement, x c It is assumed that from the conditional distribution The perturbed version of X extracted from , whose loss function is the loss between the original attribute x and the perturbed attribute x c Between is defined as:

[0203]

[0204] After that, the objective function of this method is:

[0205] E=E v +μE x (15)

[0206] Where μ is used to weigh the loss.

[0207] In order to improve the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhance the robustness of the network, and make the network representation more comprehensive, the floating-point network representation is learned as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks. The present application provides an embodiment of a deep hash network representation learning device based on smooth activation for implementing all or part of the content of the deep hash network representation learning method based on smooth activation, see Figure 5 The deep hash network representation learning device based on smooth activation specifically includes the following contents:

[0208] The attribute multi-path heterogeneous network construction module 10 is used to construct an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents the attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0209] The attribute enhancement module 20 is used to generate a mask matrix with the same dimension according to the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the node attributes, the edge attributes and the mask matrix into a perturbator, and obtain the perturbation attributes output by the perturbator;

[0210] A basic embedding module 30, for determining an adjacency matrix of different edge types according to the attribute multi-way heterogeneous network, and embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and contextual information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and contextual information as a structure;

[0211] The final embedding module 40 is used to embed the structure into the fully connected layer for self-attention mechanism learning, embed and fuse the structure embedding after the self-attention mechanism learning with the node embedding and attribute embedding input to the connection layer, and input the embedding fusion result into the hash layer, use the hyperbolic tangent function as the hash representation of the activation function in the hash layer, and use the network parameters after the hash representation converges as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0212] From the above description, it can be seen that the deep hash network representation learning device based on smooth activation provided in the embodiment of the present application can improve the attribute information in the attribute multi-way heterogeneous network through the attribute enhancement method, enhance the robustness of the network, make the network representation more comprehensive, and learn the floating-point network representation as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0213] In order to further illustrate the present solution, the present application also provides a specific application example of using the above-mentioned deep hash network representation learning device based on smooth activation to implement the deep hash network representation learning method based on smooth activation, see Figure 6 , specifically including the following contents:

[0214] First, we introduce the attribute multi-path heterogeneous network. Figure 6 Shown is an example of an e-commerce system with attributed multi-way heterogeneous networks. On the left is a homogeneous network where nodes are all considered to be of the same type and edges represent a fixed relationship (collection). In the middle is a heterogeneous network where the node types are divided into users and products, and the relationships between nodes are more diverse (click, collect, and purchase). On the right is an attributed multi-way heterogeneous network where nodes have attributes (e.g., the user's name, age, address, gender), and multiple relationships can exist between the same pair of nodes (e.g., user 3 and the pencil have both a collection relationship and a purchase relationship).

[0215] For the above network, this method divides the technical solution into three parts, with the attribute multi-path heterogeneous network as input and the hash representation of the node as output.

[0216] 1. Attribute Enhancement

[0217] The attributes in the attribute multi-way heterogeneous network are processed. First, a mask matrix with the same dimension as the existing attributes is generated, and then the original attributes and the mask matrix are used as input to randomly generate perturbed attributes. The generated perturbed attributes contain not only the original attributes of the network, but also the attributes enhanced by the perturbation. The generated perturbed attributes are used as part of the input of the basic embedding.

[0218] 2. Basic Embedding

[0219] The basic embedding part includes node embedding, attribute embedding and structural embedding. Node embedding obtains the information of the node itself by inputting the network and finally forms the adjacency matrix under different edge types. Attribute embedding integrates the perturbation attributes obtained in the first step into the node to obtain a unique hot encoding. Since the semantic information in the attribute is closely related to the structure and context of the network, structural embedding uses the perturbation attributes of the node to replace the node to capture the structural information and context information of the network.

[0220] 3. Final Embedding

[0221] First, the structural embedding is used as input, and the self-attention mechanism is used to learn the structural information under different edge types, giving different weights to the embeddings of different edge types, so as to more comprehensively represent multi-path heterogeneous networks. The learned structural embedding is fused with the node embedding and attribute embedding as the input of the hash layer. Through the learning of the hash layer, the floating-point embedding representation is learned as a binary embedding representation, and the final embedding representation is obtained through continuous learning iterations.

[0222] It can be seen that this embodiment improves the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhances the robustness of the network, and makes the network representation more comprehensive. Learning the floating-point network representation as a binary hash network representation not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks.

[0223] From the hardware level, in order to improve the attribute information in the attribute multi-channel heterogeneous network through the attribute enhancement method, enhance the robustness of the network, and make the network representation more comprehensive, the floating-point network representation is learned as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks. The present application provides an embodiment of an electronic device for implementing all or part of the content of the deep hash network representation learning method based on smooth activation, and the electronic device specifically includes the following contents:

[0224] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the deep hash network representation learning device based on smooth activation and the core business system, user terminal and related database and other related devices; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., and the present embodiment is not limited thereto. In this embodiment, the logic controller can be implemented with reference to the embodiment of the deep hash network representation learning method based on smooth activation and the embodiment of the deep hash network representation learning device based on smooth activation in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.

[0225] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.

[0226] In practical applications, part of the deep hash network representation learning method based on smooth activation can be performed on the electronic device side as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.

[0227] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0228] Figure 7 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Figure 7 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Figure 7 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0229] In one embodiment, the deep hashing network representation learning method based on smooth activation can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:

[0230] Step S101: constructing an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0231] Step S102: generating a mask matrix having the same dimension as the node attributes and edge attributes in the attribute multi-path heterogeneous network, inputting the node attributes, the edge attributes and the mask matrix into a perturbator, and obtaining perturbation attributes output by the perturbator;

[0232] Step S103: determining adjacency matrices of different edge types according to the attribute multi-way heterogeneous network, and embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and context information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and context information as a structure;

[0233] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning, the structure embedding after the self-attention mechanism learning is embedded and fused with the node embedding and attribute embedding input into the connection layer, and the result of the embedding fusion is input into the hash layer, the hyperbolic tangent function is used as the hash representation of the activation function in the hash layer, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0234] From the above description, it can be seen that the electronic device provided in the embodiment of the present application improves the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhances the robustness of the network, makes the network representation more comprehensive, and learns the floating-point network representation as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0235] In another embodiment, the deep hash network representation learning device based on smooth activation can be configured separately from the central processing unit 9100. For example, the deep hash network representation learning device based on smooth activation can be configured as a chip connected to the central processing unit 9100, and the function of the deep hash network representation learning method based on smooth activation can be implemented through the control of the central processing unit.

[0236] like Figure 7 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Figure 7 In addition, the electronic device 9600 may also include Figure 7 For components not shown, reference may be made to the prior art.

[0237] like Figure 7 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0238] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0239] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0240] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0241] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0242] The communication module 9110 is a transmitter / receiver that sends and receives signals via the antenna 9111. The communication module 9110 (transmitter / receiver) is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0243] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module 9110 (transmitter / receiver) is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0244] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the deep hash network representation learning method based on smooth activation in the above embodiments, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all the steps in the deep hash network representation learning method based on smooth activation in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0245] Step S101: constructing an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0246] Step S102: generating a mask matrix having the same dimension as the node attributes and edge attributes in the attribute multi-path heterogeneous network, inputting the node attributes, the edge attributes and the mask matrix into a perturbator, and obtaining perturbation attributes output by the perturbator;

[0247] Step S103: determining adjacency matrices of different edge types according to the attribute multi-way heterogeneous network, and embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and context information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and context information as a structure;

[0248] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning, the structure embedding after the self-attention mechanism learning is embedded and fused with the node embedding and attribute embedding input into the connection layer, and the result of the embedding fusion is input into the hash layer, the hyperbolic tangent function is used as the hash representation of the activation function in the hash layer, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0249] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application improves the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhances the robustness of the network, makes the network representation more comprehensive, and learns the floating-point network representation as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0250] The embodiments of the present application also provide a computer program product capable of implementing all the steps of the deep hashing network representation learning method based on smooth activation in the above embodiments, where the execution subject is a server or a client. When the computer program / instruction is executed by a processor, the steps of the deep hashing network representation learning method based on smooth activation are implemented. For example, the computer program / instruction implements the following steps:

[0251] Step S101: constructing an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information;

[0252] Step S102: generating a mask matrix having the same dimension as the node attributes and edge attributes in the attribute multi-path heterogeneous network, inputting the node attributes, the edge attributes and the mask matrix into a perturbator, and obtaining perturbation attributes output by the perturbator;

[0253] Step S103: determining adjacency matrices of different edge types according to the attribute multi-way heterogeneous network, and embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and context information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and context information as a structure;

[0254] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning, the structure embedding after the self-attention mechanism learning is embedded and fused with the node embedding and attribute embedding input into the connection layer, and the result of the embedding fusion is input into the hash layer, the hyperbolic tangent function is used as the hash representation of the activation function in the hash layer, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

[0255] From the above description, it can be seen that the computer program product provided in the embodiment of the present application improves the attribute information in the attribute multi-path heterogeneous network through the attribute enhancement method, enhances the robustness of the network, makes the network representation more comprehensive, and learns the floating-point network representation as a binary hash network representation, which not only saves a lot of space for the heterogeneous network in storage, but also improves the retrieval efficiency of downstream tasks.

[0256] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0257] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0258] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0259] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0260] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A deep hashing network representation learning method based on smooth activation, characterized in that: The method comprises: Constructing an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information; According to the node attributes and edge attributes in the attribute multi-path heterogeneous network, a mask matrix having the same dimension is generated, and the node attributes, the edge attributes and the mask matrix are input into a perturbator to obtain the perturbed attributes output by the perturbator; Determine adjacency matrices of different edge types according to the attribute multi-way heterogeneous network, and embed the adjacency matrix as a node, integrate the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embed the one-hot encoding as an attribute, capture structural information and context information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure; The structure embedding is input into the fully connected layer for self-attention mechanism learning, the structure embedding after the self-attention mechanism learning is embedded and fused with the node embedding and attribute embedding input into the connection layer, and the result of the embedding fusion is input into the hash layer, the hyperbolic tangent function is used as the hash representation of the activation function in the hash layer, and the network parameters after the hash representation converges are used as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

2. The deep hashing network representation learning method based on smooth activation according to claim 1 is characterized in that: The method uses the hyperbolic tangent function as the hash representation of the activation function in the hash layer, and uses the network parameters after the hash representation converges as the initialization parameters for the next node training to obtain the binary hash network embedding representation output by the hash layer, including: The tanh(θ t v) function as the hash representation of the activation function in the hash layer, where θ0 = 1. At each stage t, after the hash representation converges, θ is added t Fine-tune the hash layer and use the converged network parameters as initialization parameters for the next stage of training; By θ t v evolution tanh(θ t →∞), and finally obtain the binary hash network embedding representation of the hash layer output: Here, ε is an adjustable threshold.

3. The deep hashing network representation learning method based on smooth activation according to claim 1 is characterized in that: After constructing the attribute multi-path heterogeneous network, it also includes: Performing a random walk on each edge type view of the attributed multi-path heterogeneous network by a meta-path embedding method to determine the transition probability of the semantic relationship between different node types; A node sequence of the attribute multi-path heterogeneous network corresponding to a specific semantic pattern is generated according to the transition probability.

4. The deep hashing network representation learning method based on smooth activation according to claim 3 is characterized in that: After constructing the attribute multi-path heterogeneous network, it also includes: For the node sequence of the meta-path generated by the random walk, a path modeling operation is performed based on the negative logarithmic probability between the minimized node and its context node of the objective function; The context of each node on the meta-path is determined according to the result of the path modeling operation.

5. The deep hashing network representation learning method based on smooth activation according to claim 4 is characterized in that: After constructing the attribute multi-path heterogeneous network, it also includes: Negative samples are constructed by introducing randomly selected nodes through negative sampling method, and positive samples are determined by the path generated by random walk and the preset sliding window; The objective function is approximately optimized according to the positive samples and the negative samples to obtain an approximately optimized objective function.

6. The deep hashing network representation learning method based on smooth activation according to claim 5 is characterized in that: After constructing the attribute multi-path heterogeneous network, it also includes: Before calculating the transfer probability of the semantic relationship between different node types, a normalization process is performed according to the node type through a softmax function to obtain the probability distribution of different types of nodes after the normalization process.

7. A deep hashing network representation learning device based on smooth activation, characterized in that: The device comprises: An attribute multi-path heterogeneous network construction module is used to construct an attribute multi-path heterogeneous network according to the nodes and edges in the target network, wherein the node type in the attribute multi-path heterogeneous network represents the attribute information, and the edge type in the attribute multi-path heterogeneous network represents at least one relationship between the attribute information; An attribute enhancement module is used to generate a mask matrix with the same dimension according to the node attributes and edge attributes in the attribute multi-path heterogeneous network, and input the node attributes, the edge attributes and the mask matrix into a perturbator to obtain the perturbed attributes output by the perturbator; A basic embedding module, for determining an adjacency matrix of different edge types according to the attribute multi-way heterogeneous network, embedding the adjacency matrix as a node, integrating the perturbation attribute into the node of the attribute multi-way heterogeneous network to obtain a one-hot encoding, and embedding the one-hot encoding as an attribute, capturing structural information and contextual information of the attribute multi-way heterogeneous network according to the perturbation attribute, and embedding the structural information and contextual information as a structure; The final embedding module is used to embed the structure into the fully connected layer for self-attention mechanism learning, embed and fuse the structure embedding after the self-attention mechanism learning with the node embedding and attribute embedding input to the connection layer, and input the embedding fusion result into the hash layer, use the hyperbolic tangent function as the hash representation of the activation function in the hash layer, and use the network parameters after the hash representation converges as the initialization parameters for the next node training, so as to obtain the binary hash network embedding representation output by the hash layer.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the deep hashing network representation learning method based on smooth activation are implemented as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the deep hashing network representation learning method based on smooth activation according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the deep hashing network representation learning method based on smooth activation according to any one of claims 1 to 6 are implemented.