Attribute enhancement network data processing method and device based on attribute perturbation
By constructing an attribute-multiplexed heterogeneous network and performing perturbation operations, the floating-point representation is converted into a binary hash network representation, which solves the problem that existing methods fail to fully utilize the attributes of heterogeneous networks and achieves more efficient storage and retrieval.
Patent Information
- Application Number
- CN202410755626.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing network representation methods fail to fully utilize the attribute information of heterogeneous networks, resulting in poor performance in downstream tasks, and floating-point representation methods have low storage and computation efficiency.
By constructing an attribute-multiplexed heterogeneous network, introducing binary mask attribute vectors for perturbation operations, and combining self-attention mechanism and deep hash learning, the floating-point representation is converted into a binary hash network representation, thereby enhancing the robustness and retrieval efficiency of the network.
It improves the comprehensiveness and robustness of network representation, reduces storage space, and enhances the retrieval efficiency and data processing flexibility of downstream tasks.
Smart Images

Figure CN118673184B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, specifically to a method and apparatus for attribute-enhanced network data processing based on attribute perturbation. Background Technology
[0002] Network representation aims to represent network nodes as low-dimensional, real-valued, dense vectors. Vector representation possesses representational and reasoning capabilities in vector spaces, making it convenient as input to machine learning models. Furthermore, vector representation can be applied to numerous research tasks, such as node classification, link prediction, community detection, and recommender systems. However, the application of network structures in the real world is extremely complex, involving not only various types of nodes and diverse edges, but also rich attribute information contained within nodes and edges. Based on the network's topology (homogeneous or heterogeneous) and attributes (attributed or unattributed), they can be categorized into six different types: homogeneous networks, attribute-homogeneous networks, heterogeneous networks, attribute-heterogeneous networks, multi-path heterogeneous networks, and attribute-multi-path heterogeneous networks.
[0003] Taking e-commerce networks as an example, nodes can be divided into users and products. Edges can represent the relationships between users and products using actions such as clicks, favorites, and purchases. User attributes can include age, gender, and address, while product attributes include price, brand, and shipping costs. Existing methods do not fully utilize the role of attributes. Due to the complexity of heterogeneous networks, a simple and comprehensive representation can significantly improve its application in downstream tasks. However, most existing representation methods are floating-point vectors, failing to achieve a simple and efficient representation. Summary of the Invention
[0004] To address the problems in the existing technology, this application provides an attribute-enhanced network data processing method and apparatus based on attribute perturbation. This method can improve the attribute information in attribute-multiplexed heterogeneous networks, enhance the robustness of the network, make the network representation more comprehensive, and learn the floating-point network representation into a binary hash network representation. This not only saves a lot of storage space for heterogeneous networks, but also improves the retrieval efficiency of downstream tasks.
[0005] To solve at least one of the above problems, this application provides the following technical solution:
[0006] In a first aspect, this application provides an attribute-enhanced network data processing method based on attribute perturbation, comprising:
[0007] Based on the nodes and edges in the target network, an attribute-multiplexed heterogeneous network is constructed, wherein the node type in the attribute-multiplexed heterogeneous network represents attribute information, and the edge type in the attribute-multiplexed heterogeneous network represents at least one relationship between the attribute information.
[0008] Based on the node attributes and edge attributes in the attribute-multiplexed heterogeneous network, a corresponding binary mask attribute vector is randomly generated. The binary mask attribute vector, the node attributes, and the edge attributes are input into a perturbation attribute generator to perform attribute perturbation operation, and the perturbation attribute output by the perturbation attribute generator is obtained.
[0009] Based on the attribute-multipath heterogeneous network, adjacency matrices of different edge types are determined, and the adjacency matrices are embedded as nodes. The perturbation attributes are incorporated into the nodes of the attribute-multipath heterogeneous network to obtain one-hot encoding, and the one-hot encoding is embedded as an attribute. The structural information and context information of the attribute-multipath heterogeneous network are captured based on the perturbation attributes, and the structural information and context information are embedded as a structure.
[0010] The structure is embedded into the fully connected layer for self-attention learning. The structure embedding after self-attention learning is then fused with the node embedding and attribute embedding input to the connected layer. The result of the fusion is then input into the hash layer for deep hash learning of the network embedding representation, resulting in the binary hash network embedding representation output by the hash layer.
[0011] Further, the step of inputting the binary mask attribute vector, the node attribute, and the edge attribute into a perturbation attribute generator for attribute perturbation operation to obtain the perturbation attribute output by the perturbation attribute generator includes:
[0012] The binary mask attribute vector, the node attributes, and the edge attributes are input into a perturbation attribute generator to perform attribute perturbation operations, which are achieved through the following formula:
[0013]
[0014] The perturbation attribute is x. c The perturbation property generator is g m :x×{0,1} |A| →x, the binary mask attribute vector is The node attribute and edge attribute are both x.
[0015] Furthermore, after constructing the attribute-multiplexed heterogeneous network, the following steps are also included:
[0016] The meta-path embedding method is used to perform random walks on each edge type view of the attribute multi-path heterogeneous network to determine the transition probability of semantic relationships between different node types;
[0017] Based on the transition probabilities, a node sequence of the attribute-based heterogeneous network that conforms to a specific semantic pattern is generated.
[0018] Furthermore, after constructing the attribute-multiplexed heterogeneous network, the following steps are also included:
[0019] For the node sequence of the meta-path generated by the random walk, path modeling is performed based on minimizing the negative log probability between a node and its context node according to the objective function.
[0020] The context of each node on the meta-path is determined based on the result of the path modeling operation.
[0021] Furthermore, after constructing the attribute-multiplexed heterogeneous network, the following steps are also included:
[0022] Negative samples are constructed by introducing randomly selected nodes through a negative sampling method, and positive samples are determined by the path generated by random walk and a preset sliding window.
[0023] The objective function is approximated and optimized based on the positive and negative samples to obtain the approximated objective function.
[0024] Furthermore, after constructing the attribute-multiplexed heterogeneous network, the following steps are also included:
[0025] Before calculating the transition probability of semantic relationships between different node types, the node types are normalized using the softmax function to obtain the probability distribution of different node types after the normalization process.
[0026] Secondly, this application provides an attribute-enhanced network data processing apparatus based on attribute perturbation, comprising:
[0027] An attribute-based heterogeneous network construction module is used to construct an attribute-based heterogeneous network based on nodes and edges in a target network, wherein the node type in the attribute-based heterogeneous network represents attribute information, and the edge type in the attribute-based heterogeneous network represents at least one relationship between the attribute information.
[0028] The attribute enhancement module is used to randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operation, and obtain the perturbation attribute output by the perturbation attribute generator.
[0029] The basic embedding module is used to determine the adjacency matrix of different edge types according to the attribute multi-path heterogeneous network, and embed the adjacency matrix as a node, integrate the perturbation attribute into the node of the attribute multi-path heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as an attribute, capture the structural information and context information of the attribute multi-path heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure.
[0030] The final embedding module is used to embed the structure into the fully connected layer for self-attention mechanism learning, fuse the structure embedding after self-attention mechanism learning with the node embedding and attribute embedding input to the connected layer, and input the result of the embedding fusion into the hash layer for deep hash learning of the network embedding representation to obtain the binary hash network embedding representation output by the hash layer.
[0031] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the attribute-enhanced network data processing method based on attribute perturbation.
[0032] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the attribute-enhanced network data processing method based on attribute perturbation.
[0033] Fifthly, this application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of the attribute-enhanced network data processing method based on attribute perturbation.
[0034] As can be seen from the above technical solution, this application provides an attribute-enhanced network data processing method and apparatus based on attribute perturbation. Through the attribute enhancement method, the attribute information in the attribute-multi-path heterogeneous network is improved, the robustness of the network is enhanced, the network representation is made more comprehensive, and the floating-point network representation is learned as a binary hash network representation. This not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0036] Figure 1 This is one of the flowcharts illustrating the attribute-enhanced network data processing method based on attribute perturbation in the embodiments of this application;
[0037] Figure 2 This is a second schematic flowchart of the attribute-enhanced network data processing method based on attribute perturbation in the embodiments of this application;
[0038] Figure 3This is the third flowchart illustrating the attribute-enhanced network data processing method based on attribute perturbation in the embodiments of this application;
[0039] Figure 4 This is the fourth flowchart illustrating the attribute-enhanced network data processing method based on attribute perturbation in the embodiments of this application.
[0040] Figure 5 This is a structural diagram of the attribute-enhanced network data processing device based on attribute perturbation in an embodiment of this application;
[0041] Figure 6 This is a flowchart illustrating the attribute-enhanced network data processing method based on attribute perturbation in a specific embodiment of this application.
[0042] Figure 7 This is a schematic diagram of the structure of the electronic device in the embodiments of this application.
[0043] Figure label:
[0044] 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 storage unit 9144, antenna 9111, speaker 9131, microphone 9132. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] The acquisition, storage, use, and processing of data in this application all comply with the relevant provisions of national laws and regulations.
[0047] Considering that existing technologies do not fully leverage the role of attributes, and given the complexity of heterogeneous networks, a simple and comprehensive representation can significantly improve their application in downstream tasks, but most existing representation methods are floating-point arrays, failing to address the issue of simple and efficient representation. This application provides an attribute-enhanced network data processing method and apparatus based on attribute perturbation. Through attribute enhancement, the attribute information in attribute-multiplexed heterogeneous networks is improved, enhancing the network's robustness and making the network representation more comprehensive. The floating-point network representation is learned as a binary hash network representation, which not only saves a significant amount of storage space for heterogeneous networks but also improves the retrieval efficiency of downstream tasks.
[0048] To enhance the robustness of attribute-enhanced heterogeneous networks and make the network representation more comprehensive by improving attribute information through attribute enhancement methods, this application provides an embodiment of an attribute-enhanced network data processing method based on attribute perturbation. This method learns the floating-point network representation as a binary hash network representation, saving significant storage space for the heterogeneous network and improving the retrieval efficiency of downstream tasks. (See also...) Figure 1 and Figure 6 The attribute-enhanced network data processing method based on attribute perturbation specifically includes the following:
[0049] Step S101: Construct an attribute-multiplexed heterogeneous network based on the nodes and edges in the target network, wherein the node type in the attribute-multiplexed heterogeneous network represents attribute information, and the edge type in the attribute-multiplexed heterogeneous network represents at least one relationship between the attribute information.
[0050] Optionally, in modern network analysis and data mining, constructing and processing complex network structures is one of the important means to achieve intelligence and automation. Step S101 describes the process of constructing an attribute-multiplexed 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.
[0051] In the specific implementation process, the first step is to identify the nodes and edges in the target network. The target network is a simple network structure, with all nodes and edges of the same type, which cannot directly reflect the complex attribute relationships between nodes. However, in practical applications, nodes and edges often have rich attribute information, requiring a more complex network model to represent this information. Therefore, the target network needs to be converted into an attribute-multiplexed heterogeneous network.
[0052] When constructing an attribute-based heterogeneous network, the first step is to define the types of nodes and edges. Node types represent the attribute information of nodes; for example, in a social network, a node can be a user, and its attributes include age, gender, interests, etc. Edge types represent the relationships between node attributes, such as friend relationships, follow relationships, etc. In this way, nodes and edges in the target network can be mapped to various types of nodes and edges, forming an attribute-based heterogeneous network.
[0053] Next, the network structure needs to be constructed 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 together. Then, identify the relationships between nodes and construct different types of edges based on these relationships. For example, in a social network, different types of edges can be constructed based on attributes such as the frequency of interaction between users and shared interests. Ultimately, a complex network structure containing multiple node and edge types is formed, namely, an attribute-multiplexed heterogeneous network.
[0054] Specifically, in order to obtain more comprehensive information in attribute-multiplexed heterogeneous networks, this method will use node v i The basic representation of each edge type r consists of three parts: node information, node attributes, and structural representation. Edges of different types share the node v. i The node information. Therefore, node v can be obtained directly. i Node information b i .
[0055] Since different nodes correspond to different node attributes, this method represents the attribute as 'a'. i Defined as a parameterized function:
[0056]
[0057] Where x i For node v i The attribute, h z Let z = φ(i) be the transformation function, and let z = φ(i) be the node v. i The corresponding node type, β r D is a coefficient. z For v i The feature transformation matrix of the corresponding node type z.
[0058] Different types of nodes may have attributes x with different dimensions. i Therefore, the transformation function h z It can take different forms. The structural representation is obtained from the network's edges and context information. Edge type r, node v i The k-th structure representation The structure is derived from the neighboring structure and aggregated:
[0059]
[0060] Where N i,r It is node v i Neighbors in edge type r.
[0061] To enable the model to better handle unobserved data, each node v i The initial structure with edge type r is represented as follows: r is attribute x i Structural representation Parameterization, where g z,r It is a transformation function. Used to convert an attribute into a node (v). i In the structural representation of edge type r, the node type corresponding to z is v. i According to GraphSAGE, AGGREGATOR can be an average aggregator or other pool aggregators, such as a maximum aggregator.
[0062] k-th level structure representation Let s be the structure representation. i,r Node v i The structure is represented by S cascade i Size d s ×m, where d s The dimension of the structure representation:
[0063] S i =(s i,1 ,s i,2 ,...,s i,m (3)
[0064] Considering the different effects of different edge types, this method uses softmax to calculate S. i Linear combination of vectors of type r with opposite sides for:
[0065]
[0066] Where w r and W r These are trainable parameters of edge type r, with sizes d and d respectively. z and d z ×d s The superscript T denotes the transpose of a vector or matrix. Therefore, node v i The global representation of edge type r is:
[0067]
[0068] Where b i For node v iThe basic representation, α r The hyperparameters representing the importance of the structural representation to the overall representation are... It is a trainable transformation matrix.
[0069] The technical principle behind this method lies in enriching the network's expressive power by introducing attribute information, enabling the network to more accurately reflect complex relationships in the real world. By classifying and labeling nodes and edges with attributes, the target network can be transformed into diverse heterogeneous networks, thereby improving the accuracy and depth of data analysis.
[0070] This method addresses the limitations of target networks in representing complex attribute relationships. Traditional methods fail to effectively distinguish between different types of nodes and edges, resulting in a lack of detail and accuracy in the analysis results. By constructing attribute-multiplexed heterogeneous networks, the attribute information of nodes and edges and the relationships between them can be clearly characterized, thus providing richer data support for subsequent network analysis.
[0071] This approach yields significant technical benefits. First, it improves the accuracy of network representation. By introducing attribute information, the relationships between nodes and edges can be captured more precisely, enhancing the reliability of the analysis results. Second, it enhances the flexibility of data processing. Attribute-based heterogeneous networks can be flexibly adjusted to meet different analytical needs, adapting to various application scenarios. Furthermore, it improves the system's scalability. As the amount of data increases, attribute-based heterogeneous networks can maintain efficient data processing capabilities by adding node and edge types.
[0072] For example, in an e-commerce recommendation system, users and products can be considered nodes in a network, while purchase relationships and browsing relationships serve as edges. By constructing an attribute-based heterogeneous network, users can be categorized based on their purchase history, browsing records, reviews, and other attributes. Different types of edges can then be built based on the similarity between users and the correlation between products. This allows the recommendation system to more accurately identify user interests and preferences, provide personalized recommendations, and improve user satisfaction and purchase rates.
[0073] In summary, by implementing step S101, the system can construct an attribute-based heterogeneous network, improving the accuracy and efficiency of data analysis. By introducing attribute information of nodes and edges, the expressive power of the network structure is enriched, enabling the system to more accurately reflect complex relationships in the real world and providing strong technical support and data analysis capabilities for various application scenarios. This method has broad application prospects in fields such as social network analysis, e-commerce recommendation, and intelligent transportation, providing a solid foundation for the development of intelligent systems.
[0074] Step S102: Randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operation, and obtain the perturbation attribute output by the perturbation attribute generator.
[0075] Optionally, in this embodiment, the attributes in the attribute-multiplexed heterogeneous network are processed. First, a mask matrix with the same dimension as the existing attributes is generated. Then, the original attributes and the mask matrix are used as input to randomly generate perturbation attributes. The generated perturbation attributes include not only the original attributes in the network but also the perturbation-enhanced attributes. The generated perturbation attributes serve as part of the input for the basic embedding.
[0076] Optionally, step S102 details a technical process for processing node attributes and edge attributes in an attribute-multiplexed heterogeneous network using a perturbation attribute generator. The core of this process lies in generating binary mask attribute vectors and using these vectors to perturb the attributes, thereby enhancing the network's robustness and privacy protection capabilities.
[0077] In the specific implementation process, the first step is to randomly generate corresponding binary mask attribute vectors based on the node and edge attributes in the attribute-multiplexed heterogeneous network. Binary mask attribute vectors are a tool used for masking and perturbation attributes, ensuring that the attribute vectors of each node and edge are unique and unpredictable through random generation. For example, in a social network, node attributes might include user interests, age, etc., while edge attributes might include interaction frequency, relationship strength, etc. Generating random binary masks for these attributes provides the basis for subsequent perturbation operations.
[0078] Next, the generated binary mask attribute vector, along with the node and edge attributes, is input into the perturbation attribute generator. The perturbation attribute generator is an algorithm or model specifically designed for attribute perturbation. It generates perturbed attribute values by combining and processing the input attributes and mask vector. The purpose of the perturbation operation is to introduce a degree of randomness and ambiguity while preserving the original attribute information, thereby protecting data privacy and improving the network's robustness.
[0079] Technically, perturbation attribute generators can be implemented using various methods, such as noise-adding methods and differential privacy techniques. Noise-adding methods add random noise to the original attribute values, causing them to fluctuate within a certain range, thus avoiding precise attribute leakage. Differential privacy techniques use mathematical methods to ensure that the perturbed attributes do not affect the overall data distribution, providing strict privacy protection. Regardless of the method used, the key is to ensure that the perturbed attributes are statistically consistent with the original attributes, while being difficult to reconstruct the original attributes through reverse engineering.
[0080] This method addresses the challenge of protecting user privacy while preserving data validity in network data processing. Traditional attribute processing methods often fail to balance privacy protection and data validity, easily leading to data leaks or distorted analysis results. By generating binary mask attribute vectors and applying perturbation operations, specific attribute values can be obscured to a certain extent, preventing the leakage of sensitive information while ensuring the statistical properties of the data and the reliability of the analysis results.
[0081] In terms of technical effects, firstly, this method significantly improves data privacy protection. By introducing random perturbation, it becomes difficult to extract accurate personal information from the perturbed data, thus protecting user privacy. Secondly, it enhances network robustness. Introducing randomness during processing effectively addresses data noise and attacks, improving system stability and reliability. Furthermore, this method maintains data validity. Despite the perturbation operation, through reasonable algorithm design, it ensures that the statistical properties of the perturbed attributes are consistent with the original data, guaranteeing the accuracy of data analysis and mining.
[0082] Step S103: Determine the adjacency matrix of different edge types according to the attribute multi-path heterogeneous network, and embed the adjacency matrix as a node. Integrate the perturbation attribute into the node of the attribute multi-path heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as an attribute. Capture the structural information and context information of the attribute multi-path heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure.
[0083] Optionally, in this embodiment, the basic embedding part includes node embedding, attribute embedding, and structural embedding. Node embedding obtains the information of the nodes themselves through the input network, ultimately forming adjacency matrices under different edge types. Attribute embedding incorporates the perturbation attributes obtained in the first step into the nodes to obtain one-hot encoding. Since the semantic information in the attributes is closely related to the structure and context of the network, structural embedding uses the perturbation attributes of the nodes to capture the structural and contextual information of the network.
[0084] Optionally, step S103 describes the technical process of capturing the structural and contextual information of the network by determining the adjacency matrix of different edge types, incorporating perturbation attributes, generating one-hot codes, and finally, based on the attribute-multipath 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 machine learning models, thereby achieving efficient analysis of the network structure and attributes.
[0085] In the implementation process, the adjacency matrix first needs to be determined based on the different edge types in the attribute-based heterogeneous network. An adjacency matrix is a matrix that represents a graph structure, where matrix elements represent the connection relationships between nodes. In attribute-based heterogeneous networks, different types of edges represent different relationships; therefore, an independent adjacency matrix needs to be constructed for each edge type. For example, in a social network, there may be two edge types: "friend relationship" and "follow relationship," so two adjacency matrices need to be constructed to represent these two relationships respectively.
[0086] Next, these adjacency matrices are used as node embeddings. Node embedding is the process of converting network structure information into low-dimensional vectors, making it easier for subsequent machine learning models to process this information. In this step, the adjacency matrix provides structural information about each node within the network, which will be used as the node's embedding representation.
[0087] Simultaneously, the perturbation attributes generated in step S102 need to be incorporated into the nodes of the attribute-multipath heterogeneous network to generate one-hot codes. One-hot coding is a method for 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, making it suitable for embedding representations. By converting the perturbed attribute information into one-hot codes, the attribute information of nodes can be represented in vector form and embedded as attributes.
[0088] After completing node embedding and attribute embedding, the next step is to capture the structural and contextual information of the attribute-multiplexed heterogeneous network based on the perturbation attributes. Structural information refers to the connectivity between nodes and edges in the network, while contextual information refers to the node's position within the network and the attributes of its neighboring nodes. This step is typically achieved using network embedding algorithms, such as Graph Convolutional Networks (GCNs) or Graph Attention Networks (GATs). These algorithms can effectively aggregate the attribute information of nodes and their neighbors, generating embedding representations that include both structural and contextual information.
[0089] In terms of technical principle, this method achieves a unified representation of network structure and attributes by combining adjacency matrix and perturbation attribute information. The adjacency matrix provides the topological structure between nodes, while perturbation attributes and one-hot encoding provide the attribute information of nodes. By capturing structural and contextual information through network embedding algorithms, a comprehensive representation of the network is achieved.
[0090] This method addresses the challenge of effectively integrating structural and attribute information when processing complex network data. Traditional network analysis methods often focus only on structural or attribute information, failing to fully reflect the complexity of the network. By unifying the representation of structural and attribute information, the accuracy and depth of network analysis can be improved.
[0091] In terms of technical effects, firstly, this method significantly improves the representational power of network data. By combining adjacency matrices and node attribute information, it can comprehensively reflect the structure and attribute characteristics of the network. Secondly, it enhances the flexibility of data processing. Through network embedding algorithms, it can adapt to different types of network structures and attribute information, making it suitable for a wide range of application scenarios. Furthermore, this method also improves the generalization ability of the model. By capturing the network's structural and contextual information, it can generate more representative embedding representations, improving the performance of machine learning models.
[0092] For example, in a financial network, nodes can be companies or individuals, and edges represent transactional or cooperative relationships. By constructing an attribute-based heterogeneous network, the complex financial relationships between companies and individuals can be described in detail. In step S103, adjacency matrices for different transaction types are determined, and these matrices are embedded as nodes. Simultaneously, perturbed financial attributes are incorporated into the nodes to generate one-hot encodings. Through network embedding algorithms, the structural and contextual information of the financial network can be captured, generating high-quality embedded representations. These embedded representations can be used for tasks such as financial risk assessment and fraud detection, improving the accuracy and reliability of the analysis.
[0093] In summary, step S103 achieves a comprehensive characterization of attribute-based heterogeneous networks by determining the adjacency matrix, generating one-hot codes, and capturing network structure and context information. This method effectively integrates structural and attribute information, improving the accuracy, flexibility, and generalization ability of network analysis, and providing strong technical support for various complex network data processing and analysis tasks.
[0094] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning. The structure embedding after self-attention mechanism learning is fused with the node embedding and attribute embedding input to the connected layer. The result of the embedding fusion is input into the hash layer for deep hash learning of network embedding representation to obtain the binary hash network embedding representation output by the hash layer.
[0095] Optionally, in this embodiment, firstly, the structural embedding is used as input, and a self-attention mechanism is employed to learn the structural information under different edge types. Different weights are assigned to the embeddings of different edge types to more comprehensively represent the multi-path heterogeneous network. The learned structural embeddings are then fused with node embeddings and attribute embeddings and used as input to the hash layer. Through the learning of the hash layer, the floating-point embedding representation is learned to be a binary embedding representation. The final embedding representation is obtained through continuous learning and iteration.
[0096] Specifically, since hashing methods can obtain precise binary encoding, if complex heterogeneous networks can be represented by hashes, then downstream applications of heterogeneous network representations 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 gradient vanishing trap. In the mathematical concept of limits, there is a key relationship between the sign function and the proportional tanh function:
[0097]
[0098] Where θ>0 is the scaling parameter.
[0099] Therefore, this method will use tanh(θ) t The function v) is used as a hash representation of the activation function, where θ0 = 1. At each stage t, after the hash representation converges, θ is added... t The hash representation layer is fine-tuned, and the converged network parameters are used as the initialization parameters for the next stage of training. (Based on θ) t v evolves tanh(θ) t →∞), finally obtaining the overall representation of the hash representation:
[0100]
[0101] Here, ε is an adjustable threshold.
[0102] Optionally, step S104 describes a method for optimizing network embedding representations through self-attention mechanisms and deep hashing learning. The core of this process lies in enhancing the representational power of structural embeddings through self-attention mechanisms, fusing the optimized embeddings with node embeddings and attribute embeddings, and finally obtaining a binary hash network embedding representation through deep hashing learning, thereby improving the efficiency and accuracy of network analysis.
[0103] In the specific implementation, the structure embedding is first input to the fully connected layer and subjected to a self-attention mechanism for learning. Self-attention is a technique in deep learning used to capture important parts of input data, highlighting key information through weighted summaries. Here, the self-attention mechanism processes the input structure embedding through the fully connected layer, learning important edges and nodes in the network structure, thereby improving the expressive power of the structure embedding. The result of this step is a structure embedding optimized by the self-attention mechanism, which more accurately reflects the key features of the network.
[0104] Next, the structure embeddings learned through the self-attention mechanism are fused with the node embeddings and attribute embeddings. The node embeddings and attribute embeddings contain the topological and attribute information of the network nodes, respectively, which have been transformed into low-dimensional vector representations suitable for machine learning processing in previous steps. The embedding fusion process integrates these embedding representations from different sources, so that the final representation can comprehensively reflect the network's structure and attribute features. Common fusion methods include vector concatenation and weighted averaging. Through appropriate fusion strategies, the complementarity and consistency of different embedding information can be ensured.
[0105] Then, the result of the embedding fusion is input into the hash layer for deep hash learning of the network embedding representation. Deep hash learning is a technique that converts floating-point representations into low-dimensional binary representations and is widely used for efficient retrieval and storage. Through the processing of the hash layer, the fused floating-point embedding representation can be converted into binary hash codes. By learning the data distribution and features in the network, the hash layer maps similar nodes to similar binary hash codes, thereby achieving efficient similarity search and network analysis.
[0106] Technically, this method optimizes and compresses network embedding representations through self-attention mechanisms and deep hashing learning. The self-attention mechanism dynamically adjusts the weights of the embedding representation, highlighting key nodes and edges in the network to improve accuracy. Deep hashing learning, by compressing floating-point representations into low-dimensional binary representations, improves the storage and retrieval efficiency of network embeddings.
[0107] This approach addresses the challenge of improving computational and storage efficiency while maintaining accuracy when processing large-scale network data. Traditional network embedding methods often face storage and computational burdens due to high-dimensional data, making it difficult to efficiently handle large-scale network data. By employing self-attention mechanisms and deep hashing learning, computational and storage costs can be significantly reduced while maintaining the accuracy of the embedding representation.
[0108] In terms of technical effects, firstly, this method significantly improves the accuracy and expressive power of network embedding representations. The self-attention mechanism dynamically adjusts weights, highlighting key information in the network and making the embedding representations more representative. Secondly, it improves data processing efficiency. Deep hashing learning compresses floating-point embedding representations into low-dimensional binary hash codes, reducing storage space and computational overhead. Furthermore, this method enhances the model's adaptability. Through embedding fusion, multiple information sources can be integrated, improving the comprehensiveness and accuracy of network analysis.
[0109] As can be seen from the above description, the attribute-enhanced network data processing method based on attribute perturbation provided in this application embodiment 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 into a binary hash network representation. This not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks.
[0110] In one embodiment of the attribute-enhanced network data processing method based on attribute perturbation of this application, it may further include the following:
[0111] The binary mask attribute vector, the node attributes, and the edge attributes are input into a perturbation attribute generator to perform attribute perturbation operations, which are achieved through the following formula:
[0112]
[0113] The perturbation attribute is x. c The perturbation property generator is g m :x×{0,1} |A| →x, the binary mask attribute vector is The node attribute and edge attribute are both x.
[0114] Optionally, in this embodiment, attributes play an important role in the method. During training, attributes are dimensionalized to be missing; however, some of these attributes may not contain any information about missing attributes, and it may even be difficult to determine which attributes are missing. Assume attribute x follows a probability of p. m The Bernoulli distribution.
[0115] In this embodiment, the method introduces a perturbation attribute generator to perturb the node and edge attributes. Specifically, by combining binary mask attribute vectors with node and edge attributes, the attributes are perturbed, thereby enhancing the robustness and generalization ability of the model. The specific implementation process and technical details are as follows.
[0116] 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 of 0s and 1s that indicates which attributes need to be perturbed. The node attributes and edge attributes are the specific feature data describing the network nodes and edges.
[0117] First, this method randomly generates a binary mask attribute vector for the existing attribute x. Then, the perturbation property generator g m :x×{0,1} |A| →x will x mUsing x as input, generate perturbation attribute x. c The process of generating disturbance attributes is as follows:
[0118]
[0119] Finally, x c As the attribute input in formula (5), the initial structure is therefore represented as node v i The basic representation of the edge type r is:
[0120]
[0121] In terms of technical principle, attribute perturbation generators, by introducing randomness and diversity, help models better adapt to various attribute changes during training, thereby improving the model's robustness and generalization ability. By perturbing some attributes, the model can learn the performance under different attribute combinations, thus maintaining good performance even when faced with unseen or noisy data.
[0122] This method addresses the issues of noise interference and overfitting in network data processing. Traditional attribute processing methods typically assume that attribute data is stable and noise-free, but in real-world applications, attribute data is often subject to various disturbances. By introducing an attribute perturbation generator, these disturbances can be effectively simulated, allowing the model to be exposed to more diverse data during training, thereby improving its robustness and generalization ability.
[0123] In terms of technical effects, firstly, this method significantly improves the model's robustness. By perturbing attributes, the model can adapt to changes in attribute data and noise, thus exhibiting more stable performance in practical applications. Secondly, it enhances the model's generalization ability. By introducing diverse perturbation data during training, the model can learn a wider range of attribute combinations, maintaining good performance even when faced with unseen data. Furthermore, this method improves the model's training efficiency. The attribute perturbation generator can generate more diverse training samples without adding a large amount of real data, thereby accelerating the model's training process.
[0124] For example, in a social media analytics system, users' personal information and interaction data may contain noise and missing information. By introducing an attribute perturbation generator, these noise and missing information can be simulated to perturb user attributes. This allows the model to better adapt to real-world data conditions during training, thereby improving the accuracy and robustness of tasks such as user recommendation and community discovery.
[0125] In summary, by inputting binary mask attribute vectors, node attributes, and edge attributes into the perturbation attribute generator for attribute perturbation operations, the robustness and generalization ability of the model can be significantly improved, and the problems of model instability and overfitting caused by noise and data changes can be solved, thus achieving better results in practical applications.
[0126] In one embodiment of the attribute-enhanced network data processing method based on attribute perturbation in this application, see [link to relevant documentation]. Figure 2 It can also specifically include the following:
[0127] Step S201: Perform a random walk on each edge type view of the attribute-multipath heterogeneous network using the meta-path embedding method to determine the transition probability of semantic relationships between different node types;
[0128] Step S202: Generate a node sequence of the attribute-based heterogeneous network that conforms to a specific semantic pattern according to the transition probability.
[0129] Optionally, steps S201 and S202 together constitute the process of generating node sequences in an attribute-multiplexed heterogeneous network. By using the meta-path embedding method and random walk technique, the semantic relationships between different node types are determined, thereby generating node sequences that conform to a specific semantic pattern.
[0130] First, in step S201, a random walk is performed on each edge type view of the attribute-multiplexed heterogeneous network using the meta-path embedding method to determine the semantic relationship transition probabilities between different node types. An attribute-multiplexed heterogeneous network refers to a network containing multiple different types of nodes and edges, which can more comprehensively describe the relationships in a complex system. In such a network, the meta-path embedding method is used to capture high-order semantic relationships between different types of nodes. Specifically, multiple meta-paths are first defined, each representing a specific node connection pattern. Then, a random walk is performed on each edge type view, starting from a node and transitioning between nodes based on the edge type and the predefined meta-path. Through multiple random walks, the probability distribution of transitioning from one node type to another can be statistically obtained. These transition probabilities reflect the semantic relationships between different node types in the network, helping to understand the network structure and the associations between nodes.
[0131] Next, in step S202, a node sequence of a heterogeneous multi-path network conforming to a specific semantic pattern is generated based on the transition probabilities. Specifically, using the transition probabilities obtained in step S201, the transition process between nodes can be simulated to generate a node sequence conforming to a specific semantic pattern. First, a starting node is selected, then the next node is selected based on the transition probabilities, and so on, until a complete node sequence is generated. This process not only considers the direct connections between nodes but also comprehensively considers various types of edges and complex relationships between nodes, thus the generated node sequence can more accurately reflect the semantic structure of the network.
[0132] In terms of technical principles, the meta-path embedding method utilizes random walk techniques to explore transition probabilities between different node types in heterogeneous networks, capturing higher-order semantic relationships. By statistically analyzing a large number of random walk paths, the transition probability distribution between nodes can be obtained, and these probabilities reflect the semantic structure of the network. Furthermore, by generating node sequences using transition probabilities, real semantic patterns in complex networks can be simulated, thus providing high-quality data for subsequent network analysis and applications.
[0133] This method addresses the challenge of effectively capturing and utilizing high-order semantic relationships between different node types when processing heterogeneous networks. Traditional network embedding methods typically only consider node and edge relationships within the target network, neglecting the complex semantic information arising from the diverse node and edge types in heterogeneous networks. By employing meta-path embedding and random walk methods, the semantic relationships in heterogeneous networks can be comprehensively captured, thereby generating high-quality node sequences and improving the accuracy and comprehensiveness of network analysis.
[0134] In terms of technical effects, firstly, this method significantly improves the ability to capture semantic relationships in heterogeneous networks. Through meta-path embedding and random walk, the transition probabilities between different node types can be comprehensively statistically analyzed, thus more accurately reflecting the semantic structure of the network. Secondly, it enhances the analytical and application capabilities based on heterogeneous networks. By generating node sequences that conform to specific semantic patterns, it can provide high-quality data support for various downstream tasks, such as node classification, community detection, and link prediction. Furthermore, this method improves the scalability and applicability of network embedding. By flexibly defining meta-path and random walk strategies, it can adapt to heterogeneous networks of different types and sizes, showing broad application prospects.
[0135] For example, in an academic literature network, nodes can represent papers, authors, and conferences, while edges represent relationships between authors and papers, papers and conferences, and so on. Meta-path embedding methods can define different meta-paths, such as "author-paper-author" paths to capture collaboration relationships between authors, and "paper-conference-paper" paths to capture thematic connections between papers. By performing random walks on these meta-paths, transition probabilities between different node types can be obtained, thereby generating node sequences that reflect the semantic structure of the academic network, providing support for tasks such as academic collaboration analysis and topic discovery.
[0136] In summary, steps S201 and S202 effectively capture the complex semantic relationships in heterogeneous networks and generate node sequences that conform to specific semantic patterns through meta-path embedding and random walk methods. This solves key problems in heterogeneous network analysis and improves the accuracy and application effect of network embedding.
[0137] In one embodiment of the attribute-enhanced network data processing method based on attribute perturbation in this application, see [link to relevant documentation]. Figure 3 It can also specifically include the following:
[0138] Step S301: For the node sequence of the meta-path generated by the random walk, perform path modeling based on minimizing the negative log probability between a node and its context node using the objective function.
[0139] Step S302: Determine the context of each node on the meta-path based on the result of the path modeling operation.
[0140] Optionally, steps S301 and S302 together constitute the process of path modeling and context determination for the meta-path node sequence generated by random walk. By minimizing the negative log probability between a node and its context nodes, the relationship between nodes is accurately modeled, thereby determining the context of the node and improving the effect of network embedding.
[0141] In step S301, for the node sequence of the meta-path generated by the random walk, path modeling is performed based on minimizing the negative log probability between a node and its context nodes using an objective function. Specifically, an objective function is first defined to measure the strength of the relationship between a node and its context nodes. A common form of the objective function is the negative log probability, which is the negative logarithm of the probability of the sequence of context nodes for a given node.
[0142] After being converted into an embedded representation, the conditional probability can be calculated using the softmax function.
[0143] By optimizing this objective function, we can learn the vector representation of nodes, making adjacent nodes closer in the vector space, thus reflecting their semantic relationships. In the specific optimization process, negative sampling techniques are typically used to accelerate the training process; that is, only the probabilities of some negative samples are calculated, thereby reducing computational overhead.
[0144] In step S302, the context of each node on the meta-path is determined based on the results 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; these vector representations contain semantic relationship information between nodes. To determine the context of each node, the most relevant context node can be identified by calculating the similarity between the node vector and other node vectors. In practice, cosine similarity or dot product is typically used to measure the similarity between node vectors.
[0145] This method allows us to determine the context nodes on the metapath for each node, namely those nodes that are most semantically relevant.
[0146] In principle, path modeling effectively captures higher-order semantic relationships between nodes by minimizing the negative log probability between a node and its context nodes. The learned node vector representations directly reflect the semantic similarity of nodes in the vector space, thus providing a foundation for subsequent context determination. The introduction of negative sampling techniques further improves training efficiency, making path modeling possible in large-scale networks.
[0147] This approach addresses the challenge of effectively capturing and modeling semantic relationships between nodes in complex networks. Traditional network analysis methods often struggle to handle the diverse node and edge types in heterogeneous networks, while path modeling and context determination can comprehensively capture high-order semantic information within the network, thereby improving the effectiveness of network embedding.
[0148] In terms of technical effects, firstly, this method significantly improves the accuracy of network embeddings. By minimizing the negative log probability, it can more accurately capture the semantic relationships between nodes, resulting in higher semantic consistency in the embedding representation. Secondly, it enhances the capabilities of network analysis and applications. By determining the context of nodes, it can provide high-quality semantic information support for various downstream tasks, such as node classification, community detection, and link prediction. Furthermore, this method improves training efficiency. The introduction of negative sampling techniques makes efficient training in large-scale networks possible, exhibiting good scalability.
[0149] For example, in a movie recommendation system, nodes can represent users and movies, and edges can represent the viewing relationship between users and movies. After generating sequences of users and movies through random walks, path modeling can be used to learn vector representations of users and movies. Then, based on these vector representations, the context of each user can be determined, i.e., which movies are most relevant to the user, thereby improving the accuracy of movie recommendations and user satisfaction.
[0150] In summary, steps S301 and S302 provide an efficient and flexible network embedding method through path modeling and context determination. By minimizing the negative log probability between a node and its context nodes, higher-order semantic relationships between nodes can be effectively captured, generating high-quality node embedding representations. Based on these embedding representations, the context of a node can be determined, thereby supporting various downstream tasks. This method not only improves the accuracy and efficiency of network embedding but also enhances the capabilities of network analysis and applications, making it suitable for various types of network data and application scenarios. In fields such as social networks, e-commerce, financial networks, and academic networks, this method can achieve more accurate recommendations, more comprehensive risk analysis, and deeper knowledge discovery.
[0151] In one embodiment of the attribute-enhanced network data processing method based on attribute perturbation in this application, see [link to relevant documentation]. Figure 4 It can also specifically include the following:
[0152] Step S401: Negative samples are constructed by introducing randomly selected nodes through a negative sampling method, and positive samples are determined by the path generated by random walk and a preset sliding window;
[0153] Step S402: Approximately optimize the objective function based on the positive and negative samples to obtain the approximate optimized objective function.
[0154] Optionally, steps S401 and S402 play a crucial role in the network embedding algorithm, effectively improving embedding quality and training efficiency. First, step S401 introduces randomly selected nodes to construct negative samples using a negative sampling method. Negative sampling is a common technique used to improve the training efficiency of large-scale network embeddings. In the network, positive samples typically come from paths generated by random walks and pre-defined sliding windows. A random walk is a process that starts from a node and jumps to neighboring nodes with a certain probability, capturing local structural information in the network. Through the sliding window, positive sample node pairs that have semantic relationships with the central node can be extracted from the generated path.
[0155] In the specific implementation, a random walk is first performed to generate a node sequence. For example, in a social network, starting with a user, the system visits their friends according to a certain jump probability, and continues jumping from friend to friend 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, node pairs within the window are considered positive samples. For example, a window of length 5 might generate node pairs (v1,v2), (v1,v3), (v2,v3), etc.
[0156] After obtaining positive sample pairs, negative samples are generated through negative sampling. The core idea of negative sampling is to randomly select nodes from the global network and construct negative sample pairs that are not directly connected to the nodes in the positive sample pairs. Negative sampling not only reduces computational overhead but also enables more efficient model training, allowing it to better distinguish between positive and negative samples.
[0157] Then, in step S402, the objective function is approximated and optimized based on the generated positive and negative samples. The objective function is typically a log-likelihood function, aiming to maximize the conditional probability of positive sample pairs while minimizing the conditional probability of negative sample pairs. This optimization process can be implemented using gradient descent. In each iteration, the model updates the embedding vectors of the nodes, making the distances of positive sample pairs closer in the embedding space and the distances of negative sample pairs farther apart.
[0158] This approximate optimization makes the computation of the objective function more efficient. Because negative sampling considers only a small subset of negative samples, rather than all node pairs in the entire network, the computational cost is significantly reduced. This method not only improves training speed but also maintains good embedding quality.
[0159] In terms of technical principles, negative sampling avoids the complexity of global computation by randomly selecting negative samples; the sliding window extracts positive samples through local path information, capturing the local relationships between nodes. Approximate optimization achieves efficient optimization of the objective function by iteratively updating the node embedding vector.
[0160] This method addresses the issues of high computational complexity and low training efficiency in large-scale network embedding. Traditional network embedding methods often require enormous computational resources and time when dealing with large-scale data. However, through negative sampling and approximate optimization, computational efficiency can be significantly improved while maintaining embedding quality. In specific implementations, embedding effects and training performance can be further optimized by appropriately setting the sliding window size and negative sampling ratio.
[0161] In terms of technical effects, firstly, this method significantly improves the efficiency of embedding training. The introduction of negative sampling avoids full computation of the global network, making training on large-scale networks feasible. Secondly, it enhances the quality of embedding representations. Positive sample pairs extracted through random walks and sliding windows effectively capture local structural information within the network, generating high-quality node embedding representations. Finally, it enhances the model's generalization ability. The negative sample pairs generated by negative sampling enable the model to distinguish between positive and negative samples during training, resulting in better performance in practical applications.
[0162] For example, in a social network recommendation system, generating user embeddings using the methods described above can lead to more accurate recommendations of friends and content. For instance, by capturing interaction paths and local relationships between users, the recommendation system can identify users with similar potential interests, thereby improving recommendation accuracy and user satisfaction.
[0163] It is worth noting that in practical applications, parameter settings need to be flexibly adjusted 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 proportion of negative sampling will all affect the final embedding effect. Through experimental verification and parameter tuning, the optimal model configuration can be found to achieve the best performance.
[0164] In summary, steps S401 and S402 achieve efficient and high-quality network embedding through negative sampling and approximate optimization. The negative sampling method avoids the huge overhead of global computation by introducing randomly selected nodes to construct negative sample pairs. The paths generated by random walks and the positive sample pairs extracted by sliding windows capture local structural information in the network. Through approximate optimization of the objective function, the model can efficiently update node embedding vectors, improving embedding quality and training efficiency. This method not only solves the computational complexity problem in large-scale network embedding but also enhances the model's generalization ability, making it suitable for various application scenarios such as social networks, e-commerce, financial networks, academic networks, and bioinformatics. With reasonable parameter settings and optimization strategies, model performance can be further improved, providing strong support for various network data analysis and applications.
[0165] In one embodiment of the attribute-enhanced network data processing method based on attribute perturbation of this application, it may further include the following:
[0166] Before calculating the transition probability of semantic relationships between different node types, the node types are normalized using the softmax function to obtain the probability distribution of different node types after the normalization process.
[0167] Optionally, normalizing the semantic relationships between different node types using the softmax function before calculating the transition probabilities is an effective method that can more accurately reflect the relationships between different node types in heterogeneous networks. In heterogeneous networks, the diversity of node types and the complexity of relationships make traditional normalization methods difficult to apply. The softmax function can perform a more reasonable probability distribution calculation based on the characteristics of different node types, thereby improving the accuracy of relationship transition probabilities.
[0168] In the specific implementation process, the first step is to classify the various types of nodes in the network and determine the feature vector for each node type. In heterogeneous networks, node types may include users, items, tags, locations, etc. Each type of node has its specific attributes and features, which can be represented by embedding vectors. For example, in a social network, the feature vector of a user node may include the user's interests, behavioral 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.
[0169] Next, the softmax function is applied to normalize these feature vectors. Softmax can flexibly adjust the normalization strategy based on different node types. Specifically, the softmax function calculates an independent normalization coefficient for each node type, normalizing the probability distribution of nodes of the same type within a specific range. This approach considers the differences in characteristics between different node types, avoiding the bias caused by directly normalizing all nodes uniformly.
[0170] The probability distributions of different types of nodes obtained in this way more accurately reflect the status and relationships of each type of node in the network. For example, in a recommendation system containing users and items, after softmax processing, the probability distributions of user nodes and item nodes can respectively reflect user activity and item popularity. This distribution can serve as the basis for subsequent calculations of transition probabilities between nodes.
[0171] In practical applications, the probability distribution processed by softmax can be used to calculate the semantic relationship transition probability between different node types. For example, in social networks, the probability distribution of user nodes and content nodes can be used to calculate the probability of user interest shifting to different content; in knowledge graphs, the probability distribution of entity nodes and relationship nodes can be used to calculate the relationship transition probability between entities. This probability calculation method not only considers the differences in node types but also captures the semantic relationships in the network more accurately.
[0172] This technique is based on the diversity of nodes and the complexity of relationships in heterogeneous networks. It uses the softmax function for normalization to make the probability distribution of different types of nodes more representative. Softmax can flexibly adjust the normalization strategy according to node type, avoiding information loss and errors caused by uniform processing.
[0173] This method addresses the accuracy issue in calculating relationships between different node types in heterogeneous networks. Traditional methods often overlook the differences in node types when dealing with heterogeneous networks, leading to significant deviations in the calculation results. However, by using the softmax function for normalization, the semantic relationships between node types can be better reflected, improving the accuracy of calculating relationship transition probabilities.
[0174] In terms of technical effects, firstly, this method significantly improves the accuracy of relation transition probability calculation in heterogeneous networks. The probability distribution processed by the softmax function more realistically reflects the relationships and importance of different types of nodes. Secondly, it enhances the model's adaptability to heterogeneous network structures. The softmax function can flexibly adjust the normalization strategy according to node type, adapting to the needs of different network structures and application scenarios. Finally, it improves the effectiveness of network analysis and applications. Through accurate relation transition probability calculation, it can provide more precise and effective services in fields such as recommender systems, knowledge graphs, and social network analysis.
[0175] For example, in an e-commerce platform, using the softmax function to process the probability distribution of user and product nodes can more accurately calculate the probability of users shifting their interest in different products, thereby improving the accuracy of the recommendation system and user satisfaction. In academic research, using this method to process the probability distribution of author and paper nodes in academic networks can better analyze the evolution of academic collaborations and research topics, providing support for research management and decision-making.
[0176] In summary, normalizing different node types using the softmax function is an effective method to improve the accuracy of relation transition probability calculation in heterogeneous networks. This technique not only solves the limitations of traditional methods when dealing with heterogeneous networks, but also provides more accurate and effective services in various application scenarios.
[0177] In other embodiments of this application, each edge type view of the input network is heterogeneous; therefore, this application uses a random walk based on metapath2vec. Given a network G... r =(V,E) r A) The edge view r and the meta-path scheme Where l is the length of the meta-path scheme, the transition probability of step q is defined as:
[0178]
[0179] Where v i ∈V q and N i,r Represents node v i Neighborhood on edge type r. Predefined metapath. The process guides the walker. A meta-path-based random walk strategy ensures that semantic relationships between different types of nodes can be appropriately incorporated into the grid model. Assuming along the path... Walk randomly on edge type r. The context is Where w is the radius of the window size. Therefore, given node v i Given its path context T, the objective of this application is to minimize the following negative log probability:
[0180]
[0181] Where φ represents all parameters. According to metapath2vec, this application uses the softmax function, which is based on node v. j The node type is normalized. Specifically, given v i In the case of v j The probability is defined as:
[0182]
[0183] Where v j ∈V q , t k For node v k The context indicates that For v i The overall representation of the node-to-edge type r. This method uses heterogeneous negative sampling to approximate each node pair (v i ,v j The objective function is -logP φ (v j |v i ):
[0184]
[0185] Where L is the number of negative samples corresponding to the positive training samples. σ(x) = 1 / (1 + exp(-x)) is the sigmoid function, v k From node v j The corresponding node set V q The noise distribution P defined above t (v) was randomly selected.
[0186] In attribute enhancement, xc It is assumed that from the conditional distribution The perturbed version of X extracted from it has a loss function that compares the original attribute x with the perturbed attribute x. c The interval is defined as:
[0187]
[0188] Subsequently, the objective function of the method in this application is:
[0189] E = E v +μE x (15)
[0190] μ is used to weigh the loss.
[0191] To enhance the robustness of attribute-based heterogeneous networks and improve their comprehensiveness through attribute enhancement methods, the floating-point network representation is learned as a binary hash network representation. This not only saves significant storage space for heterogeneous networks but also improves the retrieval efficiency of downstream tasks. This application provides an embodiment of an attribute-perturbation-based attribute enhancement network data processing apparatus for implementing all or part of the aforementioned attribute perturbation-based attribute enhancement network data processing method. See [link to embodiment]. Figure 5 The attribute-enhanced network data processing device based on attribute perturbation specifically includes the following components:
[0192] The attribute-multi-path heterogeneous network construction module 10 is used to construct an attribute-multi-path heterogeneous network based on 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.
[0193] The attribute enhancement module 20 is used to randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operation, and obtain the perturbation attribute output by the perturbation attribute generator.
[0194] The basic embedding module 30 is used to determine the adjacency matrix of different edge types according to the attribute multi-path heterogeneous network, and embed the adjacency matrix as a node, integrate the perturbation attribute into the node of the attribute multi-path heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as an attribute, capture the structural information and context information of the attribute multi-path heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure.
[0195] The final embedding module 40 is used to embed the structure into the fully connected layer for self-attention mechanism learning, fuse the structure embedding after the self-attention mechanism learning with the node embedding and attribute embedding input to the connected layer, and input the result of the embedding fusion into the hash layer for deep hash learning of the network embedding representation to obtain the binary hash network embedding representation output by the hash layer.
[0196] As can be seen from the above description, the attribute-enhanced network data processing device based on attribute perturbation provided in this application embodiment 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 into a binary hash network representation. This not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks.
[0197] To further illustrate this solution, this application also provides a specific application example of implementing the attribute-perturbation-based attribute-enhanced network data processing method using the aforementioned attribute-perturbation-based attribute-enhanced network data processing device. See [link to relevant documentation]. Figure 6 Specifically, it includes the following:
[0198] First, we introduce attribute-based heterogeneous networks. (See attached diagram) Figure 6 The image shows an example of an e-commerce system with a multi-path heterogeneous network of attributes. On the left is a target network where all nodes are considered to be of the same type, and edges represent a fixed relationship (like "favorite"). The middle image shows a heterogeneous network where node types are divided into users and products, and the relationships between nodes are more diverse (clicks, favorites, and purchases). On the right is an attribute-based multi-path heterogeneous network where nodes have attributes (e.g., user's name, age, address, gender), and multiple relationships can exist between the same pair of nodes (e.g., user 3 and pencil have both a favorite and a purchase relationship).
[0199] For the aforementioned network, this method divides the technical solution into three parts: the attribute-multiplexed heterogeneous network as input and the hash representation of the node as output.
[0200] I. Attribute Enhancement
[0201] The attributes in the attribute-multiplexed heterogeneous network are processed. First, a mask matrix with the same dimension as the existing attributes is generated. Then, the original attributes and the mask matrix are used as input to randomly generate perturbation attributes. The generated perturbation attributes include not only the original attributes in the network but also the perturbation-enhanced attributes. The generated perturbation attributes serve as part of the input to the basic embedding.
[0202] II. Basic Embedding
[0203] The basic embedding components include node embedding, attribute embedding, and structural embedding. Node embedding obtains information about the nodes themselves from the input network, ultimately forming adjacency matrices for different edge types. Attribute embedding incorporates the perturbation attributes obtained in the first step into the nodes to obtain one-hot encoding. Since the semantic information in the attributes is closely related to the network's structure and context, structural embedding uses the perturbation attributes of the nodes to capture the network's structural and contextual information.
[0204] III. Final Embedding
[0205] First, structural embeddings are used as input, and a self-attention mechanism is employed to learn structural information under different edge types. Different weights are assigned to embeddings of different edge types to provide a more comprehensive representation of multi-path heterogeneous networks. The learned structural embeddings are then fused with node embeddings and attribute embeddings and used as input to a hash layer. Through the hash layer, the floating-point embedding representation is learned to be converted into a binary embedding representation. The final embedding representation is obtained through continuous learning and iteration.
[0206] Therefore, it can be seen that this embodiment improves the attribute information in the attribute-multiplexed heterogeneous network by using attribute enhancement methods, thereby enhancing the network's robustness and making the network representation more comprehensive. Learning the floating-point network representation into a binary hash network representation not only saves a significant amount of storage space for the heterogeneous network but also improves the retrieval efficiency of downstream tasks.
[0207] From a hardware perspective, in order to improve the attribute information in attribute-multiplexed heterogeneous networks and enhance the network's robustness through attribute enhancement methods, making the network representation more comprehensive, the floating-point network representation is learned as a binary hash network representation. This not only saves a significant amount of storage space for heterogeneous networks but also improves the retrieval efficiency of downstream tasks. This application provides an embodiment of an electronic device for implementing all or part of the aforementioned attribute-perturbation-based attribute enhancement network data processing method. The electronic device specifically includes the following:
[0208] The system comprises a processor, memory, a communications interface, and a bus; wherein the processor, memory, and communications interface communicate with each other via the bus; the communications interface is used to realize information transmission between the attribute-perturbation-based attribute enhancement network data processing device and core business systems, user terminals, and related databases and other related devices; the logic controller can be a desktop computer, tablet computer, or mobile terminal, etc., and this embodiment is not limited to these. In this embodiment, the logic controller can be implemented with reference to the embodiments of the attribute-perturbation-based attribute enhancement network data processing method and the embodiment of the attribute-perturbation-based attribute enhancement network data processing device in the embodiments, the content of which is incorporated herein, and repeated details will not be described again.
[0209] It is understood that the user terminal may include smartphones, tablet computers, network set-top boxes, portable computers, desktop computers, personal digital assistants (PDAs), in-vehicle devices, smart wearable devices, etc. Among these, the smart wearable devices may include smart glasses, smartwatches, smart bracelets, etc.
[0210] In practical applications, parts of the attribute-enhanced network data processing method based on attribute perturbation can be executed on the electronic device side as described above, or all operations can be completed in the client device. The choice can be made based on the processing capabilities of the client device and the limitations of the user's usage scenario. This application does not impose any limitations on this. If all operations are completed in the client device, the client device may further include a processor.
[0211] The aforementioned client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission. The server may include a server on the task scheduling center side; in other implementation scenarios, it 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, a server cluster consisting of multiple servers, or a distributed server structure.
[0212] Figure 7 This is a schematic block diagram illustrating the system configuration of the electronic device 9600 according to an embodiment of this application. Figure 7 As shown, the electronic device 9600 may include a central processing unit 9100 and a memory 9140; the memory 9140 is coupled to the central processing unit 9100. It is worth noting that... Figure 7 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions.
[0213] In one embodiment, the attribute-enhanced network data processing method based on attribute perturbation can be integrated into the central processing unit 9100. The central processing unit 9100 can be configured to perform the following control:
[0214] Step S101: Construct an attribute-multiplexed heterogeneous network based on the nodes and edges in the target network, wherein the node type in the attribute-multiplexed heterogeneous network represents attribute information, and the edge type in the attribute-multiplexed heterogeneous network represents at least one relationship between the attribute information.
[0215] Step S102: Randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operation, and obtain the perturbation attribute output by the perturbation attribute generator.
[0216] Step S103: Determine the adjacency matrix of different edge types according to the attribute multi-path heterogeneous network, and embed the adjacency matrix as a node. Integrate the perturbation attribute into the node of the attribute multi-path heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as an attribute. Capture the structural information and context information of the attribute multi-path heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure.
[0217] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning. The structure embedding after self-attention mechanism learning is fused with the node embedding and attribute embedding input to the connected layer. The result of the embedding fusion is input into the hash layer for deep hash learning of network embedding representation to obtain the binary hash network embedding representation output by the hash layer.
[0218] As can be seen from the above description, the electronic device provided in this application embodiment improves the attribute information in the attribute-multiplexed 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 into a binary hash network representation. This not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks.
[0219] In another embodiment, the attribute-perturbation-based attribute enhancement network data processing device can be configured separately from the central processing unit 9100. For example, the attribute-perturbation-based attribute enhancement network data processing device can be configured as a chip connected to the central processing unit 9100, and the attribute-perturbation-based attribute enhancement network data processing method function can be implemented through the control of the central processing unit.
[0220] like Figure 7 As shown, the electronic device 9600 may further 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 need to include these components. Figure 7 All components shown; in addition, the electronic device 9600 may also include Figure 7 For components not shown, please refer to existing technologies.
[0221] like Figure 7 As shown, the central processing unit 9100, sometimes also referred to as a controller or operating control, may include a microprocessor or other processor device and / or logic device, which receives inputs and controls the operation of various components of the electronic device 9600.
[0222] The memory 9140 may be, for example, one or more of a cache, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices. It may store the aforementioned failure-related information, and also store a program for executing that information. The central processing unit 9100 may execute the program stored in the memory 9140 to perform information storage or processing, etc.
[0223] Input unit 9120 provides input to central processing unit 9100. Input unit 9120 may be, for example, a keypad or touch input device. Power supply 9170 provides power to electronic device 9600. Display 9160 displays images and text. Display may be, for example, an LCD display, but is not limited thereto.
[0224] The memory 9140 can be a solid-state memory, such as a read-only memory (ROM), random access memory (RAM), a SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROMs. The memory 9140 can 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 for storing application programs and function programs or processes for executing the operation of the electronic device 9600 via the central processing unit 9100.
[0225] 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 the electronic device's communication functions and / or for performing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0226] 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 processing unit 9100 to provide input signals and receive output signals, which is the same as in a conventional mobile communication terminal.
[0227] Based on different communication technologies, multiple communication modules 9110 can be configured in the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module 9110 (transmitter / receiver) is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby realizing typical telecommunications functions. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. Additionally, the audio processor 9130 is coupled to a central processing unit 9100, enabling on-device recording via the microphone 9132 and on-device playback of stored audio via the speaker 9131.
[0228] Embodiments of this application also provide a computer-readable storage medium capable of implementing all steps of the attribute-perturbation-based attribute-enhanced network data processing method with a server or client as the execution subject in the above embodiments. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps of the attribute-perturbation-based attribute-enhanced network data processing method with a server or client as the execution subject in the above embodiments. For example, when the processor executes the computer program, it implements the following steps:
[0229] Step S101: Construct an attribute-multiplexed heterogeneous network based on the nodes and edges in the target network, wherein the node type in the attribute-multiplexed heterogeneous network represents attribute information, and the edge type in the attribute-multiplexed heterogeneous network represents at least one relationship between the attribute information.
[0230] Step S102: Randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operation, and obtain the perturbation attribute output by the perturbation attribute generator.
[0231] Step S103: Determine the adjacency matrix of different edge types according to the attribute multi-path heterogeneous network, and embed the adjacency matrix as a node. Integrate the perturbation attribute into the node of the attribute multi-path heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as an attribute. Capture the structural information and context information of the attribute multi-path heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure.
[0232] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning. The structure embedding after self-attention mechanism learning is fused with the node embedding and attribute embedding input to the connected layer. The result of the embedding fusion is input into the hash layer for deep hash learning of network embedding representation to obtain the binary hash network embedding representation output by the hash layer.
[0233] As can be seen from the above description, the computer-readable storage medium provided in this application embodiment improves the attribute information in the attribute-multiplexed 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 into a binary hash network representation. This not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks.
[0234] Embodiments of this application also provide a computer program product capable of implementing all steps of the attribute-perturbation-based attribute-enhanced network data processing method described above, where the execution subject is a server or client. When executed by a processor, this computer program / instruction implements the steps of the attribute-perturbation-based attribute-enhanced network data processing method. For example, the computer program / instruction implements the following steps:
[0235] Step S101: Construct an attribute-multiplexed heterogeneous network based on the nodes and edges in the target network, wherein the node type in the attribute-multiplexed heterogeneous network represents attribute information, and the edge type in the attribute-multiplexed heterogeneous network represents at least one relationship between the attribute information.
[0236] Step S102: Randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute multi-path heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operation, and obtain the perturbation attribute output by the perturbation attribute generator.
[0237] Step S103: Determine the adjacency matrix of different edge types according to the attribute multi-path heterogeneous network, and embed the adjacency matrix as a node. Integrate the perturbation attribute into the node of the attribute multi-path heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as an attribute. Capture the structural information and context information of the attribute multi-path heterogeneous network according to the perturbation attribute, and embed the structural information and context information as a structure.
[0238] Step S104: The structure embedding is input into the fully connected layer for self-attention mechanism learning. The structure embedding after self-attention mechanism learning is fused with the node embedding and attribute embedding input to the connected layer. The result of the embedding fusion is input into the hash layer for deep hash learning of network embedding representation to obtain the binary hash network embedding representation output by the hash layer.
[0239] As can be seen from the above description, the computer program product provided in this application embodiment improves the attribute information in the attribute-multiplexed 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 into a binary hash network representation. This not only saves a lot of storage space for the heterogeneous network, but also improves the retrieval efficiency of downstream tasks.
[0240] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied 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.
[0241] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0242] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0243] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0244] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.
Claims
1. A method for attribute-enhanced network data processing based on attribute perturbation, characterized in that, The method includes: Based on the nodes and edges in the target network, an attribute-based heterogeneous network is constructed. A meta-path embedding method is used to perform random walks on each edge type view of the attribute-based heterogeneous network to determine the transition probabilities of semantic relationships between different node types. Based on these transition probabilities, a node sequence of the attribute-based heterogeneous network conforming to a specific semantic pattern is generated. The target network is an e-commerce network. The nodes in the attribute-based heterogeneous network are categorized into users and products. The edges in the attribute-based heterogeneous network use click, favorite, purchase, and browsing relationships as the relationship edges between users and products. User attributes include age, gender, address, purchase history, browsing history, and rating. Product attributes include price, brand, and shipping cost. The attribute-based heterogeneous network is constructed to classify users based on their purchase history, browsing history, and rating, and to construct different types of edges based on the similarity between users and the correlation between products. The node types in the attribute-based heterogeneous network represent attribute information, and the edge types represent at least one relationship between the attribute information. Based on the node attributes and edge attributes in the attribute-multiplexed heterogeneous network, a corresponding binary mask attribute vector is randomly generated. The binary mask attribute vector, the node attributes, and the edge attributes are then input into a perturbation attribute generator to perform an attribute perturbation operation, yielding the perturbation attributes output by the perturbation attribute generator, including: The binary mask attribute vector, the node attributes, and the edge attributes are input into a perturbation attribute generator to perform attribute perturbation operations, which are achieved through the following formula: Among them, the disturbance attribute is The perturbation property generator is The binary mask attribute vector is The node attributes and edge attributes are ; Based on the attribute-multipath heterogeneous network, adjacency matrices of different edge types are determined, and the adjacency matrices are embedded as nodes. The perturbation attributes are incorporated into the nodes of the attribute-multipath heterogeneous network to obtain one-hot encoding, and the one-hot encoding is embedded as an attribute. Based on the perturbation attributes, the structural information and context information of the attribute-multipath heterogeneous network are captured, and the structural information and context information are embedded as a structure. The structure is embedded into a fully connected layer for self-attention learning. The structure embedding learned through self-attention is then fused with the node embeddings and attribute embeddings input to the connected layer. The fused result is input into a hash layer for deep hash learning of the network embedding representation, resulting in a binary hash network embedding representation output by the hash layer. The hash layer learns the data distribution and features in the network, mapping similar nodes to similar binary hash codes. In the deep hash learning, based on the relationship between the sign function and the scaling function, a scaling function is used as the activation function for hash representation learning. After the hash representation converges at each stage, the hash representation layer is fine-tuned, and the converged network parameters are used as the initialization parameters for the next training stage. The binary hash network embedding representation is then used to perform a similarity search among nodes in the e-commerce network, obtaining similar nodes with similar binary hash codes.
2. The attribute-enhanced network data processing method based on attribute perturbation according to claim 1, characterized in that, Following the construction of the attribute-multiplexed heterogeneous network, the following is also included: For the node sequence of the meta-path generated by the random walk, path modeling is performed based on minimizing the negative log probability between a node and its context node according to the objective function. The context of each node on the meta-path is determined based on the result of the path modeling operation.
3. The attribute-enhanced network data processing method based on attribute perturbation according to claim 2, characterized in that, Following the construction of the attribute-multiplexed heterogeneous network, the following is also included: Negative samples are constructed by introducing randomly selected nodes through a negative sampling method, and positive samples are determined by the path generated by random walk and a preset sliding window. The objective function is approximated and optimized based on the positive and negative samples to obtain the approximated objective function.
4. The attribute-enhanced network data processing method based on attribute perturbation according to claim 3, characterized in that, Following the construction of the attribute-multiplexed heterogeneous network, the following is also included: Before calculating the transition probability of semantic relationships between different node types, the node types are normalized using the softmax function to obtain the probability distribution of different node types after the normalization process.
5. A data processing device for attribute-enhanced networks based on attribute perturbation, characterized in that, The device includes: An attribute-based heterogeneous network construction module is used to construct an attribute-based heterogeneous network based on nodes and edges in a target network. It performs a random walk on each edge type view of the attribute-based heterogeneous network using a meta-path embedding method to determine the transition probability of semantic relationships between different node types. Based on the transition probability, it generates a node sequence of the attribute-based heterogeneous network that conforms to a specific semantic pattern. The target network is an e-commerce network, and the nodes in the attribute-based heterogeneous network are divided into users and products. The edges in the attribute-based heterogeneous network use click, favorite, purchase, and browsing relationships as the relationship edges between users and products. User attributes include age, gender, address, purchase history, browsing history, and rating; product attributes include price, brand, and shipping cost. The module constructs the attribute-based heterogeneous network to classify users based on purchase history, browsing history, and rating, and constructs different types of edges based on the similarity between users and the correlation between products. The node types in the attribute-based heterogeneous network represent attribute information, and the edge types represent at least one relationship between the attribute information. An attribute enhancement module is used to randomly generate corresponding binary mask attribute vectors based on the node attributes and edge attributes in the attribute-multiplexed heterogeneous network, input the binary mask attribute vectors, the node attributes, and the edge attributes into a perturbation attribute generator to perform attribute perturbation operations, and obtain the perturbation attributes output by the perturbation attribute generator, including: The binary mask attribute vector, the node attributes, and the edge attributes are input into a perturbation attribute generator to perform attribute perturbation operations, which are achieved through the following formula: Among them, the disturbance attribute is The perturbation property generator is The binary mask attribute vector is The node attributes and edge attributes are ; A basic embedding module is used to determine adjacency matrices of different edge types according to the attribute-multipath heterogeneous network, and embed the adjacency matrices as nodes, integrate the perturbation attributes into the nodes of the attribute-multipath heterogeneous network to obtain one-hot encoding, and embed the one-hot encoding as attributes, capture the structural information and context information of the attribute-multipath heterogeneous network according to the perturbation attributes, and embed the structural information and context information as structure. The final embedding module is used to input the structure embedding into the fully connected layer for self-attention mechanism learning. The structure embedding learned through the self-attention mechanism is then fused with the node embeddings and attribute embeddings input to the connected layer. The fused embedding result is input into the hash layer for deep hash learning of the network embedding representation, resulting in a binary hash network embedding representation output by the hash layer. The hash layer learns the data distribution and features in the network, mapping similar nodes to similar binary hash codes. In the deep hash learning, based on the relationship between the sign function and the scaling function, the scaling function is used as the activation function for hash representation learning. After the hash representation converges at each stage, the hash representation layer is fine-tuned, and the converged network parameters are used as the initialization parameters for the next stage of training. The binary hash network embedding representation is used to perform a similarity search between nodes in the e-commerce network to obtain similar nodes with similar binary hash codes.
6. 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, it implements the steps of the attribute-enhanced network data processing method based on attribute perturbation as described in any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the attribute-enhanced network data processing method based on attribute perturbation as described in any one of claims 1 to 4.
8. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the attribute-enhanced network data processing method based on attribute perturbation as described in any one of claims 1 to 6.
