Cooperative reasoning method and system for adaptive model segmentation in heterogeneous computing power environment
By establishing a precision representation mapping model in a heterogeneous computing environment and performing asymmetric segmentation and differential encoding, the semantic drift and error cascading problems between heterogeneous devices are solved, achieving efficient model transfer and accurate inference results, and improving the stability and efficiency of the system.
Patent Information
- Application Number
- CN202610417525.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-01
- Publication Date
- 2026-05-01
- Estimated Expiration
- 2046-04-01
AI Technical Summary
Existing technologies fail to effectively handle the heterogeneity of physical numerical accuracy systems between different devices when performing dynamic model resegmentation in heterogeneous computing environments. This leads to semantic drift and error cascade amplification during the migration of accumulated inference states, affecting model output quality and system stability.
By establishing a numerical computation accuracy representation mapping space difference model, the high-dimensional state tensor to be transferred is identified and a dynamic scanning analysis of semantic drift extremum sensitivity is performed. It is asymmetrically segmented into a core sensitive tensor set and a marginal broad tensor set, and differential encoding and compression are performed to generate low-precision basic tensors and residual compensation vector packages, thereby realizing dynamic model resegmentation between heterogeneous devices.
It effectively solves the semantic drift and error cascading problems caused by hardware precision heterogeneity, ensures the continuity of reasoning logic and the accuracy of results after model transfer, and improves the robustness and operating efficiency of collaborative reasoning system.
Smart Images

Figure CN121960794A_ABST
Abstract
Description
Collaborative Inference Method and System for Adaptive Model Segmentation in Heterogeneous Computing Environment Technical Field
[0001] This application relates to the field of collaborative reasoning technology, specifically to a collaborative reasoning method and system for adaptive model segmentation in a heterogeneous computing environment. Background Technology
[0002] With the continuous evolution of artificial intelligence technology, the scale of deep learning models, especially large language models based on the Transformer architecture, is growing rapidly. A single computing device can no longer independently handle their complete inference tasks. Therefore, dividing large models and deploying them on distributed computing power clusters composed of various heterogeneous accelerators such as graphics processing units (GPUs), neural network processing units (NPUs), digital signal processors (DSPs), and central processing units (CPUs) for collaborative inference has become a key technology. Existing technologies have explored this field extensively, proposing various model partitioning architectures, neural network partitioning strategies, and edge-cloud collaborative inference methods, achieving certain results in reducing inference latency and improving system throughput.
[0003] However, existing technologies for model partitioning and collaborative deployment typically rely on the premise that the inference execution state within each sub-model shard is relatively stable and independent after the model is partitioned and deployed to heterogeneous nodes. These technologies primarily focus on static partitioning optimization and load balancing of the computation graph, but fail to adequately address the more complex dynamic changes in real-world operating environments. In practical heterogeneous collaborative inference scenarios, cluster systems often need to perform real-time model repartitioning and scheduling based on uncontrollable events such as sudden load fluctuations on a computing device, instantaneous changes in communication network bandwidth, or dynamic access and offline status of devices. This scheduling may require urgently migrating the model operator layer currently running on one device, along with its execution state, to devices with different hardware architectures for continued execution.
[0004] In such dynamic migration processes, if the model layer being migrated is a stateful layer containing "accumulated continuous inference states," such as the continuously accumulating key-value pair cache (KV Cache) in natural language processing generation tasks, or the dynamic hidden state tensor in a temporal prediction model, existing technologies expose unresolved technical problems. Specifically, when the inference state carrying historical context information is migrated from the source computing device to the target computing device, the inherent heterogeneity of the two devices in their underlying physical numerical precision systems—for example, the different floating-point representation formats, machine word lengths, rounding strategies, and numerical truncation rules they support—inevitably leads to unpredictable deviations between the migrated high-dimensional inference state tensor and the numerical semantics of subsequent computing layers on the target device. This semantic deviation caused by hardware architecture differences is not a one-time instantaneous error; it is propagated and amplified layer by layer in subsequent sequential inference processes, potentially leading to decreased inference accuracy and even error accumulation in long-sequence inference tasks, severely affecting the model's output quality and system stability. Summary of the Invention
[0005] The technical problem to be solved by the present invention is that the existing technology, when performing dynamic model resegmentation in a heterogeneous computing environment, fails to effectively handle the semantic drift and error cascade amplification caused by the heterogeneity of physical numerical precision systems between different devices, resulting in the cumulative inference state during the migration process.
[0006] To address the aforementioned technical problems, one aspect of the present invention provides a collaborative reasoning method for adaptive model segmentation in a heterogeneous computing environment, comprising the following steps: Step S1: When a preset trigger event is detected, identify the target model layer to be migrated, which contains a high-dimensional state tensor with accumulated continuous reasoning states, and establish a numerical computation accuracy representation mapping space difference model between the source computing device where the target model layer is currently located and the target computing device to which it is planned to migrate; Step S2: On the source computing device, using the numerical computation accuracy representation mapping space difference model, perform semantic drift extreme value sensitivity dynamic scanning analysis on the high-dimensional state tensor to generate a shift tolerance score, and based on a set score threshold, asymmetricly segment the high-dimensional state tensor into a core sensitive tensor set and a marginal broad tensor set, wherein the core sensitive tensor set contains tensors with shift tolerance scores lower than the target model layer. The state information of the score threshold, wherein the edge broad tensor set contains state information of the offset tolerance score being greater than or equal to the score threshold; Step S3: Perform differentiated encoding on the core sensitive tensor set and the edge broad tensor set: perform dimensionality reduction processing on the edge broad tensor set to generate a low-precision basic tensor; and extract precise residual information from the core sensitive tensor set and compress it to generate a residual compensation vector packet; Step S4: Send the low-precision basic tensor and the residual compensation vector packet to the target computing device; Step S5: On the target computing device, perform main inference calculation using the low-precision basic tensor to generate preliminary calculation results, and simultaneously, bypass decompress the residual compensation vector packet to recover the precise residual information, and inject the recovered precise residual information into the preliminary calculation results to complete the precision compensation.
[0007] Preferably, in step S1, establishing the numerical computation accuracy characterization mapping space difference model includes: retrieving the floating-point numerical protocols supported by the source computing device and the target computing device respectively, comparing and analyzing the parameters of the two protocols, generating a bit operation offset matrix dictionary tree, wherein the dictionary tree is used to predict the probability distribution of overflow or underflow of the values in the high-dimensional state tensor after being migrated to the target computing device.
[0008] Further, the high-dimensional state tensor is a key-value pair cache; the semantic drift extremum sensitivity dynamic scanning analysis in step S2 further includes: extracting the normalized attention weight score matrix generated by the key-value pair cache in the forward propagation computation, and constructing a priori guidance coordinate set mask; constructing an arithmetic transformation projection layer that simulates the underlying numerical truncation characteristics of the target computing device, performing pseudo-transfer computation on the original key-value pair cache through the arithmetic transformation projection layer to obtain a reconstructed tensor with precision loss; subtracting the original key-value pair cache from the reconstructed tensor element-wise to obtain an absolute physical precision error mapping tensor; and performing a Hadamard product operation on the absolute physical precision error mapping tensor and the priori guidance coordinate set mask to determine the position of the core sensitive tensor set.
[0009] Optionally, in step S3: performing dimensionality reduction processing on the edge broad tensor set includes: truncating the low-order mantissa of the floating-point number according to the numerical precision standard supported by the target computing device; extracting precise residual information for the core sensitive tensor set includes: stripping and extracting the mantissa information that was discarded due to precision limitations at the index position corresponding to the core sensitive tensor set to form a differential precise residual vector.
[0010] Furthermore, the compression includes: applying a multidimensional tensor decomposition algorithm or an autoencoder algorithm to the differential exact residual vector to encode it into a low-bit representation.
[0011] Further, in step S5, the process of injecting the recovered precise residual information into the preliminary calculation result includes: loading the low-precision basic tensor into the main calculation unit, performing calculations with subsequent input data to generate the preliminary calculation result; simultaneously, in an independent bypass decompression unit, decompressing and restoring the residual compensation vector packet to recover the precise residual information and form a residual array; and superimposing the residual array onto the preliminary calculation result.
[0012] Optionally, the process of superimposing the residual array onto the preliminary calculation result involves selecting an insertion point located after the operation and before a preset subsequent processing layer in the main computation flow of the model forward propagation, and injecting the residual array into the corresponding position of the preliminary calculation result according to its original index position through point-to-point addition or bias correction.
[0013] Optionally, the injection process employs an asynchronous hardware pipeline error correction scheduling strategy. Through logical units deployed on the bypass path that are asynchronous with the main computing flow, the injection operation is triggered when the data index processed by the main computing flow is detected to match the index of the core sensitive tensor set without interrupting the main computing flow.
[0014] Optionally, the high-dimensional state tensor containing the accumulated continuous reasoning states includes: a key-value pair cache in a large language model, or a dynamic hidden state tensor in a time-series prediction model.
[0015] In another aspect, the present invention provides a collaborative inference system for adaptive model segmentation in a heterogeneous computing environment, comprising: a topology evaluation module, used to identify a target model layer containing a high-dimensional state tensor of accumulated continuous inference states to be migrated when a preset trigger event is detected, and to establish a numerical computation accuracy representation mapping space difference model between the source computing device where the target model layer is currently located and the target computing device to which it is planned to migrate; and a truncation error simulation and feature separation module, deployed on the source computing device, used to perform semantic drift extreme value sensitivity dynamic scanning analysis on the high-dimensional state tensor according to the numerical computation accuracy representation mapping space difference model, and to asymmetrically segment it into a core sensitive tensor set and a... A broad edge tensor set; a differentiated asymmetric compression and packaging delivery module, used to perform dimensionality reduction processing on the broad edge tensor set to generate a low-precision basic tensor, and extract precise residual information from the core sensitive tensor set and compress it to generate a residual compensation vector package, and send the low-precision basic tensor and the residual compensation vector package to the target computing device; a residual compensation calculation repair injection module, deployed on the target computing device, used to perform main inference calculation using the low-precision basic tensor to generate preliminary calculation results, and simultaneously, bypass decompress the residual compensation vector package to recover the precise residual information, and inject the recovered precise residual information into the preliminary calculation results to complete the precision compensation.
[0016] Compared with existing technologies, the collaborative reasoning method and system for adaptive model segmentation in heterogeneous computing environments provided by this invention can effectively solve the technical problems of semantic drift and error cascading amplification caused by differences in hardware numerical precision systems among heterogeneous devices during dynamic model resegmentation. Specifically, by performing sensitivity analysis and asymmetric processing on the state tensor before dynamic model migration, and combining it with a bypass compensation and error correction mechanism at the target end, this invention can avoid the loss of key reasoning information when performing dynamic model resegmentation between heterogeneous computing nodes. Furthermore, this invention does not require transmitting the complete high-precision state tensor over the network; it only transmits low-precision basic tensors and minimal residual compensation information. This ensures the continuity of the inference logic and the accuracy of the results after migration with extremely low communication overhead and computational cost, thereby improving the robustness and operational efficiency of the entire collaborative reasoning system. Attached Figure Description
[0017] Figure 1 is a flowchart illustrating the collaborative reasoning method for adaptive model segmentation in a heterogeneous computing environment according to an embodiment of the present invention.
[0018] Figure 2 is a schematic diagram illustrating the principle of asymmetric partitioning of state tensors according to an embodiment of the present invention.
[0019] Figure 3 is a schematic diagram of differential encoding compression and packaging operations according to an embodiment of the present invention.
[0020] Figure 4 is a schematic diagram of the target computing device-side bypass compensation injection mechanism according to an embodiment of the present invention.
[0021] Figure 5 is a visualization of the differences in floating-point numerical precision system and precision loss mapping of the present invention.
[0022] Figure 6 is a comparison of the error cascade propagation and bypass compensation suppression effects of the present invention.
[0023] Figure 7 is a physical deployment diagram of model segmentation and state transition between heterogeneous devices according to the present invention.
[0024] Figure 8 is a comparison chart of inference accuracy attenuation under multiple dynamic migrations according to the present invention.
[0025] Figure 9 shows the communication compression efficiency of the present invention under different sensitivity thresholds and model sizes.
[0026] Figure 10 is a comparison of inference latency and throughput of different methods of the present invention under multi-model scale.
[0027] Figure 11 is a cross-sectional view of the collaborative reasoning architecture of the target computing device of the present invention. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] Example 1 This example provides a collaborative inference method for adaptive model segmentation in a heterogeneous computing environment. Please refer to Figure 1, which shows a flowchart of the method in this example. This method is mainly applied in distributed computing clusters composed of various computing devices with different hardware architectures, such as graphics processing units (GPUs) and neural network processing units (NPUs), to perform collaborative inference tasks for large-scale deep learning models.
[0030] As shown in Figure 7, the model partitioning and state transition deployment scheme between heterogeneous devices includes the following core elements. The upper part of the figure shows the hierarchical structure partitioning view of the large model, which consists of eight model layers, from Layer 1 to Layer 8. A partitioning point is set between Layer 4 and Layer 5, dividing the model into a source device-borne part and a target device-borne part. Among them, Layers 1 to 4 are deployed on the source computing device 701 (GPU card form factor, with FP32 floating-point precision computing capability, configured with heat sinks and fan cooling modules), and Layers 6 to 8 are deployed on the target computing device 702 (NPU chip form factor, BGA packaged, with BFLOAT16 precision high-efficiency inference capability). Layer 5 is the target model layer to be migrated, marked with a diagonal fill. When the source device 701 detects a trigger event (such as excessive computing load or temperature alarm), it will initiate the state transition process of the model layer. The high-dimensional state tensor (KV Cache) of the target model layer on source device 701 is fed into the state tensor processing pipeline 705, which sequentially performs three processing steps: sensitivity analysis, asymmetric segmentation, and differential encoding. After processing, the data is divided into two transmission paths: the main data channel, indicated by a thick solid arrow, transmits the low-precision basic tensor 703 to the target device 702; the compensation channel, indicated by a thin dashed arrow, transmits the residual compensation vector packet 704 to the target device 702. The two devices are interconnected via a high-speed communication link 706 with a bandwidth of 100Gbps and a latency of less than 1ms, providing physical transmission guarantees for the real-time migration of state tensors. This deployment scheme realizes dynamic segmentation of model layers and high-fidelity state migration between heterogeneous precision devices.
[0031] Further preferably, in conjunction with Figure 7, the specific implementation of the hardware topology and transmission pipeline of the model partitioning and collaborative inference deployment scheme in the heterogeneous computing environment of the present invention is as follows: In this collaborative inference cluster, the hierarchical structure of the large model is divided into a source device carrying part and a target device carrying part, and a partitioning point is established between a specific Layer 4 and Layer 5; wherein, the source computing device 701 is configured as a GPU card with FP32 floating-point precision computing capability, and the target computing device 702 is configured as an NPU chip with BFLOAT16 precision high-efficiency inference capability; when the source device 701 detects a triggering event such as excessive computing load, the target model layer (Layer) to be migrated on it is... 5) The high-dimensional state tensor is guided into the state tensor processing pipeline 705 to perform scanning analysis, segmentation, and encoding operations sequentially. After the operations are completed, the generated data stream is separated into two parallel physical or logical transmission paths: the main data channel transmits the large-volume low-precision basic tensor 703, while the compensation channel transmits the small-volume residual compensation vector packet 704. Both are transmitted synchronously or asynchronously to the target computing device 702 via a high-speed communication link 706 (e.g., an NVLink or RDMA network with a bandwidth of 100Gbps and a latency of microseconds). This asymmetric dual-channel physical deployment scheme enables the system to not only achieve accuracy protection in the algorithm logic but also completely break the physical bottleneck of single-channel congestion of massive high-precision state data at the system architecture level, ensuring that model relocation across heterogeneous computing nodes meets both real-time and fidelity standards.
[0032] Step S1: Obtain the running status of each computing device in the distributed cluster in real time. When a trigger event is detected, initiate the task flow reallocation decision and establish a precision characterization mapping space difference model.
[0033] Specifically, the system deploys a monitoring agent that continuously and periodically collects key performance indicators for each computing node in the cluster, including but not limited to CPU utilization, accelerator (such as GPU) core load, memory usage and bandwidth, and network interface throughput and latency. Triggering events can be predefined rules, such as a device's computing load exceeding a preset threshold (e.g., 95%) for a continuous period, or a sudden increase in network link packet loss rate or latency. They can also be triggered by the system receiving external instructions, such as a new device coming online or a device needing maintenance and going offline.
[0034] Upon the occurrence of the triggering event, the scheduling center of the collaborative inference system initiates a task flow reallocation decision, which aims to rebalance the system load by migrating a portion of the model layers. At this point, the system identifies the target model layers to be migrated, particularly those high-dimensional state tensors containing accumulated continuous inference states, such as hidden states in recurrent neural networks or key-value caches (KV caches) in Transformer-based architecture models. Simultaneously, the system retrieves detailed hardware configuration information from the configuration repository for both the current source computing device and the target computing device to which the model layer is planned to be migrated.
[0035] Based on this information, a model is established to describe the differences in numerical computation precision representation mapping space at the physical boundary between the two devices. This model is a data structure used to quantify the differences in underlying numerical representation between the source and target devices. For example, the source device may use standard IEEE 754 32-bit single-precision floating-point numbers (FP32), while the target device may natively support the BFLOAT16 format to improve computational efficiency. This model records in detail the differences between BFLOAT16 and FP32 in the number of exponent bits and mantissa bits, and the resulting differences in numerical representation range and precision.
[0036] Preferably, the process of building this model includes an in-depth analysis of the two precision protocols. For example, by parsing the bit structures of the two formats, a bitwise offset matrix trie can be generated. Specifically, the nodes of this trie can be used to store bit offset parameters related to the floating-point exponent, while the path from the root node to the leaf node represents specific numerical conversion rules, thus efficiently mapping the precision loss characteristics of different numerical ranges. This trie can efficiently query: how many bits will be truncated in the mantissa when an FP32 value is converted to BFLOAT16, or the probability of overflow (becoming infinity) or underflow (becoming zero) after conversion when the value is very close to the boundary of the FP32 representation range. This trie provides precise and quantifiable guidance for subsequent sensitivity analysis, enabling the system to predict which numerical ranges of state information are at the highest risk during the migration process.
[0037] As shown in Figure 5, this invention provides a visual analysis of the bit structure differences between FP32 and BFLOAT16 floating-point numerical precision systems and the resulting precision loss distribution. The upper part of Figure 5 displays a grid diagram comparing the bit-by-bit structure of the FP32 format (1 sign bit, 8 exponent bits, 23 mantissa bits, totaling 32 bits) and the BFLOAT16 format (1 sign bit, 8 exponent bits, 7 mantissa bits, totaling 16 bits). Both formats share the same sign bit and exponent bit width; the key difference lies in the mantissa bit width: BFLOAT16 retains only 7 mantissa bits, resulting in a 16-bit loss of mantissa precision compared to FP32's 23-bit mantissa. This truncated area is marked with a dashed box in the figure. The lower half of Figure 5 shows a heatmap of precision loss. The horizontal axis represents the numerical range (a logarithmic scale to base 10, covering the complete dynamic range from minimum to maximum values), and the vertical axis represents the FP32 mantissa index (bits 0 to 22). The shades of gray indicate the relative precision loss rate when converting from FP32 to BFLOAT16. The heatmap uses a dashed line to mark the truncation boundary at bit 7; the high-index mantissas above this boundary exhibit significant precision loss due to truncation. Furthermore, the figure marks the high-risk overflow and underflow regions at both ends of the numerical range, indicating that precision loss is further aggravated in extreme numerical ranges. A connecting arrow establishes a correspondence between the truncated region in the upper half and the high-loss region in the lower half, visually demonstrating how bit structure truncation maps to a specific precision loss distribution, providing a visual basis for establishing the bit operation offset matrix trie.
[0038] Step S2: On the source computing device, perform semantic drift extremum sensitivity dynamic scanning analysis on the state tensor to be migrated, and asymmetrically divide it into a core sensitive tensor set and an edge broad tensor set.
[0039] This step is performed locally on the source computing device before physical transmission occurs to avoid unnecessary network overhead. First, the system captures the latest autoregressive cumulative inference state tensor in the current inference cycle. Then, using the precision representation mapping space difference model established in step S1 as input, a global dynamic scan analysis of the "semantic drift extremum sensitivity" is performed on this state tensor.
[0040] Specifically, this analysis calculates a bias tolerance score for each element in the tensor through a quantized evaluation process. A feasible approach is to apply a small perturbation to each element, the magnitude of which simulates the maximum quantization error that might occur from the source device to the target device. Then, through simulated forward propagation, the impact of this perturbation on the model's final output (such as the softmax probability distribution for a classification task or the logit value of the next term in a generation task) is observed. Elements with a larger impact have lower bias tolerance scores, indicating greater sensitivity to accuracy loss.
[0041] Based on the calculated offset tolerance score, a threshold is set to logically and asymmetricly divide the state tensor into two parts, as shown in Figure 2. Elements with scores below the threshold are classified into the core-sensitive tensor set 201. These are typically the values upon which the model relies for critical decisions; any small changes can be amplified by subsequent computational layers, leading to biased inference results. Elements with scores above the threshold are classified into the marginal broad tensor set 202. These elements contribute relatively little to the overall model, or their values are not sensitive to small fluctuations and can tolerate a certain degree of accuracy loss.
[0042] Preferably, this sensitivity analysis can be further optimized when dealing with key-value caches (KV caches) of large language models.
[0043] In substep 2.1, the normalized attention weight score matrix reveals which historical tokens contribute most to the currently predicted token in the current context. The historical gradient residual matrix (if available) reflects which state values significantly contribute to reducing the loss function during model training or fine-tuning. Performing a logical AND operation on the regions with higher values in these two matrices efficiently constructs a mask of the prior guiding coordinate set, which initially delineates the key regions of the model's long-range memory.
[0044] In substep 2.2, the constructed arithmetic transformation projection layer is a software function. It does not perform actual hardware transformations, but rather precisely simulates the numerical truncation behavior of the target device hardware in a high-precision computing environment, such as the "round to even" rounding rule of BFLOAT16. By inputting the original KV Cache tensor into this function, a tensor with a precision loss after the migration can be obtained. Subtracting the two yields the absolute physical precision error mapping tensor, where the value of each element represents the exact error introduced by the migration.
[0045] In substep 2.3, the error mapping tensor is multiplied by the prior mask using a Hadamard product, i.e., element-wise multiplication. This operation can be understood as a weighted filtering, which ensures that those locations that simultaneously satisfy "semantic importance" (mask value of 1) and "physical error large" (high error value) receive the highest final score, thereby pinpointing the most critical and sensitive data points that require the greatest protection.
[0046] More preferably, during the process of determining the location of the core sensitive tensor set, the system can also configure a dynamic damping factor in conjunction with the device's operating status. When the source device reports a migration triggering event of extremely high priority, such as an emergency power outage or physical layer overheating, the dynamic damping factor will automatically increase the set score threshold, thereby expanding the proportion of the edge broad tensor set and shrinking the core sensitive tensor set, achieving extremely stringent communication latency compliance. This cross-feedback between deploying heterogeneous computing power physical characteristics (such as the combination of trie and Hadamard product operations) within the model and external hard environment factors enables the present invention to adaptively achieve the optimal balance between compression ratio and semantic alignment depth in dynamic and abnormal environments.
[0047] Step S3: Based on the segmentation results, perform differentiated asymmetric encoding compression and packaging on the state tensor.
[0048] As shown in Figure 3, this step processes two data streams in parallel.
[0049] In the first operation flow 301, a direct and efficient precision conversion is performed on the edge-wide tensor set 202. For example, if the source device is FP32 and the target device is BFLOAT16, hardware instructions or optimized software library functions are directly invoked to convert the format of this data. This process discards the last 16 bits of each 32-bit floating-point number, thus directly halving the data volume. The converted data is called the low-precision fundamental tensor 310.
[0050] In the second operation flow 302, the processing for the core-sensitive tensor set 201 is more refined. First, high-precision details that would be discarded in standard precision conversion, such as the last 16 bits of the FP32 value, are precisely extracted to form a differentially precise residual vector. This vector is characterized by its sparseness (non-zero values only at core-sensitive locations) and small numerical range. Subsequently, to further reduce transmission overhead, a compression algorithm is applied to this high-dimensional sparse residual vector. For example, a low-rank approximation can be found using multidimensional tensor decomposition techniques (such as Tucker decomposition), or it can be encoded into a low-dimensional latent space using a pre-trained small autoencoder. After compression encoding, a residual compensation vector packet 320 with reduced data volume but retaining core compensation information is formed.
[0051] Finally, the low-precision basic tensor 310 and the residual compensation vector packet 320 are packaged together to form a hybrid data packet 330.
[0052] More preferably, the residual compensation vector packet 320 in the differential encoding includes a latent spatial feature representation generated based on an autoencoder. This autoencoder undergoes offline lightweight pre-training before model transfer, specifically designed to learn the distribution features of "hardware-level mantissa information discarded due to accuracy limitations." By applying this autoencoder, not only are the core components affecting semantic drift effectively extracted, but the network throughput pressure on the compensation channel is also significantly reduced. This design, which uses an AI algorithm (autoencoder) for low-level hardware-level truncation error extraction and compressed packaging, ensures extremely low-latency, accurate state compensation even in bandwidth-constrained networks, thereby significantly improving the communication and synchronization efficiency of heterogeneous accuracy model layers.
[0053] Step S4: Send the low-precision basic tensor and the residual compensation vector packet to the target computing device.
[0054] Specifically, the hybrid data packet 330 generated in step S3 is sent to the target computing device through the communication link between heterogeneous devices.
[0055] Step S5: Perform bypass lossless restoration and compensation value injection correction on the target computing device.
[0056] As shown in Figure 4, the design of the target computing device includes special processing logic.
[0057] First, the mixed data packet is unpacked. The large, low-precision fundamental tensor 310 is directly fed into the cache of the main computing unit 401 for use in the main model forward propagation calculation.
[0058] In sub-step 5.1, the main computation unit 401 utilizes its efficient low-precision computing power to perform calculations on the newly input lexical units and this low-precision state tensor, such as performing matrix multiplication in the attention mechanism, to generate a preliminary calculation result, namely the preliminary basic attention score matrix 410. This result is correct in macroscopic structure, but there may be deviations in numerical details introduced by precision truncation.
[0059] Meanwhile, in sub-step 5.2, an independent bypass decompression unit 402 is activated. This unit is responsible for processing the small residual compensation vector packet 320. It performs the inverse operation of the compression algorithm, such as through tensor reconstruction or a decoder network, to losslessly restore the compressed residual information, forming a residual array 420 that is completely consistent with the original residual vector structure and values.
[0060] In substep 5.3, a crucial injection operation is performed. An appropriate insertion point is selected in the model's forward computation flow. For example, in the Transformer's attention layer, this point is located after the dot product of the query vector and key vector, but before the Softmax nonlinear activation function. At this insertion point, the compensation injection control operator 403 is triggered. Based on the original index information recorded in the residual array 420, it precisely injects the recovered accurate correction values, either additively or with bias correction, into the corresponding positions of the initial basic attention score matrix 410. This process, by injecting accurate correction values at key positions, completes the numerical adjustment of these key positions, ultimately generating a high-precision compensated tensor 430. This tensor is semantically highly consistent with the result obtained using only high-precision computation and is subsequently fed into subsequent computation layers (such as Softmax).
[0061] Furthermore, to ensure the compensation process does not impact the performance of the main computation stream, the injection operation can employ a non-blocking asynchronous hardware pipeline error correction scheduling strategy. Specifically, the compensation injection control operator 403 can be designed as hardware logic that runs asynchronously with the main computation unit 401. While the main computation unit 401 processes data on the pipeline, this logic unit pre-decompresses the residuals. By monitoring the data addresses flowing through the main computation pipeline, when it detects an address matching the index of the core sensitive tensor set, it injects the corresponding residual value within one or more clock cycles via a dedicated high-speed data path without pausing the pipeline. This design completely decouples the compensation overhead from the main computation path, achieving parallel precision repair without interrupting the main pipeline computation.
[0062] More preferably, in conjunction with the cross-sectional view of the collaborative inference architecture of the target computing device shown in Figure 11, the internal hardware resources of the target computing device are physically divided into two independent execution channels: the main inference path and the bypass compensation path. When performing bypass compensation injection, the low-precision basic tensor 1101, due to its BFLOAT16 format, seamlessly enters the main computing unit 1102 of the main inference path. After linear projection of Query, Key, and Value and after multiplication to calculate the initial attention score and before the Softmax normalization stage, a dedicated hardware-level compensation injection point 1106 is established at the pipeline node. At the same time, the residual compensation vector packet 1103 containing compressed features enters the underlying bypass decompression unit 1104 through the bypass compensation path. In this unit, the inversion operation is completed in the three-stage independent pipeline of decoding, reconstruction, and output to form the residual array 1105. Finally, the residual array 1105 is merged into node 1106 shown in Figure 11 through a dedicated asynchronous injection path across paths to generate the compensated tensor 1107. This preferred solution achieves absolute zero-blocking forward inference performance enhancement at the hardware level by completely decoupling the compensation micro-operation at the underlying circuit logic level to a specific "synchronous-asynchronous decoupling pipeline 1108", thus completely concealing the bypass injection within the clock cycle gap of the main attention.
[0063] More preferably, the process of injecting the recovered accurate residual information into the preliminary calculation result is achieved by adding a dynamic spatiotemporal gating routing network based on attention decay memory characteristics, and performing on-demand pulsed spatiotemporal injection control.
[0064] Specifically, in order to further avoid the additional bypass power consumption and decompression delay caused by indiscriminately injecting residual data of all core sensitive tensors in a computationally intensive manner, a dynamic spatiotemporal gating routing network based on attention decay memory characteristics is configured between the independent bypass decompression unit 402 and the compensation injection control operator 403. The specific operation mechanism of the dynamic spatiotemporal gating routing network is as follows: In each forward iteration step of model inference, the gating network will bypass and monitor the latest preliminary calculation results generated by the main computing unit 401 in real time, namely, the low-precision attention distribution score or weight index; when the gating network determines that in the current specific prediction step, the attention weight of some historical highly sensitive words has fallen below the preset dynamic timeliness threshold, it will automatically enter a dormant state in the bypass path or truncate the data decompression and residual injection micro-operation sequence for the corresponding position; only when the gating network detects that an attention echo jump phenomenon has occurred in the subsequent inference sequence, that is, the model suddenly becomes strongly dependent on the context of a certain historical sensitive word, causing its corresponding attention activation feature to surge instantly and exceed the preset wake-up threshold, the gating network will then activate and trigger the compensation injection control operator 403 in a pulsed and high-frequency manner through a dedicated data express lane in the following few clock cycles to implement high-precision residual injection compensation for the historical core data. This reinforcement design transforms static bypass data splicing from a purely physical dimension into on-demand, real-time air conditioning control based on the cognitive attention distribution characteristics of the bypass target compensation mechanism itself. This effectively avoids the limitations of global forced decompression in existing technologies, and significantly reduces the overall energy consumption and latency of long-sequence heterogeneous cluster computing systems while achieving high-requirement semantic alignment.
[0065] As shown in Figure 6, this invention compares and demonstrates the significant differences in cumulative error control between the direct truncation migration method and the bypass compensation injection method of this invention during multi-layer inference of the Transformer model. The horizontal axis of Figure 6 represents the Transformer layer number (L1 to L12), and the vertical axis represents the cumulative error (logarithmically scaled, representing the deviation relative to the original FP32 accuracy). The figure includes two comparative curves: the dashed line represents the error propagation trajectory of the direct truncation migration (without compensation). Before the dynamic migration trigger point (L4 layer), the cumulative error of both methods remains at a low baseline level; after the inter-device model migration is triggered at L4 layer, the error of the direct truncation method increases exponentially, exhibiting a typical error cascading amplification effect, exceeding the error tolerance threshold near L9 layer, and amplifying by several orders of magnitude by L12 layer. The solid line represents the error propagation trajectory after using the bypass compensation injection method of this invention. At each migration layer, the truncation error is corrected in real time through a bypass compensation mechanism, keeping the cumulative error consistently below the threshold. The shaded area between the two curves visually represents the error suppression effect of the bypass compensation mechanism. The Transformer layer diagram at the bottom of the figure uses different shades of gray to indicate the distribution of the original device (FP32 precision), the migration trigger layer, and the new device (BFLOAT16 precision), clearly demonstrating the device switching scenario in a heterogeneous computing environment.
[0066] Example 2 This example provides a collaborative inference system with adaptive model segmentation in a heterogeneous computing environment. This system aims to implement the method described in Example 1 above. The system can be a logical functional division, and its components can be implemented as software modules, firmware, or dedicated hardware circuits.
[0067] The system includes a topology evaluation module, which is responsible for real-time monitoring of the topology of the entire distributed cluster and the operating status of each computing node. When a preset trigger event is detected, such as a performance bottleneck or device change, this module initiates a rebalancing decision. Its core function is to identify the source and target computing devices based on the decision results, and, according to their hardware specifications, establish and output a precision characterization mapping space difference model that accurately quantifies the difference in numerical computation precision between the two. This module corresponds to step S1 in method embodiment 1.
[0068] The truncation error simulation and feature separation module is deployed on the source computing device. It receives the difference model output from the topology evaluation module as guidance. When a state tensor is determined to require migration, this module first performs a dynamic sweep analysis of semantic drift extremum sensitivity to assess the tolerance of different data regions within it to the precision truncation of the target device. Based on the analysis results, it asymmetrically partitions the state tensor into a core sensitive tensor set requiring strict protection and a marginal broad tensor set that can undergo conventional precision transformation. This module corresponds to step S2 in method embodiment 1.
[0069] The differentiated asymmetric compression and packaging delivery module is also deployed on the source computing device. It receives the output from the feature separation module. Internally, this module contains two parallel processing pipelines: one for performing fast, coarse-grained dimensionality reduction on the broad edge tensor set to generate low-precision basic tensors; the other for extracting precise residual information from the core sensitive tensor set and performing deep compression to generate a residual compensation vector packet. Finally, it mixes and packages these two processed data streams and sends them to the target computing device via a communication interface. This module corresponds to steps S3 and S4 in method embodiment 1.
[0070] The residual compensation calculation and repair injection module is deployed on the target computing device. It is responsible for receiving and unpacking data from the source device. The core design of this module is a bypass compensation architecture. While the main computing unit performs mainstream calculations using low-precision basic tensors, an independent bypass unit decompresses and restores the precise residual information. At a predetermined, specific insertion point in the main computing pipeline that has the greatest impact on the result, this module injects the recovered residual into the low-precision calculation result in a point-to-point correction manner through a compensation value injection mechanism. This achieves high-precision semantic alignment and compensation repair without sacrificing performance. This module corresponds to step S5 in method embodiment 1. Furthermore, the residual compensation calculation and repair injection module also includes a dynamic spatiotemporal gating routing network based on attention decay memory characteristics. The dynamic spatiotemporal gating routing network is configured to monitor the low-precision preliminary attention calculation results output by the main computing unit in real time. When it is determined that the attention weight of historical core sensitive data is lower than the set time threshold, the corresponding bypass decompression and residual injection micro-operation sequence is put into hibernation. When the attention weight echo surge exceeds the wake-up threshold, the precise residual information restoration and compensation value injection control at the corresponding position is activated by pulse, thereby realizing on-demand spatiotemporal routing selection and power saving of the bypass error correction process based on the target cognitive attention distribution itself.
[0071] In practical deployment, the topology evaluation module can run as part of the central scheduling service. The truncation error simulation and feature separation module, as well as the differentiated asymmetric compression packaging and distribution module, can be integrated into the inference framework of the source computing device as part of a dynamic link library or driver. The residual compensation calculation and repair injection module can be implemented as a custom operator in the target device's inference framework or through programmable hardware logic to ensure its efficient execution. These modules work together to constitute the complete collaborative inference system proposed in this invention.
[0072] Example 3 This example further illustrates the implementation process of the method of the present invention through a specific scenario applied to a real-time control system of an autonomous mobile platform. In this scenario, a large-scale multimodal generation model is deployed on a heterogeneous cluster composed of different computing devices to continuously fuse environmental data from multiple sensors and generate control and trajectory planning instructions for the platform in real time.
[0073] During normal operation of the system, the key layer responsible for long-range temporal dependency modeling, including its key-value cache containing historical states, is deployed on a high-performance graphics processor (device A) supporting FP32 high-precision computing. At a certain moment, the system's environmental awareness module detects that the operating temperature of device A exceeds a safe threshold, triggering the system's thermal management frequency reduction protection mechanism. To ensure that the real-time performance of control command generation is not affected, the scheduling system decides to dynamically migrate this key model layer to a dedicated neural network processing unit (device B) with lower power consumption and native computing precision using BFLOAT16.
[0074] In this scenario, directly converting the FP32 format KV Cache to BFLOAT16 format using existing technology would result in the loss of critical state information due to precision truncation. For example, a small change in the state vector value corresponding to an obstacle approaching at high speed in the KV Cache might be amplified after multiple iterative inference steps, leading to a deviation in the system's collision risk prediction. Conversely, transmitting the uncompressed FP32 state tensor in its entirety to ensure accuracy would consume excessive communication bandwidth, and the introduced transmission latency would prevent the platform from responding promptly to real-time changes in the external environment.
[0075] To solve this problem, the method of the present invention is performed according to the following steps. First, after the migration decision is made, the system establishes a precision representation mapping space difference model from FP32 of device A to BFLOAT16 of device B according to step S1. This model precisely defines the rounding rules for the mantissa in the numerical conversion process and the numerical range in which overflow may occur.
[0076] Next, on device A, following step S2, the system performs sensitivity analysis on the KV Cache tensor to be migrated. By analyzing the attention weight matrix, the system identifies state vectors related to the aforementioned high-speed approaching obstacles, which have the highest weight in influencing the model's final decision. Simultaneously, by simulating the truncation operation of BFLOAT16, it is calculated that these vectors will generate the largest physical accuracy error during the migration process. Therefore, these state vectors are divided into the core sensitive tensor set, while other vectors representing distant static or low-speed moving objects are divided into the peripheral broad tensor set.
[0077] Subsequently, according to step S3, the system performs differential processing on the two parts of data. The marginal broad tensor set is directly converted into BFLOAT16 format to form a low-precision basic tensor. For the core sensitive tensor set, the system accurately extracts the mantissa information that will be discarded during the conversion in its FP32 representation to form a sparse residual vector, and uses an autoencoder to compress it into a small residual compensation vector packet.
[0078] According to step S4, the two processed data parts are packaged together and sent to device B.
[0079] Finally, on device B, according to step S5, the system performs bypass compensation injection. The main computing unit directly uses the received low-precision basic tensor to perform preliminary trajectory prediction calculation for the next time step. An independent decoding unit synchronously decompresses the residual compensation packet to recover the high-precision residual information. After the attention score calculation is completed and before the Softmax activation function takes effect, this residual information is precisely injected additively into the preliminary calculation result at the position corresponding to the high-speed obstacle. Through this operation, the model corrects the trajectory prediction accuracy of key targets without interrupting the real-time computation flow, ensuring that the autonomous mobile platform can generate and execute safe and reliable obstacle avoidance commands. This implementation process demonstrates the effectiveness of the present invention in ensuring the inference accuracy of critical tasks and meeting strict real-time requirements.
[0080] Example 4 To verify the beneficial effects of the present invention, the following comparative experiments were conducted, mainly including inference accuracy maintenance, communication overhead suppression, and inference latency and system throughput: Further preferably, the test conditions, test cases and comparison method principles on which the comparative experiments are based are as follows: It can provide reliable verification for the "adaptive model segmentation and accurate compensation" of heterogeneous devices.
[0081] Specifically, regarding the testing environment, the heterogeneous cluster computing hardware platform consisted of a hybrid deployment of high-performance GPU nodes with FP32 floating-point high-precision computing capabilities (used to simulate source computing device A) and dedicated neural tensor processing unit (NPU) nodes with BFLOAT16 efficient inference capabilities (used to simulate target computing device B). A controlled 100Gbps high-speed RDMA communication data link was configured between the devices. Representative large language model series (covering parameter scales from 1B to 65B) were selected for evaluation to verify the technical adaptability of this architecture at different generalization scales.
[0082] In terms of test case design, a stress-triggered scenario for extreme long-sequence dynamic migration was constructed. The system uses mainstream long-text reading comprehension and complex question-answering evaluation datasets, and in the middle of the execution of a specific inference task sequence (such as when the autoregression generates a critical point when the context is at full load), the central control node injects a sudden alarm command of "source computing node physical core temperature exceeding limit / full load" through software interruption, forcibly pulling up the non-smooth scheduling of the model state across the computing precision of the target device, thereby rigorously examining the precision drift trajectory and system latency fluctuations in the migration transient and subsequent long-term inference.
[0083] At the level of comparative methodology, this evaluation introduces two main reference baselines currently used in the industry for quantitative benchmarking: one is the direct precision truncation migration method (Baseline 1). Its basic principle is to adopt an indiscriminate "hard truncation" strategy when triggering hardware architecture switching, that is, to discard the tails of all extremely high-dimensional full-precision (FP32) inference history state tensors according to the target device's receiving standard (BFLOAT16). Although this method is simple in principle and does not consume additional packet processing power, it forcibly discards all potential core semantic micro-features, which can easily lead to a vicious cascading amplification of timing prediction errors without any side-channel compensation measures.
[0084] The second method is the full-precision transmission method (Baseline 2): its principle is based on the "upper limit" of the ideal state, that is, when cross-heterogeneous node scheduling occurs, it completely abandons any format downsampling of the state buffer, forcibly transmits the full-scale high-precision data sequence across the network link to the target node and mounts it completely in memory. Although this processing method eliminates the precision loss caused by numerical precision truncation at the source, its principle determines that it will inevitably trigger an extremely heavy network communication storm and extremely high access latency penalty at the target end.
[0085] Regarding the verification of inference accuracy maintenance, Figure 8 shows the changes in inference accuracy of the proposed method, the direct precision truncation migration method, and the full precision transfer method after multiple dynamic migrations. The horizontal axis represents the number of dynamic migrations, and the vertical axis represents inference accuracy (Top-1 Accuracy). Experimental results show that the proposed method can maintain approximately 95.2% inference accuracy after 20 dynamic migrations, with extremely limited accuracy decay. In contrast, the direct precision truncation migration method's accuracy drops to approximately 78.4% after 10 migrations and further decreases to approximately 71.0% after 20 migrations, exhibiting a significant cascading amplification of errors. The full precision transfer method, as the theoretical upper limit, maintains approximately 97.1% accuracy after 20 migrations. The horizontal dashed line in the figure indicates the 90% acceptable accuracy threshold. The proposed method consistently remains above this threshold across all tested migration counts, while the direct precision truncation method falls below this threshold after approximately 6 migrations. These results fully demonstrate the significant effect of the proposed bypass compensation injection mechanism in suppressing inference accuracy decay.
[0086] Regarding the verification of low communication overhead, Figure 9 shows a heatmap illustrating the communication compression efficiency under different sensitivity thresholds (0.1 to 0.9) and model sizes (1B to 65B). Each cell in the heatmap is labeled with the compression ratio (the ratio of the original data volume to the actual transmitted data volume) under the corresponding condition; the darker the grayscale level, the higher the compression ratio. Experimental data shows that the compression ratio increases monotonically with the increase of the sensitivity threshold and also shows an upward trend with the increase of the model size. Under the extreme condition of a 65B model and a threshold of 0.9, the compression ratio can reach 7.8 times. The optimal region marked by the dashed box (sensitivity thresholds of 0.4 to 0.6) balances compression efficiency and inference accuracy, and compression ratios of 2.5 times to 6.2 times can be obtained for models of all sizes within this region. The above results demonstrate that this invention, through the strategy of transmitting only low-precision basic tensors and minimal-volume residual compensation packets, can significantly reduce the amount of data transmitted between heterogeneous devices while maintaining inference quality.
[0087] As shown in Figure 10, the verification of inference latency and throughput is illustrated by a grouped bar chart (left vertical axis, ms / token) and a line graph (right vertical axis, tokens / s). The inference latency of the proposed method is slightly higher than the direct precision truncation transfer method, but significantly lower than the full precision transfer method. For example, the inference latency of the proposed method for the 65B model is approximately 135ms / token, while the full precision transfer method reaches 285ms / token, representing a reduction of approximately 52.6%. Regarding system throughput, the throughput of the proposed method is close to that of the direct precision truncation method and significantly higher than that of the full precision transfer method. These experimental results demonstrate that the asynchronous bypass compensation mechanism employed in this invention successfully separates the compensation computation overhead from the main computation path, achieving low latency and high throughput while maintaining high inference accuracy.
[0088] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A collaborative reasoning method for adaptive model segmentation in a heterogeneous computing environment, characterized in that, Includes the following steps: Step S1: When a preset trigger event is detected, identify the target model layer containing the accumulated continuous inference state of the high-dimensional state tensor to be migrated, and establish a numerical computation accuracy representation mapping space difference model between the source computing device where the target model layer is currently located and the target computing device to which it is planned to be migrated; Step S2: On the source computing device, using the numerical computation accuracy representation mapping space difference model, perform semantic drift extreme value sensitivity dynamic scanning analysis on the high-dimensional state tensor to generate a shift tolerance score, and based on the set score threshold, asymmetrically segment the high-dimensional state tensor into a core sensitive tensor set and an edge broad tensor. The set includes a core sensitive tensor set containing state information where the offset tolerance score is lower than the score threshold, and an edge broad tensor set containing state information where the offset tolerance score is greater than or equal to the score threshold; Step S3: Perform differentiated data processing on the core sensitive tensor set and the edge broad tensor set: perform dimensionality reduction processing on the edge broad tensor set to generate a low-precision basic tensor; and extract precise residual information from the core sensitive tensor set and compress it to generate a residual compensation vector packet; Step S4: Send the low-precision basic tensor and the residual compensation vector packet to the target computing device; Step S5: On the target computing device, the low-precision basic tensor is used to perform main inference calculation to generate preliminary calculation results. At the same time, the residual compensation vector packet is decompressed by bypass to recover the accurate residual information, and the recovered accurate residual information is injected into the preliminary calculation results to complete the accuracy compensation.
2. The method according to claim 1, characterized in that, In step S1, establishing the numerical computation accuracy characterization mapping space difference model includes: retrieving the floating-point numerical protocols supported by the source computing device and the target computing device respectively, comparing and analyzing the parameters of the two protocols, and generating a bit operation offset matrix dictionary tree. The dictionary tree is used to predict the probability distribution of overflow or underflow of the values in the high-dimensional state tensor after migration to the target computing device.
3. The method according to claim 1 or 2, characterized in that, The high-dimensional state tensor is a key-value pair cache; the semantic drift extremum sensitivity dynamic scanning analysis in step S2 further includes: extracting the normalized attention weight score matrix generated by the key-value pair cache in the forward propagation calculation, and constructing a priori guidance coordinate set mask; constructing an arithmetic transformation projection layer that simulates the underlying numerical truncation characteristics of the target computing device, performing pseudo-transfer calculation on the original key-value pair cache through the arithmetic transformation projection layer to obtain a reconstructed tensor with precision loss; subtracting the original key-value pair cache from the reconstructed tensor element-wise to obtain an absolute physical precision error mapping tensor; and performing a Hadamard product operation on the absolute physical precision error mapping tensor and the priori guidance coordinate set mask to determine the position of the core sensitive tensor set.
4. The method according to claim 1, characterized in that, In step S3: the dimensionality reduction processing for the edge broad tensor set includes: truncating the low-order mantissa of the floating-point number according to the numerical precision standard supported by the target computing device; the extraction of precise residual information for the core sensitive tensor set includes: at the index position corresponding to the core sensitive tensor set, stripping and extracting the mantissa information that was discarded due to precision limitations to form a differential precise residual vector.
5. The method according to claim 4, characterized in that, In step S3, the compression includes: applying a multidimensional tensor decomposition algorithm or an autoencoder algorithm to the differential exact residual vector to encode it into a low-bit representation.
6. The method according to claim 1, characterized in that, In step S5, the process of injecting the recovered precise residual information into the preliminary calculation result includes: loading the low-precision basic tensor into the main calculation unit, performing calculations with subsequent input data to generate the preliminary calculation result; simultaneously, in an independent bypass decompression unit, decompressing and restoring the residual compensation vector packet to recover the precise residual information and form a residual array; and superimposing the residual array onto the preliminary calculation result.
7. The method according to claim 6, characterized in that, The process of superimposing the residual array onto the preliminary calculation result involves selecting an insertion point located after the operation and before a preset subsequent processing layer in the main computation flow of the model forward propagation. The residual array is then injected into the corresponding position of the preliminary calculation result based on its original index position through point-to-point addition or bias correction.
8. The method according to claim 7, characterized in that, The injection process employs an asynchronous hardware pipeline error correction scheduling strategy. Through logical units deployed on the bypass path that are asynchronous with the main computing flow, the injection operation is triggered when the data index processed by the main computing flow matches the index of the core sensitive tensor set without interrupting the main computing flow.
9. The method according to claim 1, characterized in that, The high-dimensional state tensor containing accumulated continuous reasoning states includes: key-value pair caches in large language models, or dynamic hidden state tensors in time-series prediction models.
10. A collaborative inference system with adaptive model segmentation in a heterogeneous computing environment, characterized in that, include: A topology evaluation module is used to identify the target model layer containing a high-dimensional state tensor with accumulated continuous inference states to be migrated when a preset trigger event is detected, and to establish a numerical computation accuracy representation mapping space difference model between the source computing device where the target model layer is currently located and the target computing device to which it is planned to be migrated. A truncation error simulation and feature separation module is deployed on the source computing device and is used to perform semantic drift extreme value sensitivity dynamic scanning analysis on the high-dimensional state tensor according to the numerical computation accuracy representation mapping space difference model, and to asymmetrically segment it into a core sensitive tensor set and an edge broad tensor set. A differentiated asymmetric compression packaging and delivery module is used to perform dimensionality reduction processing on the edge broad tensor set to generate a low-precision basic tensor, and to extract accurate residual information from the core sensitive tensor set and compress it to generate a residual compensation vector packet, and send the low-precision basic tensor and the residual compensation vector packet to the target computing device. The residual compensation calculation and repair injection module is deployed on the target computing device. It is used to perform main inference calculations using the low-precision basic tensor to generate preliminary calculation results. At the same time, it bypasses and decompresses the residual compensation vector packet to recover the accurate residual information, and injects the recovered accurate residual information into the preliminary calculation results to complete the accuracy compensation.
Citation Information
Patent Citations
Large model training data enhancement method
CN120235194A
Large model pre-training system based on distributed parallel processing
CN120509482A
Heterogeneous computing power cooperative scheduling system and method for mixed precision training
CN121579206A
Multi-granular clustering-based solution for key-value cache compression
US20250094712A1
Convergent Intelligence Fabric for Multi-Domain Orchestration of Distributed Agents with Hierarchical Memory Architecture and Quantum-Resistant Trust Mechanisms
US20250259085A1
Cited By
An internet of things data compression transmission method based on semantic communication
CN122268957A
