Graph network constraint solving method based on decoupled architecture

By using a decoupled architecture for graph network constraint solving, the problems of transfer generalization and computational efficiency of graph neural networks under topological changes are solved, enabling real-time deployment and efficient solving in hardware chips.

CN123178745APending Publication Date: 2026-11-27CHINA JILIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611184755.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing graph neural network models require redesign and retraining when the graph topology changes. They lack topology transfer generalization ability, have low computational efficiency, are prone to phantom solutions and local deadlocks, have high computational complexity, and are difficult to implement in real time on hardware chips.

Method used

A graph network constraint solution method with a decoupled architecture is proposed. By determining the node characteristic states and adjacency topological relationships of the graph vertex object nodes, algebraic aggregation and nonlinear mapping are performed using differentiable mathematical constraint formulas to achieve iterative processing of object nodes. Furthermore, cascaded supervised loss is used to prevent illusory solutions and deadlocks, and the method supports topological changes without retraining.

Benefits of technology

It improves the transfer and generalization ability of graph neural networks when the topology changes, reduces training costs and time, improves computational efficiency, avoids phantom solutions and deadlocks, and supports real-time deployment in hardware chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178745A_ABST
    Figure CN123178745A_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of graph network, and in particular, to a graph network constraint solving method based on a decoupling architecture. The graph network constraint solving method based on the decoupling architecture comprises: determining a node feature state of a graph vertex object node, a differentiable mathematical constraint formula of a graph vertex check node, and an adjacency topological relationship corresponding to an edge between the object node and the check node; determining an adjacent object node of a target check node according to the adjacency topological relationship, performing algebraic aggregation on a node feature state of the adjacent object node based on a differentiable mathematical constraint formula of the target check node, and distributing the node feature state to the adjacent object node; performing nonlinear state mapping and demapping on the node feature state of the adjacent object node from a low-dimensional feature to a high-dimensional feature, and iteratively updating the node feature state of the adjacent object node in combination with a result of the distribution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of graph network technology, and in particular to a method for solving graph network constraints based on a decoupled architecture. Background Technology

[0002] In the research and application of Graph Neural Networks (GNNs), when using graph computation to solve constraint satisfaction problems (CSPs) that approximate complex mathematical rules or physical laws (such as channel decoding, SAT proposition satisfiability solving, large-scale graph coloring, etc.), the relevant techniques usually adopt traditional algebraic / numerical solution algorithms, as well as data-driven neural graph network solution schemes.

[0003] In these related techniques, the physical topology of a graph is typically deeply bound to its internal learnable weight parameters. Once the verification matrix (e.g., the graph's topology, including code length, code rate, or degree distribution) changes, the entire graph network architecture must be redesigned and retrained end-to-end. Therefore, the GNN models in these techniques lack the ability to generalize across different topologies. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a graph network constraint solving method based on a decoupled architecture, which can solve the above problems.

[0005] According to a first aspect of the present disclosure, a graph network constraint solving method based on a decoupled architecture is provided. The method includes: determining the node feature states of graph vertex object nodes, the differentiable mathematical constraint formulas of graph vertex verification nodes, and the adjacency topology relationships corresponding to the edges between the object nodes and the verification nodes; determining the adjacent object nodes of the target verification node according to the adjacency topology relationships; performing algebraic aggregation on the node feature states of the adjacent object nodes based on the differentiable mathematical constraint formulas of the target verification nodes, and distributing them to the adjacent object nodes; performing nonlinear state mapping and demapping on the node feature states of the adjacent object nodes from low-dimensional features to high-dimensional features, and iterating on the node feature states of the adjacent object nodes in combination with the distribution results.

[0006] According to a second aspect of the present disclosure, a training method for solving constraints in a graph network is provided. The method is used to train a graph network constraint solving method based on a decoupled architecture as described in the first aspect. The method includes: setting supervised loss points at multiple depths during the forward propagation of the graph network; calculating model classification loss and mathematical formula / equation rule violation loss at each supervised loss point; performing a weighted summation of the model classification loss and the mathematical formula / equation rule violation loss to determine a cascaded supervised loss at the depth corresponding to the supervised loss point; determining the overall gradient based on the sum of the cascaded supervised losses at all supervised loss points; and updating the nonlinear state mapping and learning parameters.

[0007] According to a third aspect of the present disclosure, a graph network constraint solving apparatus based on a decoupled architecture is provided. The apparatus includes: an object representation unit configured to determine the node feature states of object nodes at graph vertices, and to perform nonlinear mapping and demapping of the object nodes to high-dimensional features; a graph topology representation unit configured to determine the adjacency topology relationship between the object nodes and the verification nodes of the graph vertices; a rule verification unit configured with differentiable mathematical constraint formulas corresponding to the low-dimensional features of the object nodes, and configured to determine the adjacent object nodes of the target verification node according to the adjacency topology relationship, and to perform algebraic aggregation of the node feature states of the adjacent object nodes based on the differentiable mathematical constraint formulas of the target verification nodes, and distribute them to the adjacent object nodes; and a meta-control engine unit configured to resolve conflicts and dampen the feature states of the object nodes, and to iterate the node feature states of the object nodes in combination with the results of the algebraic aggregation and distribution.

[0008] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor and a memory; the memory being used to store a computer program; and the processor being used to execute the method described in the first and second aspects by invoking the computer program.

[0009] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described in the first and second aspects.

[0010] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: This disclosure can determine the node characteristic state of the graph vertex object node, the differentiable mathematical constraint formula of the graph vertex verification node, and the adjacency topology relationship corresponding to the edge between the object node and the verification node; and determine the object node related to the verification node based on the adjacency topology relationship, and then perform algebraic aggregation and distribution on the related object node based on the differentiable mathematical constraint formula, and realize the iteration of the object node through nonlinear state mapping and demapping.

[0011] In the method disclosed herein, the differentiable mathematical constraint formula and the adjacency topology are not coupled and need to be confirmed and stored separately. Nonlinear state mapping and demapping can be used to transform the feature states of object nodes between low and high dimensions. Based on the decoupled differentiable mathematical constraint formula and adjacency topology, algebraic aggregation and distribution are performed in the low-dimensional state, and then iterative processing is performed in the high-dimensional state based on the distribution results. This further decouples the learnable weight parameters (nonlinear mapping and demapping from low to high dimensions) within the object node from the learnable weights of the graph network formed by the adjacency topology. This allows the GNN model of this disclosure to have good transfer and generalization capabilities even when the verification node changes and / or the adjacency topology changes, without requiring end-to-end retraining, thus saving training costs and time.

[0012] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0013] The accompanying drawings, which are incorporated in and form part of this disclosure, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0014] Figure 1 This is a schematic flowchart illustrating a graph network constraint solving method based on a decoupled architecture according to an exemplary embodiment of the present disclosure.

[0015] Figure 2 This disclosure is a schematic diagram of the bipartite factor of a graph network node according to an exemplary embodiment.

[0016] Figure 3 This is a schematic flowchart illustrating a training method for solving graph network constraints according to an exemplary embodiment of the present disclosure.

[0017] Figure 4 This disclosure is a block diagram illustrating a graph network constraint solving apparatus based on a decoupled architecture according to an exemplary embodiment.

[0018] Figure 5 This is a schematic diagram of the structure of a computer device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0019] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0020] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0021] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0022] The related technologies have at least the following drawbacks: 1. Deep Coupling of Graph Topology and Learning Parameters: GNN models in related technologies deeply bind the connection topology of the graph to the learnable weight parameters within the network. When the code length, code rate, degree, or constraint formula of the graph changes, the entire neural network structure must be redesigned and completely retrained. This limits the model's topology transfer generalization ability, making it impossible to reuse the same set of neural network hardware registers in actual chip deployments.

[0023] 2. Runtime state mounting and parallel limitations: In GNNs of related technologies, node feature updates are usually mounted with runtime state variables during the propagation of time dimension, which makes it impossible for the computing engine to perform static graph structure optimization (such as static graph compilation) during the compilation stage, which greatly limits the throughput of parallel computing.

[0024] 3. Oversmoothing of features and illegal algebraic or physical "illusions": As the depth of the hidden layer iterations increases, the node states lose their distinguishability after mixing a wide range of messages (oversmoothing), and the stability of backpropagation of long-distance gradients deteriorates. At the same time, due to the lack of explicit constraints on algebraic or physical laws, the model is very prone to giving "illusion solutions" that violate the basic physical constraints of the system when outputting probability decisions (e.g., generating erroneous bit polarities that do not satisfy the check equations).

[0025] 4. Local Deadlock and Complexity Explosion in Discrete Domains: When the solution process gets stuck in a local deadlock trap (e.g., trap sets), traditional continuous domain gradient descent cannot bring it to converge. Furthermore, solution schemes (such as the OSD algorithm (Ordered Statistics Decoding)) heavily rely on hard reconstruction of the entire graph or Gaussian elimination of high-dimensional matrices. The computation process is highly serial and difficult to parallelize, and the candidate exhaustive search range explodes exponentially, making ultra-low latency deployment impossible in real-time hardware chips.

[0026] 5. Limitations on object window length and high computational complexity: Related technologies often employ absolute positional encoding in their models, which limits the model's window length and makes it difficult to handle long-distance dependencies. Furthermore, as the number of nodes increases, the network's computational complexity quadratically increases with the number of nodes N. The growth makes training and reasoning with large graphs extremely difficult.

[0027] To address the aforementioned technical issues, this disclosure proposes a graph network constraint solving method based on a decoupled architecture.

[0028] Figure 1 This is a schematic flowchart illustrating a graph network constraint solving method based on a decoupled architecture, according to an embodiment of the present disclosure. This method is applied to graph neural networks.

[0029] like Figure 1 As shown, the graph network constraint solving method based on decoupled architecture includes: In step S101, the node characteristic state of the graph vertex object node, the differentiable mathematical constraint formula of the graph vertex verification node, and the adjacency topology relationship between the object node and the verification node are determined. In step S102, the neighboring object nodes of the target verification node are determined according to the adjacency topology relationship. Based on the differentiable mathematical constraint formula of the target verification node, the node feature states of the neighboring object nodes are algebraically aggregated and distributed to the neighboring object nodes. In step S103, nonlinear state mapping and demapping are performed on the node feature states of adjacent object nodes from low-dimensional features to high-dimensional features, and the node feature states of the adjacent object nodes are iterated in combination with the distribution result.

[0030] In some embodiments, node feature states of graph vertex object nodes, a differentiable mathematical constraint formula for graph vertex check nodes, and an adjacent topological relationship corresponding to an edge between the object node and the check node are determined.

[0031] The object node feature states are various attributes of the object that need to be used in the graph network, and may include, for example, mass, position, speed, acceleration, direction, volume, hardness, and the like. Some feature states of the object node can be measured and determined by means of sensors, pre-setting, etc. (for example, position and speed are measured by sensors, and mass, volume, and hardness are pre-set), and feature states to be solved (for example, required acceleration and direction, etc.) are obtained through network iterative calculation.

[0032] The check node includes a differentiable mathematical constraint formula for checking, and one check node may have an edge connection relationship with at least one object node. The differentiable mathematical constraint formula included in the check node is a check rule for some or all feature states of the object node having an edge connection relationship with the check node.

[0033] It should be noted that the differentiable mathematical constraint formula may be a mathematical formula preset for the check node, and is a check rule that definitely exists and is given. For example, for an autonomous driving scenario, the differentiable mathematical constraint formula may be a kinematic formula related to collision prediction; for an astronomical body position prediction scenario, the differentiable mathematical constraint formula may be a formula related to mechanics or kinematics.

[0034] The given adjacent topological relationship is used to determine an edge between the object node and the check node.

[0035] Figure 2 is a schematic diagram of a bipartite factor of a graph network node according to an embodiment of the present disclosure.

[0036] Figure 2 illustrates a bipartite factor graph of a graph network.

[0037] In Figure 2 the left side is object nodes, including: VN_ego vehicle, VN_vehicle A, VN_vehicle B, VN_person A, and VN_obstacle A. The object nodes are variable nodes, where: VN_ego vehicle, VN_vehicle A, and VN_vehicle B are isomorphic variable nodes, whose unknown attributes are required acceleration and direction; VN_person A is a heterogeneous variable node, whose unknown attributes are required acceleration and direction; VN_Obstacle A is a heterogeneous variable node, and its unknown attribute is the obstacle type.

[0038] In this embodiment, some characteristic states of variable nodes can be measured by sensors, which contains measurement errors; unknown attributes are decisions or predictions that need to be obtained through iterative calculation by the network model (such as the acceleration and direction required by the vehicle).

[0039] exist Figure 2 The right side contains the verification nodes, including CN_collision, CN rigid body dynamics, and CN low-mass aerodynamics. These verification nodes all contain pre-defined differentiable mathematical constraints, but have no weights or learnable parameters. Therefore, the verification nodes do not require iterative learning, and no additional end-to-end training is needed after the verification nodes are changed or replaced.

[0040] The connection between a verification node and an object node is an edge, and each edge corresponds to an adjacency topology. Based on the given adjacency topology, the edges between object nodes and verification nodes can be determined, thus determining which verification node can be used to perform rule verification on its corresponding adjacent object nodes. For example, in... Figure 2 In the diagram, the adjacent nodes of CN_collision (this vehicle, vehicle A) are VN_this vehicle and VN_vehicle A; the adjacent nodes of CN_collision (this vehicle, vehicle B) are VN_this vehicle and VN_vehicle B.

[0041] Once the object nodes, verification nodes, and adjacency topology are determined, the basic architecture of the GNN model can be determined.

[0042] In some embodiments, the neighboring object nodes of the target verification node are determined according to the adjacency topology relationship, the node feature states of the neighboring object nodes are algebraically aggregated based on the differentiable mathematical constraint formula of the target verification node, and distributed to the neighboring object nodes.

[0043] The target verification node can be some of the verification nodes among multiple verification nodes, or it can be all of the verification nodes.

[0044] For example, with Figure 2 For example, based on the differences in the enabled intelligent driving functions, Intelligent Driving Mode 1 may only need to verify collisions between the vehicle and other vehicles, thus the target verification nodes are CN_collision(this vehicle, vehicle A) and CN_collision(this vehicle, vehicle B); while Intelligent Driving Mode 2 may need to verify all collision types, so the target verification node is... Figure 2 All verification nodes in the process.

[0045] After determining the target verification node, the adjacent object nodes that have edge connections with the target verification node can be determined based on the adjacency topology, and the node characteristic states of the adjacent object nodes can be obtained.

[0046] Algebraic aggregation of the node feature states of adjacent nodes can be performed based on the differentiable mathematical constraint formula of the target verification node. Specifically, this can be achieved by substituting the low-dimensional features of adjacent nodes into the differentiable mathematical constraint formula for calculation.

[0047] After algebraic aggregation, the unbiased outward information of each adjacent node can be determined and distributed to each adjacent node. Any outward information consists of information about all other adjacent nodes besides the corresponding adjacent node. For example, if there are four adjacent nodes, the outward information for each adjacent node consists of information about the other three adjacent nodes.

[0048] In some embodiments, external information can be determined by an external information transfer formula.

[0049] Information about an object node's own nodes can be excluded based on the unbiased external information transfer formula. The external information transfer formula can be:

[0050] Where Agg is a differentiable aggregation operator. This represents the set of adjacent nodes of the verification node c. This represents the intrinsic characteristic rule of any adjacent node i, where any adjacent node i belongs to the set of adjacent nodes. .

[0051] In some embodiments, the node feature states of the adjacent object nodes are nonlinearly mapped and demapped from low-dimensional features to high-dimensional features, and the node feature states of the adjacent object nodes are iterated in combination with the distribution results.

[0052] Low-dimensional features can be algebraically aggregated and distributed, while high-dimensional features can be spliced ​​and iterated.

[0053] After completing algebraic aggregation and distribution, the node feature states need to be iterated based on the external information of the distribution. For example, the verification node performs algebraic aggregation of the low-dimensional feature states of adjacent object nodes using differentiable mathematical constraint formulas and distributes them to adjacent object nodes; the meta-control engine unit resolves conflicts and dampens the low-dimensional feature states of object nodes and the distributed messages to obtain low-dimensional feature increment information; the low-dimensional feature increment information is mapped to high-dimensional feature increment information through nonlinear state mapping; the high-dimensional feature increment information is used to update the high-dimensional feature states of the previous round; and then the high-dimensional feature solution is mapped back to low dimension for use in the next round of algebraic aggregation and distribution.

[0054] For example, after algebraic aggregation and distribution, the external information corresponding to object node 1 is determined. The node features of object node 1 are transformed into high-dimensional features through nonlinear state mapping. The high-dimensional features are then combined with the external information to iteratively update the node feature state. The iterated node feature state is then transformed from high-dimensional features to low-dimensional features through demapping. The low-dimensional features are used for the next round of iteration.

[0055] It should be noted that the decoupling architecture disclosed herein includes a first decoupling and a second decoupling; the first decoupling is the decoupling of the feature representation of the object node from the rule representation of the verification node and the adjacent topological edges; the second decoupling is the decoupling of the domain-specific nonlinear mapping and demapping of the object node from the domain-general control logic and learning parameters of the meta-control engine.

[0056] The meta-control engine is used to resolve conflicts and dampen nonlinear state mapping of the node characteristic states of adjacent object nodes, and to iterate the node characteristic states of adjacent object nodes by combining external information from algebraic aggregation and distribution.

[0057] The learning parameters of the meta-control engine include at least one of the following: relaxation energy scaling factor, dynamic damping factor, feature fusion gating weights, flip-scoring diagnostic network weights, and cascaded supervision loss weighting factor.

[0058] This disclosure decouples the object node, the check node, and the adjacency topology, so that the learnable parameters trained by the graph network model do not depend on the adjacency topology and / or the check node. This allows users to change or update the differentiable mathematical formula of the check node or change or update the adjacency topology as needed, without having to retrain end-to-end after the change. This enables the trained graph network model to have transfer and generalization capabilities across various topologies.

[0059] In some embodiments, nonlinear state mapping can be performed using a learnable neural network weight matrix.

[0060] Learnable neural network weight matrices (such as MLP (Multi-Layer Perceptron)) can be used to perform non-linear state mapping on the node feature states of object nodes without involving the topological connections of the graph network, thereby mathematically decoupling the object nodes from the graph structure (adjacency topology).

[0061] In some embodiments, the verification node can be implemented using a stateless rule engine.

[0062] The stateless rule engine is used to perform algebraic aggregation and distribution of the node characteristic states of adjacent object nodes based on the differentiable mathematical constraint formula of the verification node and the adjacency topology relationship.

[0063] The verification node contains a preset differentiable mathematical constraint formula. Based on the preset differentiable mathematical constraint formula, the verification rules in the verification node are clear and explicit.

[0064] Since the verification nodes do not contain learnable parameters, after the verification nodes are replaced, it is not necessary to retrain the graph network to adapt to the new verification nodes. Instead, the original graph network can be transferred after the verification nodes are replaced.

[0065] Because stateless rule engines can be abstracted as parameterless differentiable operators, graph network systems support permutable rule interfaces. This ensures that even when the graph topology (adjacency relationships) or differentiable mathematical formulas are changed, the nonlinear state mapping for object nodes remains unchanged; only the differentiable mathematical constraint formulas in the verification nodes are replaced, thus enabling graph network migration. Stateless rule engines can support sparse bipartite graphs and globally dense fully connected graphs based on autonomous attention mechanisms.

[0066] On the other hand, since the node feature state and non-linear state mapping engine of the object node only performs node-by-node mapping on the node feature state and does not rely on global absolute position encoding; while the verification node, adjacency topology relationship and stateless rule engine perform message passing through the adjacency topology relationship of the graph network, the graph network is not limited by fixed sequence or window length (e.g. fixed context window) and can be extrapolated and generalized to graph structures of arbitrary size.

[0067] Furthermore, in sparse graph structures (such as channel decoding graphs), the stateless rule engine can perform differentiable message passing only between adjacent nodes with adjacency topological relationships, making the computational complexity of each iteration O(E), effectively avoiding the computational complexity of global self-attention mechanisms. The issue of growth is addressed by reducing the system's computational complexity and removing the window length constraint. Here, E represents the number of edges, which is linearly related to the number of nodes N in a sparse graph. In some embodiments, the method further includes: during the iteration process, demapping from high-dimensional features to low-dimensional features to determine the low-dimensional features of the adjacent object nodes, and calculating the residual and first-order analytical gradient relative to the differentiable mathematical constraint formula; applying polarity limiting to the first-order analytical gradient, and generating constraint relaxation features based on the first-order analytical gradient and the residual; performing constraint relaxation and damping processing on the constraint relaxation features and the node feature states of the adjacent object nodes before the iteration, and then concatenating them; wherein, the high-dimensional nonlinear mapping of the concatenated low-dimensional features is used for the next iteration.

[0068] In a complete iteration process, high-dimensional features need to be transformed into low-dimensional features through demapping, because only low-dimensional features can be used for algebraic aggregation and distribution.

[0069] After determining the low-dimensional features, the residuals and first-order analytical gradients can be calculated based on the differentiable mathematical constraint formula of the verification nodes. The first-order analytical gradients are then polar-limited, and constraint relaxation features are generated based on the first-order analytical gradients and residuals. These constraint relaxation features are used to constrain the node feature states of adjacent object nodes, thus enabling the iteration of the node feature states of adjacent object nodes.

[0070] The constraint relaxation features and the node feature states before the iteration can be subjected to constraint relaxation and damping processing, and then concatenated. The concatenated low-dimensional features need to be transformed into high-dimensional features through nonlinear mapping, and the high-dimensional features are then used for the next iteration.

[0071] The following specific example will further illustrate this embodiment.

[0072] The graph network disclosed herein can introduce analytical gradient traction during forward propagation, thereby solving the problem of overly smooth features.

[0073] In each hidden layer of the forward propagation, the partial derivatives (first-order analytic gradient Grad) of the node feature states of adjacent nodes with respect to the differentiable mathematical constraint formula can be calculated. The amplitude of this first-order analytic gradient Grad is limited using a nonlinear activation function to maintain its polarity, and the edge relaxation energy can then be calculated. and node-level relaxation energy :

[0074]

[0075] Where topo_conflict represents the normalized topology conflict value. and This is the scaling factor. Indicates a border-level message. Represents the edge gradient. Indicates the node status. This represents the gradient of a node.

[0076] Edge-level relaxation energy is used to measure whether any edge corresponding to an adjacency topology has a problem under the differentiable mathematical constraint formula corresponding to the verification node; node-level relaxation energy is used to measure whether an object node has a problem, specifically whether the object node has a problem under the differentiable mathematical constraint formula of any verification node determined based on the adjacency topology.

[0077] The calculated gradient or conflict relaxation energy is used as part of the hidden layer propagation state of the node, and concatenated with the original feature state to force the traction graph neural network state to evolve along a convergent manifold that satisfies the constraints. This relaxation mechanism performs soft pruning on strong conflict messages and heavily biased edges, delaying hard decisions, thereby effectively blocking the "whispering wall effect" of conflict oscillations.

[0078] In some embodiments, the method further includes: incorporating multi-level cascaded supervision during backpropagation.

[0079] Multi-level cascaded supervision based on verification nodes can prevent algebraic illusions and avoid illusory solutions.

[0080] For example, cascaded supervised loss points can be set at multiple different iteration depths (e.g., layer 4, layer 8, layer 12, etc.) during the forward propagation of the graph network. At each cascaded supervised loss point, the model classification loss and the rule violation loss of the mathematical formula equation (e.g., the penalty term for check node conflict) can be mixed and weighted to calculate the overall gradient to update the network parameters, eliminating the illusory solutions that do not conform to the rules generated by the self-fitting of the graph neural network.

[0081] The total loss function is:

[0082] in, For the model classification loss, Losses due to violations of mathematical formulas, equations, and rules. and These are the corresponding weighting coefficients.

[0083] Based on this total loss function, the model classification loss and the rule violation loss of the mathematical formula equation jointly determine the update direction of the graph network parameters.

[0084] In some embodiments, during the iteration process, the method further includes: sorting the object nodes according to their confidence features, determining a first number of stable object nodes to construct a reliable basis, and generating a binary mask; performing a Hadamard product based on the determined flip score and the binary mask; performing quadratic extremum extraction based on the Hadamard product and the node feature state, and determining a second number of deadlock source nodes among the object nodes based on the extracted quadratic extremum.

[0085] In related technologies, the process of solving graph networks may fall into a local deadlock trap, causing gradient descent to fail to converge.

[0086] This embodiment can perform quantum tunneling constraint relaxation to determine deadlock and then resolve deadlock.

[0087] This embodiment sorts object nodes in descending order based on their confidence characteristics, selects the top number (e.g., K) of stable object nodes to construct the most reliable basis space, and generates a binary mask (nodes within the MRB are set to 1.0, and the rest to zero). The Hadamard product is then performed between the flip score S output by the conflict diagnosis network and the mask.

[0088] After filtering secondary echo conflicts, quadratic extrema can be extracted based on the Hadamard product and the high-dimensional node feature states (such as continuous domain analytic gradient, algebraic conflict energy, hard / soft gains from node flipping, etc.) to accurately classify and select the second number (e.g., D) of the most promising core deadlock source nodes.

[0089] In some embodiments, the method further includes: determining a candidate flip pattern for the deadlock source node; applying the candidate flip pattern to the low-dimensional feature vector of the non-converged frame that does not satisfy the differentiability mathematical constraint formula of the verification node, and mapping it to the hidden layer high-dimensional feature vector; and expanding the hidden layer high-dimensional feature vector after applying the candidate flip pattern into a parallel micro-batch tensor.

[0090] Micro-batch expansion can be achieved through quantum tunneling in hidden space.

[0091] It can generate all flip candidate patterns for a second number (e.g., D) of the core deadlock source nodes, and the number of flip candidate patterns can reach [number missing]. The method involves copying and flipping the candidate pattern an equal number of times from the hidden feature vectors of the current non-converged frame of the graph network, and applying a flipped candidate pattern to each hidden high-dimensional feature vector. The feature vectors are concatenated along the Batch dimension and expanded into parallel micro-batch tensors. The second batch size is greater than or equal to 2 and less than or equal to 5.

[0092] In some embodiments, the method further includes: performing concurrent evolution on the micro-batch tensor; triggering early stopping if a channel successfully converges; determining the likelihood correlation between the micro-batch tensors corresponding to multiple flipped candidate patterns and the original feature vectors of the non-converged frames if multiple successfully converged micro-batch tensors have converged, and selecting the micro-batch tensor with the highest likelihood correlation; and reverting to a candidate state if the concurrent evolution fails to converge, wherein the candidate state is the node feature state with the highest likelihood correlation or the lowest residual.

[0093] The maximum number of iterations can be set. Micro-batch tensors are fed into the subsequent iterative graph network for concurrent evolution. Because... Each candidate shares the same hardware network weights, which manifests as a single parallel tensor multiplication at the underlying computation level, avoiding the incremental latency of serial elimination.

[0094] At the end of each iteration, the hardware verification unit performs constraint checks in parallel: If a channel successfully converges, an early stop is triggered.

[0095] If multiple candidates successfully converge, calculate the maximum likelihood correlation of each candidate with respect to the original initial input value:

[0096] in, The initial value is the log-likelihood ratio of the original input; This represents the hard decision output of the m-th convergent candidate.

[0097] Select the candidate state that is closest in distance (with the highest likelihood correlation) and output it.

[0098] If the maximum number of iterations is reached and convergence has not yet occurred, the process regresses to the candidate state with the fewest constraint violations (maximum likelihood correlation or minimum residual).

[0099] Based on this embodiment, when a deadlock occurs in a graph network, the deadlock can be located, the object node causing the deadlock can be identified, and then deadlock resolution can be transformed into micro-batch dimension expansion in the latent space through micro-batch expansion, evolution, decision-making, and rollback. On GPU or ASIC digital chips, this expansion corresponds to only a single high-throughput parallel tensor multiplication at the underlying level, eliminating the need for serial elimination. This achieves local deadlock penetration without increasing time latency, thereby improving system throughput.

[0100] In some embodiments, the low-dimensional features include at least one of the following: node flip count, edge conflict fusion strength, normalized topological conflict, continuous domain analytic gradient, gradient self-update trend feature, node algebraic conflict energy, node flip hard reward, and node flip soft reward; wherein the polarity of the flip includes binary XOR flip or multi-state transition; the high-dimensional features are high-dimensional mapping expressions of the low-dimensional features.

[0101] Figure 3 This is a schematic flowchart illustrating a training method for graph network constraint solving according to an embodiment of the present disclosure. The method is used to train a graph network using a decoupled architecture-based graph network constraint solving method as described in any of the foregoing embodiments.

[0102] like Figure 3 As shown, the training methods for solving graph network constraints include: In step S301, supervised loss points are set at multiple depth layers during the forward propagation of the graph network. In step S302, the model classification loss and the rule violation loss of the mathematical formula equation are calculated at the supervised loss points respectively; In step S303, the model classification loss and the rule violation loss of the mathematical formula equation are weighted and summed to determine the cascaded supervision loss at the depth corresponding to the supervision loss point; In step S304, the overall gradient is determined based on the sum of the cascaded supervised losses at all supervised loss points, and the nonlinear state mapping and learning parameters are updated.

[0103] The specific implementation process of the functions and roles of each step in the above method can be found in the implementation process of the corresponding steps in the graph network constraint solving method based on decoupled architecture, and will not be repeated here.

[0104] Corresponding to the embodiments of the graph network constraint solving method based on decoupled architecture disclosed herein, this disclosure also provides embodiments of a corresponding graph network constraint solving apparatus based on decoupled architecture.

[0105] Please see Figure 4 , Figure 4 This is a block diagram of a graph network constraint solving device based on a decoupled architecture in one embodiment of this disclosure. Figure 4 As shown, the graph network constraint solving device based on a decoupled architecture includes: The object representation unit 410 is configured to determine the node feature state of the object node of the graph vertex, and to perform nonlinear mapping and demapping of the object node to high-dimensional features. The graph topology representation unit 420 is configured to determine the adjacency topology relationship between the object node and the verification node of the graph vertex; The rule verification unit 430 is configured with a differentiable mathematical constraint formula corresponding to the low-dimensional features of the object node, and is configured to determine the neighboring object nodes of the target verification node according to the adjacency topology relationship, and perform algebraic aggregation on the node feature state of the neighboring object node based on the differentiable mathematical constraint formula of the target verification node, and distribute it to the neighboring object node. The meta-control engine unit 440 is configured to resolve conflicts and dampen the feature states of the object nodes, and to iterate the node feature states of the object nodes in combination with the results of the algebraic aggregation and distribution.

[0106] In some embodiments, the learning parameters of the meta-control engine unit include at least one of the following: relaxation energy scaling factor, dynamic damping factor, feature fusion gating weights, flip-scoring diagnostic network weights, and cascaded supervision loss weighting factor.

[0107] In some embodiments, the apparatus is further configured to: during the iteration process, demap from high-dimensional features to low-dimensional features to determine the low-dimensional features of the adjacent object nodes, and calculate the residual and first-order analytical gradient relative to the differentiable mathematical constraint formula; apply polarity limiting to the first-order analytical gradient, and generate constraint relaxation features based on the first-order analytical gradient and the residual; perform constraint relaxation and damping processing on the constraint relaxation features and the node feature states of the adjacent object nodes before the iteration, and then concatenate them; wherein the high-dimensional nonlinear mapping of the concatenated low-dimensional features is used for the next iteration.

[0108] In some embodiments, during the iteration process, the apparatus is further configured to: sort the object nodes according to their confidence features, determine a first number of stable object nodes to construct a reliable basis, and generate a binary mask; perform a Hadamard product based on the determined flip score and the binary mask; perform quadratic extremum extraction based on the Hadamard product and the node feature state, and determine a second number of deadlock source nodes among the object nodes based on the extracted quadratic extremum.

[0109] In some embodiments, the apparatus is further configured to: determine a flip candidate pattern for the deadlock source node; apply the flip candidate pattern to the low-dimensional feature vector of the non-converged frame that does not satisfy the differentiability mathematical constraint formula of the check node, and map it onto the hidden layer high-dimensional feature vector; and expand the hidden layer high-dimensional feature vector after applying the flip candidate pattern into a parallel micro-batch tensor.

[0110] In some embodiments, the apparatus is further configured to: perform concurrent evolution on the micro-batch tensor; trigger early stop if a channel successfully converges; if multiple micro-batch tensors corresponding to the flipped candidate patterns successfully converge, determine the likelihood correlation between the multiple successfully converged micro-batch tensors and the original feature vectors of the non-converged frames, and select the micro-batch tensor with the highest likelihood correlation; and if the concurrent evolution fails to converge, fall back to a candidate state, where the candidate state is the node feature state with the highest likelihood correlation or the lowest residual.

[0111] In some embodiments, the low-dimensional features include at least one of the following: node flip count, edge conflict fusion strength, normalized topological conflict, continuous domain analytic gradient, gradient self-update trend feature, node algebraic conflict energy, node flip hard reward, and node flip soft reward; wherein the polarity of the flip includes binary XOR flip or multi-state transition; the high-dimensional features are high-dimensional mapping expressions of the low-dimensional features.

[0112] The specific implementation process of the functions and roles of each unit in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0113] Embodiments of this disclosure also propose an electronic device, including: a processor and a memory; the memory for storing a computer program; and the processor for executing a graph network constraint solving method based on a decoupled architecture as described in any of the above embodiments by invoking the computer program.

[0114] Embodiments of this disclosure also propose a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the graph network constraint solving method based on decoupled architecture as described in any of the foregoing embodiments.

[0115] Embodiments of this disclosure also provide a computer program product, including a computer program that, when executed by a processor, implements the methods described in any of the foregoing embodiments.

[0116] Embodiments of this disclosure also propose a graph neural network that uses a graph network constraint solving method based on a decoupled architecture as described in any of the foregoing embodiments.

[0117] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 5 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system).

[0118] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0119] The memory 20 stores instructions executable by at least one processor 10 to cause at least one processor 10 to perform the method shown in the above embodiments.

[0120] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device as shown by a landing page for an app. Furthermore, the memory 20 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 alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, which can be connected to the computer device 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.

[0121] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0122] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.

[0123] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0124] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0125] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0126] The methods and apparatus provided in the embodiments of this disclosure have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this disclosure. The descriptions of the embodiments above are only for the purpose of helping to understand the methods and core ideas of this disclosure. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this disclosure. Therefore, the content of this specification should not be construed as a limitation of this disclosure.

Claims

1. A method for solving constraints in graph networks based on a decoupled architecture, characterized in that, Applied to graph neural networks, the method includes: Determine the node characteristic state of the graph vertex object node, the differentiable mathematical constraint formula of the graph vertex verification node, and the adjacency topology relationship between the object node and the verification node. Based on the adjacency topology, the adjacent object nodes of the target verification node are determined. Based on the differentiable mathematical constraint formula of the target verification node, the node feature states of the adjacent object nodes are algebraically aggregated and distributed to the adjacent object nodes. The node feature states of the adjacent object nodes are nonlinearly mapped and demapped from low-dimensional features to high-dimensional features, and the node feature states of the adjacent object nodes are iterated based on the distribution results.

2. The method according to claim 1, characterized in that, The method further includes: During the iteration process, the high-dimensional features are demapped to low-dimensional features to determine the low-dimensional features of the adjacent object nodes, and the residuals and first-order analytical gradients relative to the differentiable mathematical constraint formula are calculated. The first-order analytical gradient is polarized and limited, and a constraint relaxation feature is generated based on the first-order analytical gradient and the residual. The constraint relaxation features are combined with the node feature states of the adjacent current object nodes before the iteration for constraint relaxation and damping, and then concatenated; wherein, the high-dimensional nonlinear mapping of the concatenated low-dimensional features is used for the next iteration.

3. The method according to claim 1, characterized in that, During the iteration process, the method further includes: The object nodes are sorted according to their confidence characteristics, a first number of stable object nodes are determined to construct a reliable basis, and a binary mask is generated. Perform a Hadamard product based on the determined flip score and the binary mask; Based on the Hadamard product and node feature states, a second number of deadlock source nodes are extracted from the object nodes.

4. The method according to claim 3, characterized in that, The method further includes: Determine the candidate flipping patterns of the deadlock source node; The flipped candidate pattern is applied to the low-dimensional feature vector of the non-converged frame that does not satisfy the differentiable mathematical constraint formula of the verification node and mapped onto the high-dimensional feature vector of the hidden layer. The hidden layer high-dimensional feature vectors after applying the flipped candidate pattern are inflated into parallel micro-batch tensors.

5. The method according to claim 4, characterized in that, The method further includes: Concurrent evolution is performed on the micro-batch tensors; Early stopping is triggered if the channel successfully converges. If multiple micro-batch tensors corresponding to the flipped candidate patterns have successfully converged, determine the likelihood correlation between the multiple successfully converged micro-batch tensors and the original feature vector of the non-converged frame, and select the micro-batch tensor with the largest likelihood correlation. If the concurrent evolution fails to converge, the process regresses to a candidate state, which is the node feature state with the highest likelihood correlation or the lowest residual.

6. The method according to any one of claims 1 to 3, characterized in that, The low-dimensional features include at least one of the following: Node flip count, edge conflict fusion strength, normalized topological conflict, continuous domain analytic gradient, gradient self-update trend characteristics, node algebraic conflict energy, hard benefit of node flip, and soft benefit of node flip. Wherein, the polarity of the flip includes binary XOR flip or multi-state transition; the high-dimensional feature is a high-dimensional mapping expression of the low-dimensional feature.

7. A training method for solving constraints in graph networks, characterized in that, The method is used to train the graph network constraint solving method based on decoupled architecture as described in any one of claims 1-6, the method comprising: Supervisory loss points are set at multiple depths during the forward propagation of the graph network. At the supervised loss points, calculate the model classification loss and the rule violation loss of the mathematical formula equations, respectively. The model classification loss and the rule violation loss of the mathematical formula equation are weighted and summed to determine the cascaded supervision loss at the depth corresponding to the supervision loss point; The overall gradient is determined based on the sum of the cascaded supervised losses at all supervised loss points, and the nonlinear state mapping and learning parameters are updated accordingly.

8. A graph network constraint solving device based on a decoupled architecture, characterized in that, The device includes: The object representation unit is configured to determine the node feature state of the object node of the graph vertex, and to perform nonlinear mapping and demapping of the object node to high-dimensional features; The graph topology representation unit is configured to determine the adjacency topology relationship between the object node and the verification node of the graph vertex; The rule verification unit is configured with differentiable mathematical constraint formulas corresponding to the low-dimensional features of the object node, and is configured to determine the neighboring object nodes of the target verification node according to the adjacency topology relationship, and perform algebraic aggregation on the node feature states of the neighboring object nodes based on the differentiable mathematical constraint formulas of the target verification node, and distribute them to the neighboring object nodes. The meta-control engine unit is configured to resolve conflicts and dampen the feature states of the object nodes, and to iterate the node feature states of the object nodes in combination with the results of the algebraic aggregation and distribution.

9. The apparatus according to claim 8, characterized in that, The learning parameters of the meta-control engine unit include at least one of the following: Relaxation energy scaling factor, dynamic damping factor, feature fusion gating weights, flip-scoring diagnostic network weights, and cascaded supervision loss weighting factor.

10. An electronic device, characterized in that, include: Processor, memory; The memory is used to store computer programs; The processor is configured to execute the method as described in any one of claims 1-7 by invoking the computer program.