Deep neural network reasoning method and device based on database management system
Deploying lightweight deep neural network models in the database management system through SmartLite solves the performance gap problem of deep learning inference tasks in resource-constrained environments, achieves efficient computing and memory usage, and significantly improves inference performance and concurrent processing capabilities.
Patent Information
- Application Number
- CN202410695887.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-31
AI Technical Summary
It is difficult for the existing technology to implement the database management system to support the inference tasks of deep learning models without relying on GPU or powerful hardware, especially in resource-constrained environments, resulting in a large performance gap with DL platforms.
SmartLite is proposed, which converts pre-trained neural network model parameters into binary format, and uses probabilistic models and pruning technology to remove redundant parameters to form a lightweight model, which is deployed in a database management system to support image classification, target detection and text processing. , optimize neural network calculations to improve efficiency.
Significantly improves computing efficiency and memory usage efficiency, reduces model size, improves model inference performance and concurrent processing capabilities, and can run efficiently on resource-constrained devices, achieving accelerations of 2 to 176% and speeds of 4 to 100 times Inference performance improved.
Smart Images

Figure CN118278468B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular to a deep neural network reasoning method and device based on a database management system. Background Art
[0002] Most edge devices host an embedded database system to support basic data management and analysis tasks. For these devices, in-DB ML / DL inference enables timely and in-place predictive analysis and eliminates the cost of data migration between database systems and DL platforms. Databases that can support multimodal tasks, such as video databases and text databases, are attracting the interest of researchers.
[0003] Our goal is to retain the advantages of a tightly coupled solution, allowing the database management system to support all model inferences alone without the need for GPUs or other powerful hardware, and to minimize the performance gap with DL platforms on machine learning tasks. However, this technology is still lacking in the existing technology.
[0004] To achieve this goal, we propose SmartLite, which extends existing database management systems to support DL inference tasks, including image classification, object detection, and text processing, under resource-constrained conditions. We demonstrate how to model neural operators in a more concise and database-friendly way, and how to perform neural network computations within a relational database in an efficient and resource-saving manner. Summary of the invention
[0005] The purpose of the present invention is to provide a method and device for deep neural network inference based on a database management system in view of the deficiencies of the prior art. The present invention proposes SmartLite, a lightweight database management system, which extends the existing database management system to support DL inference tasks, including image classification, object detection, and text processing, under resource-constrained conditions. We demonstrate how to model neural operators in a more concise and database-friendly way, and how to perform neural network calculations within a relational database in an efficient and resource-saving way.
[0006] The object of the present invention is achieved through the following technical solution: A deep neural network reasoning method based on a database management system, comprising the following steps:
[0007] (1) Convert the pre-trained neural network model parameters into binary format;
[0008] (2) According to different target tasks, the corresponding target dataset is used to fine-tune the pre-trained neural network model whose parameters have been converted into binary format. During the fine-tuning, the probabilistic model and pruning technology are used to remove redundant parameters that do not affect the reasoning performance to obtain a lightweight model.
[0009] (3) deploying several of the lightweight models into a database management system to obtain SmartLite, wherein the structure and parameters of the pre-trained neural network model are used as shared blocks;
[0010] (4) When the SmartLite receives a hybrid query request, at least one model is called for reasoning; the hybrid query includes SQL query and deep learning model reasoning.
[0011] Furthermore, converting the pre-trained neural network model parameters into a binary format includes: converting the model parameters into a binary format by using a neural network quantization technology.
[0012] Furthermore, the removal of redundant parameters that do not affect the reasoning performance through the probability model and pruning technology includes:
[0013] Probability distribution and statistical methods are used to evaluate the importance of model parameters, and thresholds are set to remove redundant parameters that do not affect inference performance.
[0014] Furthermore, the use of probability distribution and statistical methods to evaluate the importance of model parameters and setting thresholds to remove redundant parameters that do not affect reasoning performance includes:
[0015] Collect statistical information of each model parameter, define three indicators: mean, variance and number of flips, and use the Bayesian method to model the weight of the parameter; after evaluating the weight of each model parameter, prune it according to the threshold.
[0016] Furthermore, the target tasks include image classification, object detection and text classification.
[0017] Furthermore, the deployment includes: storing parameters and structural information of several fine-tuned lightweight models as a database table; converting the target data set into a tensor form and then storing it in another database table.
[0018] Furthermore, the step (4) comprises:
[0019] Based on the structure and parameters of the pre-trained neural network model as a shared block, the lightweight model is divided into a shared block and a private block, and a mapping table is maintained to record the location of the lightweight model parameter block in the memory; when a query request is received, first check whether the required parameter block is in the memory. If the parameter block is in the memory, the reasoning operation is performed directly; if the parameter block is not in the memory, the required parameter block is loaded into the memory; finally, the LRU strategy is performed to update the mapping table and the LRU list; finally, online scheduling is performed to record the reasoning request frequency of each lightweight model, and the model part whose reasoning request frequency is greater than the preset frequency threshold is preferentially loaded; based on the request frequency and memory usage, the parameter blocks in the memory are dynamically adjusted.
[0020] The present invention also provides a deep neural network reasoning device based on a database management system, which is used to implement the above method, including:
[0021] A model parameter conversion module, used to convert the pre-trained neural network model parameters into binary format;
[0022] A lightweight model acquisition module is used to fine-tune the pre-trained neural network model whose parameters have been converted into binary format using the corresponding target data set according to different target tasks. During the fine-tuning, redundant parameters that do not affect the reasoning performance are removed through the probability model and pruning technology to obtain a lightweight model.
[0023] A model deployment module, used to deploy several of the lightweight models into a database management system, namely SmartLite; wherein the structure and parameters of the pre-trained neural network model are used as shared blocks;
[0024] The model reasoning module is used to call at least one model for reasoning when the SmartLite receives a hybrid query request; the hybrid query includes SQL query and deep learning model reasoning.
[0025] The present invention also provides a deep neural network reasoning device based on a database management system, comprising one or more processors for implementing the above-mentioned deep neural network reasoning method based on a database management system.
[0026] The present invention also provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, it is used to implement the above-mentioned deep neural network reasoning method based on a database management system.
[0027] Compared with the prior art, the beneficial effects of the present invention are as follows: the computational efficiency of the present invention is significantly improved, and the use of lookup tables and bit operation optimization significantly improves the computational speed in various computational tasks, for example, an acceleration of 2 to 176% is achieved on a variety of convolution kernels; the memory usage efficiency is higher, and the present invention significantly reduces memory consumption through model pruning and parameter compression, for example, the model size is compressed by up to 38 times in the VGG16 model, and the memory usage efficiency is greatly improved compared with CoMM, MCMM and PyTorch; the model reasoning performance is better, and the present invention performs well in the model reasoning process, achieving a 4 to 100-fold improvement in prediction delay and memory consumption, with only a slight decrease in accuracy, which enables it to run efficiently on resource-constrained devices; the support for multi-model service capabilities is stronger, and the present invention demonstrates efficient multi-model service capabilities under a variety of hardware settings, and the memory usage is dozens of times less than that of MADlib and PyTorch, while the execution speed is significantly improved; higher concurrent processing capability, through lookup tables and bit operation optimization, the throughput of the present invention is 1609 times higher than the simplest implementation CoMM, and its throughput is significantly improved as the number of threads increases. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0029] Figure 1 It is a flow chart of a deep neural network reasoning method based on a database management system provided by an embodiment of the present invention;
[0030] Figure 2 It is a workflow diagram of a neural network pruning provided by an embodiment of the present invention;
[0031] Figure 3 A memory-mapped shared model diagram is provided by an embodiment of the present invention;
[0032] Figure 4 A hardware structure for deep neural network reasoning based on a database management system is provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0034] The present invention is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.
[0035] A deep neural network reasoning method based on a database management system of the present invention, such as Figure 1 As shown, including:
[0036] (1) Convert pre-trained neural network model parameters into binary format
[0037] Slow calculation (i.e., model inference) and high resource consumption are mainly caused by floating-point calculations, for which the CPU is not optimized. Trained neural network models typically contain millions to billions of floating-point parameters, which represent pre-trained weights. Calculations involving these large floating-point tensors are usually very slow in relational databases. In order to significantly reduce computing and storage costs, the present invention uses neural network quantization technology to simplify floating-point parameters. Specifically, floating-point numbers are converted to binary numbers through neural network quantization technology, aiming to reduce the storage requirements and computational complexity of the model, and converting model parameters from high-precision floating-point numbers (such as 32-bit floating-point numbers) to low-precision formats (such as 8-bit integers or even binary values), thereby accelerating the inference process and reducing power consumption, significantly reducing resource consumption and computational complexity. At the same time, neural operations on floating-point numbers are converted to bit operations, such as BitCount or XOR. In addition, a lookup table-based optimization method is introduced to further accelerate bit-level operations. By pre-calculating and storing all possible bit operation results, the results are directly looked up in the table during actual operations, which greatly reduces the calculation time. Specifically, for operations between two bit arrays, such as XOR and BitCount, real-time calculations can be avoided by looking up pre-stored results, which significantly improves the efficiency and speed of data processing. This approach not only reduces the computational burden, but also significantly reduces storage requirements.
[0038] (2) According to different target tasks, the corresponding target dataset is used to fine-tune the pre-trained neural network model whose parameters have been converted into binary format. During the fine-tuning, the probabilistic model and pruning technology are used to remove redundant parameters that do not affect the reasoning performance to obtain a lightweight model.
[0039] The target tasks include image classification, object detection and text classification.
[0040] In one embodiment, for image classification, the Mnist CIFAR10 ImageNet dataset is used to fine-tune the pre-trained neural network model; for object detection, the COCO or PASCAL VOC dataset is used to fine-tune the pre-trained neural network model; for text classification, the MR dataset is used to fine-tune the pre-trained neural network model; of course, for the target task, other corresponding datasets can also be used to fine-tune the pre-trained neural network model, which will not be described here one by one.
[0041] During fine-tuning, it is also necessary to remove redundant parameters of the model; specifically, probability distribution and statistical methods are used to evaluate the importance of model parameters, and the complexity and size of the model are reduced by removing unimportant parameters (such as weights). First, by collecting statistical information of each model parameter, three indicators, namely the mean value, variance gradient, and number of flips, are defined, and the weight of the model parameters is modeled using the Bayesian method. After the weight of each model parameter is evaluated, pruning is then performed based on the threshold.
[0042] The pruning according to the threshold is specifically as follows: if the average value is less than a first preset threshold, the variance is less than a second preset threshold, and the number of flips is greater than a third preset threshold, the model parameters that meet the three conditions are removed.
[0043] In one embodiment, there is a medium-sized neural network with an 8-bit binary number as its weight. During the training process, we not only record the number of flips of each bit, but also calculate the mean and variance of these bits during the training process. We evaluate and prune the model parameters by the following steps: First, we calculate the average value of each model parameter in several training cycles. Then calculate its variance in the training cycle to evaluate its stability. Finally, for each bit, we record the number of flips during the training process. We assume that the first preset threshold (average value threshold): 0.1, the second preset threshold (variance threshold): 0.05, and the third preset threshold (flip count threshold): 6 times. During the training process, we recorded the following data of a certain parameter: mean value: 0.08, variance: 0.03, flip count: 8 times. Then we compared these data with the preset thresholds. According to the above evaluation results, the model parameter meets three conditions: the mean value is lower than the first preset threshold, the variance is lower than the second preset threshold, and the flip count is higher than the third preset threshold. Therefore, this parameter is considered to be unimportant and can be pruned. Then the Beta-binomial distribution is used to calculate the probability of invalid bits. Based on the invalid bit probability and the marked invalid bits, we can ignore these bits during inference to reduce computational overhead. During matrix multiplication, we only need to calculate the remaining valid bits.
[0044] A probabilistic model that is used to evaluate the effectiveness of each parameter in the model in binary form. Specifically, the model tracks the frequency of changes in each parameter in the later stages of training, constructs a frequency histogram of parameter value changes, and sets a threshold to identify those parameters that change frequently but do not contribute much to model performance. These parameters are then marked as invalid and pruned from the model, thereby optimizing the model structure. This pruning process can be found in Figure 2 First, perform bit operations on the bit strings of features and kernels, such as XOR operations; second, use a lookup table to determine the result of the XOR operation and calculate the BitCount value; then, use the lookup table to determine which operation results are valid (such as Valid operations) and retained, and which are invalid (such as Invalid operations) and pruned; finally, use the valid operation results for subsequent layer calculations, and continue to prune to further reduce computing and storage requirements. This neural network pruning method not only improves computational efficiency, but also reduces storage requirements, making the model more suitable for deployment in resource-constrained environments.
[0045] (3) deploying several of the lightweight models into a database management system to obtain SmartLite, wherein the structure and parameters of the pre-trained neural network model are used as shared blocks;
[0046] Specifically, the parameters and structural information of several fine-tuned lightweight models are stored as a database table; the target data set is converted into a tensor form and then stored in another database table; the final result is obtained by performing a final reasoning process on the lightweight model and target data loaded in the database. The target data set is also preprocessed; the preprocessing includes: data cleaning, data enhancement, such as image cropping, scaling, and rotation.
[0047] In addition, the model's computational process is optimized to ensure that these models can be efficiently executed on resource-constrained edge devices. For example, tensor operations such as matrix multiplication are converted into bit operations (such as BitCount and XOR) within the database, and lookup tables are used to accelerate these operations. In this way, seamless integration of training and deployment is achieved, greatly improving the model's reasoning performance and resource utilization efficiency in edge environments.
[0048] There are also neural network models that follow the pre-training and fine-tuning paradigm. Therefore, it is feasible to map the relational table containing the pre-trained parameter values to logical blocks and reuse some of these blocks for different fine-tuned models derived from the same pre-trained model. That is, the structure and parameters of the pre-trained neural network model are used as shared blocks, and only the last few layers are re-fine-tuned. For example, in natural language processing tasks, a BERT model that has been pre-trained on a large-scale corpus can be used, and then its encoder part is frozen, and only the top fully connected layer is fine-tuned, thereby achieving more efficient training and better performance. Through the shared block process, data redundancy is effectively reduced.
[0049] (4) When the SmartLite receives a hybrid query request, at least one model is called for reasoning; the hybrid query includes SQL query and deep learning model reasoning.
[0050] See also Figure 3 , the shared parameter blocks of the model are stored in logical blocks and reused among multiple models. At the same time, by developing an efficient model scheduling algorithm, the loading and unloading of model data in memory is dynamically adjusted according to the current resource usage, effectively managing limited memory resources. Specifically, the scheduling algorithm groups the requested models, and each group shares the same basic structure. At runtime, the algorithm first evaluates the number of requests and loading costs of each group of models, and prioritizes model groups with a large number of requests and low loading costs. If there is insufficient memory, the algorithm uses the least recently used (LRU) strategy to select a replacement model group to ensure efficient memory utilization and reduce data exchange overhead. In this way, the scheduling algorithm is able to optimize memory usage and improve the performance of multi-model services in resource-constrained environments.
[0051] Specifically, based on the structure and parameters of the pre-trained neural network model as a shared block, the lightweight model is divided into a shared block and a private block, and a mapping table is maintained to record the location of the lightweight model parameter block in the memory; when a query request is received, first check whether the required parameter block is in the memory. If the parameter block is in the memory, the inference operation is performed directly; if the parameter block is not in the memory, the required parameter block is loaded into the memory; finally, the LRU strategy is performed to update the mapping table and the LRU list; finally, online scheduling is performed to record the inference request frequency of each lightweight model, and preferentially load the model part whose inference request frequency is greater than the preset frequency threshold; based on the request frequency and memory usage, the parameter blocks in the memory are dynamically adjusted.
[0052] In actual applications, users need to store the data to be analyzed in a database table after data preprocessing, and also store the required neural network model parameters and network structure in the database table. SmartLite provides a fusion reasoning engine in the database. Through multi-granularity quantification of parameters, neural network pruning, tensor calculation conversion, model structure optimization, model sharing and scheduling technology, it supports the reasoning of hybrid AI operators and relational operators in the database, significantly reducing the cost of hybrid reasoning in the database. Among them, preprocessing operations include data cleaning, data enhancement, such as image cropping, scaling and rotation. After the output module performs model reasoning on the data to be analyzed, it usually generates a series of numerical results. For example, the classification probability corresponding to the output data of the image classification reasoning task;
[0053] Specifically, the SmartLite system accesses the optimized model parameters and structural information stored in the database through database queries based on the query input by the user, retrieves the queried data to perform specific neural network operations, and uses the optimization function of the database system to improve the efficiency of data retrieval and processing. By utilizing the functions of the database management system, the optimized model parameters and structural information are stored as database tables, and neural network operations are performed through database queries, thereby utilizing the optimization functions of the database system such as indexing and data compression to improve the efficiency of data retrieval and processing.
[0054] The present invention also provides a deep neural network reasoning device based on a database management system, which is used to implement the above method, including:
[0055] A model parameter conversion module, used to convert the pre-trained neural network model parameters into binary format;
[0056] A lightweight model acquisition module is used to fine-tune the pre-trained neural network model whose parameters have been converted into binary format using the corresponding target data set according to different target tasks. During the fine-tuning, redundant parameters that do not affect the reasoning performance are removed through the probability model and pruning technology to obtain a lightweight model.
[0057] A model deployment module, used to deploy several of the lightweight models into a database management system, namely SmartLite; wherein the structure and parameters of the pre-trained neural network model are used as shared blocks;
[0058] The model reasoning module is used to call at least one model for reasoning when the SmartLite receives a hybrid query request; the hybrid query includes SQL query and deep learning model reasoning.
[0059] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.
[0060] Corresponding to the aforementioned embodiment of a deep neural network reasoning method based on a database management system, the present invention also provides an embodiment of a deep neural network reasoning device based on a database management system.
[0061] See also Figure 4 A deep neural network reasoning device based on a database management system provided in an embodiment of the present invention includes one or more processors for implementing a deep neural network reasoning method based on a database management system in the above embodiment.
[0062] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0063] An embodiment of a deep neural network reasoning device based on a database management system of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The device embodiment can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capabilities in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory for execution. From a hardware perspective, if Figure 4 As shown, it is a hardware structure diagram of a device with data processing capability where a deep neural network reasoning device based on a database management system of the present invention is located, except Figure 4 In addition to the processor, memory, network interface, and non-volatile memory shown, any device with data processing capabilities in which the apparatus in the embodiments is located may also include other hardware, generally based on the actual functions of the device with data processing capabilities, which will not be described in detail.
[0064] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0065] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.
[0066] An embodiment of the present invention also provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, a deep neural network reasoning method based on a database management system in the above embodiment is implemented.
[0067] The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of any device with data processing capability and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.
[0068] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.
Claims
1. A deep neural network reasoning method based on a database management system, characterized in that: The following steps are involved: (1) Convert the pre-trained neural network model parameters into binary format; (2) According to different target tasks, the corresponding target data set is used to fine-tune the pre-trained neural network model whose parameters have been converted into binary format. During the fine-tuning, the probability model and pruning technology are used to remove redundant parameters that do not affect the reasoning performance to obtain a lightweight model. (3) deploying several of the lightweight models into a database management system to obtain SmartLite, wherein the structure and parameters of the pre-trained neural network model are used as shared blocks; (4) When the SmartLite receives a hybrid query request, at least one model is called for reasoning; the hybrid query includes SQL query and deep learning model reasoning; step (4) includes: Based on the structure and parameters of the pre-trained neural network model as a shared block, the lightweight model is divided into a shared block and a private block, and a mapping table is maintained to record the location of the lightweight model parameter block in the memory; when a query request is received, first check whether the required parameter block is in the memory, if the parameter block is in the memory, directly perform the inference operation; if the parameter block is not in the memory, load the required parameter block into the memory; finally, perform the LRU strategy, update the mapping table and the LRU list; finally, perform online scheduling, record the inference request frequency of each lightweight model, and give priority to loading the model part whose inference request frequency is greater than the preset frequency threshold; based on the request frequency and memory usage, dynamically adjust the parameter block in the memory.
2. The method according to claim 1, characterized in that The converting of the pre-trained neural network model parameters into a binary format includes: converting the model parameters into a binary format by using a neural network quantization technology.
3. The method according to claim 1, characterized in that The probabilistic model and pruning technology are used to remove redundant parameters that do not affect the reasoning performance, including: Probability distribution and statistical methods are used to evaluate the importance of model parameters, and thresholds are set to remove redundant parameters that do not affect inference performance.
4. The method according to claim 3, characterized in that The method uses probability distribution and statistical methods to evaluate the importance of model parameters and set thresholds to remove redundant parameters that do not affect reasoning performance, including: Collect statistical information of each model parameter, define three indicators: mean, variance and number of flips, and use the Bayesian method to model the weight of the parameter; after evaluating the weight of each model parameter, prune it according to the threshold.
5. The method according to claim 1, characterized in that The target tasks include image classification, object detection and text classification.
6. The method according to claim 1, characterized in that The deployment includes: storing parameters and structural information of several fine-tuned lightweight models as a database table; converting a target data set into a tensor form and then storing it in another database table.
7. A deep neural network reasoning device based on a database management system, characterized in that: The method for implementing any one of claims 1 to 6 comprises: A model parameter conversion module, used to convert the pre-trained neural network model parameters into binary format; A lightweight model acquisition module is used to fine-tune the pre-trained neural network model whose parameters have been converted into binary format using the corresponding target data set according to different target tasks. During the fine-tuning, redundant parameters that do not affect the reasoning performance are removed through the probability model and pruning technology to obtain a lightweight model. A model deployment module, used to deploy several of the lightweight models into a database management system, namely SmartLite; wherein the structure and parameters of the pre-trained neural network model are used as shared blocks; The model reasoning module is used to call at least one model for reasoning when the SmartLite receives a hybrid query request; the hybrid query includes SQL query and deep learning model reasoning.
8. A deep neural network reasoning device based on a database management system, characterized in that: It includes one or more processors for implementing a deep neural network reasoning method based on a database management system as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, it is used to implement a deep neural network reasoning method based on a database management system as described in any one of claims 1 to 6.
