An end-side collaborative semantic reasoning method based on belief propagation multi-path decision
By constructing path delay state vectors and cognitive confidence in densely populated scenarios, and adopting a belief propagation multi-path decision-making mechanism, the resource competition problem between nodes in edge-end collaborative reasoning is solved, and efficient task processing path selection and system response optimization are achieved.
Patent Information
- Application Number
- CN202611408015.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-20
AI Technical Summary
In densely populated scenarios, existing edge-end collaborative reasoning methods lack effective inter-node conflict avoidance mechanisms, leading to uplink channel congestion and resource competition, which affects task response quality and real-time performance.
By constructing path delay state vectors and cognitive confidence, a multi-path decision-making mechanism based on belief propagation is adopted to select the optimal end-edge collaborative reasoning path, and to combine the small end-side model and the large base station-side language model for collaborative processing.
This achieves the goal of reducing uplink communication contention, minimizing redundant calculations at base stations, shortening overall system response latency, and improving resource utilization efficiency while ensuring inference accuracy.
Smart Images

Figure CN123140244A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of edge-end collaboration technology, and in particular to an edge-end collaborative semantic reasoning method based on belief propagation multi-path decision-making. Background Technology
[0002] With the rapid development of generative artificial intelligence technology, the demand for real-time semantic interaction in densely populated scenarios such as large stadiums, city center squares, and transportation hubs is constantly increasing. These requests typically exhibit significant non-uniform distribution characteristics in both time and space. In this scenario, some user requests can be directly processed by the central base station deployed with a large language model. However, when a large number of user requests arrive simultaneously, if all tasks are processed uniformly by the base station, it will significantly increase the base station's inference load and wireless access pressure, thereby affecting the quality and real-time performance of task responses. Therefore, edge nodes with certain computing capabilities can be further deployed within the service area to perform pre-reception, preliminary processing, and task distribution of semantic requests in certain areas.
[0003] In scenarios such as stadiums, edge nodes are deployed in fixed locations to ensure area coverage. However, the uneven distribution of task requests in time and space leads to extremely uneven node loads in different areas. On the one hand, local hotspots experience a surge of concurrent requests in a short period, severely overloading node computing power and necessitating offloading tasks to the central base station for processing. On the other hand, nodes in relatively idle areas, even with sufficient on-device computing power, may still choose to upload tasks to the base station for processing to obtain high-accuracy answers under the existing independent decision-making mechanism. This lack of coordinated offloading behavior causes unnecessary communication by nodes in idle areas, further straining the already limited wireless channel bandwidth and base station computing power. This results in severe queuing delays or even request blocking for nodes in truly hotspot areas that urgently need base station support. The existing resource allocation mechanism lacks awareness and spontaneous yielding strategies among multiple nodes, making it impossible to realize resource transfer from idle devices to overloaded devices. It is also difficult to ensure the effective allocation of network resources to high-demand areas under the premise of a fixed physical topology. Summary of the Invention
[0004] In view of this, in order to address the technical problem that existing end-edge collaborative reasoning methods suffer from severe channel congestion and resource competition in uplink scenarios due to the lack of effective inter-node conflict avoidance mechanisms, this invention proposes an end-edge collaborative semantic reasoning method based on belief propagation multi-path decision-making. This method includes the following steps: This method first constructs a path delay state vector by real-time sensing of the latency at each stage of the inference task. Simultaneously, the edge-side small model (SLM) generates candidate translations and outputs their confidence scores. Based on this, the latency state and confidence information are fused to establish a multi-path decision-making mechanism based on belief propagation to select the optimal inference path. If the SLM-LLM edge-side collaborative path is selected, the candidate text, confidence score, and original user request are packaged into collaborative input and submitted to the base station-side large language model (LLM) for verification and correction, thereby outputting the final inference result.
[0005] Based on the above scheme, the present invention provides an edge-cooperative semantic reasoning method based on belief propagation multi-path decision-making. This method is designed for real-time semantic interaction requests generated by pedestrians or viewers. In a fixed-deployment edge UAV network, by jointly modeling the regional request congestion state, node resource state, wireless channel state, base station load, and edge-generated confidence, the method achieves adaptive selection of task processing paths. This reduces uplink communication contention, reduces redundant base station calculations, and shortens the overall system response latency while ensuring reasoning accuracy. Attached Figure Description
[0006] Figure 1 This is a flowchart of the steps of an edge-cooperative semantic reasoning method based on belief propagation and multi-path decision-making according to the present invention. Figure 2 This is a schematic diagram illustrating an application scenario of the method of the present invention; Figure 3 This is a schematic diagram of the data flow in the method of the present invention; Figure 4 This is a schematic diagram of the mass gain in the simulation experiment of the method of the present invention. Detailed Implementation
[0007] In addition to the technical issues mentioned in the background, existing edge-cloud collaborative decision-making mechanisms suffer from inherent flaws such as a single decision-making dimension and a lack of task awareness. On the one hand, the traditional "central base station - edge device" architecture ignores the performance differences of small edge models under different tasks, leading to inference illusions when processing complex semantic tasks locally, while over-reliance on the base station and unnecessary offloading when processing simple tasks. On the other hand, the system lacks an elastic adjustment mechanism based on cognitive confidence, failing to drive capable nodes to spontaneously remain on-premises in a limited environment with multiple concurrent requests, thus making it difficult to achieve optimal accuracy and latency in global resource allocation. Furthermore, existing collaborative interaction paradigms suffer from computational redundancy in terms of inference efficiency and communication overhead in edge-cloud collaboration. Traditional collaborative models typically treat the large model mounted on the base station as an isolated task processing unit. When the task is offloaded to the cloud, the system often ignores the preliminary inference results already present on the edge nodes, requiring the base station to re-perform semantic task inference. Limited by the serial inference characteristics of large model autoregressive generation, this non-cooperative generation mode places a significant load on memory bandwidth, making the computation time at the base station a bottleneck for the overall system response. Therefore, decoupling the semantic generation task by using the mechanism of generating results on the edge and verifying them at the base station, thereby achieving collaborative reasoning between edge devices and base stations, is the key to breaking the system latency bottleneck.
[0008] In summary, how to solve channel contention under high concurrency through multi-path decision-making in a fixed node layout, and how to overcome the bottlenecks of inference accuracy and generation latency by utilizing the confidence collaboration mechanism between large and small models, are the challenges that current edge-edge collaborative intelligent systems need to address.
[0009] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0010] It should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this application can be combined with each other.
[0011] It should be understood that the terms "system," "apparatus," "unit," and / or "module" used in this application are a method of distinguishing different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they may be replaced by other expressions.
[0012] Unless the context explicitly indicates an exception, words such as "a," "an," "a kind," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list; a method or apparatus may also include other steps or elements. An element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, product, or apparatus that includes the element.
[0013] Furthermore, flowcharts are used in this application to illustrate the operations performed by the system according to embodiments of this application. It should be understood that the preceding or following operations are not necessarily performed precisely in sequence. Instead, the steps can be processed in reverse order or simultaneously. Additionally, other operations can be added to these processes, or one or more steps can be removed from them.
[0014] Reference Figure 1 This is a flowchart illustrating an optional example of the edge-to-edge collaborative semantic reasoning method based on multi-path decision-making for belief propagation proposed in this invention. This method can be applied to computer devices, and its application scenarios are described in [reference needed]. Figure 2 The edge-to-edge collaborative semantic method proposed in this embodiment may include, but is not limited to, the following steps: Step S1: Perform state awareness on task delays at different stages and construct a path delay state vector; Step S2: Generate candidate texts based on the edge-side SLM and calculate the corresponding confidence scores; Step S3: Construct a multi-path decision model based on belief propagation based on the path delay state vector and the confidence level, perform path selection, and obtain the final path; Step S4: When the final path is an SLM-LLM edge-end collaborative inference path, the candidate text, the confidence level, and the user request are jointly organized into collaborative input, and the edge-end result is corrected by the BS-side LLM and the final result is output.
[0015] In some feasible embodiments, step S1 specifically includes: This embodiment performs state awareness of the latency generated by tasks at different stages in an end-edge collaborative system consisting of a fixed UAV node and a single BS. For the first... A fixed drone node Received current task The system estimates the latency of SLM draft generation on the end side, the latency of collaborative upload from the UAV to the BS, and the latency of LLM verification and correction on the BS side, and organizes the above latency into the input of the subsequent decision model.
[0016] Among them, drones correspond to end-side equipment, and BS corresponds to base stations.
[0017] Set the current task The computational cost required to generate a draft on the end-side SLM is: , No. A fixed drone node at time The calculated frequency that can be allocated to the end-side SLM is The latency for generating the current task's edge SLM draft is: When the task When it is necessary to enter edge-end collaborative reasoning, The original request, the client-side draft, and the cognitive confidence are combined into a co-tuple and uploaded to the unique BS. Let... The allocated uplink bandwidth is The transmission power is The channel gain from the UAV to the BS is The power of co-channel interference is The noise power spectral density is Then the uplink transmission rate is: Set the current task The corresponding co-group data size is The collaborative upload latency is: For the BS side processing, if the task The SLM-LLM edge-end collaborative inference path is selected, and the BS-side LLM is used for verification, correction, or local regeneration based on the edge-side draft. Let the BS at time... The existing set of tasks to be processed is Among them, the task The remaining verification correction computation is The current computational frequency that BS can allocate to the LLM verification and correction process is: Then the task The queue delay before reaching BS is: Set a task The computational cost required for verification and correction on the BS side is: Then the execution delay on the BS side is: Therefore, the total verification correction latency on the BS side of the current task is: Based on the above state perception, the current task exist The path delay state vector is formed at this point: in, Used to characterize the basic processing latency of the local output path of the edge SLM; and This is used to characterize the additional communication and BS-side processing latency incurred when a task enters the SLM-LLM edge-to-edge collaborative path. The subsequent decision model will combine the path latency state vector with the edge-side cognitive confidence to adaptively select between the local output path and the edge-to-edge collaborative path.
[0018] It should be noted that the path delay state of this invention mainly characterizes the variable delay term that differs significantly between different processing paths. Therefore, it focuses on the initial generation delay of the edge-side SLM, the collaborative upload delay, and the verification and correction delay on the BS side. The amount of data returned by the BS to the UAV or user side is relatively small, so it is treated as a common feedback delay after the task is completed and is not used as an independent input for subsequent belief propagation path decisions.
[0019] In some feasible embodiments, step S2 specifically includes: After completing the regional resource and congestion status perception of the UAV node, the system first determines whether the current node has the resource conditions to perform the initial generation of the edge-side SLM based on the UAV's local comprehensive load and task generation requirements. When the UAV's local resources cannot support the initial generation on the edge, the system uses a direct connection path to the base station to upload the original request to the base station, where the LLM completes the full text generation. When the UAV has the edge generation capability, the system calls the local SLM to perform preliminary reasoning on the original request, generates candidate text drafts, and calculates the cognitive confidence based on the token probability distribution during the generation process as a continuous quantitative result of the reliability of the edge-side draft. This, along with the compressed resource state vector obtained earlier, is input into the subsequent BP path decision model to select the optimal processing method for the current task between the local output of the edge-side SLM and the edge-side collaborative reasoning of SLM-LLM.
[0020] S2.1 Feasibility assessment.
[0021] Let the first A fixed drone node Received task The original natural language request for this task is denoted as If the initial maximum allowable delay threshold generated by the end-side SLM is... The minimum computation frequency required for the end-side SLM to operate normally is Then the feasibility indicator variable generated on the end side is defined as: in, This indicates that the current drone node can complete the initial generation of the edge SLM within a tolerable latency, and the edge SLM is related to the original request. The initial generation process is performed to obtain a draft text on the edge, and the overall cognitive confidence and confidence vector are further calculated for subsequent path decision-making and edge collaborative reasoning. This indicates that the current SLM on the front end does not meet the initial generation conditions, and the task will not enter the subsequent path decision-making process based on belief propagation. Instead, it will be directly uploaded to the BS, where the LLM on the BS side will perform fallback generation.
[0022] S2.2 Text generation.
[0023] when At that time, the endpoint SLM responds to the original request. Perform autoregressive text generation and output candidate text drafts: in, This represents the text draft generated by the endpoint SLM. Indicates the first Generate a token. Indicates the length of the draft sequence.
[0024] S2.3 Calculation of token probability distribution.
[0025] For the For each token, the client-side SLM calculates its token probability distribution based on the original request and previously generated tokens: in, Indicates a vocabulary list, This represents candidate tokens in the vocabulary. Indicates the first The text sequence that was generated before the token This indicates that a token is generated under the current context. The probability of.
[0026] S2.4 Prediction Entropy Calculation.
[0027] To quantify the reliability of the candidate text draft generated by the edge SLM, the system calculates the prediction entropy based on the token probability distribution at each generation position. The token prediction entropy for each generated location is defined as: in, Indicates the first The token generation location has uncertainty. The more concentrated the probability distribution, the lower the prediction entropy, indicating that the model is more certain in generating that token; the more dispersed the probability distribution, the higher the prediction entropy, indicating that the model has greater uncertainty.
[0028] S2.5 Confidence Calculation.
[0029] Normalize the prediction entropy: in, Indicates the first The local confidence vector of each token. The closer the value is to 1, the more reliable the token generation is. The closer the value is to 0, the more the token needs to be checked or modified by the BS-side LLM during subsequent edge-end collaborative reasoning.
[0030] Based on this, to eliminate the influence of different draft lengths on the confidence calculation, the system averages the prediction entropy of all tokens in the draft sequence: in, This represents the average generation entropy of the end-side text draft.
[0031] Constructing continuous cognitive confidence of edge SLM based on average generation entropy: in, Indicates task exist The cognitive confidence of the draft generated by the edge SLM. This represents the entropy penalty sensitivity coefficient. A higher average generation entropy indicates greater uncertainty in model generation, corresponding to lower confidence; a lower average generation entropy indicates more stable model generation, corresponding to higher confidence.
[0032] In some feasible embodiments, the method also includes low-confidence token location and generation of the fragment to be modified, specifically: To enable the subsequent BS-side LLM to perform local validation and modification on unreliable regions in the draft generated by the SLM side, the system uses the local confidence vector. Locate low-confidence tokens. Let the token reliability threshold be... The set of low-confidence token locations is defined as follows: in, Indicates the first One segment to be modified. This indicates the number of segments to be modified. Each segment to be modified can be represented as a continuous range of tokens: in, and These represent the start and end token positions of the segment in the end-side draft, respectively.
[0033] It does not participate in the BP calculation of the path decision model, but instead serves as the local editing region input of the BS-side LLM after the task enters the edge collaborative reasoning stage, enabling the BS-side LLM to generate corrected content around the low-confidence segment.
[0034] In some feasible embodiments, step S3 specifically includes: After obtaining the path delay status of each fixed UAV node and the cognitive confidence of the edge text draft, this invention further constructs a multi-path collaborative decision-making model based on belief propagation. Under the condition of concurrent requests from multiple UAV nodes, a factor graph is constructed, and the belief propagation (BP) algorithm is used to jointly determine whether the current task should directly adopt the edge SLM output or trigger SLM-LLM edge-edge collaborative inference.
[0035] S3.1 Definition of decision variables and input states.
[0036] Let the set of tasks entering the belief propagation model within the current decision window be . Any one of these tasks is denoted as , indicating the first A fixed drone node Received tasks For this task, define the following binary path decision variables: in, This indicates that local output from the end-side SLM is used; This indicates that SLM-LLM edge-end collaborative inference is used.
[0037] The input to this model is: The path delay state vector is: S3.2 Construction of the benefit function.
[0038] For the task If the local output path of the end-side SLM is selected, the path delay is: If the SLM-LLM edge collaborative inference path is selected, its path latency is: in, This indicates the processing latency of the local output path. This indicates the processing latency of the end-edge collaborative path.
[0039] Set a task The maximum tolerable latency is The path delay is normalized. For the local output path, text satisfaction is represented by edge-side cognitive confidence: in, This indicates the expected text satisfaction when using local output from the endpoint SLM.
[0040] For edge-end collaborative reasoning paths, the BS-side LLM, after verifying and correcting the edge-end draft, can reduce the residual uncertainty in the edge-end draft. Let... Let represent the residual uncertainty coefficient after verification and correction on the BS side. Then, the expected text satisfaction of the edge-end collaborative path is defined as: in, This represents the expected text satisfaction when using edge-end collaborative reasoning.
[0041] Based on normalized latency and text satisfaction, define the task. In the path The overall cost of the benefits: in, Indicates the delay weight. Represents the text satisfaction weight, and satisfies: Transforming the comprehensive cost of benefits into benefit factors in the belief propagation model: in, Indicates task Select path Time-related benefit factors This is the cost sensitivity coefficient.
[0042] S3.3 Congestion penalty factor construction.
[0043] In a fixed UAV node layout, when multiple tasks select edge-to-edge collaborative inference within the same decision window, they will jointly occupy the uplink transmission resources from the UAV to the BS and the large model inference resources on the BS side. To reflect the cumulative occupation of shared resources caused by such concurrent collaborative requests, this invention constructs a shared resource congestion factor, which uniformly incorporates the collaborative path selection status of each task within the current window into the constraint, thereby taking into account both text generation quality improvement and shared resource congestion avoidance during the path decision-making process.
[0044] For the task Define the upload resource consumption and BS processing resource consumption when selecting the edge-to-edge collaborative path as follows: The total uplink resource usage of all tasks selecting end-edge collaborative paths within the current window is: The total resource consumption of the large model service on the BS side is: Let the threshold that shared uplink resources can support be . The threshold that the large model service resources on the BS side can support is... The congestion penalty factor is then defined as: in: This represents the congestion sensitivity coefficient.
[0045] This shared resource congestion factor directly affects all path variables within the current window. Its operating logic is as follows: when a small number of tasks choose edge-to-edge collaboration, and If the threshold is not exceeded, the model will not significantly suppress collaborative paths. When a large number of tasks choose edge collaboration at the same time, the shared resource congestion factor will reduce the joint probability of the path combination, thereby driving some tasks with high confidence or low collaborative benefits to choose local output on the edge.
[0046] S3.4, Multi-path decision model.
[0047] Let the set of all path variables within the current decision window be: Based on the benefit potential function and the congestion factor, a joint probability distribution is constructed: in, This is the normalization factor.
[0048] The optimal path combination is: In the factor graph, each task path variable As a variable node, the benefit factor This indicates the task's own path preference and congestion penalty factor. As a higher-order factor node, it is connected to all task path variables within the current window.
[0049] S3.5, Iterative solution.
[0050] The message that the task variable node passes to the congestion penalty factor node is: The message passed from the congestion penalty factor node to the task variable node is: To improve iterative stability, damped updates are introduced: in, This serves as a damping factor. During belief propagation, task variable nodes and congestion penalty factor nodes alternately transmit path preference messages and congestion feedback messages in each iteration, allowing each task's path belief to gradually absorb the collaborative selection influence of other tasks within the current window. When the number of iterations reaches... Or the change in messages between two adjacent rounds is less than the convergence threshold. When the iteration stops, the edge belief value is calculated.
[0051] The final path output is: when When the system directly returns the SLM generation result from the endpoint, when... At that time, the system uploads the collaborative tuple, which is then verified and corrected by the LLM on the BS side. Through the above model, the system can comprehensively consider path latency, text satisfaction, and multi-task resource competition, achieving an adaptive balance between low latency and high-quality text generation.
[0052] In some feasible embodiments, step S4 specifically includes: After the path decision is determined, if the current task is selected as the SLM-LLM edge-to-edge collaborative inference path, the fixed drone node does not directly discard the generated results of the edge SLM and force the BS-side large model to generate the answer from scratch. Instead, it organizes the edge draft, the original request, and the relevant token confidence vectors into a collaborative input, which is then verified, corrected, and completed by the BS-side LLM. This mechanism allows the edge small model to undertake the initial generation and semantic clue extraction functions, while the BS large model undertakes the quality verification and complex semantic correction functions, thus achieving a balance between latency and text generation quality.
[0053] When the final path is an SLM-LLM edge collaborative inference path: S4.1 Build collaborative input.
[0054] Based on the generated results and confidence assessment results of the edge-side SLM, the collaborative input is constructed by fixing the UAV nodes: in, For the original user request, The text draft generated for the edge SLM. This is a local confidence vector. For the set of low-confidence segments, This represents the maximum tolerable latency for the task.
[0055] In this collaborative input, the edge draft is used to provide the initial answer structure and main semantic content, the low-confidence fragment set is used to indicate the locations that need to be focused on, and the local confidence vector is used to assist the BS-side LLM in judging the credibility of different fragments.
[0056] S4.2 Verification and Modification.
[0057] After receiving the collaborative input, the BS-side LLM first reads the original request. and end draft It determines whether the draft on the client side generally meets the user's request; then it uses the low-confidence fragment set as a basis. We focus on processing the tagged segments and their necessary context.
[0058] For low confidence segments The BS-side LLM can perform the following local editing operations: retain, replace, insert, delete, or complete. Its set of editing operations is represented as follows: in, Indicates that for the first Editing operation type for a low-confidence segment. This indicates that the LLM on the BS side is the modified content generated for this fragment.
[0059] The final collaborative output is obtained from the client-side draft and the set of editing operations: in, This indicates that the editing operation will be applied to the text update process of the draft on the client side.
[0060] This preferred embodiment constitutes a latency reduction mechanism based on the difference between parallel reading and token-by-token generation.
[0061] After receiving collaborative input, the LLM on the BS side can divide its inference process into two parts: input reading and output generation. For the input reading process, the original request, the edge draft, and low-confidence fragment annotations are all given as definite inputs. The LLM can encode the input tokens in parallel during a single forward computation, forming the contextual representation required for subsequent generation. For the output generation process, the LLM uses an autoregressive approach to generate text. Each new token generation relies on previously generated tokens, requiring further model inference. Therefore, reducing the number of newly generated tokens is more effective in reducing the continuous inference overhead on large models than increasing the number of input tokens.
[0062] Based on this principle, this invention uses the end-side SLM draft as a reusable input, so that the BS-side LLM no longer generates a complete answer from scratch, but instead, after reading the complete draft, it only generates an answer around the set of low-confidence fragments. Generate the necessary corrections. Assume the number of input tokens the BS-side LLM needs to read is... The actual number of newly generated correction tokens required during partial editing is: Then we have: in, Indicates that for the first The number of corrected content tokens generated from each low-confidence fragment.
[0063] Furthermore, the estimated computational cost of the BS-side verification correction can be expressed as: in, This represents the computational cost of reading and encoding a unit of input token. This represents the discounted computational cost of generating a unit output token through autoregression. If the BS-side LLM generates a complete answer from scratch, the number of output tokens required is denoted as [value missing]. When end-side drafts are reusable and the number of low-confidence fragments is limited, the following conditions are usually met: Although collaborative inference adds edge drafts and confidence labels to the input, increasing input reading overhead, this part mainly belongs to the parallelizable input encoding process. The BS-side LLM only needs to generate a small number of corrected tokens for low-confidence segments, so the reduced autoregressive generation overhead outweighs the increased input reading overhead. Therefore: Therefore, when the draft on the client side has reusable value, adopting collaborative reasoning can effectively reduce the overall reasoning overhead and collaborative reasoning latency of the LLM on the BS side.
[0064] In some feasible embodiments, step S3 involves the system optimization objective and solution process. The objective is the combined cost of latency and satisfaction for each task, with the congestion penalty caused by multiple tasks simultaneously choosing cooperative paths as a constraint / cost term. A joint probability (factor graph) is constructed, and the optimal path for each task is obtained through backpropagation (BP) iteration. Specifically: In the current decision-making window Internally, the system uses end-to-end response latency and text generation satisfaction as joint optimization objectives, and constrains resource consumption caused by multiple tasks simultaneously selecting edge-cooperative paths through a congestion penalty factor. Let the set of tasks currently entering path decision-making be... The set of path variables is: The system optimization objective is expressed as: in: And satisfy: in, The overall cost of task latency and satisfaction. For the aforementioned penalty factor, Let be the congestion penalty weight. To solve this problem via belief propagation, the minimization problem is transformed into a maximum a posteriori inference form. Construct the joint probability of path combinations: in, As the normalization factor, Let be the cost sensitivity coefficient. Therefore, the optimization problem can be equivalently represented as: This formula is consistent with the aforementioned factor diagram structure: the index term corresponds to the benefit factor of each task. Corresponding congestion penalty factor. BP can accurately calculate edge quantities on tree factor graphs, and is often used as an approximate inference method on factor graphs containing cycles.
[0065] The stopping condition for belief propagation iteration is reaching the maximum number of iterations. Or, the changes in beliefs in two adjacent rounds satisfy the following: in, Indicates the first The path edge belief value obtained from round iteration, This is the convergence threshold.
[0066] Ultimately, the path selection results for each task are as follows: when When, the system returns the SLM output to the end side; when During this process, the system performs edge-end collaborative reasoning, and the BS-side LLM performs local verification and modification based on the edge-end draft and low-confidence fragment annotations. After the task is completed, the system records the actual latency, text satisfaction, and resource usage results for subsequent decision window status updates.
[0067] Based on the overall process described above, the data flow direction of this invention is referenced. Figure 3This invention overcomes the problems of independent node decision-making, resource congestion in hotspot areas, limited edge computing power, and low efficiency of end-edge collaboration in existing fixed edge node service systems in densely populated scenarios such as large stadiums and city center squares. Specifically, it addresses the following issues: For the multi-path decision optimization problem of end stations in time-varying environments: In high-concurrency scenarios such as stadiums, the processing capacity of edge nodes is simultaneously constrained by limited local computing power and the frequently changing local area network state within the venue. Existing technologies rely on centralized scheduling, which cannot adapt well to the environment, leading to decision lag. This invention proposes a method to drive each edge node to spontaneously make the optimal adaptive choice among three task processing paths: "local node generation," "collaborative inference," and "direct connection to the base station," under conditions lacking strong central intervention. This achieves a dynamic balance between inference accuracy and end-to-end latency in computing-constrained environments. For the dynamic model partitioning problem: When multiple fixed nodes in a local hotspot area of the venue simultaneously initiate offload requests to the central base station, it triggers intense uplink channel contention and task queuing on the base station side. In existing systems, due to the lack of horizontal state awareness and coordination mechanisms among peer nodes, nodes lack the ability to spontaneously relinquish and back off resources based on global congestion. This patent aims to address how to construct a distributed collaborative awareness mechanism among edge nodes and change the task offloading mode where each node makes independent decisions, thereby eliminating wireless channel conflicts within the venue and queuing congestion at the central base station caused by dense concurrent requests. Regarding the issue of caching and computation coordination: traditional edge offloading modes typically only upload the raw task data to the central base station, which then independently completes subsequent inference, failing to fully utilize the preliminary results already generated by edge nodes. In long text generation tasks, this approach causes the base station to repeatedly execute the complete autoregressive generation process and frequently access model weights and key-value cache data during word-by-word generation, resulting in high pressure on the GPU memory bandwidth and making memory access performance a key factor limiting inference latency. This invention constructs an asymmetric collaborative mechanism of "edge draft - base station verification" by uploading a collaborative tuple consisting of the original task, the edge draft, and the local confidence vector. This enables the base station to perform verification and directional correction based on the edge draft, avoiding the generation of a complete answer from scratch. This reduces redundant calculations and memory access overhead, lowers base station inference latency, and improves the overall system response efficiency.
[0068] The beneficial effects also include: In a fixed UAV node layout, the latency-satisfaction cost of the task itself, along with the uplink transmission and BS-side service resource consumption caused by multi-task concurrent collaborative reasoning, are incorporated into the path decision-making process. Information is iteratively transmitted between task variable nodes and congestion penalty factor nodes using a belief propagation algorithm. Compared to independent task unloading or simple threshold judgment methods, this invention avoids link congestion and increased BS-side processing pressure caused by a large number of tasks uploading simultaneously, thereby reducing end-to-end response latency. Based on the token probability distribution in the edge-side SLM generation process, an overall cognitive confidence and local confidence vector are constructed. The overall cognitive confidence is used to determine whether the edge-side draft is suitable for local output or entry into edge-side collaboration, while the local confidence vector is used to locate low-confidence segments. Therefore, the system can simultaneously determine whether the entire text is reliable and which local contents need to be corrected. Compared to processing based solely on task load, this approach more accurately balances text generation quality and processing latency. During the edge-to-edge collaborative reasoning phase, the system reuses the text draft already generated by the edge-side SLM, preventing the BS-side LLM from generating a complete answer from scratch. Instead, after reading the original request, the edge-side draft, and low-confidence segment annotations, it only verifies, replaces, completes, or partially rewrites the low-confidence regions. Since input tokens can be read in parallel, while output tokens need to be generated autoregressively one by one, this method reduces the number of newly generated tokens by the BS-side LLM, lowers the overhead of repeated generation, and shortens collaborative reasoning latency while maintaining text quality.
[0069] Based on the above method and process, this invention also provides a simulation experiment. The experiment processes the task using SLM (Qwen2.5-0.5B-Instruct) and then LLM (Qwen2.5-7B-Instruct) to obtain the corresponding quality gain. The dataset used is databricks / databricks-dolly-15k. The experimental results are as follows: Figure 4 .
[0070] Quality gain data is measured using semantic similarity: The semantic similarity is calculated as follows: First, using the local all-MiniLM-L6-v2 sentence vector model, the "model-generated answer" and the "dataset standard answer" are encoded into two text vectors respectively. Then, the cosine similarity between the two vectors is calculated. The higher the cosine similarity, the closer the two texts are semantically. Finally, the cosine similarity is mapped from [-1, 1] to [0, 1]: Semantic similarity = (cosine similarity + 1) / 2; For example, if the cosine similarity of two vectors is 0.8, then the semantic similarity is: (0.8 + 1) / 2 = 0.9.
[0071] For the same task, the initial answer from SLM and the final answer after LLM collaboration will each have their semantic similarity calculated with the same standard answer.
[0072] Applying the above method, an edge-to-edge collaborative semantic reasoning system based on belief propagation multi-path decision-making includes ground users, drones, and a central base station, wherein: Ground users are the initiators of task requests; The edge nodes of the drone are deployed at preset locations, equipped with a small language model, to receive task requests within the coverage area, generate preliminary text results on the edge side, and perform state awareness. The central base station deploys a large language model for high-quality reasoning directly on tasks, or for verifying and correcting text drafts generated by the UAV terminal.
[0073] The specific process is as follows: After a ground user issues a task request, the connected drone first uses the edge-side small language model to generate a preliminary draft answer and calculates the cognitive confidence based on the token probability distribution. Subsequently, the system inputs the cognitive confidence, node resource status, wireless channel congestion level, and base station load into the belief propagation model to calculate the optimal processing path for the current task. If the edge-side confidence is high and local resources are sufficient, the task is completed independently by the local small model; if the edge-side result has low confidence but the collaborative link resources are available, a collaborative tuple containing the original task, edge-side draft, and confidence is uploaded for verification and correction by the base station-side large language model; if edge-side resources are severely insufficient, exceeding local processing capacity, the base station direct connection offloading path is triggered.
[0074] During task execution, the system selects from three paths based on the UAV's local resource status, wireless channel status, base station load status, and edge text generation confidence: independent inference of small edge models, collaborative inference of small and large edge models, and direct inference of large base station models. The system's optimization goal is to comprehensively reduce end-to-end response latency and improve text generation quality under a fixed node layout, thereby achieving efficient collaborative utilization of communication resources, edge computing power, and large model inference capabilities.
[0075] The content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system 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.
[0076] The content of the above method embodiments is applicable to the device embodiments. The specific functions implemented by the 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.
[0077] A storage medium storing processor-executable instructions, which, when executed by a processor, are used to implement an edge-cooperative semantic reasoning method based on belief propagation multi-path decision-making as described above.
[0078] 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.
[0079] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments described. 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. An edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation, characterized in that, Includes the following steps: The system provides state awareness of task latency at different stages and constructs a path latency state vector. Candidate texts are initially generated based on the edge-side SLM, and the corresponding confidence scores are calculated. Based on the path delay state vector and the confidence level, a multi-path decision-making model based on belief propagation is constructed to select a path and obtain the final path. When the final path is an SLM-LLM edge-end collaborative inference path, the candidate text, the confidence level, and the user request are jointly organized into collaborative input, and the edge-end result is corrected by the BS-side LLM to output the final result.
2. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 1, characterized in that, The step of initially generating candidate texts based on edge SLM and calculating the corresponding confidence scores specifically includes: Feasibility assessment of endpoint generation is based on the resource conditions of the endpoint SLM; When the resource conditions of the endpoint SLM meet the endpoint generation requirements, the endpoint SLM performs preliminary generation on the user request to obtain candidate text; Based on the candidate text and the user request, construct a token probability distribution; Calculate the prediction entropy based on the token probability distribution; Based on the predicted entropy, the continuous cognitive confidence of the edge SLM is constructed to obtain the corresponding confidence.
3. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 2, characterized in that, Also includes: When the local resources on the device side cannot support the initial generation on the device side, the direct connection path to the base station is adopted to upload the user request to the base station, and the LLM on the BS side completes the full text generation.
4. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 2, characterized in that, The task latency includes the candidate text generation latency of the endpoint SLM, the collaborative upload latency from the endpoint device to the BS, and the correction latency of the BS-side LLM, wherein: The formula for calculating the candidate text generation latency of edge-side SLM is as follows: In the above formula, Indicates task The computational cost required to generate candidate text on the edge SLM Indicates the first Each end-side device at time The calculation frequency allocated to the end-side SLM, This indicates the latency of generating candidate texts for the edge-side SLM. The formula for calculating the collaborative upload latency from the endpoint device to the BS side is as follows: in, This indicates the collaborative upload latency from the endpoint device to the BS side. Indicates task The corresponding amount of collaborative tuple data, Indicates the uplink transmission rate. Indicates the first Each end-side device at time The allocated uplink bandwidth Indicates the transmission power. Indicates channel gain. Indicates the power of co-channel interference. Indicates the noise power spectral density; The formula for calculating the corrected delay of the LLM on the BS side is expressed as follows: in, This indicates the corrected latency of the LLM on the BS side. Indicates task Queue delay before reaching BS Indicates the time on the BS side. The existing set of tasks to be processed. Indicates task The remaining verification and correction computational cost This indicates the computational frequency currently allocated to the LLM verification and correction process on the BS side. Task The computational cost required for verification and correction on the BS side.
5. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 4, characterized in that, The step of constructing a multi-path decision-making model based on belief propagation based on the path delay state vector and the confidence level, and selecting the final path, specifically includes: Define binary path decision variables, with the path delay state vector and the confidence level as model inputs; Constructing a benefit function based on path delay and text satisfaction; Congestion penalty factor is constructed based on concurrent occupancy of cooperative paths; A joint probability distribution is constructed based on the benefit function and the congestion penalty factor to obtain a multi-path decision model; Based on the multi-path decision model, belief propagation iteration is performed, in which task variable nodes and congestion penalty factor nodes alternately transmit path preference messages and congestion feedback messages in each round of iteration; When the preset conditions for iteration are met, the iteration stops and the edge belief value is calculated; The final path is generated based on the edge belief value.
6. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 5, characterized in that, It also includes the introduction of damping updates, the formula of which is expressed as follows:
7. Among them, Indicates the damping factor. This represents the message passed from the congestion penalty factor node to the task variable node. Represents the task variable node. This represents a penalty factor node.
8. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 2, characterized in that, Also includes: The low-confidence tokens are located based on the local prediction entropy, and a set of low-confidence fragments is constructed.
9. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 7, characterized in that, The step of organizing the candidate text, the confidence score, and the user request into a collaborative input when the final path is an SLM-LLM edge-end collaborative inference path, and then having the BS-side LLM correct the edge-end results to output the final result, specifically includes: When the final path is the SLM-LLM edge collaborative inference path, collaborative input is constructed based on candidate text, confidence level, low-confidence fragment set, and user request; When the LLM on the BS side receives the collaborative input; The set of low-confidence segments is corrected to obtain corrected low-confidence segments; The final result is generated based on the candidate text and the corrected low-confidence fragment.
10. The edge-cooperative semantic reasoning method based on multi-path decision-making for belief propagation according to claim 2, characterized in that, Also includes: Relevance assessment is performed based on candidate text and user requests.
