Graph structured recommendation method and device based on adaptive impulse gating propagation
By adopting an adaptive pulse-gated propagation mechanism, the problems of computational redundancy and propagation range control in graph-structured recommendation are solved, enabling efficient and controllable dynamic modeling of user interests, and improving recommendation performance and interpretability.
Patent Information
- Application Number
- CN202611468584.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-11-24
AI Technical Summary
Existing graph-structured recommendation methods suffer from computational redundancy, difficulty in controlling the propagation scope, and insufficient expression of dynamic interest diffusion in user behavior, resulting in low computational efficiency and poor recommendation performance.
An adaptive pulse-gated propagation mechanism is adopted, which uses pulse signals triggered by user behavior events to propagate locally in the user-item graph, controls the propagation range and generates local activation subgraphs, and realizes an event-driven, low-redundancy recommendation process.
It improves the computational efficiency and propagation controllability of graph-structured recommendation, enhances recommendation performance, and provides interpretable basis for recommendation paths.
Smart Images

Figure CN123159501A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, and in particular to a graph-structured recommendation method and apparatus based on adaptive pulse-gated propagation. Background Technology
[0002] With the continuous expansion of internet applications, recommendation systems have become a core infrastructure for e-commerce platforms, short video platforms, social networks, and content distribution systems. Current mainstream recommendation methods can be broadly categorized into three types: collaborative filtering-based methods, deep neural network-based methods, and graph-based modeling methods. Among these, graph-based recommendation methods effectively capture high-order relationships between users and items by abstracting users and items as nodes in a graph and using edges to represent interactions. Therefore, they are widely used in both industry and academia.
[0003] Existing graph recommendation methods mainly include models based on graph neural networks (GNNs), such as GCN, GraphSAGE, GAT, and LightGCN. These methods typically learn node representations through multi-layer neighborhood aggregation mechanisms, and can model the complex relationships between users and items to some extent. However, traditional graph recommendation methods still have the following structural technical limitations: 1) The propagation mechanism lacks event-driven characteristics, and the computational pattern is prone to redundancy. Existing GNN methods typically employ a hierarchical synchronous message passing mechanism, uniformly aggregating and updating nodes and their neighbors in each iteration. Even if some nodes do not generate new user interaction behavior at the current moment, they may still participate in feature propagation and state updates. This "synchronous propagation" mechanism is inconsistent with the sparsity, burstiness, and locality of user behavior events in real recommendation scenarios, easily leading to a large amount of invalid computation.
[0004] 2) The lack of effective control over the propagation scope can easily lead to excessive neighborhood expansion. Graph-structured recommendations typically rely on multi-hop neighborhood propagation to obtain higher-order association information. However, as the number of propagation layers increases, the number of neighboring nodes involved in the computation expands rapidly, resulting in a significant increase in computational and storage overhead. For large-scale user-item graphs, without propagation gating, propagation budgets, or propagation termination mechanisms, the system struggles to control computational complexity while ensuring recommendation effectiveness.
[0005] 3) Existing methods are insufficient in representing the dynamic interest diffusion triggered by user behavior. In real-world recommendation scenarios, a user's click, favorite, or purchase typically only affects the local interest region related to that behavior, rather than causing a unified state update across the entire graph. Existing methods mostly treat user behavior as static or sequential features in modeling, lacking a mechanism to transform user behavior events into propagable signals and perform local activation, gating propagation, and path contribution calculation within the graph structure.
[0006] The above problems urgently need to be addressed. Summary of the Invention
[0007] The purpose of this invention is to at least partially solve one of the technical problems existing in the prior art.
[0008] Therefore, one objective of this invention is to provide a graph-structured recommendation method based on adaptive pulse-gated propagation, which improves the computational efficiency, propagation controllability, and recommendation effectiveness of graph-structured recommendation.
[0009] Another objective of this invention is to provide a graph-structured recommendation device based on adaptive pulse-gated propagation.
[0010] To achieve the above-mentioned technical objectives, the technical solutions adopted in the embodiments of the present invention include: On one hand, embodiments of the present invention provide a graph-structured recommendation method based on adaptive pulse-gated propagation, comprising the following steps: Construct a user-item graph based on historical user behavior, and determine the edge weights and node popularity of the user-item graph; When a recommended trigger event is received, the recommended trigger event is encoded into an initial pulse signal, and the initial pulse strength and initial propagation budget of the initial pulse signal are determined according to the trigger type and behavior frequency. The initial pulse signal is input into the user-item graph for local propagation, and the propagation range of the initial pulse signal is controlled according to the edge weight, the node heat, the initial pulse intensity, and the initial propagation budget to obtain a local activation subgraph. Target recommendation results are generated based on the candidate item nodes in the local activation subgraph.
[0011] Furthermore, in one embodiment of the present invention, the step of constructing a user-item graph based on historical user behavior and determining the edge weights and node popularity of the user-item graph specifically includes: Determine user sets, item sets, and multiple sets of user-item interaction relationships based on historical user behavior; Multiple user nodes are determined based on the user set, multiple item nodes are determined based on the item set, and the edges between the corresponding user nodes and item nodes are determined based on the user-item interaction relationship to obtain the user-item graph; Based on the user-item interaction relationship, determine the number of interactions, interaction frequency, recent interaction time, and interaction behavior type of the corresponding edge to obtain edge features, and calculate the edge weight of the corresponding edge based on the edge features. The weighted activity of the corresponding user node / item node is determined based on the user-item interaction relationship. The weighted activity of all user nodes / item nodes is normalized to obtain the node popularity of each user node / item node.
[0012] Furthermore, in one embodiment of the present invention, encoding the recommended triggering event into an initial pulse signal, and determining the initial pulse strength and initial propagation budget of the initial pulse signal based on the triggering type and behavior frequency, specifically includes: The recommended trigger event is parsed to obtain the current user node, initial propagation source, trigger type, and trigger occurrence time; The frequency of actions within a preset time window is counted based on the trigger occurrence time, and the initial pulse intensity is determined based on the trigger type and the frequency of actions. The corresponding base budget is determined based on the trigger type, and the initial propagation budget is determined based on the initial pulse intensity and the base budget. The initial pulse signal is generated from the current user node pointing to the initial propagation source based on the initial pulse intensity and the initial propagation budget.
[0013] Furthermore, in one embodiment of the present invention, the step of inputting the initial pulse signal into the user-item graph for local propagation, and controlling the propagation range of the initial pulse signal according to the edge weight, the node heat, the initial pulse intensity, and the initial propagation budget to obtain a local activation subgraph specifically includes: The initial pulse signal is added to the event queue as a propagation event to be processed. The current set of propagation events to be processed is obtained in batches from the event queue, and the input cumulative signals of multiple target nodes in the user-item graph are determined based on the current set of propagation events to be processed. The membrane potential state of each target node is updated according to the input accumulated signal, and it is determined whether each target node meets the preset activation threshold condition. When the target node meets the activation threshold condition, the pulse gating condition is used to determine whether to continue propagating to neighboring nodes based on the current edge weight, current node heat, remaining pulse intensity and remaining propagation budget of the target node. When it is determined that the propagation should continue to neighboring nodes, a propagation event to be processed in the next propagation step is generated and added to the event queue; When the event queue is empty, the initial propagation budget is exhausted, or the preset maximum propagation steps are reached, propagation stops, and the local activation subgraph is generated based on the nodes and edges participating in the propagation in the user-item graph. The propagation events to be processed in the next propagation step include the remaining pulse intensity and remaining propagation budget corresponding to the neighboring node. The remaining pulse intensity corresponding to the neighboring node is obtained by attenuating the remaining pulse intensity corresponding to the target node, and the remaining propagation budget corresponding to the neighboring node is obtained by attenuating the remaining propagation budget corresponding to the target node.
[0014] Furthermore, in one embodiment of the present invention, the step of updating the membrane potential state of each target node according to the input accumulated signal and determining whether each target node meets a preset activation threshold condition specifically includes: The current membrane potential state of the target node is obtained, and the current membrane potential state is attenuated according to a preset attenuation coefficient and then superimposed with the input accumulated signal to obtain the updated membrane potential state. Obtain the node activation threshold of the target node; When the updated membrane potential state is greater than or equal to the node activation threshold, the target node is determined to meet the activation threshold condition. If the updated membrane potential state is less than the node activation threshold, the target node is determined not to meet the activation threshold condition.
[0015] Furthermore, in one embodiment of the present invention, the step of determining whether to continue propagating to neighboring nodes based on the current edge weight, current node popularity, remaining pulse intensity, and remaining propagation budget corresponding to the target node using a pulse gating condition specifically includes: The edge cost between the target node and its neighboring nodes is determined based on the current edge weight and current node popularity. When the remaining pulse intensity corresponding to the target node is greater than the preset minimum effective pulse intensity, and the remaining propagation budget corresponding to the target node is greater than the edge cost, it is determined to continue propagating to the neighboring nodes, and the remaining propagation budget corresponding to the neighboring nodes is determined based on the difference between the remaining propagation budget corresponding to the target node and the edge cost. If the remaining pulse intensity corresponding to the target node is less than or equal to the preset minimum effective pulse intensity, or if the remaining propagation budget corresponding to the target node is less than or equal to the edge cost, it is determined to stop propagating to neighboring nodes.
[0016] Furthermore, in one embodiment of the present invention, the step of generating a target recommendation result based on the candidate item nodes in the local activation subgraph specifically includes: The item nodes participating in the propagation in the local activation subgraph are selected as candidate item nodes, and the activation state, remaining pulse intensity, path length and remaining propagation budget of each candidate item node for each propagation are determined. The recommended score for each candidate item node is calculated based on the activation state, remaining pulse intensity, path length, and remaining propagation budget for each propagation. Based on the recommended score, several target item nodes are selected from the candidate item nodes, and the target recommendation result is generated based on the target item nodes.
[0017] On the other hand, embodiments of the present invention provide a graph-structured recommendation device based on adaptive pulse-gated propagation, comprising: The user-item graph construction module is used to construct a user-item graph based on historical user behavior and determine the edge weights and node popularity of the user-item graph. A pulse signal generation module is used to encode a recommended triggering event into an initial pulse signal when a recommended triggering event is received, and to determine the initial pulse intensity and initial propagation budget of the initial pulse signal according to the triggering type and behavior frequency. The local propagation module is used to input the initial pulse signal into the user-item graph for local propagation, and control the propagation range of the initial pulse signal according to the edge weight, the node heat, the initial pulse intensity and the initial propagation budget to obtain a local activation subgraph; The recommendation result generation module is used to generate target recommendation results based on the candidate item nodes in the local activation subgraph.
[0018] On the other hand, embodiments of the present invention provide an electronic device, the electronic device including a memory, a processor, a computer program stored in the memory and executable on the processor, and a data bus for implementing communication between the processor and the memory, wherein the computer program, when executed by the processor, implements the graph-structured recommendation method based on adaptive pulse gating propagation as described above.
[0019] On the other hand, embodiments of the present invention also provide a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more computer programs, which can be executed by one or more processors to implement the graph-structured recommendation method based on adaptive pulse gating propagation as described above.
[0020] On the other hand, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the graph-structured recommendation method based on adaptive pulse-gated propagation as described above.
[0021] The advantages and beneficial effects of the present invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention: This invention constructs a user-item graph based on historical user behavior and determines the edge weights and node popularity of the user-item graph. When a recommendation trigger event is received, the recommendation trigger event is encoded into an initial pulse signal. The initial pulse strength and initial propagation budget of the initial pulse signal are determined according to the trigger type and behavior frequency. The initial pulse signal is input into the user-item graph for local propagation. The propagation range of the initial pulse signal is controlled according to the edge weights, node popularity, initial pulse strength, and initial propagation budget to obtain a locally activated subgraph. The target recommendation result is generated based on the candidate item nodes in the locally activated subgraph. This invention constructs a user-item graph based on historical user behavior, converts recommendation trigger events into initial pulse signals input into the user-item graph, and controls their propagation range in the graph structure based on pulse gating and propagation budget mechanisms. Only the node state update and signal propagation calculation are performed on the activated local subgraph, thereby realizing event-driven, low-redundancy, and controllable propagation graph-structured recommendation, improving the computational efficiency, propagation controllability, and recommendation effect of graph-structured recommendation. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments of the present invention are described below. It should be understood that the drawings described below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating the steps of a graph-structured recommendation method based on adaptive pulse-gated propagation provided in an embodiment of the present invention; Figure 2 The overall flowchart of the graph-structured recommendation method based on adaptive pulse-gated propagation provided in the embodiments of the present invention is shown below. Figure 3 A flowchart of step S101 provided in an embodiment of the present invention; Figure 4 A flowchart of step S102 provided in an embodiment of the present invention; Figure 5 A flowchart of step S103 provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of pulse signal propagation in a user-item diagram provided in an embodiment of the present invention; Figure 7 A flowchart of step S104 provided in an embodiment of the present invention; Figure 8 A schematic diagram of the graph-based recommendation device based on adaptive pulse-gated propagation provided in an embodiment of the present invention; Figure 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of the structure of the storage medium provided in an embodiment of the present invention. Detailed Implementation
[0024] The embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. It should be noted that although functional modules are divided in the system schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system schematic diagram or the order in the flowchart. The step numbers in the following embodiments are only set for ease of explanation and do not limit the order between steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0026] This invention addresses the problems of computational redundancy, difficulty in controlling the propagation range, insufficient dynamic modeling of user behavior, and weak interpretability of recommendation results in existing graph-structured recommendation methods. It proposes a graph-structured recommendation method based on adaptive pulse-gated propagation to improve the computational efficiency, dynamic modeling capability, and propagation controllability of the recommendation system, achieving the following objectives: 1) Reduce computational redundancy in graph neural networks. Existing GNNs typically employ a globally synchronized message passing mechanism, repeatedly computing a large number of nodes and their neighborhoods. This invention introduces a pulse propagation mechanism triggered by user behavior events, updating only nodes that meet the activation conditions and their local subgraphs, thereby reducing invalid propagation and redundant computation.
[0027] 2) Adaptive control of graph propagation range. To address the problem that multi-hop neighborhood expansion in large-scale user-item graphs can lead to a rapid increase in computational load, this invention introduces a propagation budget mechanism. This mechanism causes the pulse signal to gradually consume the budget during edge propagation and stops propagation when the remaining budget is insufficient, thereby limiting the propagation depth and range.
[0028] 3) Enhancing the ability to dynamically model user interests. Existing methods typically treat user behavior as static or sequential features in modeling, making it difficult to depict the local interest diffusion process after user behavior is triggered. This invention encodes user behaviors such as clicking, browsing, favorites, and purchasing as initial pulse signals, and uses pulse intensity changes and node activation states to depict the dynamic propagation process of user interest in the graph structure.
[0029] 4) Improve the interpretability of the recommendation process. By recording the propagation path of the pulse signal in the graph, the node activation state, the remaining propagation budget, and the path contribution of candidate items, this invention can generate recommendation scores based on effective activation paths, making the recommendation results have traceable path interpretation basis.
[0030] The following describes some of the terms used in the embodiments of the present invention.
[0031] Graph-based recommendation is a recommendation method that models users and items as graph nodes, uses edges to represent interaction relationships, and performs information propagation and state updates under an event-driven mechanism.
[0032] Pulse signal: A discrete propagation signal triggered by user behavior events, used to represent the diffusion process of user interest or behavioral intent within a graph structure. Pulse signals can carry information such as pulse intensity, propagation path, and remaining propagation budget.
[0033] Propagation Budget: A propagation range control parameter used to limit the propagation depth and range of a pulse signal within a graph structure. The propagation budget is consumed as the pulse propagates along the edges, and propagation stops when the remaining budget is insufficient.
[0034] Pulse-Gated Propagation Mechanism: A method based on node activation conditions to control propagation behavior, allowing only nodes that meet threshold conditions to participate in the propagation process, thereby achieving sparse computation.
[0035] The graph-structured recommendation method based on adaptive pulse gating propagation provided in this application can be applied to terminals, servers, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or in-vehicle terminal, but is not limited to these. The server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network. The software can be an application implementing a driver state monitoring method based on machine vision, but is not limited to the above forms.
[0036] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0037] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards of the relevant countries and regions. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data for the proper functioning of the embodiments of this application obtained.
[0038] like Figure 1 The diagram shows a flowchart of a graph-structured recommendation method based on adaptive pulse gating propagation provided in an embodiment of the present invention. (Refer to...) Figure 1 This invention provides a graph-structured recommendation method based on adaptive pulse-gated propagation, specifically including the following steps: S101. Construct a user-item graph based on historical user behavior, and determine the edge weights and node popularity of the user-item graph; S102. When a recommended trigger event is received, the recommended trigger event is encoded into an initial pulse signal, and the initial pulse strength and initial propagation budget of the initial pulse signal are determined according to the trigger type and behavior frequency. S103. Input the initial pulse signal into the user-item graph for local propagation, and control the propagation range of the initial pulse signal according to the edge weight, node heat, initial pulse intensity and initial propagation budget to obtain a local activation subgraph. S104. Generate target recommendation results based on candidate item nodes in the local activation subgraph.
[0039] like Figure 2 The diagram shows the overall flowchart of the graph-structured recommendation method based on adaptive pulse-gated propagation provided in this embodiment of the invention. First, a user-item graph is constructed based on historical user behavior, and parameters such as edge weights, node popularity, and node activation thresholds in the graph are maintained in batches or incrementally. When a recommendation trigger event is received, the trigger event is converted into an initial pulse signal and propagated locally in the existing user-item graph. During the propagation process, the propagation range is controlled by the node activation threshold, propagation budget, edge propagation cost, and pulse gating conditions. Finally, recommendation results are generated based on the candidate item nodes in the locally activated subgraph.
[0040] It can be recognized that the embodiments of the present invention construct a user-item graph based on historical user behavior, transform the recommendation trigger event into an initial pulse signal input to the user-item graph, and control its propagation range in the graph structure based on the pulse gating mechanism and the propagation budget mechanism. Only the node state update and signal propagation calculation are performed on the activated local subgraph, thereby realizing event-driven, low-redundancy, and controllable propagation graph structured recommendation, which improves the computational efficiency, propagation controllability, and recommendation effect of graph structured recommendation.
[0041] like Figure 3 The diagram shown is a flowchart of step S101 provided in an embodiment of the present invention. (Refer to...) Figure 3 As an optional implementation, a user-item graph is constructed based on historical user behavior, and the edge weights and node popularity of the user-item graph are determined, specifically including: S1011. Determine the user set, item set, and multiple sets of user-item interaction relationships based on historical user behavior; S1012. Determine multiple user nodes based on the user set, determine multiple item nodes based on the item set, and determine the edges between the corresponding user nodes and item nodes based on the user-item interaction relationship to obtain the user-item graph. S1013. Determine the number of interactions, frequency of interactions, recent interaction time and interaction behavior type of the corresponding edge based on the user-item interaction relationship, obtain the edge features, and calculate the edge weight of the corresponding edge based on the edge features. S1014. Determine the weighted activity of the corresponding user node / item node based on the user-item interaction relationship, normalize the weighted activity of all user nodes / item nodes, and obtain the node popularity of each user node / item node.
[0042] Specifically, construct a user-item graph. as follows:
[0043] Among them, the node set , Represents a set of user nodes. Represents the set of item nodes; the set of edges. This represents the interaction between the user and the item. Each edge... Indicates user With items There have been interactive behaviors between them, including clicking, browsing, adding to favorites, adding to cart, purchasing, rating, or staying in the chat.
[0044] In one implementation, a user-item graph is constructed in batches based on historical user behavior logs. For multiple interactions between the same user and the same item, the interactions are aggregated according to user and item identifiers, and edge features such as interaction count, interaction frequency, most recent interaction time, and behavior type are statistically analyzed, and edge weights are calculated accordingly.
[0045] Define edge weights as follows:
[0046] in, For users With items Number of interactions For interaction frequency, This is the historical behavior time decay factor.
[0047] In one implementation, the edge weight can be expressed as:
[0048] in, , , These are the weighting coefficients. Edge weights. This is used to characterize the interaction strength between users and items, and serves as the basis for subsequent pulse propagation strength, propagation budget consumption, and gating decisions. To avoid inconsistencies in the dimensions of different edge features, the system normalizes the edge weights before calculating the propagation cost. .
[0049] In addition to edge weights, this embodiment of the invention also calculates node popularity for each node. Node popularity is used to represent the node's popularity. The level of interactive activity or connection density within a preset time window is used as a suppression factor in the propagation cost calculation to avoid excessive spread of pulse signals caused by popular nodes or highly connected nodes.
[0050] In one implementation, a node is defined. In the time window Weighted activity within for:
[0051] in, Indicates time window Inner nodes The set of related behavioral events Indicates behavior type The corresponding behavioral weights, Represents behavioral events The interval between the time of occurrence and the current time. This represents the time decay coefficient.
[0052] Normalize the weighted activity to obtain the node popularity. :
[0053] in, This represents the normalized reference value for the weighted activity of nodes within the current time window. The normalized reference value can be the maximum, average, preset upper limit, or 95th percentile of the weighted activity of all nodes. When node When it is an item node, This indicates the popularity of an item due to recent interactions; when a node... When it is a user node, This indicates the user's recent activity level or connection density.
[0054] In this embodiment of the invention, graph parameters are updated in batches according to a preset time window. For newly added user behavior logs, the system aggregates and updates the interaction counts based on user identifiers and item identifiers. Interaction frequency And the most recent interaction time, and recalculate the time decay factor. and edge weight For node attributes, the system aggregates and calculates the weighted activity within a time window based on the node identifier. The node heat value was then normalized to obtain the heat value. The updated edge weights and node popularity are used as edge attributes and node attributes in the graph storage structure for local propagation calculations in subsequent recommendation trigger events.
[0055] like Figure 4 The diagram shown is a flowchart of step S102 provided in an embodiment of the present invention. (Refer to...) Figure 4 As an optional implementation, the recommended triggering event is encoded as an initial pulse signal, and the initial pulse strength and initial propagation budget of the initial pulse signal are determined according to the triggering type and behavior frequency, specifically including: S1021. Analyze the recommendation trigger event to obtain the current user node, initial propagation source, trigger type, and trigger occurrence time; S1022. Calculate the frequency of behavior within a preset time window based on the trigger occurrence time, and determine the initial pulse intensity based on the trigger type and behavior frequency; S1023. Determine the corresponding base budget based on the trigger type, and determine the initial propagation budget based on the initial pulse intensity and the base budget; S1024. Generate an initial pulse signal from the current user node to the initial propagation source based on the initial pulse strength and the initial propagation budget.
[0056] Specifically, recommendation trigger events can be real-time interactive behaviors such as user clicks, browsing, favorites, adding to cart, and purchasing, or recommendation request events such as user login, page access, recommendation refresh, scheduled task triggering, or user profile status update.
[0057] Upon receiving a recommended trigger event, the event is encoded into an initial pulse signal. Recommended trigger event Represented as:
[0058] in, Represents a user node. Indicates the initial source of propagation. Indicates the trigger type. This indicates the time when the trigger event occurred. When the trigger event is a real-time interactive action such as clicking, browsing, adding to favorites, or purchasing, The item node that the user is currently interacting with. When the triggering event is user login, page refresh, recommendation request, or scheduled recommendation task, It can be determined by items with high historical weight in user interactions, items of recent interest, or items matched to user profile.
[0059] Define the initial pulse intensity :
[0060] in, To trigger type weights, This refers to the frequency of a user's actions or the intensity of their interests within a certain time window. This is a recentity factor for behavior. Generally, the initial impulse intensity corresponding to strong behaviors such as purchasing and adding to favorites is higher than that of weak behaviors such as browsing and clicking. When there are no new real-time interactive behaviors, the initial impulse intensity can be generated based on the user's historical interaction edge weights, recent interest status, or user profile features.
[0061] At the same time, an initial propagation budget is allocated to the initial pulse. :
[0062] in, For adjustment coefficients, The base budget corresponds to the trigger type. The propagation budget is used to limit the propagation depth and range of the impulse within the graph structure. For strong interest behaviors, the system allocates a higher propagation budget; for weak interest behaviors, page refreshes, or ordinary recommendation requests, the system allocates a lower propagation budget.
[0063] like Figure 5The diagram shown is a flowchart of step S103 provided in an embodiment of the present invention. (Refer to...) Figure 5 As an optional implementation, the initial pulse signal is input into the user-item graph for local propagation, and the propagation range of the initial pulse signal is controlled according to edge weights, node heat, initial pulse intensity, and initial propagation budget to obtain a locally activated subgraph, specifically including: S1031. Add the initial pulse signal as a propagation event to be processed to the event queue; S1032. Obtain the current set of propagation events to be processed in batches from the event queue, and determine the input cumulative signals of multiple target nodes in the user-item graph based on the current set of propagation events to be processed. S1033. Update the membrane potential state of each target node according to the input cumulative signal, and determine whether each target node meets the preset activation threshold condition. S1034. When the target node meets the activation threshold condition, determine whether to continue propagating to neighboring nodes based on the pulse gating condition according to the current edge weight, current node heat, remaining pulse intensity and remaining propagation budget of the target node. S1035. When it is determined that the propagation should continue to neighboring nodes, generate the propagation event to be processed for the next propagation step and add it to the event queue. S1036. When the event queue is empty, the initial propagation budget is exhausted, or the preset maximum propagation steps are reached, propagation is stopped, and a local activation subgraph is generated based on the nodes and edges involved in the propagation in the user-item graph. The propagation events to be processed in the next propagation step include the remaining pulse intensity and remaining propagation budget corresponding to the neighboring node. The remaining pulse intensity corresponding to the neighboring node is obtained by attenuating the remaining pulse intensity corresponding to the target node, and the remaining propagation budget corresponding to the neighboring node is obtained by attenuating the remaining propagation budget corresponding to the target node.
[0064] Specifically, the present invention employs an event queue. Managing the pulse propagation process. Propagation events in the queue. Represented as:
[0065] in, For the source node, the corresponding user node for the initial pulse signal is... For the target node, the initial propagation source item node corresponds to the initial pulse signal. The remaining pulse intensity propagating to the target node, For the remaining communication budget, The current propagation path length is related to the interaction between the source node and the target node and can be preset when constructing the user-item graph.
[0066] The propagation process is as follows: (1) When the system receives a recommended trigger event, it generates an initial pulse event; (2) Add the initial impulse event to the event queue. ; (3) The system retrieves data from the event queue according to the event processing step number, propagation path length, or graph partition identifier. Batch retrieve the current set of events to be processed ; (4) For Multiple propagation events pointing to the same target node are first aggregated according to the target node identifier to obtain the input cumulative signal of the target node; (5) The system updates the membrane potential state of the target node in parallel; (6) Determine whether the target node meets the activation threshold condition; (7) If the target node meets the activation condition, determine whether to continue propagating to neighboring nodes based on the pulse gating condition; (8) Generate the set of propagation events for the next propagation step in parallel for neighboring nodes that meet the gating conditions. and add it to the event queue; (9) End the current round of propagation when the event queue is empty, the propagation budget is exhausted, or the maximum propagation steps are reached.
[0067] The embodiments of the present invention realize event-driven execution and local computation of the graph propagation process, and support multi-threading, graph partitioning or batch matrix operations through batch event scheduling, thereby avoiding limiting the propagation process to single-event serial processing.
[0068] As a further optional implementation, the membrane potential state of each target node is updated based on the input accumulated signal, and it is determined whether each target node meets a preset activation threshold condition, specifically including: The current membrane potential state of the target node is obtained, and the current membrane potential state is attenuated according to the preset attenuation coefficient and then superimposed with the input accumulated signal to obtain the updated membrane potential state. Obtain the node activation threshold of the target node; When the updated membrane potential state is greater than or equal to the node activation threshold, the target node is determined to meet the activation threshold condition. If the updated membrane potential state is less than the node activation threshold, the target node is determined not to meet the activation threshold condition.
[0069] Specifically, in this embodiment of the invention, each node is modeled as a pulse unit, and the membrane potential state is maintained. .in, This indicates the event processing step number, not the actual physical time. Node membrane potential is used to represent the node... The level of interest activation during the current event's propagation process.
[0070] The nodal membrane potential is updated as follows:
[0071] in, Represents a node In the The status of each event handling step. The attenuation coefficient is... This is an accumulated signal of input from neighboring nodes or recommended triggering events.
[0072] Node input signal Defined as:
[0073] in, Represents a node The set of neighboring nodes, Representing an edge edge weights, Representing neighboring nodes In the The pulse intensity generated by each event processing step Representing neighboring nodes Whether to generate pulse output.
[0074] When the threshold condition is met At that time, node Triggering pulse event And reset the node state to:
[0075] in, The node activation threshold, This is the reset state after the node triggers a pulse.
[0076] In one implementation, the node activation threshold The system can adaptively adjust based on node popularity, user feedback, or local graph density. For highly popular nodes, the activation threshold is increased to suppress excessive propagation of trending nodes; for nodes with high recent positive feedback, the activation threshold is decreased to enhance the propagation of nodes related to user interests.
[0077] As a further optional implementation, based on the current edge weight of the target node, the current node's popularity, the remaining pulse intensity, and the remaining propagation budget, a pulse gating condition is used to determine whether to continue propagating to neighboring nodes. Specifically, this includes: Determine the edge cost between the target node and its neighboring nodes based on the current edge weight and the current node's popularity. If the remaining pulse intensity corresponding to the target node is greater than the preset minimum effective pulse intensity, and the remaining propagation budget corresponding to the target node is greater than the edge cost, it is determined to continue propagating to the neighboring nodes, and the remaining propagation budget corresponding to the neighboring nodes is determined based on the difference between the remaining propagation budget corresponding to the target node and the edge cost. If the remaining pulse strength corresponding to the target node is less than or equal to the preset minimum effective pulse strength, or if the remaining propagation budget corresponding to the target node is less than or equal to the edge cost, it is determined to stop propagating to neighboring nodes.
[0078] Specifically, to prevent the pulse signal from spreading infinitely in the graph, this invention introduces a propagation budget mechanism. The propagation of the pulse along the edges consumes a budget, which is the edge cost. Defined as:
[0079] in, The normalized edge weights This is the normalized value of the target node's heat or degree. , , This is the adjustment coefficient.
[0080] This edge cost is used to represent the pulse from the node. propagation to nodes The higher the edge weight, the stronger the connection between nodes and the lower the propagation cost; the higher the target node's popularity, the easier it is for the node to cause widespread diffusion, and therefore the higher the propagation cost. This represents the basic propagation cost.
[0081] Pulse from node propagation to nodes After that, the remaining communication budget Updated to:
[0082] in, The remaining budget before the campaign, To propagate to nodes The remaining budget after that.
[0083] When satisfied When this happens, the subsequent propagation along that path is stopped. This mechanism limits the range of pulse propagation, avoiding neighborhood explosion problems in large-scale user-item graphs.
[0084] This invention controls whether nodes participate in subsequent propagation through a pulse gating mechanism. For nodes... to neighboring nodes To propagate the signal, define the gate function:
[0085] in, Indicates whether the pulse is allowed from the node propagation to nodes , Indicates the current pulse intensity. For the minimum effective pulse intensity, Represents a node The cumulative number of activations during this round of propagation This is the maximum number of activations allowed.
[0086] when When, it allows the generation of new propagation events; when When that happens, stop propagating in that direction.
[0087] Pulse intensity after propagation Defined as:
[0088] in, This is the path length attenuation coefficient. To propagate to nodes The path length. This mechanism makes it easier for pulses on strongly correlated edges to continue propagating, while weakly correlated edges, long paths, or low-intensity pulses are more easily suppressed.
[0089] To prevent pulses from propagating repeatedly within the circular path, in one implementation, each propagation event may also carry a path identifier or a set of visited nodes. When a candidate propagation node already exists in the visited set of the current path, the system terminates propagation in that direction.
[0090] During the propagation process triggered by a recommendation event, only the nodes visited or activated by the impulse and their associated edges are calculated to form a local activation subgraph. :
[0091]
[0092] in, This represents the set of nodes that have been visited or activated in this round of propagation. This represents the set of edges that participate in the propagation computation.
[0093] This invention performs membrane potential updates, pulse gating judgments, and recommendation score calculations only on nodes within the local activation subgraph; nodes not accessed by pulses remain in their original state. Since the calculation actually involves the local activation subgraph, rather than the complete user-item graph, it can reduce computational overhead when the size of the local activation subgraph is significantly smaller than the size of the complete graph.
[0094] In one implementation, the local activation subgraph can be dynamically generated during event queue propagation, or it can be extracted in real time by the graph storage system based on the set of visited nodes and the set of edges. For multiple recommendation-triggered events, multiple local activation subgraphs can be formed according to user grouping, graph partitioning, or propagation step number, and batch updates can be performed.
[0095] like Figure 6 The diagram illustrates the propagation of pulse signals in a user-item graph according to an embodiment of the present invention. The nodes and edges in the solid line portion of the original user-item graph G are those participating in the propagation, while the nodes and edges in the dashed line portion are those not participating in the propagation. Finally, a local activation subgraph is generated based on the nodes and edges in the solid line portion.
[0096] like Figure 7 The diagram shown is a flowchart of step S104 provided in an embodiment of the present invention. (Refer to...) Figure 7 As an optional implementation, a target recommendation result is generated based on candidate item nodes in the local activation subgraph, specifically including: S1041. Select the item nodes participating in the propagation in the local activation subgraph as candidate item nodes, and determine the activation state, remaining pulse intensity, path length and remaining propagation budget of each candidate item node for each propagation. S1042. Calculate the recommended score for each candidate item node based on the activation state, remaining pulse intensity, path length, and remaining propagation budget of each propagation. S1043. Based on the recommendation score, select several target item nodes from the candidate item nodes, and generate target recommendation results based on the target item nodes.
[0097] Specifically, after the pulse propagation ends, a recommendation score is generated based on the activation status of the candidate item node, the pulse intensity, the propagation path length, and the remaining propagation budget.
[0098] Define item nodes Recommended rating for:
[0099] in, Represents item nodes The number of valid pulses received in this round of propagation Indicates the first Whether the secondary transmission results in effective activation Indicates the first The pulse intensity that arrives at the item node the next time. Indicates the propagation path length. Indicates the remaining communication budget. This is the path length attenuation coefficient. The contribution coefficient to the budget.
[0100] Final Recommendation Results for:
[0101] in, , represents the set of candidate item nodes in the local activation subgraph. That is, selecting the highest-scoring candidate item nodes from those visited or activated in the current round of propagation. The item is used as a recall result or recommendation result.
[0102] In one implementation, the Top-K results generated by this method can be used as a recommendation recall candidate set, and further input into a ranking model, a re-ranking model, or a business rule filtering module to generate the final display results.
[0103] In one implementation, when a user engages in a new interaction or the system receives a recommendation request, the following steps are performed: (1) Receive recommended trigger events and determine the trigger type; (2) When the triggering event is a real-time interactive behavior, update the interaction features of the corresponding edge; when the triggering event is a recommendation request, page refresh or scheduled task, read the user's historical interest nodes or user profile status. (3) Generate the initial pulse intensity based on the trigger type, behavior frequency, behavior relevance, and historical interest intensity; (4) Allocate a propagation budget for the initial pulse; (5) Add the initial pulse event to the event queue; (6) Perform batch propagation within the local activation subgraph based on the pulse-gated propagation mechanism; (7) Update the membrane potential state and pulse state of the activated node; (8) Calculate the activation results and path contribution of candidate item nodes; (9) Generate recommendation scores and output Top-K recommendation results.
[0104] This invention supports online incremental propagation updates for recommendation systems. After a single user action or recommendation request is triggered, the system does not need to perform synchronous propagation calculations on the complete user-item graph. Instead, it completes local propagation, local recall, and local state updates on the existing graph structure.
[0105] The complete process of the present invention will be described below with reference to a specific embodiment.
[0106] With users For items Taking click behavior as an example: (1) The system receives user For items Click behavior events; (2) Generate initial pulse intensity based on click behavior type, click frequency and behavior recency. ; (3) Allocate the propagation budget based on the initial pulse intensity and behavior type. ; (4) will be by point to The initial pulse event is added to the event queue; (5) Item Node Update the membrane potential state upon receiving a pulse; (6) When When the membrane potential reaches the threshold, the node Activated and generates new pulse events; (7) The system is based on Gating judgments are made based on edge weights, edge costs, remaining propagation budgets, and impulse strengths between the node and its neighboring nodes. (8) Continue to propagate pulses to neighboring nodes that meet the gating conditions, and terminate the propagation path that does not meet the conditions; (9) The system processes the same round of propagation events in batches according to the propagation step number, and aggregates and updates multiple propagation events pointing to the same target node; (10) After the propagation ends, the system counts the activation status, pulse intensity, path length and remaining propagation budget of each candidate item node; (11) Generate the recommendation score of each candidate item according to the recommendation scoring function, and output the Top-K recommendation list from the locally activated candidate item set.
[0107] In another implementation, when the user When the recommendation page is opened but no new real-time interaction occurs, the system will determine the user's actions based on the user's actions. The invention selects one or more initial interest nodes based on historically high-weighted interactive items, recent interest states, or user profile features, generates initial impulse events, and performs local propagation recall within the existing user-item graph. Therefore, this invention supports both online incremental recommendations triggered by real-time user behavior and recall triggered by recommendation requests based on existing user interest states.
[0108] As can be seen from the above embodiments, the present invention can transform user behavior events or recommendation request events into controllable propagation pulse signals, and use propagation budget, side propagation cost and pulse gating mechanism to limit the propagation range, and complete propagation calculation and recommendation recall only in local activation subgraphs, thereby improving the real-time performance, computational efficiency and interpretability of recommendation results of the recommendation system.
[0109] The implementation process of the present invention has been described above. It is understood that the embodiments of the present invention construct a user-item graph based on historical user behavior, convert recommendation trigger events into initial pulse signals input to the user-item graph, and control its propagation range in the graph structure based on pulse gating and propagation budget mechanisms. Only the activated local subgraphs are updated with node states and signal propagation calculations, thereby achieving event-driven, low-redundancy, and controllable propagation graph-structured recommendation, improving the computational efficiency, propagation controllability, and recommendation effect of graph-structured recommendation.
[0110] like Figure 8 The diagram shown is a schematic representation of a graph-based recommendation device based on adaptive pulse-gated propagation provided in an embodiment of the present invention. (Refer to...) Figure 8 This invention provides a graph-structured recommendation device based on adaptive pulse-gated propagation, comprising: The user-item graph construction module is used to construct a user-item graph based on historical user behavior and determine the edge weights and node popularity of the user-item graph. The pulse signal generation module is used to encode the recommended trigger event into an initial pulse signal when a recommended trigger event is received, and to determine the initial pulse strength and initial propagation budget of the initial pulse signal according to the trigger type and behavior frequency. The local propagation module is used to input the initial pulse signal into the user-item graph for local propagation, and control the propagation range of the initial pulse signal according to the edge weight, node heat, initial pulse intensity and initial propagation budget to obtain a local activation subgraph. The recommendation result generation module is used to generate target recommendation results based on candidate item nodes in the local activation subgraph.
[0111] It is understood that the content of the above method embodiments is applicable to the present device embodiments. The specific functions implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0112] This invention also provides an electronic device, comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for communication between the processor and the memory. When the program is executed by the processor, it implements the aforementioned graph-structured recommendation method based on adaptive pulse gating propagation. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0113] like Figure 9 The diagram shown is a hardware structure schematic of an electronic device provided in an embodiment of the present invention. (Refer to...) Figure 9 This invention provides an electronic device, comprising: The processor 901 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present invention. The memory 902 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 902 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 902 and is called and executed by the processor 901 to execute the graph-structured recommendation method based on adaptive pulse gating propagation of the embodiments of this invention. The input / output interface 903 is used to implement information input and output; The communication interface 904 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 905 transmits information between various components of the device (e.g., processor 901, memory 902, input / output interface 903, and communication interface 904); The processor 901, memory 902, input / output interface 903, and communication interface 904 are connected to each other within the device via bus 905.
[0114] It is understood that the content of the above method embodiments is applicable to this device embodiment. The specific functions implemented by this device embodiment are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0115] like Figure 10 The diagram shown is a structural schematic of the storage medium provided in an embodiment of the present invention. (Refer to...) Figure 10 The present invention also provides a storage medium, which is a computer-readable storage medium for computer-readable storage. The storage medium stores one or more programs 1001, which can be executed by one or more processors to implement the above-described graph-structured recommendation method based on adaptive pulse gating propagation.
[0116] It is understood that the content of the above method embodiments is applicable to this storage medium embodiment. The specific functions implemented in this storage medium embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0117] This invention also discloses a computer program product, including a computer program that, when executed by a processor, implements the above-described graph-structured recommendation method based on adaptive pulse-gated propagation.
[0118] It is understood that the content of the above method embodiments is applicable to the embodiments of this program product. The specific functions implemented by the embodiments of this program product are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0119] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0120] The embodiments described in this invention are for the purpose of more clearly illustrating the technical solutions of the embodiments of this invention, and do not constitute a limitation on the technical solutions provided by the embodiments of this invention. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this invention are also applicable to similar technical problems.
[0121] The terms "first," "second," "third," "fourth," etc. (if present) in the specification and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0122] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the aforementioned blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this invention are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0123] Furthermore, although the invention has been described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the aforementioned functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional skill of an engineer. Therefore, those skilled in the art can implement the invention as set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of the invention, which is determined by the full scope of the appended claims and their equivalents.
[0124] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0125] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-including system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0126] More specific examples (a non-exhaustive list) of computer-readable media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the aforementioned program can be printed, because the aforementioned program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0127] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0128] In the foregoing description of this specification, references to terms such as "one embodiment," "another embodiment," or "some embodiments" indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0129] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
[0130] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A graph-structured recommendation method based on adaptive pulse-gated propagation, characterized in that, Includes the following steps: Construct a user-item graph based on historical user behavior, and determine the edge weights and node popularity of the user-item graph; When a recommended trigger event is received, the recommended trigger event is encoded into an initial pulse signal, and the initial pulse strength and initial propagation budget of the initial pulse signal are determined according to the trigger type and behavior frequency. The initial pulse signal is input into the user-item graph for local propagation, and the propagation range of the initial pulse signal is controlled according to the edge weight, the node heat, the initial pulse intensity, and the initial propagation budget to obtain a local activation subgraph. Target recommendation results are generated based on the candidate item nodes in the local activation subgraph.
2. The graph-structured recommendation method based on adaptive pulse-gated propagation according to claim 1, characterized in that, The process of constructing a user-item graph based on historical user behavior and determining the edge weights and node popularity of the user-item graph specifically includes: Determine user sets, item sets, and multiple sets of user-item interaction relationships based on historical user behavior; Multiple user nodes are determined based on the user set, multiple item nodes are determined based on the item set, and the edges between the corresponding user nodes and item nodes are determined based on the user-item interaction relationship to obtain the user-item graph; Based on the user-item interaction relationship, determine the number of interactions, interaction frequency, recent interaction time, and interaction behavior type of the corresponding edge to obtain edge features, and calculate the edge weight of the corresponding edge based on the edge features. The weighted activity of the corresponding user node / item node is determined based on the user-item interaction relationship. The weighted activity of all user nodes / item nodes is normalized to obtain the node popularity of each user node / item node.
3. The graph-structured recommendation method based on adaptive pulse-gated propagation according to claim 1, characterized in that, The step of encoding the recommended triggering event into an initial pulse signal, and determining the initial pulse strength and initial propagation budget of the initial pulse signal based on the triggering type and behavior frequency, specifically includes: The recommended trigger event is parsed to obtain the current user node, initial propagation source, trigger type, and trigger occurrence time; The frequency of actions within a preset time window is counted based on the trigger occurrence time, and the initial pulse intensity is determined based on the trigger type and the frequency of actions. The corresponding base budget is determined based on the trigger type, and the initial propagation budget is determined based on the initial pulse intensity and the base budget. The initial pulse signal is generated from the current user node pointing to the initial propagation source based on the initial pulse intensity and the initial propagation budget.
4. The graph-structured recommendation method based on adaptive pulse-gated propagation according to claim 1, characterized in that, The process of inputting the initial pulse signal into the user-item graph for local propagation, and controlling the propagation range of the initial pulse signal according to the edge weight, node heat, initial pulse intensity, and initial propagation budget to obtain a local activation subgraph, specifically includes: The initial pulse signal is added to the event queue as a propagation event to be processed. The current set of propagation events to be processed is obtained in batches from the event queue, and the input cumulative signals of multiple target nodes in the user-item graph are determined based on the current set of propagation events to be processed. The membrane potential state of each target node is updated according to the input accumulated signal, and it is determined whether each target node meets the preset activation threshold condition. When the target node meets the activation threshold condition, the pulse gating condition is used to determine whether to continue propagating to neighboring nodes based on the current edge weight, current node heat, remaining pulse intensity and remaining propagation budget of the target node. When it is determined that the propagation should continue to neighboring nodes, a propagation event to be processed in the next propagation step is generated and added to the event queue; When the event queue is empty, the initial propagation budget is exhausted, or the preset maximum propagation steps are reached, propagation stops, and the local activation subgraph is generated based on the nodes and edges participating in the propagation in the user-item graph. The propagation events to be processed in the next propagation step include the remaining pulse intensity and remaining propagation budget corresponding to the neighboring node. The remaining pulse intensity corresponding to the neighboring node is obtained by attenuating the remaining pulse intensity corresponding to the target node, and the remaining propagation budget corresponding to the neighboring node is obtained by attenuating the remaining propagation budget corresponding to the target node.
5. The graph-structured recommendation method based on adaptive pulse-gated propagation according to claim 4, characterized in that, The step of updating the membrane potential state of each target node based on the input accumulated signal and determining whether each target node meets the preset activation threshold condition specifically includes: The current membrane potential state of the target node is obtained, and the current membrane potential state is attenuated according to a preset attenuation coefficient and then superimposed with the input accumulated signal to obtain the updated membrane potential state. Obtain the node activation threshold of the target node; When the updated membrane potential state is greater than or equal to the node activation threshold, the target node is determined to meet the activation threshold condition. If the updated membrane potential state is less than the node activation threshold, the target node is determined not to meet the activation threshold condition.
6. The graph-structured recommendation method based on adaptive pulse-gated propagation according to claim 4, characterized in that, The step of determining whether to continue propagating to neighboring nodes based on the current edge weight, current node popularity, remaining pulse intensity, and remaining propagation budget corresponding to the target node, using pulse gating conditions, specifically includes: The edge cost between the target node and its neighboring nodes is determined based on the current edge weight and current node popularity. When the remaining pulse intensity corresponding to the target node is greater than the preset minimum effective pulse intensity, and the remaining propagation budget corresponding to the target node is greater than the edge cost, it is determined to continue propagating to the neighboring nodes, and the remaining propagation budget corresponding to the neighboring nodes is determined based on the difference between the remaining propagation budget corresponding to the target node and the edge cost. If the remaining pulse intensity corresponding to the target node is less than or equal to the preset minimum effective pulse intensity, or if the remaining propagation budget corresponding to the target node is less than or equal to the edge cost, it is determined to stop propagating to neighboring nodes.
7. A graph-structured recommendation method based on adaptive pulse-gated propagation according to any one of claims 1 to 6, characterized in that, The step of generating target recommendation results based on candidate item nodes in the local activation subgraph specifically includes: The item nodes participating in the propagation in the local activation subgraph are selected as candidate item nodes, and the activation state, remaining pulse intensity, path length and remaining propagation budget of each candidate item node for each propagation are determined. The recommended score for each candidate item node is calculated based on the activation state, remaining pulse intensity, path length, and remaining propagation budget for each propagation. Based on the recommended score, several target item nodes are selected from the candidate item nodes, and the target recommendation result is generated based on the target item nodes.
8. A graph-structured recommendation device based on adaptive pulse-gated propagation, characterized in that, include: The user-item graph construction module is used to construct a user-item graph based on historical user behavior and determine the edge weights and node popularity of the user-item graph. A pulse signal generation module is used to encode a recommended triggering event into an initial pulse signal when a recommended triggering event is received, and to determine the initial pulse intensity and initial propagation budget of the initial pulse signal according to the triggering type and behavior frequency. The local propagation module is used to input the initial pulse signal into the user-item graph for local propagation, and control the propagation range of the initial pulse signal according to the edge weight, the node heat, the initial pulse intensity and the initial propagation budget to obtain a local activation subgraph; The recommendation result generation module is used to generate target recommendation results based on the candidate item nodes in the local activation subgraph.
9. An electronic device, characterized in that, The electronic device includes a memory, a processor, a computer program stored in the memory and executable on the processor, and a data bus for enabling communication between the processor and the memory. When the computer program is executed by the processor, it implements the graph-structured recommendation method based on adaptive pulse-gated propagation as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the graph-structured recommendation method based on adaptive pulse-gated propagation as described in any one of claims 1 to 7.
