Data compression system, data compression method, and data compression program
The data compression system addresses inefficiencies in existing methods by employing parallel processing and neural networks to accelerate data compression, thereby reducing processing time and resource costs.
Patent Information
- Application Number
- JP2023029527
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-09
AI Technical Summary
Existing data compression techniques are inefficient due to prolonged processing times, which can lead to increased computing resource costs and impact other processing operations.
A data compression system that divides data into partial units for parallel compression using neural networks, entropy encoding, and probability calculation to improve processing speed.
The system significantly enhances compression processing speed, reducing computational resource requirements and optimizing overall system performance.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for compressing data. [Background technology]
[0002] With the advancement of IoT (Internet of Things), the amount of data generated has increased significantly, and the amount of data stored in hybrid clouds has also increased. Although storage costs have fallen, they cannot cover the increase in data volume. Therefore, it is becoming increasingly important to reduce the amount of data stored in storage.
[0003] As a related technique, for example, Patent Document 1 discloses a technique that can reduce the amount of data even if the data is not suitable for compression. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2019-95913 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, although the compression process can reduce the amount of data, it also takes a long time to perform the compression process, which can lead to increased costs for computing resources and adversely affect other processes.
[0006] The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide a technique capable of improving the processing speed of compression processing. [Means for solving the problem]
[0007] In order to achieve the above-mentioned object, a data compression system according to one aspect is a data compression system that compresses data, and includes a division unit that divides data to be compressed into a plurality of partial data, and a plurality of compression processing units that perform compression processing on each of the partial data in parallel, wherein the compression processing unit includes a neural network and has a probability calculation unit that calculates the occurrence probability of each predetermined data unit of the partial data, and an entropy coding unit that outputs, for each of the data units, an encoded bit string that is an entropy coded bit string based on the data unit and the occurrence probability. Effect of the Invention
[0008] According to the present invention, the processing speed of the compression process can be improved. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing the overall configuration of a computer system according to the first embodiment. [Diagram 2] FIG. 2 is a configuration diagram of the logical-physical conversion table according to the first embodiment. [Diagram 3] FIG. 3 is a configuration diagram of block data storage information according to the first embodiment. [Figure 4] FIG. 4 is a configuration diagram of history information according to the first embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an overview of backup processing and restore processing in the computer system according to the first embodiment. [Figure 6] FIG. 6 is a diagram illustrating the compressor according to the first embodiment. [Figure 7] FIG. 7 is a diagram illustrating the expander according to the first embodiment. [Figure 8] FIG. 8 is a flowchart of the compression process by the compressor according to the first embodiment. [Figure 9] FIG. 9 is a flowchart of the decompression process by the decompressor according to the first embodiment. [Figure 10]FIG. 10 is a flowchart of the backup process according to the first embodiment. [Figure 11] FIG. 11 is a flowchart of the restore process according to the first embodiment. [Figure 12] FIG. 12 is a diagram illustrating the prediction model processing according to the first embodiment. [Figure 13] FIG. 13 is a diagram illustrating a data flow of the prediction model processing and the integrated model processing according to the first embodiment. [Figure 14] FIG. 14 is a diagram illustrating an algorithm of the prediction model processing according to the first embodiment. [Figure 15] FIG. 15 is a diagram illustrating a prediction model process using history information according to the first embodiment. [Figure 16] FIG. 16 is a diagram illustrating the memory model process using history information according to the first embodiment. [Figure 17] FIG. 17 is a diagram illustrating the memory model process using the exponential moving average according to the first embodiment. [Figure 18] FIG. 18 is a diagram illustrating a computer system according to a modified example. [Figure 19] FIG. 19 is a diagram illustrating a compressor of a computer system according to the second embodiment. [Figure 20] FIG. 20 is a diagram illustrating a decompressor of a computer system according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] The following embodiments will be described with reference to the drawings. Note that the following embodiments do not limit the scope of the invention, and not all of the elements and combinations thereof described in the embodiments are necessarily essential to the solution of the invention.
[0011] In the following description, information may be described using the expression "AAA table", but the information may be expressed in any data structure. In other words, to show that the information does not depend on the data structure, the "AAA table" may be called "AAA information".
[0012] FIG. 1 is a diagram showing the overall configuration of a computer system according to the first embodiment.
[0013] The computer system 1 includes an input device 40, a user terminal 80, and computers 101A and 101B. Each of the computers 101A and 101B is an example of a data compression system. The computer system 1 can also be said to be an example of a data compression system. The computers 101A and 101B are connected via a network 150. The network 150 is, for example, a communication path such as a wired LAN (Local Area Network), a wireless LAN, a WAN (Wide Area Network), or a dedicated line. The computer 101A is connected to the input device 40. The computer 101B is connected to the user terminal 80. The computers 101A and 101B may be virtual computing resources (for example, a virtual machine or a container) in a cloud environment.
[0014] The input device 40 is configured by a computer such as a PC (Personal Computer), and receives input from a user and executes various processes using data. The input device 40 stores data used for processing in the computer 101A and acquires data from the computer 101A. The input device 40 may be a virtual computing resource (e.g., a virtual machine or a container) in a cloud environment.
[0015] The user terminal 80 is configured, for example, by a computer such as a PC, and accepts instructions from a user to set up the calculator 101B, etc. The user terminal 80 may be a virtual computing resource (for example, a virtual machine or a container) in a cloud environment.
[0016] The computer 101A stores and manages data used by the input device 40. The computer 101A performs a process of backing up data to the computer 101B and a process of restoring data from the computer 101B. The computer 101A is configured by a computer such as a PC or a server device, and includes a processor 53A, a memory 52A, IFs (interfaces) 5A1 and 5A2, a parallel processing device 61A, a persistent storage device 54A, and a bus 10A that connects these components.
[0017] The IFs 5A1 and 5A2 are interfaces such as a wired LAN card or a wireless LAN card, and communicate with other devices via the network 150 or a communication line.
[0018] The processor 53A executes various processes according to the programs stored in the memory 52A. The processor 53A configures a compressor 72A and a decompressor 73A by executing the programs. The processor 53A also configures a first block corresponding security code generating unit and a second block corresponding security code generating unit by executing the programs. The compressor 72A performs, for example, a compression process on data. The compression process algorithm of the compressor 72A may be gzip or LZMA (Lempel-Ziv-Markov chain-Algorithm). The decompressor 73A decompresses the compressed data. The decompression process algorithm of the decompressor 73A may be an algorithm corresponding to the compression process of the compressor 72A.
[0019] The memory 52A is, for example, a RAM (Random Access Memory), and stores programs executed by the processor 53A and other necessary information. In this embodiment, the memory 52A stores, for example, a logical-physical conversion table 110 (see FIG. 2).
[0020] The persistent storage device 54A is, for example, a hard disk or a flash memory, and stores programs read into the memory 52A to be executed by the processor 53A, and various data used by the processor 53A. In this embodiment, the persistent storage device 54A stores a data compression program as a program, and stores block data storage information 120 (see FIG. 3) and a logical-physical conversion table 110 (see FIG. 2) as data. Note that, instead of or in addition to the persistent storage device 54A, a cloud storage connected via a network may be used. Note that the persistent storage device 54A and the cloud storage may be configured with block storage, file storage, object storage, a database, or the like.
[0021] The parallel processing device 61A is a device capable of executing processes in parallel, such as a GPU (Graphics Processing Unit), an ASIC (Application specific integrated circuit), an FPGA (Field Programmable Gate Array), or a multi-core CPU (Central Processing Unit), and includes a plurality of cores 62A and a memory 63A. The cores 62A execute processes according to a program stored in the memory 63A. The memory 63A is an example of a storage unit, and stores programs executed by the cores 62A and data used by the cores 62A. The memory 63A stores, for example, history information 130 (see FIG. 4). The plurality of cores 62A can execute various processes in parallel using the memory 63A. In this embodiment, the parallel processing device 61A executes a program to configure a compressor 70A and a decompressor 71A. In this embodiment, the compression by the compressor 70A can achieve higher compression than the compression by the compressor 72A.
[0022] The computer 101B stores and manages data managed by the computer 101A. The computer 101B is configured as a computer such as a PC or a server device, and includes a processor 53B, a memory 52B, IFs 5B1 and 5B2, a parallel processing device 61B, a persistent storage device 54B, and a bus 10B connecting these components. The processor 53B configures a compressor 72B and a decompressor 73B as an example of a decompression unit. The parallel processing device 61B has a plurality of cores 62B and a memory 63B, and configures a compressor 70B and a decompressor 71B. Each component of the computer 101B is configured similarly to each component of the computer 101A having the same first half of the reference numeral. Note that the configurations of the computers 101A and 101B are not limited to those described above, and some components may not be provided depending on the processing to be performed.
[0023] Next, the logical-physical conversion table 110 will be described.
[0024] FIG. 2 is a configuration diagram of the logical-physical conversion table according to the first embodiment.
[0025] The logical-physical conversion table 110 is a table for managing physical addresses corresponding to logical addresses that are data storage destinations, and stores entries for each area (e.g., block) of a predetermined size. An entry in the logical-physical conversion table 110 includes fields for a logical address 110a, a physical address 110b, and a block size 110c. The logical address 110a stores a logical address indicating the area corresponding to the entry. The physical address 110b stores a physical address corresponding to the area corresponding to the entry. The block size 110c stores the size of the block of the area corresponding to the entry.
[0026] Next, the block data storage information 120 will be described.
[0027] FIG. 3 is a configuration diagram of block data storage information according to the first embodiment.
[0028] The block data storage information 120 is information for managing block data, and includes an entry for each block data. The entry of the block data storage information 120 includes fields for compressed data 120a, a guarantee code 120b, and a compressed size 120c. The compressed data 120a stores compressed data after the block data is compressed. The guarantee code 120b stores a guarantee code for the block data. The compressed size 120c stores the data size of the compressed data. Since the data to be compressed is divided into a plurality of partial data and compressed, by having a compressed size for each partial data, partial recompression and partial decompression can be performed without compounding partial data that is not included in the data position to be decompressed. The model information 120d stores a fully learned model (a model that is the initial state of a prediction model or an integrated model). Alternatively, reference information of other corresponding models (models corresponding to other block data that have already been learned) may be stored to reduce the data amount of the block data storage information.
[0029] Next, the history information 130 will be described.
[0030] FIG. 4 is a configuration diagram of history information according to the first embodiment.
[0031] The history information 130 is information for managing a probability distribution corresponding to data (calculation use data) used when calculating the occurrence probability for a data unit, and includes an entry for each calculation use data. An entry of the history information 130 includes fields of a code 130a and a probability distribution information 130b. A predetermined code (identification information) for the calculation use data corresponding to the entry is stored in the code 130a. The code may be a hash value for the calculation use data or LSH (Locality Sensitive Hashing). A learning type LSH shown in Figs. 15 and 16 described later may also be used. The probability distribution information 130b stores information on a probability distribution calculated by the calculation use data corresponding to the entry. The information on the probability distribution may be the occurrence frequency of the target data unit or a learning type code by a DNN (Deep Neural Network). The history information 130 is stored, for example, by the core 62B executing a program. The function of the core 62B corresponds to a history management unit. An example of the generation and use of the history information 130 will be described later with reference to Fig. 15.
[0032] Next, an overview of the backup process and restore process in the computer system 1 will be explained.
[0033] FIG. 5 is a diagram illustrating an overview of backup processing and restore processing in the computer system according to the first embodiment.
[0034] First, the backup process will be described. In the backup process, the data to be backed up is compressed by the compressor 72A of the computer 101A, a security code is created and associated in units of a predetermined block size (first size), and the data is stored in the memory 52A or the persistent storage device 54A.
[0035] The computer 101A refers to the logical-physical conversion table 110A, identifies the storage location in the memory 52A or persistent storage device 54A of the data to be backed up, obtains the data to be backed up and the security code, and transmits them to the computer 101B that is to be the backup destination.
[0036] The computer 101B stores the received backup target data and security code in the memory 52B or the persistent storage device 54B, and performs a decompression process on the backup target data by the decompressor 73B. In this decompression process, the security code is used to detect and correct errors in the backup target data. Next, the compressor 70B compresses the decompressed backup target data, creates a security code in units of blocks of a predetermined block size (second size), stores the code in the memory 52B or the persistent storage device 54B, and registers the storage destination in the logical-physical conversion table 110B. However, for partial update (compressing only the part to be updated without decompressing the entire block), a method of using a security code that allows partial update, such as XOR parity, in units of blocks may be used. Alternatively, a security code may be created for each partial data to accommodate partial update.
[0037] According to this backup process, the data to be backed up can be stored in a state in which it has been highly compressed by the compressor 70B. If the second size is set to be larger than the first size and a security code is created using the second size as a data unit, the overall amount of data can be reduced. Note that the decompression process by the decompressor 73B of the computer 101B may be executed by the decompressor 73A of the computer 101A, and the decompressed data may be transmitted to the computer 101B.
[0038] Next, the restore process will be described. In the restore process, the case where the computer 101B is instructed to restore data that has been backed up by the backup process from the computer 101A will be described. First, the decompressor 71B of the computer 101B refers to the logical-physical conversion table 110B, identifies the storage location of the backup target data in the memory 52B or the persistent storage device 54B, acquires the restore target data and the guarantee code, and performs the decompression process. In this decompression process, the guarantee code is used to perform error detection and correction of the restore target data.
[0039] Next, the compressor 72B compresses the decompressed data to be restored using an algorithm that can be decompressed by the decompressor 73A of the computer 101A, creates a security code in units of the first size, stores it in the memory 52B or the persistent storage device 54B, and transmits the compressed data to be restored and the security code to the computer 101A that is to be restored.
[0040] The computer 101A stores the received data to be restored and the security code in the memory 52A or the persistent storage device 54A, and registers the storage destination in the logical-physical conversion table 110A. Next, the decompressor 73A performs a decompression process on the data to be restored. In this decompression process, the security code is used to perform error detection and correction on the data to be restored. This makes it possible for the computer 101A to use the data to be restored.
[0041] Next, the configuration and processing of the compressor 70 (70A, 70B) will be described.
[0042] FIG. 6 is a diagram illustrating the compressor according to the first embodiment.
[0043] The compressor 70 has a data division unit 701 and a plurality of compression processing units 702 (702A, 702B, etc.). Each compression processing unit 702 is configured by each core 62 (62A, 62B) of the parallel processing device 61 (61A, 61B) executing a program in the memory 63 (63A, 63B). Here, the learning unit and the model selection unit are configured by the compression processing unit 702 executing a program.
[0044] The data division unit 701 divides the data to be compressed into a plurality of partial data (e.g., 1 KB). In this embodiment, the data division unit 701 divides the data into the partial data of the number B of batches to be executed in parallel. In the compressor 70, the same number of compression processing units 702 as the number B of batches are used for processing, and each compression processing unit 702 performs compression processing on the respective partial data. In addition, the data to be compressed can be further divided into a number of partial data by simultaneously processing a plurality of block data together, thereby increasing the parallelism of processing on the parallel processing device 61B, for example, and speeding up the processing.
[0045] The compression processing unit 702 includes a pre-encoding unit 703 as an example of a conversion unit, a probability calculation unit 704 , and an entropy encoding unit 705 .
[0046] When the partial data to be compressed is binary data, the pre-encoding unit 703 performs one-hot encoding for each data unit of a predetermined size (u bits) included in the partial data. According to the pre-encoding unit 703, one data unit is u The pre-encoding unit 703 converts the coded data into a number of channels (C) that are input to the probability calculation unit 704. When one-hot encoding is performed, the coded data for one data unit has a property that the value of a specific bit can be determined according to the value of the remaining bits. Therefore, the specific bit of the coded data is deleted, and the number of channels C=2 u-1. By reducing the number of channels in this way, it is possible to reduce the amount of data input to the probability calculation unit 704. The data used for input to the plurality of probability calculation units 704 is an array of the number of batches of partial data (B) x the number of channels (C) x the length (N). Further auxiliary information may be added to the channel dimension of the data used for input. For example, the bit-wise logical address 110a corresponding to the partial data may be bit-encoded and added (the above-mentioned two u By adding a number of bits equivalent to the maximum value of the logical address in addition to the bits of the first bit, the accuracy of the prediction model for the target data can be improved, and the compression rate can be improved. Furthermore, when the partial data to be compressed is numerical data or when it is binary data but can be expressed as a numerical value (such as sensor data or image data), the pre-encoding unit 703 may input the data as numerical data to the probability calculation unit 704. Generally, it is expected that data on a storage will contain a mixture of numerical data files and text or binary data files, so that multiple models, such as a prediction model 704a for numerical data and a prediction model 704a for text or binary data, may be prepared for more efficient compression.
[0047] Furthermore, the pre-encoding unit 703 calculates a hash value of the partial data to be compressed, and by comparing the hash values, detects duplication with partial data processed in the past, and for duplicated data, stores only reference information to the partial data processed in the past in the logical-physical table 110 or the block data storage information 120, which eliminates the need to recompress and store the same data, thereby increasing the compression rate. In this case, the subsequent compression process may be omitted to speed up the process.
[0048] The probability calculation unit 704 has a plurality of types of prediction models 704a and an integrated model 704b.
[0049] The prediction model 704a outputs prediction information Qb,i of the prediction target data unit by inputting data (prediction data) used for prediction of the data unit (prediction target data unit) whose occurrence probability is to be predicted and probability distribution information of the history information 130. Here, the prediction data may be, for example, the data units Db,ir to Db,i-1, that is, r data units immediately before the prediction target data unit, assuming that the prediction target data unit is Db,i (i is the position of the prediction data unit in the partial data). Note that, if there are no r data units immediately before Db,i, the non-existent data units are assumed to have a predetermined value and processed. The prediction model 704a may be a model configured with multiple learnable weights such as a neural network, or may be a model configured to execute a specific process defined in advance. The prediction model 704a may output the occurrence probability as the prediction information Qb,i, or may output a feature map of the position corresponding to the prediction target data unit. In addition, when outputting the occurrence probability as the prediction information Qb,i, a discrete probability (such as a categorical distribution) may be output as the occurrence probability for each symbol, or parameters (such as the mean and variance) of a continuous probability density function such as a Gaussian distribution may be output, or a result of calculating a discrete probability corresponding to the occurrence probability for each symbol from a cumulative distribution function of a continuous probability density function may be output. An example of the configuration of the prediction model 704a will be described later with reference to FIGS. 12 to 14.
[0050] The integrated model 704b receives the prediction information output from the multiple types of prediction models 704a and the probability distribution information of the history information 130, and outputs (calculates) the occurrence probability Pb,i of the data unit to be predicted. The occurrence probability Pb,i is the distribution of the occurrence probability of each symbol of the data unit, and may output a discrete probability (such as a categorical distribution), or may output parameters (such as the mean and variance) of a continuous probability density function such as a Gaussian distribution as the occurrence probability, and use the result of calculating a discrete probability corresponding to the occurrence probability of each symbol from a cumulative distribution function during entropy encoding. In other words, when one-hot encoding is performed, the number of channels (C=2u OR 2 u -1). The integrated model 704b is a model such as a neural network, and may be, for example, a gated linear network that integrates values input from each prediction model 704a using weights learned, or may be configured with a perceptron. In addition, attention processing based on the output result of the prediction model (multiplication processing of data to be processed in the integrated model 704b by a value corresponding to the importance calculated from the output result of the prediction model) may be included. In this embodiment, the probability calculation unit 704 selects a prediction model to be used for processing from among multiple types of prediction models 704a based on the weights for each prediction model 704a in the integrated model 704b. Note that the history information 130 may be provided for each compression processing unit 702, or may be shared by multiple compression processing units 702. In particular, when there is locality for each data unit, by sharing the history information 130, the number of statistical samples of the probability distribution can be increased, so that the prediction accuracy can be improved and the compression rate can be increased, and further, for example, the usage amount of the memory 63B can be reduced. An example of the configuration of the integrated model 704b will be described later with reference to FIG.
[0051] The entropy coding unit 705 receives the occurrence probability Pb,i output from the probability calculation unit 704 and the data unit Db,i as input, and outputs a bit string (encoded bit string) obtained by entropy coding the data unit Db,i.
[0052] Each compression processing unit 702 entropy-encodes the entire partial data by repeatedly executing processing, for example, by changing the compression target sequentially from the first data unit, for each data unit in the partial data. Since the processing by each compression processing unit 702 is executed in parallel, for example, in the dimension of the batch number (B), the efficiency of the compression processing can be improved. In addition, since the results of multiple prediction models are integrated to calculate the occurrence probability, the occurrence probability can be calculated with high accuracy, and the compression efficiency can be improved.
[0053] The compressor 70 compiles the bit streams (second block corresponding bit string groups) for each of the partial data obtained by the multiple compression processing units 702 in a state in which the data ranges corresponding to each of the partial data can be identified, and sets the compressed data of the compression target data. Here, the storage processing unit is constituted by the compressor 70.
[0054] Next, the configuration and processing of the expander 71 (71A, 71B) will be described.
[0055] FIG. 7 is a diagram illustrating the expander according to the first embodiment.
[0056] The decompressor 71 decompresses the compressed data compressed by the compressor 70. The decompressor 71 has a data synthesis unit 711 and a plurality of decompression processing units 712 (712A, 712B, etc.). Each decompression processing unit 712 is configured by each core 62 (62A, 62B) of the parallel processing device 61 (61A, 61B) executing a program in the memory 63 (63A, 63B). Here, the first block corresponding security code creation unit is configured by the decompressor 71 executing a program.
[0057] The data synthesis unit 711 synthesizes partial data constituted by data units decompressed by each decompression processing unit 712 to generate pre-compression data. In this embodiment, the data synthesis unit 711 synthesizes partial data of batch number B when compressing the compressed data. Note that in the decompressor 71, the same number of decompression processing units 712 as the batch number B are used for processing, and each decompression processing unit 712 performs decompression processing on the respective partial data.
[0058] The decompression processing unit 712 includes a pre-encoding unit 713 , a probability calculation unit 714 as an example of a second probability calculation unit, and an entropy decoding unit 715 .
[0059] The pre-encoding unit 713 performs the same process as the pre-encoding unit 703. Furthermore, the probability calculation unit 714 performs the same process as the probability calculation unit 704.
[0060] The entropy decoding unit 715 receives the occurrence probability Pb,i output from the probability calculation unit 714 and a bit string corresponding to the data unit Db,i to be decoded in the compressed data, and decodes the bit string to output the data unit Db,i.
[0061] Each decompressor 712 entropy-decodes the entire bit string of the entropy-encoded partial data by repeatedly executing the process for each data unit in the partial data, for example, by changing the decompression target in sequence starting from the first data unit. Since the process by each decompressor 712 is executed in parallel, for example, in the dimension of the batch number (B), the efficiency of the decompression process can be improved.
[0062] Next, the compression process performed by the compressor 70 will be described.
[0063] Fig. 8 is a flowchart of the compression process by the compressor according to the first embodiment. Note that the compression process shown in Fig. 8 is a process executed by each compression processing unit 702 of the compressor 70, and can be realized by, for example, a thread running on the core 62B of the parallel processing device 61B.
[0064] The compression processing unit 702 of the compressor 70 judges whether or not global learning is necessary (S11). Whether or not global learning is necessary is judged based on the total compression effect, for example, combining the effect of highly compressing the data to be compressed by global learning of a new model and the overhead of the memory capacity for saving the newly learned model.
[0065] As a result, when it is determined that the overall learning of the prediction model 704a or the integrated model 704b is necessary (S11: Y), the compression processing unit 702 performs the overall learning process (S12), and uses this model in the prediction model process and the integrated model process used in the following processes. The overall learning process is a process of learning by using data that is close to each other in the logical address space for learning based on the hypothesis that data that is close to each other in the logical address space has similar characteristics of the occurrence probability of the data symbols, and saving the learned model. This learning data may be partial data of the compression target data specified when this processing flow is started, or other data may be used. For example, the learning data may be randomly sampled from the data stored in the storage based on a predetermined rule. In addition, the learned model is saved in association with the compressed data as the model information 120d of the block data storage information 120. Alternatively, reference information of other corresponding models (models corresponding to other block data that have already been learned) may be stored (i.e., the already learned models are reused) to reduce the processing time of the overall learning and the data amount of the block data storage information. Learning may be sped up using techniques such as transfer learning and meta-learning.
[0066] On the other hand, when it is determined that the overall learning is not necessary (S11: N), the compression processing unit 702 advances the process to step S13. In this case, in the prediction model process and the integrated model process used in the subsequent processes, the initial values of the parameters are initialized using values that can be generated by a mathematical formula (e.g., pseudo-random numbers based on a Gaussian distribution, etc.).
[0067] Next, the compression processing unit 702 performs one-hot encoding as necessary on data to be used to calculate the occurrence probability of the data unit to be compressed (data unit to be compressed: the first is the first data unit, and thereafter, each is the next data unit) of the partial data handled by the compression processing unit 702, inputs the data to multiple prediction models 704a, and performs prediction model processing to calculate multiple occurrence probabilities using the multiple prediction models (S13).
[0068] Next, the compression processing unit 702 inputs the multiple pieces of prediction information calculated in the prediction model process to the integrated model 704b, and performs integrated model processing to calculate the occurrence probability of the data unit to be compressed (S14).
[0069] Next, the compression processing unit 702 determines whether or not learning of the prediction model 704a and the integrated model 704b is necessary (S15). For example, when the determination of step S15 has been performed a predetermined number of times, it may be determined that learning is necessary.
[0070] As a result, when it is determined that learning of the integrated model 704b is necessary (S15: Y), the compression processing unit 702 performs learning processing of the prediction model 704a and the integrated model 704b (S16), and then proceeds to step S15. The data used for learning is data that will have been decoded at this point in time when decompression is assumed, and may be data prepared in advance and / or historical data. According to this learning processing, the weights held by the multiple prediction models 704a and the integrated model 704b are modified.
[0071] On the other hand, if it is determined that learning of the integrated model 704b is not necessary (S15: N), the compression processing unit 702 advances the process to step S17.
[0072] In step S17, the compression processing unit 702 determines whether or not the prediction model actually used among the multiple prediction models needs to be updated. For example, when the weight for each prediction model is changed by learning the integrated model 704b and the weight for the prediction model becomes equal to or smaller than a predetermined threshold, it may be determined that the prediction model to be used needs to be updated.
[0073] As a result, if it is determined that the prediction model being used needs to be updated (S17:Y), the compression processing unit 702 executes an update process for the prediction model being used (S18) in which any prediction model whose corresponding weight is less than a predetermined value is set not to be used, and proceeds to step S19.
[0074] On the other hand, if it is determined that the prediction model to be used does not need to be updated (S17: N), the compression processing unit 702 advances the process to step S19.
[0075] In step S19, the compression processing unit 702 performs entropy coding processing using the occurrence probability output in step S14 and the data unit to be compressed, thereby converting the data unit to be compressed into an entropy coded bit string.
[0076] Next, the compression processing unit 702 determines whether all data units of the partial data have been encoded (S20), and if all data units have not been encoded (S20:N), the process proceeds to step S13 to process the next data unit.
[0077] On the other hand, if all data units have been encoded (S20: Y), the process ends. After that, the compressor 70 collects bit strings obtained by encoding the partial data converted by each compression processing unit 702, and stores the collected data in a predetermined storage location as compressed data.
[0078] In the above description, an example has been shown in which the prediction model process, the integrated model process, the learning process, and the entropy coding process are iteratively executed in order for each data unit, but the execution unit and timing of each of them can be changed. For example, in the prediction model process and the integrated model process, since all the original data exists at the time of compression, the processes can be executed in parallel in the length (N) direction, for example, as shown in FIG. 12. In addition, when a method such as ANS (Asymmetric Numeral Systems) is used in the entropy coding process (S19), since it is necessary to execute the processes in the reverse order to the encoding process at the time of decoding, at the time of compression, the occurrence probability of the results predicted in the prediction model process and the integrated model process is stored in the length (N) direction, and when a series of calculations in the length (N) direction is completed, the entropy coding process is executed in reverse order for the stored occurrence probability. In addition, in the learning process, in addition to the method of executing in the length (N) direction (learning with data before the current point of the iteration in the length (N) direction), for example, multiple data blocks to be compressed may be sampled and used as the data to be learned. In this case, the learning data and schedule for compression may be determined by sampling using a deterministic pseudorandom number or the like so that the learning target data can be uniquely identified and is not included in the data before decompression. Furthermore, the processing order of the data units in the length (N) direction does not need to be the original order, and may be processed in a state changed by a reversible algorithm. Also, a method of restoring the original data from a noise state such as a diffusion model may be used, and the unit of iteration may be configured to correspond to one step of the diffusion model. In any case where the unit of execution and timing described above are changed, the same unit of execution and timing are used during decompression, so that the occurrence probability of the predicted result is the same, making it decodable.
[0079] Next, the operation of the decompression process by the decompressor 71 will be described.
[0080] Fig. 9 is a flowchart of the decompression process by the decompressor according to the first embodiment. Note that the decompression process shown in Fig. 9 is executed by each decompression processing unit 712 of the decompressor 71, and can be realized by, for example, a thread running on the core 62B of the parallel processing device 61B.
[0081] The decompression processing unit 712 of the decompressor 71 judges whether model loading is necessary (S21). Regarding whether model loading is necessary, for example, if parameters and references of the model itself are stored in association with the compressed data as the model information 120d of the block data storage information 120, it is judged that model loading is necessary, and otherwise it is judged that model loading is unnecessary.
[0082] As a result, when it is determined that model loading of the prediction model 704a or the integrated model 704b is necessary (S21: Y), the model is arranged in the memory 63B of the parallel processing device 61B as model information 120d based on the parameters and references of the model itself corresponding to the compressed data. Furthermore, the memory 63B of the parallel processing device 61B may be used like a cache. In that case, if the determination in S21 shows that the model has already been loaded in the memory 63B used as a cache (a frequently used model may be arranged in the memory 63B like a cache), model loading can be omitted, so it can be determined that model loading is unnecessary, and the time required for model loading can be efficiently reduced.
[0083] On the other hand, when it is determined that model loading is not necessary (S21:N), the decompression processing unit 712 advances the process to step S23. In this case, in the prediction model process and integrated model process used in the subsequent processes, the initial values of the parameters are initialized using values that can be generated by a mathematical formula (for example, pseudo-random numbers based on a Gaussian distribution) in the same manner as the method used in the case where the compression processing unit 702 does not perform overall model learning (S11:N).
[0084] Next, the decompression processing unit 712 performs one-hot encoding on the data used to calculate the occurrence probability of the data unit to be decompressed (data unit to be decompressed: the first data unit, and thereafter the next data unit) of the partial data handled by the decompression processing unit 712, inputs the data to multiple prediction models 714a, and performs prediction model processing to calculate multiple pieces of prediction information using the multiple prediction models (S23).
[0085] Next, the decompression processing unit 712 inputs the multiple pieces of prediction information calculated in the prediction model process to the integrated model 714b, and performs integrated model processing to calculate the occurrence probability of the data unit to be decompressed (S24).
[0086] Next, the decompression processing unit 712 determines whether or not learning of the prediction model 714a and the integrated model 714b is necessary (S25). For example, when the determination of step S25 has been performed a predetermined number of times, it may be determined that learning is necessary.
[0087] As a result, when it is determined that learning of the prediction model 714a and the integrated model 714b is necessary (S25: Y), the decompression processing unit 712 performs a learning process of the prediction model 714a and the integrated model 714b (S26), and then proceeds to step S27. The data used for the learning process is data that has been decoded at this point, and may be data prepared in advance and / or historical data. According to this learning process, the weights held by the prediction model 714a and the integrated model 714b are corrected.
[0088] On the other hand, if it is determined that learning of the prediction model 714a and the integrated model 714b is not necessary (S25: N), the decompression processing unit 712 advances the process to step S27.
[0089] In step S27, the decompression processing unit 712 determines whether or not the prediction model actually used among the multiple prediction models needs to be updated. For example, when the weight for each prediction model is changed by learning the integrated model 714b and the weight for the prediction model becomes equal to or smaller than a predetermined threshold, it may be determined that the prediction model to be used needs to be updated.
[0090] As a result, if it is determined that the prediction model being used needs to be updated (S27:Y), the decompression processing unit 712 executes an update process for the prediction model being used (S28) in which any prediction model whose corresponding weight is less than a predetermined value is set not to be used, and the process proceeds to step S29.
[0091] On the other hand, if it is determined that the prediction model to be used does not need to be updated (S27: N), the decompression processing unit 712 advances the process to step S29.
[0092] In step S29, the decompression processing unit 712 performs entropy decoding processing using the occurrence probability output in step S24 and the entropy-coded bit string corresponding to the data unit to be decompressed, thereby decodes the entropy-coded bit string into the data unit before encoding.
[0093] Next, the decompression processing unit 712 determines whether all data units of the partial data have been decoded (S30), and if all data units have not been decoded (S30:N), the process proceeds to step S23 to process the next data unit.
[0094] On the other hand, if all data units have been decoded (S30: Y), the decompression processing unit 712 ends the process. After that, the decompressor 71 collects the partial data converted by each decompression processing unit 712 and stores them as decompressed data in a predetermined storage location.
[0095] As described above, by consistently executing each process required for decompression of a plurality of data units by the decompression processing unit 712 in a loop on a thread operating on the core 62B of the parallel processing device 61B, for example, it is possible to reduce the processing time required for communication required for command transmission between the processor 53B and the core 62B of the parallel processing device 61B and for thread startup, thereby enabling high-speed processing. Note that the calculation of the occurrence probability of the data unit, the learning process, the usage model update process, and other determination processes in steps S23 to S30 operate in the same way as the calculation of the occurrence probability of the data unit in the compression process, so that the same occurrence probability can be calculated for the same data unit and appropriate decoding can be performed.
[0096] Furthermore, in the compression and decompression processes described in Fig. 8 and Fig. 9, when the learning and usage prediction model update processes of S16, S18, S24, and S26 are not performed, or when each partial data is independently managed, recompression and decompression processes for updating data are possible for each partial data of the data to be compressed or decompressed, based on the compressed size 120c of the block data storage information 120. As a result, when data has already been highly compressed as a large block (e.g., several MB to several GB), it is possible to partially update and decompress the data in units of partial data without decompressing all the data in the block, thereby reducing the amount of required computational resources.
[0097] Next, the processing operation of the backup processing in the computer 101B will be described.
[0098] FIG. 10 is a flowchart of the backup process according to the first embodiment.
[0099] This backup process is executed when the processor 53B of the computer 101B receives from the computer 101A a compression command to which is added a data block group (first compressed data) to be backed up and compressed by the compressor 72A and a security code group. The processor 53B causes the decompressor 73B to execute a decompression process on one data block (first block unit) to be backed up (S101). The compression by the compressor 72A is lower than that by the compressor 70B.
[0100] Next, the processor 53B checks the decompressed data using the added security code, and performs processing such as error detection and correction (S102).
[0101] Next, the processor 53B determines whether or not the decompression process has been performed on the number of blocks (the number of target blocks) of a predetermined size (the second size) to be compressed in the next compression process (S103).
[0102] As a result, if the decompression process has not been executed on the blocks of the target block number (S103: N), the processor 53B advances the process to step S101 and executes the process on the next data block.
[0103] On the other hand, when the decompression process is being performed on the blocks of the target block number (S103: Y), the processor 53B causes the compressor 70B to perform compression process on the data of the blocks (second block units) of the target block number (S104). The compression process by the compressor 70B is the compression process shown in FIG. 8, and the compression by the compressor 70B is more highly compressed than the compression by the compressor 72. Note that the throughput of the compression process can be improved by dividing the data of the target block number into a plurality of data units and compressing them together in parallel, for example, in the core 62B of the parallel processing device 61B. Also, since the size of the data to be compressed (second size) is larger than the size of the data compressed by the compressor 72 (first size), the compression efficiency is good.
[0104] Next, the processor 53B generates a guarantee code for data of blocks (second block units) equal to the number of target blocks (S105), stores the compressed data 120a, the guarantee code 120b, the compressed size 120c, and the model information 120d as block data storage information 120 in the persistent storage device 54B, and updates the logical-physical conversion table 110 according to the stored contents (S106). Here, since the guarantee code is generated for data of the second size, it is possible to reduce the storage area required for storing the guarantee code. In addition, when collecting a plurality of data blocks of the first block units to form the second block unit, zero-filled data may be prepared for an area to which no physical address was originally assigned in the first block unit, or data required for restoring the logical-physical conversion table 110 of the first block unit may be stored together with the block data storage information. When it is necessary to store the logical-physical conversion table 110 in the persistent storage device 54, the logical-physical conversion table 110 itself may be compressed in a similar manner as a target of the compression process (S104), thereby saving the capacity used in the persistent storage device 54 and improving efficiency. Furthermore, the guarantee code 120b and the model information 120d themselves may also be compressed in a similar manner as the subject of the compression process (S104). The compressed size 120c is obtained as a result of the compression process (S104), so the compression efficiency may be improved by performing a process similar to the compression process (S104) again or compressing it using another general compression method.
[0105] Next, the processor 53B determines whether all data blocks to be compressed have been processed (S107). As a result, if all data blocks to be compressed have not been processed (S107: N), the processor 53B proceeds to step S101 and executes processing on the remaining data blocks.
[0106] On the other hand, if all data blocks to be compressed have been processed (S107: Y), the processor 53B notifies the requesting computer 101A that the backup has ended, and ends the process.
[0107] Next, the processing operation of the restore process in the computer 101B will be explained.
[0108] FIG. 11 is a flowchart of the restore process according to the first embodiment.
[0109] This restoration process is executed when processor 53B of computer 101B receives a restoration command with information indicating a data block group to be restored from computer 101A. Note that the data blocks of this data block group are blocks of compressed data of the first size.
[0110] First, the processor 53B causes the decompressor 71B to execute decompression processing on one data block of the second size including the data block group to be restored corresponding to the restore command (S111). As in the case of compression, data of the number of target blocks is divided into a plurality of data units, and for example, the core 62B of the parallel processing device 61B performs decompression processing in parallel all at once, thereby improving the throughput of the decompression processing.
[0111] Next, the processor 53B checks the decompressed data using the added security code, and performs processing such as error detection and correction (S112).
[0112] Next, the processor 53B causes the compressor 72B to perform a compression process on the block data of the first size in the decompressed data (S113).
[0113] Next, the processor 53B generates a security code for the block data of the first size (S114), stores the block data and the security code in the persistent storage device 54B, and updates the logical-physical conversion table 110 for the block of the first size in accordance with the stored contents (S115).
[0114] Next, the processor 53B determines whether or not compression processing has been performed on the number of blocks of the first size (the number of target blocks) included in the block data of the second size (S116).
[0115] As a result, if compression processing has not been performed on the target number of blocks (S116: N), the processor 53B advances the process to step S113 and continues processing on the remaining first size block data.
[0116] On the other hand, if compression processing has been performed on the number of blocks corresponding to the target block count (S116: Y), the processor 53B determines whether or not processing has been completed on all data blocks including the data block group to be restored (S117).
[0117] As a result, if the process has not been completed for all data blocks including the data block group to be restored (S117: N), the processor 53B advances the process to step S111 and executes the process for the remaining data blocks.
[0118] On the other hand, if processing has been completed for all data blocks including the data block group to be restored (S117: Y), the processor 53B sends a compressed data group consisting of compressed data for each block data of the first size (each first block unit) and a guarantee code group consisting of the corresponding guarantee codes to the requesting computer 101A, and terminates processing.
[0119] Next, the processing operation of the prediction model processing in the computer 101B will be described.
[0120] FIG. 12 is a diagram illustrating the prediction model processing according to the first embodiment.
[0121] This process is an example of prediction model 704a and prediction model 714a (executed by compression processing unit 702 and decompression processing unit 712) (simply referred to as prediction model). This prediction model process is an example of a case where prediction model processing is configured with a neural network, and by inputting data (prediction data) used for predicting a data unit (prediction target data unit) whose occurrence probability is to be predicted, a feature amount map (data to be input to the integrated model) of a position corresponding to the prediction target data unit is output. This process can be executed in parallel as threads for each dimension of the batch number (B) operated by core 62B of parallel processing device 61B, for example.
[0122] The data input here is an array of number of batches (B) x number of channels (C) x length of partial data (N). Note that when learning a prediction model or compressing, all data to be compressed is held, so multiple pieces of prediction target data (N directions) can be processed together in parallel after matching their respective causal relationships. The explanation in FIG. 12 explains the case of this collective processing. On the other hand, when decompressing (decoding), data that has not been decoded is not held, so the operation in that case is explained in FIG. 13.
[0123] This predictive model processing is mainly composed of functional components: input data shift processing (S121), a downscale block (DB) (S122), a residual block (RB) (S123), and an upscale block (UB) (S124) (collectively, these components will be referred to as Scale Causal Blocks (SCB) hereafter).
[0124] The input data shift process (S121) is a process of padding the input data by one unit at the beginning in the length (N) direction and deleting one unit at the end. By this process, the input data is shifted by one unit in the length (N) direction, and the subsequent process is a process of predicting the next input data from the past data.
[0125] The downscale block (S122) processes the input data with a convolutional neural network, divides the data in the channel dimension direction (C direction), and then reduces the length (N) direction. Specifically, the data being processed is first padded at the beginning of the length (N) direction with a predetermined size (e.g., K-1 pieces) (shown as black "0" in FIG. 12), and then processed with a convolutional neural network (Convolution in the figure). In this example, since the length (N) direction is one-dimensional, a one-dimensional convolutional neural network is applied. Note that the kernel size of the convolutional neural network is K, and the stride width is 1. The kernel size can be set to, for example, K=2, from the viewpoint of the range of the receptive field relative to the number of weights of the neural network. After that, an activation function (Activation in the figure) is applied to the data being processed (the output result of the convolutional neural network). The activation function may be a function such as SELU (Scaled Exponential Linear Unit) or ReLU (Rectified Linear Unit). After that, the data being processed is divided (Split in the figure) in the channel dimension direction (C direction). A part of this divided data is used as a direct input of the corresponding upscale block (S124) without going through the process of the downscale block (S122) thereafter. In this way, it is possible to prevent the loss of fine-grained information due to the process of reducing the length (N) direction by the downscale block (S122), and to further improve the accuracy of the prediction model process. Furthermore, the memory model (Mem. in the figure) process may be applied to a part of this divided data. The memory model is a process shown in FIG. 16 and FIG. 17, which will be described later, as an example, and is a process for improving the prediction accuracy of the probability by storing history information in the length direction. The memory model may be configured in the form of a residual block, as shown in the figure of the downscale block (S122). Then, a process (Down in the figure) is executed to reduce the length (N) of the data being processed.This reduction process may be performed by, for example, replacing two consecutive data in the length (N) direction in the channel (C) direction as shown in FIG. 12. Alternatively, a convolutional neural network with a widened stride width may be used for processing, or a method such as Pooling may be used. In S122 of FIG. 12, an overview of the above process is shown, and the numbers in the figure represent the numbers corresponding to the order of the input data units in the length (N) direction, and in the process after Convolution, the numbers represent the order of the input data and the causal relationship of the processing result corresponding to the numbers (the maximum value of the numbers corresponding to the information used in the process). In the above process, the causal relationship in the length (N) direction of the input data is preserved. In other words, since information after a certain target data unit is not used in the process, it can be seen that the process is valid as a prediction process.
[0126] The residual block (S123) processes data output from the functional components of the previous stage using a dilated convolutional neural network, and adds the processed data to the data before processing. Specifically, the data being processed is first padded at the beginning in the length (N) direction with a predetermined size (e.g., d*(K-1) pieces), and then processed by the dilated convolutional neural network. In this example, since the length (N) direction is one-dimensional, a one-dimensional convolutional neural network is applied. Note that the kernel size of the dilated convolutional neural network is K (e.g., K=2), the stride width is 1, and the dilation size d is K. x―1Here, x is the level of the residual block, and when r residual blocks are configured as in FIG. 12, it is specified by a natural number from 1 to r in the order of processing. By increasing the expansion size for each level of the hierarchy as described above, the receptive field in the length (N) direction can be efficiently expanded. Then, an activation function is applied as in the downscale block (S122). Then, the processed data and the data before processing are added to obtain the output result of the residual block (S123). In addition to this addition process, attention processing (self-attention, etc.) may be introduced. Note that in the above process, as shown in S123 of FIG. 12, the causal relationship in the length (N) direction of the input data is preserved as in the downscale block (S122), and it can be seen that it is valid as a prediction process.
[0127] The upscale block (S124) expands the data output from the functional components in the previous stage in the length (N) direction, combines the data divided in the corresponding downscale block (S124) in the previous stage, and outputs the data processed by the convolutional neural network. Specifically, the data being processed is first padded at the beginning in the length (N) direction with a predetermined size (e.g., K-1 pieces), and then expanded in the length (N) direction (Up in the figure). For example, the data may be divided into two in the channel (C) direction and replaced with two consecutive pieces of data in the length (N) direction, as shown in FIG. 12, which is the opposite process to Down in the downscale block (S122). Alternatively, the data may be processed using a transposed convolutional neural network with a wider stride width. In addition, for the divided data in processing in the corresponding downscale block (DBx) having the same length in the length (N) direction, the data is padded at the beginning of the length (N) direction with a predetermined size (e.g., K-1 pieces), and data is created that is combined with the data in processing expanded in the length (N) direction and the channel (C) direction. This data is processed by a convolutional neural network. In this example, since the length (N) direction is one-dimensional, a one-dimensional convolutional neural network is applied. Note that the kernel size of the convolutional neural network is K (e.g., K=2), and the stride width is 1. After that, an activation function is applied to the data in processing (output result of the convolutional neural network) in the same manner as in the downscale block (S122), and the resultant data is obtained. Note that in the above process, as shown in S124 of FIG. 12, the causal relationship in the length (N) direction of the input data is preserved in the same manner as in the downscale block (S122), and it can be seen that this is valid as a prediction process.
[0128] As a method of configuring the functional components described above, for example, as shown in FIG. 12, first, a plurality of (s) downscale blocks (S122) (DB1 to DBs) are processed, then a plurality of (r) residual blocks (S123) (RB1 to RBr) are processed, and then a plurality of (s) upscale blocks (S124) (UB1 to UBs) are processed. By processing in this manner, the number of elements in the length (N) direction can be reduced from B×C×N input data to B×C1×N / 2 and B×C2×N / 4, and the number of internal channels C1 to Cs can be efficiently increased, thereby making the processing of the prediction model more efficient and faster. Note that C1 to Cs may be increased in conjunction with the reduction in the length (N) direction when processing the downscale block (S122), and decreased in conjunction with the increase in the length (N) direction when processing the upscale block (S124). In addition, by combining the downscale block (S122), the residual block (S123), and the upscale block (S124), s+r The residual block (S123) may have a receptive field with a wide length. In other words, the amount of data (prediction data) used for predicting the data unit (prediction target data unit) whose occurrence probability is predicted can be efficiently increased, thereby improving the prediction accuracy for a given amount of processing. In addition, the residual block (S123) may be processed between a plurality of downscale blocks (S124) or between a plurality of upscale blocks (S124).
[0129] In addition, in a configuration using s downscale blocks (S122) and s upscale blocks (S124), the convolution layers of w blocks (RBs-w to RBs and UBs-w to UBs) may be weight-shared (the convolution layer of RBs-w to RBs is made the same as the parameters of the convolution layer of RBs-w, and the convolution layer of UBs-w to UBs is made the same as the parameters of the UBs-w convolution layer). Reducing the number of parameters of the prediction model can reduce the amount of data in the model information 120d of the block data storage information 120, and therefore the compression efficiency can be improved by setting an appropriate w.
[0130] Additionally, the kernel size (K) may be increased depending on the layer depth (s) of the downscale block (S122) or the upscale block (S124) to further widen the receptive field.
[0131] Also, for multidimensional data such as image data, the length (N) direction may be multidimensional. In that case, processing may be performed in the same manner using a convolutional neural network of the corresponding dimension.
[0132] Next, the data flow of the prediction model processing and the integrated model processing in the computer 101B will be described.
[0133] FIG. 13 is a diagram illustrating a data flow of the prediction model processing and the integrated model processing according to the first embodiment.
[0134] This process 1300 is an example of a method of implementing the prediction model 704a and the prediction model 714a (executed by the compression processing unit 702 and the decompression processing unit 712) (simply referred to as the prediction model) and the integrated model 704b and the integrated model 714b (executed by the compression processing unit 702 and the decompression processing unit 712) (simply referred to as the integrated model). This prediction model process and the integrated model process are the prediction model process and the integrated model process described in FIG. 12, and how data is processed inside them will be described, including an overall overview. The data to be input first is an array of the number of batches (B) x the number of channels (C) x the length of partial data (N), as in FIG. 12, but in this figure, the dimension of the number of batches (B) is omitted, the horizontal axis is the length of partial data (N), the vertical axis represents the order of each process, and the vertical axis in each process represents the number of channels (C). This process can be executed in parallel as threads for each dimension of the number of batches (B) operating in the core 62B of the parallel processing device 61B.
[0135] This example shows a process of predicting the eighth data item in the teacher data in order from the front. In this case, the eighth data item is the data item (data item to be predicted) for which the occurrence probability is to be predicted, and the data used for the prediction (data for prediction) corresponds to the calculation part 1301 and the reference part 1302 in the figure. The reference part 1302 also includes the results of calculations (for example, stored as a cache) made in the past (for data items that have already been predicted).
[0136] In this example, the prediction model processing is composed of two downscale blocks (S122) (DB1, DB2), one residual block (S123) (RB1), and two upscale blocks (S124) (UB1, UB2), and the integrated model processing is composed of a linear neural network (similar to a convolution convolution with K=1) and a Softmax function. In the prediction model processing, a feature map (data to be input to the integrated model) of a position corresponding to the prediction target data unit is output, and in the integrated model processing, a prediction result of the occurrence probability of the prediction target data unit is finally output.
[0137] The numbers in the figure represent the numbers corresponding to the order of the input data units in the length (N), and each process represents the number of the input data order and the causal relationship of the processing result corresponding to that number (the maximum value of the number corresponding to the information used in the process). As a result of the integrated model process, the causal relationship in the length (N) of the input data is preserved. In other words, since information after a certain target data unit is not used in the process, it can be seen that this is a valid prediction process.
[0138] The prediction model processing proceeds in the same manner as the method already explained in Fig. 12, but in this example, in order to proceed with the calculation of calculation part 1301 in the figure, the data of reference part 1302 is cached with duplicates removed when calculating the occurrence probability in the past (7th and earlier), and is used to efficiently proceed with the calculation of calculation part 1301. In this way, even during decoding, when it is difficult to perform calculations collectively in the length (N) direction, high-speed processing can be achieved by efficient iteration processing that prevents duplicate calculations.
[0139] In this example, the integrated model processing is described using one prediction model, but multiple prediction models may be used in the same way. In that case, the input dimension of the neural network of the integrated model increases. Also, in this example, the Softmax function is used to reduce the number of inputs to 1 bit (=2 1 However, for example, the output may be one in the channel direction, converted to a value between 0 and 1 using a Sigmoid function or the like, and treated as the probability of outputting the symbol "1". In that case, the value obtained by subtracting this probability from 1 is the probability of outputting the symbol "0".
[0140] In addition, as a method for learning the weights of the neural network in the prediction model processing and the integrated model processing, in the above description, since the prediction model processing and the integrated model processing are configured as differentiable processing, the prediction accuracy may be improved by calculating the relative entropy (or negative log likelihood, etc.) between the occurrence probability of each symbol finally output by the integrated model and the teacher data (for example, a value corresponding to the occurrence probability of each symbol expressed in one-hot format), and learning the model end-to-end by the backpropagation method or the like so as to minimize the value. As for the timing of this learning, learning may be performed along with the progress of the prediction processing of each data unit as shown in FIG. 8 and FIG. 9, or a model in a pre-trained state may be used. Also, as in the overall learning process (S12), the prediction model and the integrated model may be learned periodically based on data accumulated in the memory 52B, memory 63B, persistent storage device 54B, etc. of the computer 101B. In that case, the learned model is stored in the persistent storage device 54B or the like, and the correspondence between the model and the data compressed using it is recorded (model information 120d) together with the compressed data 120a in the block data storage information 120, making it possible to restore the data. Also, by distinguishing the model to be used based on identification information (code) that indicates the characteristics of the data, a dedicated learned model may be prepared for similar data, thereby improving the compression efficiency.
[0141] Next, the algorithm for predictive model processing in computer 101B will be described.
[0142] FIG. 14 is a diagram illustrating an algorithm of the prediction model processing according to the first embodiment.
[0143] In FIG. 12, the components of the SCB (downscale block, upscale block, etc.) that constitute the prediction model are described. In the description of the module in FIG. 12, a convolution kernel is used as the neural network, and learning processing is generally performed by parallelizing in the length (N) direction (dividing and processing data for each kernel size). In this case, since a large amount of data is input to the neural network in the length (N) direction, the multiplicity in the batch (B) direction is set relatively small (e.g., 16 pieces). This is a suitable processing method for the overall learning processing (S12) in the compression processing. However, when operating as an inference processing such as a prediction model processing (S13 and S23), it becomes an iteration processing in units of symbols, so the batch multiplicity is set higher (e.g., several thousand or more). Therefore, as described in FIG. 13, by using a cache of intermediate data output by each component, the calculation processing is partially advanced in the length (N) direction, improving memory usage efficiency and the multiplicity in the batch (B) direction can be improved in each stage (e.g., several thousand or more). In the following, the inference process will be specifically shown as an algorithm procedure in FIG. 14 and explained.
[0144] First, the overall algorithm 1401 of the SCB is largely divided into an initialization process (initialize in the figure) and an inference process (inference in the figure). The initialization process is a process that is executed only at the first execution time when executing the prediction model process (S13 and S23) on the data to be processed (array of B×C×N) obtained by dividing the data to be compressed into a plurality of partial data. The inference process is a process that is executed every iteration (executed N times) as the prediction model process (S13 and S23) using one piece of data to be processed acquired in the length (N) direction (represented by x in the figure, array of B×C). Note that the notation [X, Y] in the figure represents the shape of the X×Y array (tensor), and [] represents an empty list structure. In the initialization process, the initialization process is executed for each component (block in the figure) in the overall component configuration of the SCB (represented by blocks in the figure, in which each component such as DB1, DB2, UB2, and UB1 is in list format in the order of processing). Also, in the inference process, as shown in algorithm 1401 in the figure, the inference process is executed for each component in order.
[0145] Next, the algorithm 1402 of the downscale block will be described. In this figure, an algorithm for the case where the kernel size is K=2 is described as an example. It is roughly divided into an initialization process (initialize in the figure) and an inference process (inference in the figure). The initialization process is carried out by setting two types of variables (x p ands p) are set to their initial values. Note that the bold "0" in the figure indicates an array initialized with zero. In addition, the inference process takes the array (x) of data to be processed of B × C_in and the list (s) of arrays of data to be input to each upscaling block in the subsequent stage as input, and outputs the array of B × C_оut (the values of C_in and C_оut may be different for each component). The basic operation of the inference process is as shown in the algorithm in Figure 14, and since the outline of the operation has already been explained in Figure 13, the details will be omitted, but only the characteristic parts of the inference process will be explained below. In the figure, linear_from_conv is a process in which the convolution process described in Figure 12 is replaced with a fully connected layer. Specifically, the convolution process can be considered as a fully connected layer with K × C_in as input and C_оut as output, so the parameters of the convolution kernel are converted to the parameters of the fully connected layer before processing. This allows for high-speed processing by omitting intermediate processes such as array dimension conversion. Also, as shown in algorithm 1402, memory model processing (memory in the figure) may be executed.
[0146] Next, the algorithm 1403 of the upscale block will be described. In this figure, an algorithm for the case where the kernel size is K=2 is described as an example. It is roughly divided into an initialization process (initialize in the figure) and an inference process (inference in the figure). The initialization process is carried out by setting variables (x p1 , x p2 ands p ) are set to their initial values. In addition, the inference process takes as input the array (x) of data to be processed, B × C_in, and a list (s) of arrays of data to be input to each upscaling block, and outputs the array B × C_out.
[0147] In this way, by using a cache of intermediate data output by each component, calculation processing can be carried out partially in the length (N) direction (processing in array units of B × C), improving memory usage efficiency and increasing the degree of multiplicity in the batch (B) direction by stages (e.g., several thousand or more), enabling high-speed processing.
[0148] Next, the processing operation of the prediction model processing using history information in the computer 101B will be described.
[0149] FIG. 15 is a diagram illustrating a prediction model process using history information according to the first embodiment.
[0150] This process is an example of a method of implementing prediction models 704a and 714a (executed by compression processing unit 702 and decompression processing unit 712) (simply referred to as prediction models), and generates code from input data, generates history information using the code, and generates a prediction probability based on the history information. This process can be executed in parallel as threads for each dimension of the batch number (B) operated by core 62B of parallel processing device 61B, for example.
[0151] The data to be input to the prediction model is an array of the number of batches (B) x the number of channels (C) x the length of the partial data (N), as in Figure 12. However, in this figure, the dimension of the number of batches (B) is omitted, and the horizontal axis is the length of the partial data (N), and there are two types of axes as channels, and the vertical axis is the number of symbols of the partial data (D = 2 u ), and the depth represents the length of the cord (H). At the time of input, there is no axis for the length of the cord (H), so it is set to 1.
[0152] During learning or compression of a predictive model, all data to be compressed is held, so multiple pieces of prediction target data (N directions) can be processed collectively in parallel after aligning their respective causal relationships (e.g., equivalent to the overall learning process (S12) in FIG. 8). The explanation in FIG. 15 explains this case of collectively processing. Even in the case of parallelization in the batch direction (e.g., equivalent to the predictive model processing (S13, S23)), it can be implemented as high-speed iteration processing by appropriately caching past calculation data in the length (N) direction, as in the explanation in FIG. 14.
[0153] First, in the prediction model processing, a shift process of the input data is executed (S151). This process pads the input data by one unit at the beginning in the length (N) direction and deletes one unit at the end. By this process, the input data is shifted by one unit in the length (N) direction, and the subsequent process is a process of predicting the next input data from the past data.
[0154] Next, for the input data 1501 resulting from S151, K padding is performed at the beginning in the length (N) direction (S152), and then a convolutional neural network (Convolution in the figure) is processed (S153), and a Softmax function is processed in the dimension of the length (H) direction of the code (S154) to obtain a code 1502. In this example, since the length (N) direction is one-dimensional, a one-dimensional convolutional neural network is applied. Note that the number of input channels of the convolutional neural network is D, the number of output channels is H, the kernel size is K (for example, K=256), and the stride width is 1. As a result, the size of the code 1502 is B×1×H×N+1. In this example, it is configured with one convolutional neural network, but it may be configured with multiple layers. In that case, the padding process is appropriately performed in S152, taking into account the size of the receptive field in the multi-layer network.
[0155] Next, the product of the input data 1501 (size B×D×1×N) and the code 1502 for each element is calculated (S155). At this time, N elements (size B×1×H×N) are obtained from the beginning of the length (N) direction of the code 1502 and used for the product calculation. This corresponds to the past value of the code 1502. In addition, when calculating the product for each element, for a dimension with one element, dimension expansion (copying) is performed to match the number of elements for each product operation target. Therefore, the size of the result of S155 is B×D×H×N. A tensor (size B×D×H×N) is calculated by accumulating the tensor of this result in the length (N) direction (Cumsum in the figure) (S156). This result is set as history information 1503. The meaning of this history information 1503 can be considered to represent the time progression (dimension: N) of the occurrence frequency of each symbol (dimension: D) corresponding to each code (dimension: H).
[0156] Next, the product of the history information 1503 and the code 1502 for each element is calculated (S157). At this time, N elements (size B×1×H×N) from the second from the top in the length (N) direction of the code 1502 are obtained and used for the product calculation. This corresponds to the current value of the code 1502. In addition, when calculating the product for each element, for a dimension with one element, dimension expansion (copying) is performed to match the number of elements for each object of the product operation. Therefore, the size of the result of S157 is B×D×H×N. Next, the result of summing up the tensor of this result in the dimension in the length (H) direction of the code is output (the size is B×D×1×N) (S158). After that, normalization processing is performed so that the sum in dimension D becomes 1 (S159). For example, a value obtained by adding a small value E to the sum in dimension D so that it does not become zero is calculated, and the calculation is performed by dividing the elements of each value of dimension D by this value. As a result, a tensor of size B×D×1×N can be obtained as the predicted probability 1504. The dimension in the length (H) direction of the code is 1, the same as the input data, and can be ignored, and is input to the integrated model as a tensor of size B×D×N representing the predicted probability.
[0157] In addition, if this convolutional neural network (S153) is a value generated by random numbers, it can also be considered to be LSH. Therefore, the method shown in this example is positioned as a learning-type LSH because it learns with the random numbers as initial values, and can generate prediction probabilities more efficiently and with higher accuracy than LSH through learning. In addition, in this example, the code for each data unit is represented by a discrete vector with H elements whose total is 1, but the code may be represented by a continuous probability density function such as a Gaussian distribution, and the prediction probability 1504 may be calculated. For example, when the code is represented by a Gaussian distribution, it can be represented by a vector with the mean and variance having 2 elements.
[0158] Next, the processing operation of the memory model processing using the history information in the computer 101B will be described.
[0159] FIG. 16 is a diagram illustrating the memory model process using history information according to the first embodiment.
[0160] This process corresponds to the memory model in the downscaling block S122 in Fig. 12. Since this process includes many overlapping parts with the prediction model process using history information described in Fig. 15, the non-overlapping parts will be mainly described.
[0161] In this process, input data 1601 is padded (S161), a convolution process (S162, an example of convolution settings is K=1, input channel=C, output channel=Cv), and a softmax function is executed for the channel dimension (S163) to obtain value data 1602. The subsequent processes (S164 to S1610) are basically the same as the processes (S152 to S159) described in FIG. 15. As the next process, a convolution process (S1611, an example of convolution settings is K=1, input channel=Cv, output channel=C) is executed to obtain output data 1605.
[0162] In this way, by storing history information in the length (N) direction, the accuracy of prediction of the probability can be improved. In addition, the dimensions of Cv of the value data and H of the code may be divided into a predetermined number for subsequent processing. This division makes it possible to efficiently reduce the memory amount and calculation amount of the history information.
[0163] Next, the processing operation of the memory model processing using the exponential moving average in the computer 101B will be described.
[0164] FIG. 17 is a diagram illustrating the memory model process using the exponential moving average according to the first embodiment.
[0165] This process corresponds to the memory model in the downscaling block S122 in FIG. 12, and may be implemented instead of the memory model process using history information described in FIG. 16, or both may be implemented in parallel or serially.
[0166] The input information 1701 to be input to the memory model is an array of number of batches (B) x number of channels (C) x length of partial data (N), but in this figure, the dimension of number of batches (B) is omitted.
[0167] During learning or compression of the predictive model, all data to be compressed is held, so multiple pieces of prediction target data (N directions) can be processed collectively in parallel after aligning their respective causal relationships (e.g., equivalent to the overall learning process (S12) in FIG. 8). The explanation in FIG. 17 explains this case of collectively processing. This process can also be implemented as a high-speed, highly multiplexed iteration process in the case of parallelization in the batch direction (e.g., equivalent to the predictive model processing (S13, S23)) by holding the latest exponential moving average result in the iteration in the length (N) direction and using it for the next calculation, as in the explanation in FIG. 14.
[0168] In this process, a convolution process (S171, an example of convolution settings is K=1, input channel=C, output channel=Ce) is performed on input information 1701, and intermediate information 1702 is obtained.
[0169] Next, the intermediate information (M 1~N ) 1702, the exponential moving average in the length (N) dimension direction is calculated using a parameter α for each channel dimension Ce (S172), and exponential moving average information 1703 is obtained. 1~N ) is given by the following formula: E i =(1-α)× E i-1 +α×M i where i is 1 to N, and E o is a matrix initialized with zero, for example. The operation x is an element-wise multiplication operation expanded beyond the channel dimension. The parameter α can be a parameter (differentiable) to be learned during learning of the prediction model, and as a result, an efficient exponential moving average parameter can be determined by learning from data.
[0170] Next, a convolution process (S173, an example of convolution settings is K=1, input channel=Ce, and output channel=C) is executed on the exponential moving average information 1703, and output information 1704 is obtained.
[0171] In this way, with only a small amount of additional computational processing in the memory model, the receptive field of the entire neural network that constitutes the prediction model can be expanded in the entire length (N) direction, regardless of the number of layers or kernel size, and the accuracy of probability prediction can be efficiently improved.
[0172] Next, a computer system according to a modified example will be described.
[0173] FIG. 18 is a diagram illustrating a computer system according to a modified example.
[0174] In the computer system 1A according to the modified example, the input device 40 runs a host system 41 that processes data to be stored in the computer 101A. The host system 41 is, for example, a file system, an object system, a database system, a Web application, etc. The host system 41 transmits a plurality of block data (block data group) to be stored to the computer 101A. At this time, the host system 41 transmits the block data group to the computer 101A using an IF including the block data group (or reference information thereof), a command identification code (for example, write, read, discard, etc.), and, as optional information, hint information related to compression of the block data. Here, the hint information includes information indicating the data type of the block data, information indicating a context switch in the block data, etc.
[0175] The processor 53A of the computer 101A stores the block data group received from the input device 40 in the memory 52A or the persistent storage device 54A, and also stores the hint information 140 corresponding to the block data group, if any, in the memory 52A or the persistent storage device 54A. Here, the functional unit where the processor 53A executes the above-mentioned processing corresponds to the reception unit.
[0176] Next, when computer 101A executes processing related to compression and decompression of this block data group, it sends an instruction to computer 102A using an IF that includes the block data group (or its reference information), an instruction identification code (for example, a code identifying four types: compression, decompression, partial update, and partial decompression), information related to the address, and, as optional information, hint information related to compression of the block data.
[0177] When compressing this block data group, the computer 101A adds the block data group to be compressed (or reference information thereof) and, optionally, hint information to the compression command and transmits the result to the computer 101B. The computer 101B compresses the block data group using a compressor 70C constituted by the parallel processing device 61B (if hint information is specified, compression is performed based on the hint information), and transmits the compressed block data group (a set of corresponding block data storage information 120, or reference information thereof) to the computer 101A. For example, the compressor 70C is configured such that, in the compressor 70B, hint information is further input to the prediction model 704a and / or the integrated model 704b, and the occurrence probability is calculated based on the hint information.
[0178] Furthermore, when the computer 101A decompresses a compressed block data group, the computer 101A adds the compressed block data group (or reference information thereof) and, optionally, hint information to a decompression command and transmits the decompressed block data group (or reference information thereof) to the computer 101B. In the computer 101B, a decompressor 71C constituted by a parallel processing device 61B decompresses the block data group based on the hint information (if hint information is specified, decompression is performed based on the hint information), and transmits the decompressed block data group (or reference information thereof) to the computer 101B. For example, the decompressor 71C is configured such that the hint information is further input to the prediction model 714a and / or the integrated model 714b in the decompressor 71B, and the occurrence probability is calculated based on the hint information.
[0179] Furthermore, when the computer 101A partially updates a compressed block data group, the computer 101A adds the compressed block data group (or reference information thereof), address information indicating the area to be partially updated, the data to be partially updated, and optionally hint information to the partial update command and transmits the partial update command to the computer 101B. In the computer 101B, the compressor 70C constituted by the parallel processing device 61B compresses only the partial update data (partial data) corresponding to the partial update area address (compresses based on the hint information when hint information is specified), updates the compressed data 120a, the guarantee code 120b, and the compressed size 120c of the block data storage information 120 corresponding to the partial update area address, and transmits the compressed block data group (a set of the corresponding block data storage information 120, or reference information thereof) to the computer 101A. Furthermore, in this partial update process, it is not necessary to execute the overall learning process (S12) in the compression process. In this way, even while using a predictive model that has been fully trained based on data trends in large block sizes (e.g., several MB to several GB), it is possible to perform partial updates in partial data units (e.g., 1 KB). Since there is no need to expand and recompress the entire data, the processing efficiency of partial updates can be improved.
[0180] Furthermore, when the computer 101A partially decompresses a compressed block data group, it sends a partial decompression command together with the compressed block data group (or reference information thereof), address information representing the area to be partially decompressed, and optionally hint information to the computer 101B. The computer 101B causes the decompressor 71C constituted by the parallel processing device 61B to decompress the partial data group corresponding to the address information representing the area to be partially decompressed (if hint information is specified, decompression is performed based on the hint information), and sends the decompressed partial data group (or reference information thereof) to the computer 101B. In this manner, by decompressing only the necessary parts, processing efficiency can be improved.
[0181] Furthermore, in the above configuration, the computer 101B may store the block data storage information 120 and the logical-physical conversion table 110 in the memory 52B, the memory 63B, or the persistent storage device 54B. In this case, the pre-encoding unit 703 calculates a hash value of the partial data to be compressed, and detects duplication with partial data processed in the past by comparing the hash values. For duplicated data, only reference information to the partial data processed in the past is stored in the logical-physical table 110 or the block data storage information 120. When the compression rate is to be increased (when deduplication is performed), in the above-mentioned IF (compression command, partial update command), instead of outputting the compressed data itself, only reference information to the partial data processed in the past is output.
[0182] Furthermore, in the above configuration, the computers 101A and 101B can encrypt the contents transmitted and received through the IF, thereby enabling data to be communicated and stored securely.
[0183] According to the computer system 1A, the computer 101A can execute the compression / decompression process using the computational resources of the computer 101B by using the IF, and therefore various other processes (such as a storage control program) that should be executed by the computer 101A can be executed without consuming computational resources by the compression / decompression process. In particular, in an environment such as a cloud, a low-cost computer environment that does not have a parallel processing device 61 required to realize efficient compression can be used as the computer 101A, so that the cost of the entire system can be reduced. In addition, since the occurrence probability of each data unit is calculated using hint information, the occurrence probability can be calculated with higher accuracy, and the compression efficiency can be improved.
[0184] Next, a computer system according to a second embodiment will be described. The computer system according to the second embodiment is a computer system that performs lossy compression and decompression on media data such as moving images, still images, and point clouds. The computer system according to the second embodiment includes compressors 74 (74A, 74B) (see FIG. 16) instead of the compressors 70 (70A, 70B) in the computer system 1 according to the first embodiment, and includes decompressors 75 (75A, 75B) (see FIG. 17) instead of the decompressors 71 (71A, 71B).
[0185] Next, the configuration and processing of the compressor 74 (74A, 74B) will be described.
[0186] FIG. 19 is a diagram illustrating a compressor of a computer system according to the second embodiment.
[0187] The compressor 74 (74A, 74B) further includes an encoding filter 742 in comparison with the compressor 70 (70A, 70B). The encoding filter 742 is, for example, an example of a data reduction unit, and performs processing to reduce the amount of data on the image data 741 and outputs data after data reduction (data-reduced compression target data). For example, the encoding filter 742 may be configured with CNN (Convolutional Neural Networks).
[0188] According to this configuration, the data used as input to the multiple probability calculation units 704 is an array of number of pixels in height (H) × number of pixels in width (W) × number of channels (C: in the case of an image, for example, 3 for RGB) × number of batches (B).
[0189] Next, the configuration and processing of the expander 75 (75A, 75B) will be described.
[0190] FIG. 20 is a diagram illustrating a decompressor of a computer system according to the second embodiment.
[0191] The decompressor 75 (75A, 75B) further includes a decode filter 752 that generates an image 751 from the decompressed data for the decompressor 71 (71A, 71B). The decode filter 752 increases the amount of data to generate an image 751 that is substantially similar to the original image 741. The decode filter 752 may be configured, for example, by a CNN.
[0192] With this configuration, the data output from the multiple decompression processing units 712 is an array of number of pixels in height (H) x number of pixels in width (W) x number of channels (C: in the case of an image, for example, 3 for RGB) x number of batches (B).
[0193] In the above example, a still image is used as an example of media data, but in the case of a moving image, the data used for input to the multiple probability calculation units 704 may be a five-dimensional tensor that adds a time component to the tensor in the case of a still image.
[0194] The present invention is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present invention.
[0195] For example, in the above embodiment, an example was shown in which the parallel processing device was different from the processor 53 (53A, 53B), but if the processor 53 has multiple cores, the processor 53 may be used as a parallel processing device.
[0196] In the above-described embodiments, a part or all of the processing performed by the processor may be performed by a hardware circuit. The programs in the above-described embodiments may be installed from a program source. The program source may be a program distribution server or a recording medium (e.g., a portable recording medium). [Explanation of symbols]
[0197] 1...computer system, 40...input device, 53A, 53B...processor, 61A, 61B...parallel processing device, 70A, 70B, 72A, 72B...compressor, 71A, 71B, 73A, 73B...decompressor, 80...user terminal, 101, 101A, 101B...computer
Claims
1. 1. A data compression system for compressing data, comprising: A division unit that divides the compression target data into a plurality of partial data; a plurality of compression processing units each performing a compression process on each of the partial data in parallel; The compression processing unit a probability calculation unit including a neural network and calculating an occurrence probability for each predetermined data unit of the partial data; an entropy encoding unit that outputs an encoded bit string that is an entropy-encoded bit string based on the data unit and the occurrence probability for each of the data units; Data compression system.
2. The probability calculation unit includes a prediction model that calculates prediction information for each of the data units, and the prediction model is configured by a neural network.
2. The data compression system of claim 1.
3. The prediction model is constructed by a neural network including a process for reducing the length direction.
3. The data compression system of claim 2.
4. The probability calculation unit includes an integrated model that is configured with a plurality of prediction models that calculate prediction information for each of the data units and that determines the occurrence probability for each of the data units based on the prediction information output by the plurality of prediction models.
2. The data compression system of claim 1.
5. The integrated model has weights for outputs from a plurality of predictive models; a learning unit that performs a learning process on the integrated model to determine a weight for the prediction model; and a model selection unit that selects a prediction model to be used by the probability calculation unit based on the weights.
5. The data compression system of claim 4.
6. The method further includes a history management unit that stores in a storage unit identification information for identifying calculation use data, which is data used in calculating the occurrence probability of the data unit, and history information of the calculated occurrence probability, The probability calculation unit calculates an occurrence probability based on the history information.
2. The data compression system of claim 1.
7. The history management unit calculates, as the identification information, a locality sensitive hash (LSH) corresponding to the data used at the time of calculation.
7. The data compression system of claim 6.
8. The compression processing unit A conversion unit inputs a bit string, which is a bit string obtained by performing one-hot encoding on each data unit of the data to be compressed, to the probability calculation unit.
2. The data compression system of claim 1.
9. a reception unit that receives a command identification code and data related to the compression of the compression target data, The compression processing unit compresses data based on the instruction identification code and data.
2. The data compression system of claim 1.
10. A reception unit that receives hint information related to the compression of the compression target data, The probability calculation unit calculates a probability distribution for each of the data units based on the hint information.
10. The data compression system of claim 9.
11. The encoding method further includes the steps of: storing encoded bit strings corresponding to the plurality of pieces of partial data in a manner that enables each encoded bit string corresponding to the plurality of pieces of partial data to be identified; 2. The data compression system of claim 1.
12. The compression processing unit For each of the encoded bit strings corresponding to a part of the partial data, the probability calculation unit calculates an occurrence probability for each predetermined data unit of each of the partial data only for update data corresponding to a part of each of the partial data, and an entropy coding unit outputs an encoded bit string.
12. The data compression system of claim 11.
13. the compression target data is predetermined media data, A data reduction unit that reduces the amount of data of the compression target data, The division unit divides the compressed target data after data reduction, the data amount of which has been reduced by the data reduction unit.
2. The data compression system of claim 1.
14. The method further includes a plurality of decompression processing units that perform decompression processing on each of the encoded bit strings corresponding to the plurality of partial data, The decompression processing unit includes: a second probability calculation unit including a neural network and configured to calculate an occurrence probability of each predetermined data unit of the partial data; an entropy decoding unit that outputs an entropy-decoded data unit based on the encoded bit string and the occurrence probability.
2. The data compression system of claim 1.
15. a decompression unit that decompresses first compressed data that is compressed in block units of a predetermined first size and to which a security code is associated in the first block units of the first size; The division unit divides the decompressed data decompressed by the decompression unit, The method further includes a second block corresponding security code creation unit that creates a security code for a second block unit of a second size for the multiple encoded bit strings obtained by the compression processing unit, and stores the security code in association with a second block corresponding bit string group, which is an encoded bit string corresponding to the second block unit.
2. The data compression system of claim 1.
16. a plurality of decompression processing units that perform decompression processing in parallel on encoded bit strings corresponding to the plurality of partial data in the second block corresponding bit string group; The decompression processing unit includes: a second probability calculation unit including a neural network and configured to calculate an occurrence probability of each predetermined data unit of the partial data; an entropy decoding unit that outputs an entropy-decoded data unit based on the encoded bit sequence and the occurrence probability; a first block corresponding security code creation unit that creates a security code for each of the first block units based on a plurality of data units included in the first block unit of the first size; 16. The data compression system of claim 15.
17. The compression processing unit When an overlap between the partial data and previously processed partial data is detected, reference information to the partial data is set as a compression result.
2. The data compression system of claim 1.
18. A data compression method for a data compression system that compresses data, comprising the steps of: Divide the data to be compressed into multiple partial data, The compression processing for each of the partial data is performed in parallel by a plurality of compression processing units; The compression processing unit Calculating the occurrence probability of each predetermined data unit of the partial data using a neural network; For each of the data units, an encoded bit string is output, which is an entropy-encoded bit string based on the data unit and the occurrence probability. Data compression method.
19. A data compression program for causing a computer to execute a process for compressing data, The computer, A division unit that divides the compression target data into a plurality of partial data; a plurality of compression processing units each performing a compression process on each of the partial data in parallel; The compression processing unit, a probability calculation unit including a neural network and calculating an occurrence probability for each predetermined data unit of the partial data; and causing the unit to function as an entropy encoding unit that outputs an encoded bit string that is an entropy encoded bit string based on the data unit and the occurrence probability for each of the data units. Data compression programs.
Citation Information
Patent Citations
Method and system for constructing adaptive prediction model
JP2004086896A
Method, device, and program for updating BIOS
JP2011164759A
Auto encoder device, data processing system, data processing method and program
JP2019140680A
Medical data processing device, medical data processing method and medical image diagnostic device
JP2021029547A
Computation apparatus and compression method
JP2022127884A
