Network key node identification method and system based on large language model
Through a method based on a large language model, combined with initial node scoring and semantic similarity classification, iteratively generates the final node scoring algorithm, identifies key nodes of the network, solves the problems of insufficient generalization and high resource consumption in the existing technology, and achieves Efficient identification of complex networks.
Patent Information
- Application Number
- CN202411164467.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing network key node identification technology has insufficient generalization, high complexity, and high resource consumption, making it difficult to effectively handle large-scale networks.
Using a method based on a large language model, through the initial node scoring algorithm, adaptability evaluation and semantic similarity classification, combined with the pre-trained large language model for crossover and mutation operations, it iteratively generates the final node scoring algorithm and identifies key nodes of the network.
It improves the generalization and applicability of key node identification in the network, reduces the consumption of computing resources, and can effectively handle complex network structures.
Smart Images

Figure CN118690142A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network information processing, and in particular to a method and system for identifying key network nodes based on a large language model. Background Art
[0002] Networks are widely present in the real world, such as social networks and biological networks. Identifying a set of optimal key nodes in a network and then activating or removing them to maximize the impact is a basic research problem with wide applications in epidemic control, marketing, etc. From the perspective of combinatorial optimization, this problem can be regarded as an optimal search task. Existing methods can be divided into three categories. The first method is a basic method based on heuristics, such as using degree centrality to determine whether a node is critical. This method is simple and efficient and performs well in many networks. The second method attempts to further reformulate the problem using approximate optimization, such as gradually eliminating the nodes with the highest degree in each subgraph of the network to identify key nodes; there are also methods that create acyclic networks by removing nodes that form cycles, and then use greedy algorithms to select nodes to decompose the network into unconnected parts. Heuristic and approximate optimization methods can provide the same solutions for different types of networks, but often ignore network characteristics, resulting in poor performance in some networks. In recent years, with the advancement of deep learning, some works have solved the key node problem by using neural networks to adaptively learn node importance or rank nodes. They use neural networks to assign scores to network nodes and determine their importance based on these scores. These learning-based methods usually attempt to adaptively search for key nodes. Therefore, when faced with a huge search space, the search cost is high and the applicability is poor.
[0003] The existing related work has the following main defects: there are certain limitations and deviations when analyzing network structure, oversimplifying the problem and ignoring the complex characteristics and structure of the network; processing large-scale networks requires a lot of computing resources for search or training, which limits the applicability and practicality of the method. Summary of the invention
[0004] The present invention provides a network key node identification method and system based on a large language model, which are used to solve the problems of insufficient generalization, high complexity and large resource consumption of existing network key node identification technologies.
[0005] The present invention provides a method for identifying key network nodes based on a large language model, comprising: Define the initial node scoring algorithm based on network topology and computational methods; Performing adaptability evaluation based on the initial node scoring algorithm, completing population classification based on semantic similarity, and selecting a parent node scoring algorithm based on the classification results; Based on the parent node scoring algorithm, the child algorithm is generated through the pre-trained large language model, and the final node scoring algorithm that meets the preset conditions is obtained through continuous iterative evolution; Each node in the network is scored by the final node scoring algorithm, and key network nodes are identified based on the scoring results.
[0006] According to a method for identifying key network nodes based on a large language model provided by the present invention, the initial node scoring algorithm is defined based on network topology and a calculation method, specifically including: Assigning points to nodes based on the node connection relationships in the network topology to form an initial node scoring algorithm, or; The classic algorithm based on identifying key nodes in the network analyzes network characteristics through mathematical or statistical methods to assign points to nodes, forming an initial node scoring algorithm.
[0007] According to a network key node identification method based on a large language model provided by the present invention, the adaptability evaluation is performed based on the initial node scoring algorithm, and the population classification is completed based on the semantic similarity, and the parent node scoring algorithm is selected according to the classification result, which specifically includes: Performing adaptability evaluation based on the initial node scoring algorithm to generate a adaptability score; Calculate the semantic similarity between the initial node scoring algorithm and the current algorithm population, and classify the algorithms based on the calculation results and applicability scores.
[0008] According to a method for identifying key network nodes based on a large language model provided by the present invention, the calculation of the semantic similarity between the initial node scoring algorithm and the current algorithm population, and the algorithm classification based on the calculation results and the applicability score specifically include: If the calculation result of semantic similarity exceeds the set threshold, the node scoring algorithm is added to the corresponding initial algorithm population. If it is lower than the set threshold, the initial node scoring algorithm is treated as a new population to complete the classification of the initial node scoring algorithm and generate the classification result. An initial node scoring algorithm is selected as a parent node scoring algorithm between populations and within populations according to the classification results.
[0009] According to a method for identifying key network nodes based on a large language model provided by the present invention, the parent node scoring algorithm generates a child algorithm through a pre-trained large language model, and continuously iterates and evolves to obtain a final node scoring algorithm that meets preset conditions, specifically including: Inputting the parent node scoring algorithm into a pre-trained large language model, performing a crossover operation through the large language model, and outputting a child algorithm; Inputting part of the offspring algorithms into the large language model again, performing mutation operation through the large language model, and outputting the mutated algorithm; After the executableness of the offspring algorithm and the mutation algorithm is checked, they are added to the initial algorithm population after evaluation and classification, and a new round of algorithm selection, crossover and mutation operations are carried out, and it is continuously iterated until the preset conditions are met, and the final node scoring algorithm is output.
[0010] According to a method for identifying key network nodes based on a large language model provided by the present invention, scoring each node in the network by the final node scoring algorithm and identifying key network nodes based on the scoring results specifically include: Inputting the network into the final node scoring algorithm in the form of an adjacency matrix; Scoring each network node based on the final node scoring algorithm, and outputting dictionary-type data containing the network node scores; The key nodes of the network are identified according to the dictionary type data.
[0011] The present invention also provides a network key node identification system based on a large language model, the system comprising: Initialization module, used to define the initial node scoring algorithm based on network topology and computational methods; A population management module, used to perform adaptability evaluation based on the initial node scoring algorithm, complete population classification based on semantic similarity, and select a parent node scoring algorithm based on the classification result; The algorithm evolution module is used to generate child algorithms based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterate to obtain the final node scoring algorithm that meets the preset conditions; The node identification module is used to score each node in the network through the final node scoring algorithm and identify key nodes in the network based on the scoring results.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for identifying key network nodes based on a large language model as described above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for identifying key network nodes based on a large language model.
[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for identifying key network nodes based on a large language model as described above is implemented.
[0015] The present invention provides a method and system for identifying key network nodes based on a large language model. The method and system finally obtain a novel and effective node scoring algorithm by selecting, crossing, mutating and evaluating the initial algorithm population, and continuously iterating training. The large language model, based on its powerful context understanding ability and rich programming skills, is used as a crossover operator and a mutation operator to generate a scoring algorithm. The key nodes in the network are found by scoring the importance of the nodes in the network, taking into account the complex characteristics and structure of the network, and without consuming a large amount of computing resources for searching or training, which increases the applicable scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flow chart of the network key node identification method based on the large language model provided by the present invention.
[0018] Figure 2 This is an architecture diagram of a network key node identification system based on a large language model provided by the present invention.
[0019] Figure 3 It is a text prompt schematic diagram of the crossover and mutation operations of the large language model provided by the present invention.
[0020] Figure 4 It is a schematic diagram of module connection of a network key node identification system based on a large language model provided by the present invention.
[0021] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention.
[0022] Reference numerals: 110: initialization module; 120: population management module; 130: algorithm evolution module; 140: node identification module; 510: processor; 520: communication interface; 530: memory; 540: communication bus. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Combine the following Figure 1 The invention describes a method for identifying key network nodes based on a large language model, comprising: step 100, defining an initial node scoring algorithm based on network topology and a computational method.
[0025] In the present invention, the initial algorithm population can provide potential individuals for the entire search process, and these individuals are continuously improved and iterated during the training process, gradually approaching the optimal solution. Good population initialization helps the algorithm find the optimal solution during the evolution process, especially when using a population of limited size to solve large-scale optimization problems.
[0026] Specifically, the initial node scoring algorithm is defined based on the network topology and computational methods, including: Assigning points to nodes based on the node connection relationships in the network topology to form an initial node scoring algorithm, or; The classic algorithm based on identifying key nodes in the network analyzes network characteristics through mathematical or statistical methods to assign points to nodes, forming an initial node scoring algorithm.
[0027] In the present invention, based on the network topology results, the network topology includes the connection relationship between nodes, and the key nodes usually show a connection mode different from other nodes. This method directly assigns corresponding scores to nodes according to the network topology, such as the number of N-stage neighbors of the node, the number of shortest paths where the node is located, and the reciprocal of the sum of the shortest paths from the node to all other nodes. At present, some complete library functions can directly calculate these scores, but in order to take into account the scalability and readability of the scoring algorithm, the simple library function is not fully called to assign points to the nodes, but a scoring algorithm including a detailed calculation process is designed.
[0028] Based on computational methods, some classic algorithms for identifying key nodes in a network use mathematical or statistical methods to analyze network characteristics and identify key nodes based on these analysis results. These methods often combine greedy algorithms, and their efficiency is closely related to the network scale and the number of selected nodes. The main ideas of these algorithms are retained and they are manually rewritten into efficient node scoring functions.
[0029] Step 200: Perform adaptability evaluation based on the initial node scoring algorithm, complete population classification based on semantic similarity, and select a parent node scoring algorithm based on the classification result.
[0030] In the present invention, M initial algorithms are designed , they have different scoring focuses and can be regarded as independent populations In order to maintain the diversity of the function population, avoid falling into the local optimal solution, and maximize the performance of the algorithm, it is necessary to carry out a detailed management design of the function population.
[0031] Specifically, an adaptability evaluation is performed based on the initial node scoring algorithm, and population classification is completed based on semantic similarity, and a parent node scoring algorithm is selected according to the classification result, specifically including: Performing adaptability evaluation based on the initial node scoring algorithm to generate a adaptability score; Calculate the semantic similarity between the initial node scoring algorithm and the current algorithm population, and classify the algorithms based on the calculation results and applicability scores.
[0032] Among them, the semantic similarity between the initial node scoring algorithm and the current algorithm population is calculated, and the algorithm is classified according to the calculation results and applicability scores, including: If the calculation result of semantic similarity exceeds the set threshold, the node scoring algorithm is added to the corresponding initial algorithm population. If it is lower than the set threshold, the initial node scoring algorithm is treated as a new population to complete the classification of the initial node scoring algorithm and generate the classification result. An initial node scoring algorithm is selected as a parent node scoring algorithm between populations and within populations according to the classification results.
[0033] In the present invention, given an initial node scoring algorithm ,First, the fitness evaluation is performed and the evaluation method is closely related to the goal of the model - to identify the key nodes in the network through the obtained scoring algorithm.,Therefore, the fitness score evaluation function of the parent node scoring,algorithm is defined as follows.
[0034] (1).
[0035] in, represents a function that sorts nodes in descending order according to their scores, Indicates taking the first elements, Represents a function that evaluates the network state after removing a node. Through the fitness score evaluation function, each executable node scoring algorithm will get a suitable fitness score , which helps to better manage the algorithm population.
[0036] In evolution, some algorithms have low adaptability, but they can introduce diverse potential evolutionary directions for the population; and the existence of some highly adaptable functions with many similar individuals often means that the evolution is trapped in a local optimal solution. Therefore, it is necessary to further classify algorithms based on the adaptability score. Inspired by natural language processing tasks, the initial node scoring algorithm is used to classify the initial node scoring algorithm based on the pre-trained language model. Processed as an embedding vector , which contains the grammatical structure and semantic information of the code. Then the semantic similarity between the initial node scoring algorithm and the average vector of the existing scoring algorithm population is calculated. as follows.
[0037] (2).
[0038] (3).
[0039] in, Represents population The average value of the function vector in . At the same time, set a similarity threshold For the calculated maximum similarity, if it is above the threshold, the algorithm is added to the corresponding population, otherwise a new population is established with this algorithm. Since each population has a limited number of individuals, once the population is full, the newly added individuals must have a higher fitness to eliminate the original low-scoring individuals to maintain the good performance of the population.
[0040] Two designs are made when selecting the parent node scoring algorithm in the population, namely inter-population selection and intra-population selection. Inter-population selection focuses on the diversity of algorithms, that is, each time an individual is selected from various populations as the parent node scoring algorithm. In order to retain the elite, the algorithm with the highest adaptability will be added to Fintra each time; the selection within the population takes into account the fitness of the algorithm, and two algorithms are selected from the same population each time as the parent node scoring algorithm within the population , so that the subsequent crossover operation can find the differences between algorithms of the same type but with different fitness. In both options, the fitness score of each function is used as the selection weight to encourage the selection of better individuals. For convenience, use express .
[0041] Step 300: Generate a child algorithm based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterate and evolve to obtain a final node scoring algorithm that meets preset conditions.
[0042] In the present invention, after obtaining the parent node scoring algorithm, the evolution begins through the large language model to generate a new algorithm. The crossover and mutation operators used in traditional genetic programming are often difficult to make high-quality modifications to code functions like human programmers. In contrast, a large language model trained with a large amount of code, documents, tutorials and other data can understand complex programming tasks and perform high-quality code modification and generation. Therefore, a large language model is used as an operator to perform crossover and mutation operations on a given parent individual to generate a new individual.
[0043] Specifically, based on the parent node scoring algorithm, the child algorithm is generated through the pre-trained large language model, and the final node scoring algorithm that meets the preset conditions is obtained through continuous iterative evolution, including: Inputting the parent node scoring algorithm into a pre-trained large language model, performing a crossover operation through the large language model, and outputting a child algorithm; Inputting part of the offspring algorithms into the large language model again, performing mutation operation through the large language model, and outputting the mutated algorithm; After the executability of the offspring algorithm and the mutation algorithm is checked, they are added to the initial algorithm population after evaluation and classification, and a new round of algorithm selection, crossover and mutation operations are performed, and it is continuously iterated until the preset conditions are met, and the final node scoring algorithm is output.
[0044] In the present invention, the input of the crossover operation includes the parent node scoring algorithm , the output is a set of descendant algorithms The prompt input of the large language model includes the parent node scoring algorithm and its fitness score, as well as a text description of the crossover operation and output format constraints. In order to let the large language model focus on analyzing the connection and differences between the parent node scoring algorithms, no description related to the user-item network or recommendation task is provided to avoid interference. The crossover operation formula based on the large model is as follows.
[0045] (4).
[0046] in Represents the set of fitness scores of all parent functions.
[0047] In order to maintain the diversity of the population, each generation algorithm There is a certain probability Undergo mutation. The prompt input for large models includes the descendant algorithm, as well as a textual description of the mutation operation and output format requirements. , the output is a set of mutation algorithms In order to let the large language model focus on the code, the text prompt still does not contain any description related to the recommendation task. The mutation operation formula based on the large model is as follows.
[0048] (5).
[0049] in Represents the offspring algorithm after sampling. After the feasibility check, these offspring functions and mutation algorithms are evaluated and classified and then added to the population in order to start a new round of selection, crossover and mutation. In this way, the entire population gradually grows and develops until the preset conditions are met and the final node scoring recommendation algorithm is output. Figure 3 Shows detailed tooltips for crossover and mutation operations.
[0050] Step 400: Score each node in the network using the final node scoring algorithm, and identify key network nodes based on the scoring results.
[0051] Specifically: the network is input into the final node scoring algorithm in the form of an adjacency matrix; Scoring each network node based on the final node scoring algorithm, and outputting dictionary-type data containing the network node scores; The key nodes of the network are identified according to the dictionary type data.
[0052] In a specific embodiment, if a user wants to use a large language model to obtain an effective network node importance evaluation algorithm and then discover key nodes in the network, the user must first determine the topological structure of the target network. Data from three real networks and one synthetic network are collected here. The statistical information of the four networks is shown in Table 1.
[0053] Table 1 Data statistics table
[0054] The initial node scoring algorithm is designed to start the evolution, and the newly generated algorithm is evaluated, in which ANC is used to measure the impact of removing the selected node on the network to obtain the corresponding adaptability score of the algorithm; then the algorithm is semantically analyzed according to the set method, and added to the corresponding population after classification; then inter-population selection and intra-population selection are performed to generate the parent node scoring algorithm; finally, the parent node scoring algorithm is cross-operated by using a large language model, and the sampled child algorithm is mutated. The above process is iterated until the target scoring algorithm is generated. After determining the final scoring algorithm, the adjacency matrix is input to generate the corresponding scores of each node in the network. After sorting and selection, the specified number of key nodes can be obtained.
[0055] Each scoring algorithm and the entire method are implemented in Python, where the large language model uses the existing artificial intelligence model, and the code generation vector model uses the existing corresponding model. In the evolution module, the mutation rate is set to 0.3, and the temperature of the mutation operation and crossover operation is set to 1 and 1.5 respectively, which can stably generate a variety of new algorithms. In the population management module, the algorithm capacity of each population is set to 10, and the similarity threshold is set to 0.93, which is more appropriate.
[0056] A network key node identification method based on a large language model provided by the present invention is a novel and effective node scoring algorithm that is finally obtained through selection, crossover, mutation and evaluation of the initial algorithm population and continuous iterative training; wherein the large language model is used as a crossover operator and mutation operator to generate a scoring algorithm based on its powerful context understanding ability and rich programming skills; by scoring the importance of nodes in the network, the key nodes therein are found, taking into account the complex characteristics and structure of the network, and without consuming a large amount of computing resources for search or training, the applicable scenarios are increased.
[0057] refer to Figure 2 and Figure 4 The present invention also discloses a network key node identification system based on a large language model, the system comprising: Initialization module 110, used to define an initial node scoring algorithm based on network topology and computational methods; A population management module 120, configured to perform adaptability evaluation based on the initial node scoring algorithm, complete population classification based on semantic similarity, and select a parent node scoring algorithm based on the classification result; The algorithm evolution module 130 is used to generate a child algorithm based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterate to obtain a final node scoring algorithm that meets preset conditions; The node identification module 140 is used to score each node in the network using the final node scoring algorithm and identify key nodes in the network based on the scoring results.
[0058] Among them, the initial node scoring algorithm is defined based on the network topology and calculation method, including: Assigning points to nodes based on the node connection relationships in the network topology to form an initial node scoring algorithm, or; The classic algorithm based on identifying key nodes in the network analyzes network characteristics through mathematical or statistical methods to assign points to nodes, forming an initial node scoring algorithm.
[0059] Based on the initial node scoring algorithm, an adaptability evaluation is performed, and population classification is completed based on semantic similarity. The parent node scoring algorithm is selected according to the classification result, which specifically includes: Performing adaptability evaluation based on the initial node scoring algorithm to generate a adaptability score; Calculate the semantic similarity between the initial node scoring algorithm and the current algorithm population, and classify the algorithms based on the calculation results and applicability scores.
[0060] Calculate the semantic similarity between the initial node scoring algorithm and the current algorithm population, and classify the algorithms according to the calculation results and applicability scores, including: If the calculation result of semantic similarity exceeds the set threshold, the node scoring algorithm is added to the corresponding initial algorithm population. If it is lower than the set threshold, the initial node scoring algorithm is treated as a new population to complete the classification of the initial node scoring algorithm and generate the classification result. An initial node scoring algorithm is selected as a parent node scoring algorithm between populations and within populations according to the classification results.
[0061] Based on the parent node scoring algorithm, the child algorithm is generated through the pre-trained large language model, and the final node scoring algorithm that meets the preset conditions is obtained through continuous iterative evolution, including: Inputting the parent node scoring algorithm into a pre-trained large language model, performing a crossover operation through the large language model, and outputting a child algorithm; Inputting part of the offspring algorithms into the large language model again, performing mutation operation through the large language model, and outputting the mutated algorithm; After the executability of the offspring algorithm and the mutation algorithm is checked, they are added to the initial algorithm population after evaluation and classification, and a new round of algorithm selection, crossover and mutation operations are performed, and it is continuously iterated until the preset conditions are met, and the final node scoring algorithm is output.
[0062] Each node in the network is scored by the final node scoring algorithm, and key network nodes are identified based on the scoring results, specifically including: Inputting the network into the final node scoring algorithm in the form of an adjacency matrix; Scoring each network node based on the final node scoring algorithm, and outputting dictionary-type data containing the network node scores; The key nodes of the network are identified according to the dictionary type data.
[0063] A network key node identification system based on a large language model provided by the present invention is a novel and effective node scoring algorithm that is finally obtained through selection, crossover, mutation and evaluation of the initial algorithm population and continuous iterative training; wherein the large language model, based on its powerful context understanding ability and rich programming skills, is used as a crossover operator and mutation operator to generate a scoring algorithm; by scoring the importance of nodes in the network, the key nodes therein are found, taking into account the complex characteristics and structure of the network, and without consuming a large amount of computing resources for search or training, the applicable scenarios are increased.
[0064] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a network key node identification method based on a large language model, the method comprising: defining an initial node scoring algorithm based on network topology and a computational method; performing adaptability evaluation based on the initial node scoring algorithm, completing population classification based on semantic similarity, and selecting a parent node scoring algorithm according to the classification result; generating a child algorithm based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterating and evolving to obtain a final node scoring algorithm that meets preset conditions; scoring each node in the network through the final node scoring algorithm, and identifying the network key nodes based on the scoring result.
[0065] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0066] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute a network key node identification method based on a large language model provided by the above methods, the method including: defining an initial node scoring algorithm based on network topology and a computational method; performing adaptability evaluation based on the initial node scoring algorithm, completing population classification based on semantic similarity, and selecting a parent node scoring algorithm according to the classification results; generating a child algorithm based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterating and evolving to obtain a final node scoring algorithm that meets preset conditions; scoring each node in the network through the final node scoring algorithm, and identifying network key nodes based on the scoring results.
[0067] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute a network key node identification method based on a large language model provided by the above-mentioned methods, the method comprising: defining an initial node scoring algorithm based on network topology and a computational method; performing adaptability evaluation based on the initial node scoring algorithm, completing population classification based on semantic similarity, and selecting a parent node scoring algorithm according to the classification results; generating a child algorithm based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterating and evolving to obtain a final node scoring algorithm that meets preset conditions; scoring each node in the network through the final node scoring algorithm, and identifying network key nodes based on the scoring results.
[0068] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying key network nodes based on a large language model, characterized in that: include: Define the initial node scoring algorithm based on network topology and computational methods; Performing adaptability evaluation based on the initial node scoring algorithm, completing population classification based on semantic similarity, and selecting a parent node scoring algorithm based on the classification results; Based on the parent node scoring algorithm, the child algorithm is generated through the pre-trained large language model, and the final node scoring algorithm that meets the preset conditions is obtained through continuous iterative evolution; Each node in the network is scored by the final node scoring algorithm, and key network nodes are identified based on the scoring results.
2. The method for identifying key network nodes based on a large language model according to claim 1, characterized in that: The initial node scoring algorithm is defined based on the network topology and the calculation method, specifically including: Assigning points to nodes based on the node connection relationships in the network topology to form an initial node scoring algorithm, or; The classic algorithm based on identifying key nodes in the network analyzes network characteristics through mathematical or statistical methods to assign points to nodes, forming an initial node scoring algorithm.
3. The method for identifying key network nodes based on a large language model according to claim 1, characterized in that: The adaptability evaluation is performed based on the initial node scoring algorithm, and the population classification is completed based on the semantic similarity, and the parent node scoring algorithm is selected according to the classification result, which specifically includes: Performing adaptability evaluation based on the initial node scoring algorithm to generate a adaptability score; Calculate the semantic similarity between the initial node scoring algorithm and the current algorithm population, and classify the algorithms based on the calculation results and applicability scores.
4. The method for identifying key network nodes based on a large language model according to claim 3, characterized in that: The calculation of the semantic similarity between the initial node scoring algorithm and the current algorithm population, and the algorithm classification according to the calculation results and the applicability score, specifically includes: If the calculation result of semantic similarity exceeds the set threshold, the node scoring algorithm is added to the corresponding initial algorithm population. If it is lower than the set threshold, the initial node scoring algorithm is treated as a new population to complete the classification of the initial node scoring algorithm and generate the classification result. An initial node scoring algorithm is selected as a parent node scoring algorithm between populations and within populations according to the classification results.
5. The method for identifying key network nodes based on a large language model according to claim 1, characterized in that: The parent node scoring algorithm generates a child algorithm through a pre-trained large language model, and continuously iterates and evolves to obtain a final node scoring algorithm that meets preset conditions, specifically including: Inputting the parent node scoring algorithm into a pre-trained large language model, performing a crossover operation through the large language model, and outputting a child algorithm; Inputting part of the offspring algorithms into the large language model again, performing mutation operation through the large language model, and outputting the mutated algorithm; After the executability of the offspring algorithm and the mutation algorithm is checked, they are added to the initial algorithm population after evaluation and classification, and a new round of algorithm selection, crossover and mutation operations are performed, and it is continuously iterated until the preset conditions are met, and the final node scoring algorithm is output.
6. The method for identifying key network nodes based on a large language model according to claim 1, characterized in that: Scoring each node in the network by the final node scoring algorithm and identifying key network nodes based on the scoring results specifically includes: Inputting the network into the final node scoring algorithm in the form of an adjacency matrix; Scoring each network node based on the final node scoring algorithm, and outputting dictionary-type data containing the network node scores; The key nodes of the network are identified according to the dictionary type data.
7. A network key node identification system based on a large language model, characterized in that: The system comprises: Initialization module, used to define the initial node scoring algorithm based on network topology and computational methods; A population management module, used to perform adaptability evaluation based on the initial node scoring algorithm, complete population classification based on semantic similarity, and select a parent node scoring algorithm based on the classification result; The algorithm evolution module is used to generate child algorithms based on the parent node scoring algorithm through a pre-trained large language model, and continuously iterate to obtain the final node scoring algorithm that meets the preset conditions; The node identification module is used to score each node in the network through the final node scoring algorithm and identify key nodes in the network based on the scoring results.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for identifying key network nodes based on a large language model as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for identifying key network nodes based on a large language model as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for identifying key network nodes based on a large language model as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Minimal spanning tree-based clustering genetic algorithm complex web community mining method
CN103745258A
Command and control network key node identification method based on deep learning
CN114143210A
Method for evaluating key nodes of heterogeneous information network
CN115314398A
Sorting similarity software abnormal behavior modeling method and computer readable medium
CN115687117A
Community detection method based on triangular motif
CN116611950A
Cited By
Network key node identification result evaluation method and device
CN120602351A
