Big data processing and intelligent consulting method based on deep learning
By decoupling the large deep learning model into slow and fast networks, new knowledge is written using feature dimensionality reduction and adaptive projection. Combined with a gating fusion mechanism of uncertainty entropy and confidence, the problem of real-time acquisition and stable retention of new and old knowledge in streaming big data scenarios is solved, achieving intelligent consultation with millisecond-level response and logical coherence.
Patent Information
- Application Number
- CN202611354711.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-20
AI Technical Summary
Existing retrieval enhancement generation schemes and efficient parameter fine-tuning schemes are difficult to balance the real-time acquisition of new knowledge and the stable retention of old knowledge in streaming big data application scenarios. Retrieval enhancement generation schemes fail to internalize new knowledge into model parameters, which can easily lead to logical breaks and cognitive biases in the generation process. Efficient parameter fine-tuning schemes, due to their long update time and large weight adjustment range, are difficult to meet the millisecond-level real-time response requirements and are prone to catastrophic forgetting.
The deep learning model is decoupled into two asymmetric information processing paths: a slow network with frozen parameters and a fast network that can be dynamically written. The fast network completes knowledge writing through feature dimensionality reduction and adaptive projection that satisfies orthogonality constraints, while the slow network remains frozen during the update process and does not involve gradient calculation. The adaptive gating fusion mechanism, which combines uncertainty entropy and the confidence of the fast network, automatically determines the timing of calling new and old knowledge.
It achieves millisecond-level knowledge update latency, avoids catastrophic forgetting, ensures the real-time nature and logical coherence of answers, and balances the stable retention of new and old knowledge with real-time acquisition.
Smart Images

Figure CN123138385A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of deep learning and big data processing technology, specifically to a method for big data processing and intelligent consulting based on deep learning. Background Technology
[0002] To enable large deep learning models to update knowledge in real time, existing technologies mainly employ two approaches: retrieval-enhanced generation technology and efficient parameter fine-tuning technology. Retrieval-enhanced generation technology stores streaming data in an external vector database and calculates semantic embedding vectors after the system receives the data. When a user initiates a consultation request, relevant text fragments are retrieved based on the semantic vector of the question. The retrieval results are then concatenated with the user's original question and input into the large model to generate an answer. Efficient parameter fine-tuning technology uses methods such as low-rank adaptation matrices to periodically fine-tune some weights of the large model to internalize new knowledge into the model parameters.
[0003] The aforementioned retrieval enhancement generation schemes only concatenate the retrieval text at the prompt word level, without changing the weights of neurons within the model. New knowledge always exists in the form of external text fragments. When there are differences in expression or potential conflicts between the retrieval fragments and the model's inherent cognition, the model is prone to logical breaks and contradictions between new and old knowledge during the generation stage. Efficient parameter fine-tuning schemes require gradient calculations and adjustments to model weights, with update cycles generally on the order of hours, making it difficult to meet the real-time response requirements of streaming data scenarios. At the same time, large-scale adjustments to weights can easily cause a shift in the weights of the original encoded common sense and language logic in the model, leading to catastrophic forgetting and causing the model to lose some of its mastered basic capabilities. Therefore, we propose a big data processing and intelligent consultation method based on deep learning. Summary of the Invention
[0004] The purpose of this invention is to provide a method for big data processing and intelligent consultation based on deep learning.
[0005] The technical problem this invention aims to solve is that existing retrieval enhancement generation schemes and parameter efficient fine-tuning schemes are difficult to balance the real-time acquisition of new knowledge and the stable retention of old knowledge in streaming big data application scenarios. Retrieval enhancement generation schemes fail to internalize new knowledge into model parameters, which can easily lead to logical breaks and cognitive biases in the generation process. Parameter efficient fine-tuning schemes, due to their long update time and large weight adjustment range, are difficult to meet the millisecond-level real-time response requirements and are prone to catastrophic forgetting. In addition, existing schemes also lack an intelligent judgment mechanism for the timing of calling new knowledge and existing knowledge when generating answers.
[0006] To address the aforementioned technical problems, this invention provides a deep learning-based method for big data processing and intelligent consultation. This method receives continuously arriving text fragments from streaming big data. It uses a slow network with frozen parameters that does not participate in gradient updates to perform forward reasoning on the text fragments, obtaining the semantic hidden features and predicted probability distribution output by the slow network. The slow network carries general common sense, basic language understanding, and logical reasoning capabilities. Simultaneously, a fast network, including a dynamic hashing matrix and a spiking neural network, performs feature extraction and sparse writing on the text fragments: the high-dimensional semantic features corresponding to the text fragments are dimensionality-reduced to obtain low-dimensional feature vectors. These low-dimensional feature vectors are then mapped to the address space of the dynamic hashing matrix using a projection matrix that satisfies orthogonal constraints. The hash index is used to write the low-dimensional feature vector into the corresponding slot of the dynamic hash matrix, thus obtaining the real-time knowledge features output by the fast network. The above writing process does not involve reading or modifying any weight matrix of the slow network, thereby achieving complete isolation between the new knowledge writing process and the slow network parameters in terms of structure. In the answer generation stage, the uncertainty entropy is calculated based on the predicted probability distribution output by the slow network, and the confidence score is obtained based on the real-time knowledge features output by the fast network. The uncertainty entropy and the confidence score are combined to calculate the gating fusion coefficient. Based on the gating fusion coefficient, the semantic hidden features of the slow network and the real-time knowledge features of the fast network are weighted and fused to obtain the fused features. The intelligent consultation answer text is generated based on the fused features.
[0007] Compared with the prior art, the beneficial effects of the present invention by adopting the above technical solution are as follows:
[0008] 1. This invention decouples a large deep learning model into two asymmetric information processing paths: a slow network with frozen parameters and a fast network that can be dynamically written. The knowledge writing process of the fast network is completed through feature dimensionality reduction and adaptive projection that satisfies orthogonal constraints, without the need for global backpropagation and gradient calculation. This can compress the update latency of streaming data from hours in the prior art to milliseconds.
[0009] 2. Because the slow network parameters remain frozen during the knowledge update process and are not read or modified in any way, this invention can completely preserve existing common sense and language logic capabilities, fundamentally avoiding the occurrence of catastrophic forgetting phenomena.
[0010] 3. This invention utilizes an adaptive gating fusion mechanism jointly driven by uncertainty entropy and fast network confidence. This invention enables the system to automatically determine whether to invoke the real-time knowledge features of the fast network or the inherent knowledge features of the slow network when generating an answer. This ensures the real-time nature of the answer while improving the logical coherence and accuracy of the answer, thus balancing the originally contradictory technical requirements of zero-latency acquisition of new knowledge and stable retention of old knowledge. Attached Figure Description
[0011] Figure 1 This is a schematic diagram of the overall end-to-end process of the system in an embodiment of the present invention;
[0012] Figure 2 This is a schematic diagram of the fast network new knowledge writing process in an embodiment of the present invention;
[0013] Figure 3 This is a schematic diagram of the adaptive gating fusion response generation process in an embodiment of the present invention. Detailed Implementation
[0014] The following is in conjunction with the appendix Figure 1-3 The specific embodiments of the present invention will be further described below. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.
[0015] Furthermore, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0016] System overall architecture:
[0017] The system described in this embodiment consists of three parts: a streaming big data input terminal, a fast and slow network collaborative processing core, and an intelligent consultation output terminal. The streaming big data input terminal continuously receives raw text data such as breaking news, real-time market data, and the latest policies and regulations, and sends it to the update path of the fast network. The fast and slow network collaborative processing core consists of a slow network and a fast network in parallel: the slow network carries the frozen basic parameters of the large model, and its structure can adopt a standard structure composed of a multi-layer Transformer encoder and decoder. During system operation, it does not participate in any form of gradient update, but only undertakes forward inference tasks. The fast network is composed of a dynamic hash external matrix and a spiking neural network, and is used to capture instantaneous knowledge features in high-frequency streaming big data. The semantic hidden features and predicted probability distribution output by the slow network, as well as the real-time knowledge features output by the fast network, are respectively sent to the adaptive gating fusion unit. This unit dynamically adjusts the fusion weights of the two features based on the uncertainty entropy calculation results, and sends the fused features to the decoding output module to generate intelligent consultation and answer text for users.
[0018] Asymmetric two-stream fast-slow network structure:
[0019] This invention decouples a large deep learning model into two asymmetric information processing paths: a slow network and a fast network. The slow network provides stable support for common sense, basic language understanding, and general logical reasoning. Its parameters are frozen after pre-training, and it encodes the input text in read-only mode during system operation without any gradient updates. The fast network is specifically designed to capture instantaneous knowledge features in high-frequency streaming big data and includes three sub-modules: a feature preprocessing unit, a dynamic hashing matrix, and a spiking neuron array.
[0020] The feature preprocessing unit includes two sub-modules: a dimensionality reduction encoder and a pulse encoder. The dimensionality reduction encoder is used to convert the high-dimensional semantic features corresponding to the input text into low-dimensional dense vectors. In this embodiment, the dimensionality reduction encoder can be implemented using a three-layer fully connected autoencoder structure to compress the high-dimensional features of dimension 4,096 into low-dimensional feature vectors of dimension 256. The pulse encoder is used to convert the features corresponding to the input text into pulse sequence signals for subsequent processing by the spiking neuron array.
[0021] The dynamic hashing external matrix is organized in the form of a sparse writable storage matrix. The matrix has a number of storage slots, each slot is used to store a low-dimensional feature vector and its corresponding write timestamp and data source identifier. The matrix is equipped with a hash index table to record the hash address, write timestamp and data aging status of each slot. In this embodiment, the total number of slots of the dynamic hashing external matrix can be configured according to the storage capacity requirements of the actual deployment scenario, for example, set to one million slots, to complete the writing and retrieval of new knowledge features with an approximate constant time complexity.
[0022] The spiking neuron array is composed of multiple layers of spiking neurons interconnected by weighted synaptic connections. It is used to further integrate the features obtained by dynamic hash external matrix retrieval and finally output the real-time knowledge features of the fast network. The spiking neuron array uses pulse signals for information transmission and processing. Based on the sparse activation characteristic of spiking neural networks, which only perform calculations when a pulse is triggered, compared with traditional artificial neurons that perform continuous calculations every clock cycle, it can reduce the power consumption of invalid calculations and shorten the single response time, so that the fast network has the response capability adapted to this sparse activation characteristic.
[0023] Non-overlapping local gradient update mechanism for streaming data:
[0024] This mechanism is used to realize the real-time writing of new knowledge text to the fast network. Its core idea is not to perform global backpropagation, but to write the new knowledge locally and non-overlappingly into the sparse matrix of the fast network through feature dimensionality reduction and adaptive orthogonal projection, so as to complete the knowledge update without touching any weights of the slow network.
[0025] The system receives new knowledge text fragments arriving in real time from streaming big data, denoted as... ,in This indicates the arrival time of the text fragment, utilizing the frozen input embedding layer in the slow network for the text fragment. Encode the initial high-dimensional semantic feature vector. The encoding process only calls the embedding layer parameters of the slow network in read-only mode and does not involve any modification to the parameters of that layer;
[0026] Subsequently, the high-dimensional feature vectors Input the dynamic feature dimensionality reduction module, and use the pre-trained dimensionality reduction mapping function. Compress it into a low-dimensional feature vector The calculation method is as follows:
[0027] ;
[0028] in, It is a high-dimensional semantic feature vector. For the dimensionality reduction mapping function, this embodiment can be implemented using an autoencoder structure or a principal component projection method. This is the low-dimensional feature vector obtained after compression;
[0029] Next, construct the projection matrix that satisfies the orthogonality constraint. And use this matrix to transform low-dimensional feature vectors Mapping to the address space of the sparse matrix of the fast network yields the hash index. The calculation method is as follows:
[0030] ;
[0031] in, Let be an orthogonal projection matrix, satisfying ( (The identity matrix), in this embodiment This can be constructed by performing QR decomposition on a randomly initialized matrix to obtain its orthogonal part. This ensures that different input features are mapped to independent address spaces, reducing the probability of address conflicts between different knowledge features. For hash mapping functions, The total number of slots in the sparse matrix of the fast network. The modulo operation is used to limit the hash result to a range of valid addresses. This is the final generated storage address index;
[0032] System detection address Is the corresponding slot occupied? If the slot is detected to be unoccupied, directly input the feature vector. The corresponding write timestamp is written to this slot. In the event of an address conflict, a double hash function is used to... The backup address is recalculated and the data is written to the backup address. At the same time, the mapping relationship between the original address and the backup address is recorded in the index table to support correct backtracking during subsequent retrieval. After the writing is completed, the system updates the network's hash index table to record the address, writing timestamp, and data source identifier corresponding to this writing operation for subsequent retrieval module to call.
[0033] In addition, the system periodically scans the hash index table and performs aging and elimination processing on historical data bits that exceed the preset time limit, marking the corresponding bits as idle to maintain the dynamic balance of the fast network storage capacity and prevent the storage space from expanding indefinitely. In this embodiment, the time limit can be configured according to the knowledge update cycle of the specific consulting business scenario. For example, financial market knowledge can be set to a time limit of several hours, and policy and regulation knowledge can be set to a time limit of several days.
[0034] It should be noted that none of the above operations, such as feature dimensionality reduction, orthogonal projection, hash writing, collision detection, and aging elimination, involve reading or modifying any weight matrix of the slow network or calculating gradients. The slow network provides initial feature encoding support in a read-only manner during this process, thus fundamentally ensuring complete isolation between the new knowledge writing process and the slow network parameters, achieving knowledge updates with zero impact on the existing weights of the slow network.
[0035] An adaptive gating fusion mechanism based on uncertainty awareness:
[0036] This mechanism is used to dynamically determine and adjust the fusion ratio of the output features of the fast network and the slow network during the intelligent consultation generation stage, so that the system can automatically choose to rely on new knowledge or existing common sense to answer the question based on the nature of the current question.
[0037] At each decoding moment in the intelligent consultation generation, the slow network predicts the probability distribution of the output for the next to be generated word. ,in To define in the vocabulary The probability vector on the probability distribution Calculate the current uncertainty entropy of the slow network. The calculation method is as follows:
[0038] ;
[0039] in, The total number of lexical units in the vocabulary. for The first word in the Slow Network Prediction Word List The probability of each word element. This represents the corresponding uncertainty entropy value; the larger the value, the more uncertain the slow network's prediction of the current context.
[0040] Synchronous acquisition of features retrieved by the fast network based on the current context and their corresponding confidence scores The confidence score is calculated based on the semantic similarity between the data retrieved by the dynamic hashing matrix and the current context, as well as the data freshness. The higher the semantic similarity and the higher the data freshness, the higher the confidence score.
[0041] uncertainty entropy With Fast Network Confidence Score Input the gating weight calculation unit to calculate the gating fusion coefficient. The calculation method is as follows:
[0042] ;
[0043] in, This is the Sigmoid activation function, used to map the result to the interval between zero and one. and The weight coefficients are determined in advance through training. For bias terms, The final gating fusion coefficient is determined by the following: a value closer to one indicates greater reliance on the real-time knowledge features of the fast network, while a value closer to zero indicates greater reliance on the inherent knowledge features of the slow network. In this embodiment, , and It can be determined by supervised training on a sample dataset labeled with the correct call source. The training objective is to make the gating fusion coefficient approach one in new knowledge-related questions and approach zero in common sense questions.
[0044] Based on the gating fusion coefficient Hidden features of slow networks Features of fast network retrieval Weighted fusion is performed to obtain fusion features. The calculation method is as follows:
[0045] ;
[0046] in, For slow networks The deep semantic hidden features output at each time step. Real-time knowledge features obtained through fast network retrieval. The final feature vector after gated fusion will be the fused features. The signal is fed into the decoding output module to generate the word prediction result at the current moment, and this result is output as part of the intelligent consultation response text. The above process is repeated until the entire response text is generated.
[0047] End-to-end overall processing flow:
[0048] This invention presents an end-to-end overall processing flow from streaming data access to intelligent consultation and response output. After the streaming big data is continuously accessed by the system, the content stored in the fast network is continuously maintained through the aforementioned local gradient non-overlapping update mechanism. At the same time, when a user initiates a consultation request, the system enters two parallel processing paths: slow network forward inference and fast network feature retrieval. The outputs of both are merged into the aforementioned uncertainty-aware gating fusion mechanism. Finally, the decoding output module generates the response text and returns it to the user. User feedback can also be recorded to support continuous monitoring of the subsequent system effect. The combination of the above parallel branches and convergence nodes reflects the overall logical relationship between the fast network real-time update path and the slow network stable inference path, which are both independent and cooperative.
[0049] Application example:
[0050] Taking a financial risk control consulting scenario as an example, the system continuously receives real-time announcements from listed companies, regulatory policies, and market data as streaming big data. Through the aforementioned local gradient non-overlapping update mechanism, its features are written into the dynamic hash external matrix of the fast network. When a user inquires about the recent risk status of a listed company, the slow network performs forward reasoning based on inherent financial common sense and language logic, while the fast network retrieves the latest announcement features related to the company based on the current context. Since this type of question is highly dependent on new knowledge, the gating fusion coefficient obtained under the combined effect of uncertainty entropy and fast network confidence score will be biased towards the fast network, so that the system-generated answer can fully reflect the latest data. For general financial common sense questions that do not involve real-time information, the gating fusion coefficient will be biased towards the slow network, so that the system generates answers based on inherent common sense, thereby realizing the intelligent collaborative calling of new and old knowledge under the same system architecture.
[0051] Alternative implementation methods:
[0052] Regarding the storage structure of fast networks, the dynamic hash external matrix of this invention can also be replaced by a dynamic memory organized based on a vector nearest neighbor retrieval structure. During writing, dimensionality reduction and orthogonalization are also used to ensure isolation from the parameter space of slow networks. During retrieval, similarity sorting is used instead of hash addressing, which can also achieve low-latency writing and retrieval of streaming knowledge.
[0053] Regarding the implementation of the adaptive gating fusion unit, the gating fusion coefficient calculation method of the present invention can also be replaced by a learnable gating neural network. The gating neural network can adopt a single-layer or two-layer feedforward neural network structure, taking the slow network hidden features, fast network retrieval features and uncertainty entropy value as inputs, and directly outputting the fusion weight coefficients after end-to-end training, so as to learn more complex gating decision boundaries.
[0054] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present invention. Therefore, any modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope defined by the claims of the present invention.
Claims
1. A method for big data processing and intelligent consultation based on deep learning, characterized in that: include: Receive continuously arriving text fragments from streaming big data; The text fragment is forward reasoned through a slow network to obtain the semantic hidden features and predicted probability distribution output by the slow network. The slow network is the backbone network of a large deep learning model whose parameters are frozen and do not participate in gradient updates. The text fragment is processed by a fast network to extract features and sparsely write them, resulting in real-time knowledge features output by the fast network. The fast network includes a dynamic hashing matrix and a spiking neural network. The text fragment is encoded using the frozen input embedding layer in the slow network to obtain high-dimensional semantic features. The high-dimensional semantic features are then dimensionality-reduced to obtain low-dimensional feature vectors. The low-dimensional feature vectors are mapped to the address space of the dynamic hashing matrix using a projection matrix that satisfies orthogonal constraints to obtain hash indexes. The low-dimensional feature vectors are then written into the corresponding slots of the dynamic hashing matrix according to the hash indexes. The writing process does not involve any modification to any weight matrix of the slow network. The uncertainty entropy is calculated based on the predicted probability distribution, and the confidence score is obtained based on the real-time knowledge features output by the fast network. The gating fusion coefficient is calculated based on the uncertainty entropy and the confidence score, and the semantic hidden features and the real-time knowledge features are weighted and fused according to the gating fusion coefficient to obtain the fused features; Intelligent consultation response text is generated based on the fusion features.
2. The method for big data processing and intelligent consultation based on deep learning according to claim 1, characterized in that, The fast network also includes a feature preprocessing unit and a spiking neuron array; The feature preprocessing unit includes a dimensionality reduction encoder and a pulse encoder. The dimensionality reduction encoder is used to convert the features corresponding to the text fragment into a low-dimensional dense vector, and the pulse encoder is used to convert the features corresponding to the text fragment into a pulse sequence signal. The spiking neuron array performs temporal integration processing on the features retrieved by the dynamic hashing external matrix through weighted synaptic connections to obtain the real-time knowledge features output by the fast network.
3. The method for big data processing and intelligent consultation based on deep learning according to claim 1, characterized in that, The step of writing the low-dimensional feature vector into the slot corresponding to the dynamic hash external matrix includes: detecting whether the slot corresponding to the hash index has been occupied; if the slot is not occupied, writing the low-dimensional feature vector and the corresponding writing timestamp into the slot; if the slot is occupied, recalculating the spare address for the low-dimensional feature vector using a secondary hash function, writing the low-dimensional feature vector into the slot corresponding to the spare address, and recording the mapping relationship between the hash index and the spare address in the index table.
4. The method for big data processing and intelligent consultation based on deep learning according to claim 1, characterized in that, Also includes: The index table of the dynamic hash external matrix is periodically scanned, and slots whose timestamps exceed a preset time limit are marked as idle.
5. The method for big data processing and intelligent consultation based on deep learning according to claim 1, characterized in that, In the step of calculating the uncertainty entropy based on the predicted probability distribution, the uncertainty entropy is calculated in the following manner: ; in, The total number of lexical units in the vocabulary. for The first word in the slow network prediction vocabulary at the specified time. The probability of each word element. This represents the corresponding uncertainty entropy value.
6. The method for big data processing and intelligent consultation based on deep learning according to claim 1, characterized in that, In the step of calculating the gated fusion coefficient based on the uncertainty entropy and the confidence score, the gated fusion coefficient is calculated in the following manner: ; in, It is the Sigmoid activation function. and For the pre-determined weight coefficients, For bias terms, The confidence score is given. The gating fusion coefficient is the given value. In the step of weighted fusion of the semantic hidden features and the real-time knowledge features, the fused features are calculated in the following manner: ; in, For the semantic hidden features, These are the real-time knowledge features. This refers to the fusion feature.
7. The method for big data processing and intelligent consultation based on deep learning according to claim 1, characterized in that, The confidence score is determined based on the semantic similarity between the retrieved data and the current context, as well as the freshness of the retrieved data, obtained from the dynamic hashing matrix retrieval.
8. A big data processing and intelligent consulting system based on deep learning, characterized in that: This includes a slow network module, a fast network module, and an adaptive gating fusion module; The slow network module is used to perform forward reasoning on text segments in the received streaming big data, and output semantic hidden features and predicted probability distribution. The parameters of the slow network module are frozen and do not participate in gradient updates. The fast network module includes a dynamic hashing matrix and a spiking neural network. It is used to perform dimensionality reduction processing on the features corresponding to the text segment to obtain a low-dimensional feature vector. The low-dimensional feature vector is mapped to the address space of the dynamic hashing matrix using a projection matrix that satisfies orthogonality constraints to obtain a hash index. The low-dimensional feature vector is written into the corresponding slot of the dynamic hashing matrix according to the hash index, and real-time knowledge features are output. The writing process does not involve any modification to any weight matrix of the slow network module. The adaptive gating fusion module is used to calculate uncertainty entropy based on the predicted probability distribution, obtain confidence score based on the real-time knowledge features, calculate gating fusion coefficient based on the uncertainty entropy and the confidence score, perform weighted fusion of the semantic hidden features and the real-time knowledge features based on the gating fusion coefficient to obtain fusion features, and generate intelligent consultation answer text based on the fusion features.
9. The deep learning-based big data processing and intelligent consulting system according to claim 8, characterized in that, The fast network module also includes a feature preprocessing unit and a spiking neuron array; The feature preprocessing unit includes a dimension reduction encoder and a pulse encoder; The spiking neuron array performs time-series integration processing on the features retrieved from the dynamic hashing add-on matrix through weighted synaptic connections to obtain the real-time knowledge features.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the deep learning-based big data processing and intelligent consultation method as described in any one of claims 1 to 7.
