Arithmetic device and compression method

The computing device uses a probability distribution table and index-based method to reduce computational intensity in neural network-based data compression, enhancing efficiency and resource utilization.

JP7534239B2Active Publication Date: 2024-08-14HITACHI LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021026108
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-02-22
Publication Date
2024-08-14
Estimated Expiration
2041-02-22

AI Technical Summary

Technical Problem

Neural network-based learning compressors require computationally intensive probability density functions, leading to increased processing time and resource demands for data compression.

Method used

A computing device utilizing a predictor, encoder, and decoder that employs a probability distribution table and index-based compression method, reducing the need for real-time calculation of probability density functions by using pre-learned parameters and tables.

Benefits of technology

Reduces calculation load and processing time, allowing for efficient data compression with less expensive resources by leveraging pre-learned probability distributions and tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007534239000002
    Figure 0007534239000002
  • Figure 0007534239000003
    Figure 0007534239000003
  • Figure 0007534239000006
    Figure 0007534239000006
Patent Text Reader

Abstract

To lower the computation load of computation using a neural network.SOLUTION: A computation apparatus has a prediction device, an encoder, and a decoder, and encodes and decodes data by using a probability density distribution. Of a learning process and a compression process, at least the compression process can be executed. By performing learning by using a neural network created by the learning process, a probability distribution table in which a parameter and a symbol value probability distribution are associated with each other can be used. In the compression process, the prediction device calculates the parameter from input data, and the encoder compresses the input data by using the symbol value probability distribution based on the calculated parameter and the probability distribution table.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a computing device and a compression method. [Background technology]

[0002] A technology for making calculations more efficient by using a neural network is known, for example as shown in Non-Patent Document 1. As described above, a learning compressor and decompressor (hereinafter referred to as a "learning compressor") constructed with a neural network is known to be capable of converting the same amount of data into high image quality, or a smaller amount of data into equivalent image quality, compared to compression technologies such as JPEG. [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Johannes Balle and 2 others, "End-to-endOptimized Image Compression", [online], March 3, 2017, arXiv, [Retrieved August 4, 2020], Internet,<URL:https: / / arxiv.org / abs / 1611.01704> Summary of the Invention [Problem to be solved by the invention]

[0004] The learning compressor acquires parameters suitable for data compression processing through learning. Backpropagation is known as a neural network learning method, and in this backpropagation, the processing to be learned must be described by a differentiable function. More specifically, in the compression process, the image is converted into a multidimensional tensor format called a feature map that allows data reduction, and then the occurrence probability of element values ​​of the feature map (hereinafter referred to as "symbol values") is predicted. The symbol values ​​are assumed to take only integer values ​​in a specific range (e.g., -100 to +100), and the occurrence probability of each integer value that the symbol value can take is output as a predicted value for each position of the feature map. If the probability of the actual symbol value is sufficiently high among the predicted occurrence probabilities, it becomes possible to perform encoding that reduces the amount of data by entropy encoding such as a range coder.

[0005] As a specific method of this probability prediction, the learning compressor uses a predictor constructed with a neural network. More specifically, this predictor outputs multiple parameters of a differentiable probability density function (for example, the mean and standard deviation in a Gaussian distribution), creates an individual probability density function for each position in the feature map, and calculates the occurrence probability of each integer value in the symbol range. In this configuration, since the probability density function is differentiable, it is possible to train the predictor using backpropagation so as to generate parameters that maximize the probability of the symbol value to be encoded.

[0006] In the above learning, the process of combining a predictor and a probability density function can predict the occurrence probability of a symbol value, but the probability density function such as the Gaussian distribution is a computationally intensive process using an exponential function, etc., and requires a lot of time and computational resources. This increases the compression processing time, or requires more expensive processing resources for the compression process, such as a central processing unit or a GPU (Graphic Processing Unit). Thus, the heavy computational load is a problem in computations using neural networks. [Means for solving the problem]

[0007] A computing device according to a first aspect of the present invention has a predictor, an encoder, and a decoder, and encodes and decodes data using a probability density distribution. The computing device is capable of executing at least the compression process out of a learning process and a compression process, and is capable of using a probability distribution table in which parameters and probability distributions of symbol values ​​correspond to each other by learning using a neural network created in the learning process. In the compression process, the predictor calculates parameters from input data, and the encoder compresses the input data using the calculated parameters and the probability distribution of symbol values ​​based on the probability distribution table. When the computing device does not execute the learning process, the probability distribution table created by another device is used. . A compression method according to a second aspect of the present invention is a compression method executed by a calculation device having a predictor, an encoder, and a decoder, and encoding and decoding data using a probability density distribution, the calculation device being capable of executing at least the compression process out of a learning process and a compression process, and being capable of utilizing a probability distribution table, which is created in the learning process and which associates parameters with probability distributions of symbol values, by learning using a neural network, the compression process including the predictor calculating parameters from input data, and the encoder compressing the input data using the calculated parameters and the probability distribution of symbol values ​​based on the probability distribution table. fruit , When the computing device does not execute the learning process, the probability distribution table created by another device is used. . A calculation device according to a third aspect of the present invention includes a memory unit in which a compressed file is stored, the compressed file including index parameter information for indexing an output of a neural network for input information into an index value, probability identification information for obtaining an evaluation value using the index value, and encoded data in which the input information is encoded using the evaluation value; a predictor including the neural network and outputting a numerical value corresponding to a portion of the input information when a portion of the input information is input; an index determination unit that determines an index based on the numerical value output by the predictor based on the index parameter information; a correspondence information creation unit that creates correspondence information indicating the correspondence between the index and the evaluation value based on the probability identification information; an identification unit that identifies the evaluation value corresponding to the index by referring to the correspondence information; and a decoding unit that decodes the encoded data into the input information by referring to the evaluation value. Effect of the Invention

[0008] According to the present invention, it is possible to reduce the computational load of computations using a neural network. [Brief description of the drawings]

[0009] [Figure 1] Sensor system configuration diagram [Diagram 2] Functional configuration diagram of a computing device according to a first embodiment [Diagram 3] FIG. 13 is a diagram showing an example of a setting table. [Figure 4] FIG. 1 is a diagram showing an example of an index correspondence table. [Diagram 5]An example of a distribution table [Figure 6] Flow diagram showing the compression process [Figure 7] An example of a compressed file [Figure 8] Flow diagram showing decompression processing [Figure 9] FIG. 13 is a diagram showing an example of a user interface screen. [Figure 10] Functional configuration diagram of a calculation device in Modification 9 [Figure 11] Functional configuration diagram of a computing device according to a second embodiment [Figure 12] A flowchart showing an index determination process according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] --First embodiment-- A first embodiment of a computing device according to the present invention will be described below with reference to FIGS.

[0011] 1 is a configuration diagram of a sensor system including a computing device. The sensor system includes a plurality of sensors 120, a plurality of sensor servers 102, a client terminal 103, and a plurality of computing devices 100. One or a plurality of sensors 120 are connected to each sensor server 102. The sensors 120 include a first sensor 120-1, a second sensor 120-2, a third sensor 120-3, a fourth sensor 120-4, and a fifth sensor 120-5.

[0012] Each sensor 120 is, for example, a camera, a video camera, a laser range finder, a speedometer, a thermometer, a voltmeter, etc. The sensor servers 102 include a first sensor server 102-1 and a second sensor server 102-2. Each sensor server 102 has a connection interface with the sensor 120 and a connection interface with the network 101. Each interface only needs to be capable of communication, and may be a wired or wireless connection.

[0013] The network 101 may be a wide area network such as the Internet, or may be a local area network. It is not essential that the sensor system includes a plurality of sensors 120, and the sensor system may include only one sensor 120. It is not essential that the sensor system includes a plurality of sensor servers 102, and the sensor system may include only one sensor server 102. Each sensor 120 may be directly connected to the network 101 without going through the sensor server 102. Although the sensor system in FIG. 1 includes three arithmetic devices 100, it is sufficient that the sensor system includes at least one arithmetic device 100.

[0014] The arithmetic device 100 includes a DRAM 111 which is a primary storage area, a processor 112 which performs various processes according to software, a back-end interface 113 which connects to a storage medium 114, the storage medium 114 which is a secondary storage area, and a communication interface 116 which connects to a network 101. The DRAM 111 is connected to the processor 112 via a connection which allows access from the processor 112 in a short time. The DRAM 111 stores programs to be processed by the processor 112 and data to be processed.

[0015] The processor 112 operates according to a program and processes target data. The processor 112 has multiple processor cores inside, and each processor core processes a program independently or in cooperation with the other processor cores. The processor 112 has a DRAM controller inside, and reads data from the DRAM 11 in response to a request from the processor. 1 Get data from DRAM 1 1 1 The processor 112 has an external IO interface and is connected to a back-end interface 113. The processor 112 sends instructions to a storage medium 114, which is a secondary storage device, via the back-end interface 113. The processor 112 performs various processes related to the compression and decompression of sensor data, which will be described later.

[0016] The processor 112 not only processes data compression and decompression, but also processes SDS (Software The processor 112 operates storage-related software such as SDS (Smart Defined Storage) and databases. As a result, the processor 112 compresses the received sensor data, and then distributes and stores the compressed data in a node group made up of multiple arithmetic devices 100. At this time, the processor 112 records the data in the storage medium 114 according to the control of the SDS and database.

[0017] The back-end interface 113 is a communication interface that supports communication standards such as SATA (Serial ATA) and SAS (Serial Attached SCSI). During writing, the back-end interface 113 acquires data to be written from the DRAM 111 based on an instruction from the processor 112 and transfers it to the storage medium 114. During reading, the back-end interface 113 acquires data to be read from the storage medium 114 based on an instruction from the processor 112 and transfers it to the DRAM 111.

[0018] In this embodiment, the back-end interface 113 and the storage medium 114 are independent, but the back-end interface 113 and the storage medium 114 may be integrated. Furthermore, the computing device 100 may not include the back-end interface 113, and the storage medium 114 may be equipped with an interface that directly communicates with the processor 112, such as a Non-Volatile Memory Host Controller Interface (NVMe).

[0019] The storage medium 114 is a secondary storage device that stores data to be analyzed. In this embodiment, the storage medium 114 receives data to be written transmitted from the back-end interface 113 controlled by the processor 112, and stores it permanently. The communication interface 116 is an interface for communicating with other arithmetic devices 100, the sensor server 102, and the client terminal 103. In the example of Fig. 1, the arithmetic device 100 is connected to other devices via the network 101, but may be directly connected to other devices without going through the network 101.

[0020] The sensor server 102 manages a plurality of sensors 120, and transfers data acquired by each sensor 120 (hereinafter referred to as "sensor data") to the calculation device 100 via the network 101. Upon receiving the sensor data from the sensor server 102, the calculation device 100 compresses the sensor data by a compression process described below and stores the compressed data in the storage medium 114.

[0021] The client terminal 103 is a terminal used when a user uses the sensor data stored in the arithmetic device 100, and requests the sensor data from the arithmetic device 100. Upon receiving a request from the client terminal 103, the arithmetic device 100 decompresses the sensor data by a decompression process described below and transfers the decompressed data to the client terminal 103.

[0022] (Functional configuration) FIG. 2 is a functional block diagram of the arithmetic device 100. The arithmetic device 100 includes, as its functions, an encoder 201, an entropy encoding unit 202, a predictor 203, an index generating unit 211, a distribution table generating unit 212, an index specifying unit 221, a probability specifying unit 222, a compressed file generating unit 230, a decoder 301, and an entropy decoding unit 302. The storage medium 114 of the arithmetic device 100 can store the sensor data S, the feature map F, the index correspondence table 500, the distribution table 600, the setting table 650, and the compressed file 700. However, all of the above-mentioned data stored in the storage medium 114 does not need to be stored in the storage medium 114 at the same time. In the following, the index generating unit 211 and the index specifying unit 221 may be collectively referred to as the "index generating unit" 240. The distribution table generating unit 212 may be also referred to as the "correspondence information generating unit."

[0023] The sensor data S is data acquired by the sensor 120, and is acquired by the calculation device 100 via the sensor server 102. The sensor data S is compressed to obtain a compressed file 700, and the compressed file 700 is decompressed to obtain the sensor data S. The index correspondence table 500 is created by the index generation unit 211. The index generation unit 211 refers to the setting table 650 when creating the index correspondence table 500. The index correspondence table 500 is a table showing the correspondence between the index value and the parameter output by the predictor 203. Details of the information stored in the index correspondence table 500 will be described later. The feature map F is the sensor data S converted by the encoder 201. Hereinafter, the elements of the feature map F are called "symbols".

[0024] The distribution table 600 is created by the distribution table generating unit 212. The distribution table generating unit 212 refers to a setting table 650 when creating the distribution table 600. The distribution table 600 is a table showing the correspondence between index values ​​and cumulative frequencies. The setting table 650 stores predetermined cumulative frequencies and parameters related to feature extraction, in other words, information defining a predetermined range (described later) that is referenced when determining an index. However, the parameter values ​​stored in the setting table 650 may be updated by a user operation (described later).

[0025] The operation of each component included in the arithmetic device 100 is outlined below. The encoder 201 reads the sensor data S and outputs a feature map F. The predictor 203 reads the feature map F and outputs two parameters, that is, parameters A and B. Parameters A and B will be described in detail later. The index identifying unit 221 refers to the index correspondence table 500 and identifies an index corresponding to the combination of the two parameters output by the predictor 203. The probability identifying unit 222 refers to the distribution table 600 and outputs a cumulative frequency corresponding to the index value output by the index identifying unit 221 to the entropy encoding unit 202.

[0026] The entropy coding unit 202 reads the feature map F and creates a part of the compressed file 700. At this time, the entropy coding unit 202 realizes efficient compression of the feature map F by referring to the cumulative frequency output by the probability identification unit 222. Therefore, the entropy coding unit 202 can also be called a "compression unit." Another part of the compressed file 700 is generated by the compressed file generation unit 230.

[0027] The entropy coding unit 202 efficiently codes data using values ​​of a distribution table 600 described later. The distribution table 600 lists the cumulative frequency for each symbol value from -100 to 100, and the number of types of symbol values ​​is 201, so if the occurrence probability of each symbol value is uniform, the probability is 1 / 201. Here, if the probability of the distribution table obtained from the result of the predictor for the value of the symbol to be coded is greater than 1 / 201, for example, if it is set to a probability of 1 / 10 (in the example of the distribution table in FIG. 5, there is an increase of about 6554 cumulative frequencies compared to the cumulative frequency of the previous symbol value in the table), it is possible to code and record the data in a smaller amount of data. In this case, decoding cannot be performed correctly unless the same value as the cumulative frequency used for coding is used.

[0028] The index generation unit 211 generates the index correspondence table 500 by referring to the setting table 650. The distribution table generation unit 212 generates the distribution table 600 by referring to the setting table 650. Note that the index generation unit 211 and the distribution table generation unit 212 may operate by referring to information equivalent to the setting table 650 included in the compressed file 700 instead of the setting table 650. The decoder 301 reads the feature map F and outputs the sensor data S. The entropy decoding unit 302 creates the compressed file 700 by using the feature map F and the cumulative frequency output by the probability identification unit 222.

[0029] (Setting table) 3 is a diagram showing an example of the setting table 650. The setting table 650 includes the granularity of parameter A, the minimum value of parameter A, the maximum value of parameter A, the granularity of parameter B, the minimum value of parameter B, the maximum value of parameter B, the minimum value of the symbol, and the maximum value of the symbol. These values ​​may be real numbers, and there are no restrictions on the values.

[0030] Of the information stored in setting table 650, the granularity of parameter A, the minimum value of parameter A, the maximum value of parameter A, the granularity of parameter B, the minimum value of parameter B, and the maximum value of parameter B are read and reflected in the operation by index generation unit 211. Therefore, the granularity of parameter A, the minimum value of parameter A, the maximum value of parameter A, the granularity of parameter B, the minimum value of parameter B, and the maximum value of parameter B can also be called "index parameter information" that specifies the operating parameters of index generation unit 211.

[0031] Since the distribution table generating unit 212 reads all information stored in the setting table 650 and reflects it in its operation, it can be said that the distribution table 600 generated by the distribution table generating unit 212 reflects the information in the setting table 650. Therefore, the granularity of parameter A, the minimum value of parameter A, the maximum value of parameter A, the granularity of parameter B, the minimum value of parameter B, the maximum value of parameter B, the minimum value of the symbol, and the maximum value of the symbol can also be called "probability specifying information" that specifies the distribution table 600.

[0032] (Index correspondence table) In the prior art, the real parameters A and B output by the predictor are used to create each probability of a probability density distribution by calculation, and a cumulative frequency is created based on the probability. However, in this embodiment, an integer index is created from parameters A and B, and the integer index is used to obtain the value of the cumulative frequency that has already been created. The method of creating an integer index from parameters A and B may be by calculation, but in this embodiment, it is obtained from index correspondence table 500 shown in FIG. 4.

[0033] FIG. 4 is a diagram showing an example of index correspondence table 500, which corresponds to the values ​​of setting table 650 shown in FIG. 3. Reference numerals 501 to 509 in FIG. 4 will be referred to in the following description. The example shown in FIG. 4 indicates that when parameter A is "-50.0" and parameter B is "0.2", the index value is "1". Index generating unit 211 creates index correspondence table 500, which is a list of indexes corresponding to parameters A and B, which are outputs from predictor 203, for example, as follows.

[0034] The index generation unit 211 first assigns the combination of "-50", which is the minimum value of parameter A, and "0.1", which is the minimum value of parameter B, to the first index, i.e., index value "0". Then, while fixing parameter A at its minimum value, the index generation unit 211 increases parameter B by "0.1", which is the granularity of parameter B, up to "100.0", which is the maximum value of parameter B. At this time, the index generation unit 211 sets an index value that is increased by "1" for each combination of parameter B and the minimum value of parameter A that is changed. When parameter B is increased to "100.0", which is the maximum value, the index value increases to "999", and the range of reference symbol 501 in FIG. 4 is completed.

[0035] Next, the index generation unit 211 increases the value of modulus A from the minimum value "-50.0" by the value of modulus A's granularity "0.1", updating it to "-49.9". The index generation unit 211 then returns modulus B to the minimum value "0.1", and associates this combination with the next index value "1000". Then, like the range of reference numeral 501, the index generation unit 211 increases modulus B by "0.1", the granularity of modulus B, in increments up to modulus B's maximum value of "100.0", while keeping the value of modulus A fixed, and increases the index value to "1999". This process completes the range of reference numeral 502 in FIG. 4.

[0036] Thereafter, the index generation unit 211 similarly increases the value of parameter A by "0.1", which is the granularity of parameter A, and repeats the same processing as for the range of code 501 and the range of code 502. The index generation unit 211 then increases the value of parameter A to "50.0", which is the maximum value of parameter A, and also increases the value of parameter B to "100.0", which is the maximum value, and completes the range of code 509 by associating it with the final index value "1000999". Through the above processing, the index correspondence table 500 is completed.

[0037] (Distribution table) As described above, in the conventional technology, the cumulative frequency used by the entropy coding unit 202 is calculated by calculation using the parameters A and B, which are real numbers. However, in this embodiment, a table (distribution table) of cumulative frequencies that can be referenced using an index is created in advance, and the cumulative frequency is obtained without calculation. This results in a lower compression rate (a negligible reduction if the parameters A and B described above are sufficiently small) than when the cumulative frequency is created by calculation using the parameters A and B, which are real numbers, but compression is possible without high-load calculation processing of the probability density function.

[0038] FIG. 5 is a diagram showing an example of a distribution table 600, which corresponds to the values ​​in the setting table 650 shown in FIG. 3. In FIG. 5, the index values ​​increase monotonically from top to bottom as shown in the leftmost column. The maximum index value is "1000999", the same as in the index correspondence table 500 in FIG. 4, which also corresponds to the values ​​in the setting table 650 shown in FIG. 3. "-100" to "100" listed at the top of FIG. 5 are symbol values, and the minimum and maximum values ​​correspond to those listed in the setting table 650.

[0039] The distribution table generating unit 212 refers to the setting table 650 to obtain the granularity, minimum value, and maximum value of the parameter A and the granularity, minimum value, and maximum value of the parameter B, and performs calculations using a probability density function for all combinations of the two parameters to calculate the cumulative frequency of the probability value. In this calculation, the probability value is multiplied by the frequency resolution included in the setting table 650. In the example shown in FIG. 5, the resolution is 65535, and the cumulative frequency of 100, which is the maximum value in the value range of the symbol, is 65535.

[0040] The distribution table 600 shows the values ​​of all symbols by index. EveryThe distribution table 600 is a table storing cumulative frequency values ​​corresponding to the values ​​of the cumulative frequencies of the distribution tables. The distribution table 600 is generated by the distribution table generating unit 212 with reference to the setting table 650. It is not essential that the calculation device 100 has the distribution table generating unit 212, and the distribution table 600 may be created in advance outside the calculation device 100. Also, a plurality of distribution tables 600 may be created in advance outside the calculation device 100, assuming various values ​​to be set in the setting table 650, and an appropriate distribution table 600 may be read in accordance with the value of the setting table 650.

[0041] (Compression process) 6 is a flow diagram showing the compression process by the arithmetic device 100. In the following, the compression process will be mainly described assuming that the sensor data S is a still image. However, the sensor data S that can be processed by the arithmetic device 100 is not limited to a still image. Before the compression process starts, an index correspondence table 500 and a distribution table 600 are created in advance. The compression process starts by inputting the sensor data S to the encoder 201.

[0042] The encoder 201 converts the sensor data S into a feature map F. The encoder 201 reduces information considered to be less important while retaining the features of the input sensor data S. For example, when the input data is an image, the encoder 201 reduces the amount of data by removing information that is difficult for humans to perceive, such as subtle color changes. Note that the encoder 201 may make the number of dimensions of the feature map F different from that of the sensor data S. For example, the encoder 201 converts the sensor data S, which has a three-dimensional tensor size of "3,512,512", into a feature map F, which has a three-dimensional tensor size of "256,64,64".

[0043] Many learning compressors use neural networks in the encoder and decoder, making it possible to learn almost all of the compression processes, including the prediction process described below. It is known that the compression process by the learning compressor can reduce the amount of data without affecting the image quality that can be perceived by humans, more so than non-learning, explicitly designed processes. In this embodiment, the encoder 201 is constructed using a neural network, but this is not a required configuration. In other words, the encoder 201 may be an explicitly designed process, such as DCT conversion used in JPEG or data thinning.

[0044] The feature map F is generated by the encoder 201. The feature map F is generally a tensor with the same number of dimensions as the sensor data S, which is the input data. For example, a color image is a three-dimensional tensor of "color, length, and width", and when the sensor data S is a color image, the feature map F is also a three-dimensional tensor. The size of each dimension of the feature map F is often different from that of the sensor data S. For example, the tensor of a color image with 512 pixels length and width is "3,512,512", but the feature map F may be converted to "256,64,64" or the like. The dimensions and shape of the feature map F are not particularly limited, and the sensor data S may be converted to any shape.

[0045] The feature map F may have fewer, more, or the same number of elements as the original image. For example, when the encoder 201 converts the sensor data S with a three-dimensional tensor size of "3,512,512" into the feature map F with a three-dimensional tensor size of "256,64,64", the number of elements increases from 3*512*512=786432 to 256*64*64=1048576.

[0046] Moreover, the value of each element of the feature map F output by the encoder 201 is in integer format, and hereinafter, one of these elements will be referred to as a symbol. The encoder 201 limits the value range of the symbols, and for the sake of simplicity, the following description will be given on the assumption that the user has limited the range to 201 integers from -100 to 100. Due to the limit on the value range of the symbols, values ​​below -101 are replaced with -100, and values ​​above 101 are replaced with 100. In this embodiment, this value range may be changeable by the user via a user interface, which will be described later.

[0047] The entropy coding unit 202 performs entropy coding to reduce the amount of data in the feature map F. Although various entropy coding techniques are known, a range coder is used in this embodiment. A range coder is a coding method that reduces the amount of data by using the bias in the occurrence probability of each symbol value. When the occurrence probability of 201 types of integers is equal, each value occurs with a rate of 1.0÷201=0.495%. However, if there is a bias in the occurrence probability and the occurrence probability of the value of the symbol to be coded is 0.495% or more, coding can be performed with a small amount of data.

[0048] Range coders use a cumulative frequency table to perform coding, rather than the occurrence probability itself. The cumulative frequency will be explained using an example where the symbol range has five values ​​from -2 to 2. If the occurrence probability of each of the values ​​"-2", "-1", "0", "1", and "2" is "1%, 9%, 20%, 50%, 20%", and the total frequency is replaced with 100, the frequency distribution becomes "1, 9, 20, 50, 20". If this is expressed as the cumulative frequency from the symbol values ​​"-2" to "2", in that order, it becomes "1, 10, 30, 80, 100". The range coder uses this cumulative frequency table to code data.

[0049] As mentioned above, in a range coder, the amount of data after encoding varies depending on the occurrence probability of a value, or more precisely, on the cumulative frequency table created from this occurrence probability. Therefore, in a compression process, the ability to predict the occurrence probability is an important element of the data amount reduction ability. The arithmetic device 100 predicts this occurrence probability using a predictor 203 configured by a neural network.

[0050] The predictor 203 includes a neural network that receives the feature map F as an input, and acquires the ability to predict the individual occurrence probability at each symbol position in the feature map F through a known learning process.

[0051] This learning process will be explained in more detail. When the predictor 203 is given each symbol constituting the feature map F as an input, it outputs the parameter of the probability density distribution corresponding to each symbol. (The parameter is output for each symbol, and a unique probability density distribution is created for each symbol.) In this embodiment, this parameter is the mean and standard deviation, which are the parameters of the Gaussian distribution. At this time, it is possible to calculate the probability of the symbol value in the Gaussian distribution created from the mean and standard deviation. In learning, the coupling coefficients of the neural network constituting the predictor are changed so that the mean and standard deviation are such that this probability is as large as possible. This change can be learned by a general error backpropagation method, since the calculation of the Gaussian distribution is differentiable. For example, when a value of 3 is input to the predictor as a symbol value, if a value of 1.2 for the mean and 2.5 for the standard deviation are output, the neural network may be corrected by learning so that the mean, which is the output of the predictor, is closer to 3.0 and the standard deviation is closer to 0.0.

[0052] However, even if bringing the average closer to 3 and the standard deviation closer to 0 can increase the probability of the symbol, if the probabilities of other symbols input to the predictor decrease and the average probability of the entire symbol group decreases, learning may cause the average value to move even further away from 1.2 to 3, or the standard deviation to become greater than 2.5, in which case the probability of 3 in the Gaussian distribution created from the predictor output may be lower than before learning. Thus, in learning, the symbol group of feature map F to be input to the predictor is input, and the neural network that constitutes the predictor is modified so that the average value of the probability of each symbol in a Gaussian distribution with the same number of symbols as the number of symbols in the symbol group is maximized.

[0053] The predictor 203 in this embodiment has completed learning in advance. The learning process may be performed in this device, or learning may be performed in another device and the index correspondence table 500 and distribution table 600, which are the learning results, may be made available in this device. The predictor 203 is configured to output one or more parameters of a differentiable probability density function for learning. In this embodiment, the predictor 203 outputs two parameters of a Gaussian distribution, which is a probability density function, that is, the mean and standard deviation, as two parameters.

[0054] The predictor 203 outputs two parameters for each symbol of the feature map F. For example, when the number of symbols of the feature map F to be coded by the range coder is 256*64*64=1048576, the predictor 203 outputs 1048576*2=2097152 values. During learning, 2097152÷2=1048576 individual Gaussian distributions using two parameters are constructed from the 2097152 outputs. Then, the values ​​of the coupling coefficients of the neural network constituting the predictor 203 are repeatedly corrected so that the probability of each value of the coding target symbol is maximized, more precisely, the average value of all symbols is maximized. Meanwhile, during compression, 2097152÷2=1048576 indexes are created from the 2097152 outputs.

[0055] The index specification unit 221 refers to the index correspondence table 500 and specifies the value of the index corresponding to the combination of the two parameters that are the output of the predictor 203. However, the predictor 203 specifies the two parameters as floatingSince the parameter is output in a floating point format, the number of combinations would be enormous if it were used as is. Therefore, the index identification unit 221 divides each parameter into a predetermined numerical range and calculates a representative value of the corresponding numerical range. The range of the representative value is described as a minimum value and a maximum value in the setting table 650, and the width of each predetermined range is described as a granularity. In the example of the setting table 650 shown in FIG. 3, the predetermined numerical range for the parameter A is, for example, a range of 0.1 width centered on -50, a range of 0.1 width centered on -49.9, a range of 0.1 width centered on -49.8, ..., a range of 0.1 width centered on 50.0.

[0056] However, the predetermined numerical range does not necessarily have to be centered on the representative value, and may be determined based on a predetermined rule, and may have a maximum or minimum value instead of the central value. For example, when the minimum value is used, the predetermined numerical range for parameter A may be a range of -50 or more and less than -49.9, a range of -49.9 or more and less than -49.8, ..., a range of 50.0 or more and less than 50.1. The index specification unit 221 specifies the numerical range to which each parameter falls, sets the representative value of the numerical range as the parameter value, and specifies the index value from the index correspondence table 500 using the value. For example, if the representative value of the numerical range is specified as "-50.0" for parameter A and "0.2" for parameter B, and the index correspondence table 500 is as shown in FIG. 4, the index value is specified as "1".

[0057] Furthermore, when the parameter A and parameter B output by the predictor 203 are not between the minimum and maximum values ​​defined in the setting table 650, the index identifying unit 221 uses clipping to determine whichever is closer to the minimum or maximum value. For example, when the minimum value of parameter A in the setting table 650 is "-50" and the maximum value of parameter A is "50", if parameter A output by the predictor 203 is "-51", it is treated as "-50", and if parameter A output by the predictor 203 is "60", it is treated as "50".

[0058] The probability identification unit 222 uses the index value identified by the index identification unit 221 to refer to the distribution table 600 and obtain the cumulative frequency for all symbols in the feature map. Using the obtained cumulative frequency, the range coder in the entropy coding unit 202 encodes the symbols to create a compressed file 700 with a reduced amount of data. To be precise, the entropy coding unit 202 creates a binary that is a part of the compressed file 700.

[0059] The compressed file generation unit 230 creates a header, which is another part of the compressed file 700. Specifically, the compressed file generation unit 230 obtains the setting table 650 from the storage medium 114 and uses this as the header of the compressed file 700 as is.

[0060] In this embodiment, the range coder uses a cumulative frequency table to perform coding, so a distribution table 600 showing the correspondence between indexes and cumulative frequencies is used. However, the distribution table 600 is a table showing the relationship between indexes and occurrence probabilities, The cumulative frequency may be calculated for each relationship between the index and the occurrence probability. If it is possible to obtain either the probability or the cumulative frequency without calculating the probability density function, it is possible to obtain the speed-up effect of this embodiment.

[0061] (Compressed file) FIG. 7 is a diagram showing an example of a compressed file 700 generated by a compression process. The compressed file 700 includes a header 711 and a binary 712. The header 711 is created by the compressed file generation unit 230, and the binary 712 is created by the entropy coding unit 202. The header 711 is information capable of regenerating the distribution table 600 used during compression. For example, the header 711 may include the information of the setting table 650 as is, or the same information as the setting table 650 may be stored in a different format. The binary 712 is a bit string output by the entropy coding unit 202 described above. The reason why the compressed file 700 has the information of the setting table 650 is as follows.

[0062] To use the binary 712 obtained by encoding in the compression process, it is necessary to perform decompression processing. In the decompression process, the binary 712 is decoded by a range decoder. Decoding by the range decoder requires the same distribution table 600 for each symbol as was used at the time of encoding. For this reason, the compressed file 700 includes, as a header 711, information that enables regeneration of the distribution table 600 used at the time of compression.

[0063] The setting table 650 has information on the granularity 731 of parameter A, the minimum value 732 of parameter A, the maximum value 733 of parameter A, the granularity 734 of parameter B, the minimum value 735 of parameter B, the maximum value 736 of parameter B, the minimum value 737 of the symbol, and the maximum value 738 of the symbol. Note that the present invention is not limited to this example of the number of parameters. For example, an ID capable of identifying the same distribution table 600 as at the time of compression may be held, and any information that allows either regeneration of the same distribution table 600 as at the time of compression or acquisition from a storage medium such as a HDD may be sufficient. Also, when the compressor uses only a single distribution table 600, the header of the compressed file may not include cumulative frequency information.

[0064] Prior to decompression processing, which will be described later, the compressor of this embodiment obtains information on setting table 650 from within header 711 of compressed file 700, and creates a distribution table 600 that is identical to that at the time of compression. Note that the present invention is not limited to this example, and if the compressed file contains an ID that can identify distribution table 600, it may be regenerated based on this ID, or may be obtained from a storage medium such as an HDD based on the ID.

[0065] (Expansion processing) 8 is a flow diagram showing the decompression process. The decompression process of the arithmetic device 100 starts with a process of decoding the compressed file 700 created in the above-mentioned compression process by a range decoder built in the entropy decoding unit 302 and acquiring a feature map F.

[0066] The decoding process by this range decoder requires the same index correspondence table 500 and distribution table 600 as those used during compression. For this reason, the index generation unit 211 and the distribution table generation unit 212 refer to the header 711 of the compressed file 700 to create the index correspondence table 500 and the distribution table 600. The feature amount map F that was the input to the predictor 203 in the compression process is obtained as a result of decoding, so the input to the predictor 203 in the decoding process is not the same as that in the compression process.

[0067] The predictor 203 receives a portion of the feature map F and predicts the occurrence probability of a symbol in a portion of the feature map F at a location different from the input. For this purpose, the feature map F is partially input, occurrence probability or cumulative frequency distribution is obtained, and range D The coder decodes a part of the feature map F that is different from the input. The part of the feature map F obtained in this way is input again to the predictor 203 to obtain the occurrence probability or cumulative frequency distribution, and the range D The coder decodes another part of the feature map F that is different from the input. In this manner, the loop process of prediction and decoding is repeated to finally obtain the entire feature map F. The initial input for performing the loop process of prediction and decoding may be stored in the compressed file 700, or may be a dummy input.

[0068] In the loop process of prediction and decoding in the decompression process, each time the predictor 203 generates a parameter of a probability density function, the index determination unit 221 and the probability determination unit 222 operate in the same manner as in the compression process. All feature maps F are decoded by this loop process of prediction and decoding.

[0069] The decoded feature map F is converted into the original sensor data S by the decoder 301. The decoder 301 is configured in a pair with the encoder 201, and compensates for missing values ​​and the like generated by the encoder 201 by processing such as smoothing, so that people do not recognize any strangeness in the image quality. The decoder 301 may be configured by a neural network, or may be any mechanism capable of converting the feature map F into the sensor data S. Note that the sensor data S subjected to the compression processing and the sensor data S obtained by the decompression processing do not need to be completely identical, but may be approximately identical. "Approximately identical" means, for example, that the likelihood of being identical in human perception is equal to or greater than a predetermined threshold, or that the results of a predetermined processing in computer processing are identical.

[0070] (User Interface) 9 is a diagram showing an example of a user interface screen 800 on which a user sets a setting value. The user interface screen 800 is displayed on the arithmetic device 100 or a client terminal 103 connected to the arithmetic device 100 via a network 101.

[0071] A user interface screen 800 shows an example of a graphical user interface screen for a user to make settings. As setting items for the cumulative frequency, there are input fields for granularity of parameter A 801, minimum value of parameter A 802, maximum value of parameter A 803, granularity of parameter B 804, minimum value of parameter B 805, and maximum value of parameter B 806. As setting items for the feature map, there are input fields for minimum value of symbol 811 and maximum value of symbol 812.

[0072] When the calculation device 100 receives an input from the user on the user interface screen 800, the calculation device 100 writes the input into the setting table 650 and reflects it in subsequent processing. Specifically, the distribution table generation unit 212 creates the distribution table 600 based on the cumulative frequency setting. The feature map setting limits the symbol values ​​output by the encoder 201. The above is the user interface screen in this embodiment.

[0073] It is not essential that the configuration includes all of the setting items of user interface screen 800 shown in FIG. 9. The user may be able to set only one item, or user interface screen 800 may not be provided.

[0074] According to the above-described first embodiment, the following advantageous effects can be obtained. (1) The arithmetic device 100 has a predictor, an encoder, and a decoder, and encodes and decodes data using a probability density distribution. The arithmetic device 100 can execute at least the compression process out of the learning process and the compression process. The learning process uses a neural network to learn, and a probability distribution table that associates a parameter with a probability distribution of a symbol value can be used. In the compression process, the predictor calculates a parameter from the input data, and the encoder compresses the input data using the symbol value probability distribution based on the calculated parameter and the probability distribution table. Therefore, the amount of calculation can be reduced by calculating a probability density function that requires time to calculate in advance and creating a distribution table 600, and referring to the index correspondence table 500 and the distribution table 600 that were created in advance. The output of a neural network is generally a decimal number, and is not suitable for combination with a lookup table. In this embodiment, the arithmetic device 100 has an index determination unit 240, so that the output of the neural network can be indexed and used in combination with a lookup table created in advance. In other words, it is possible to shorten the processing time or perform processing using less expensive processing resources, thereby reducing the cost of computational processing.

[0075] (2) The arithmetic device 100 includes a probability specification unit that selects a probability distribution of symbol values ​​to be used for compression based on the calculated parameter and a probability distribution table.

[0076] (3) The parameters are the mean and variance of the probability density distribution of the input data.

[0077] (4) A learning process is performed, in which the coupling coefficients of the neural network are optimized to create a probability density distribution.

[0078] (5) In the learning process, the coupling coefficients of the neural network are optimized to reduce the variance.

[0079] (6) In the learning process, a probability density distribution is created for each of the multiple symbols of the input data, its parameters are calculated, the parameters to be stored in the probability distribution table are set at a predetermined granularity based on the distribution range based on the maximum and minimum values ​​of the multiple calculated parameters, and the probability density distribution corresponding to the set parameters is entered in the probability distribution table. Therefore, unnecessary parameter ranges are not used, improving the efficiency of compression.

[0080] Furthermore, this embodiment has the following advantages. (7) The calculation device 100 includes an index determination unit 240 that divides the parameters of the probability density distribution output by the predictor 203 into predetermined numerical ranges and determines an index that is a value corresponding to a representative value of the corresponding numerical range. The distribution table 600 shows the correspondence between the index and a value based on the calculation result of the probability density distribution corresponding to the symbol. Therefore, the correspondence between the parameter output and the cumulative frequency can be easily understood.

[0081] (8) The index generation unit 211, which is a part of the index determination unit 240, determines the granularity of the index, i.e., the width of a predetermined numerical range, based on a user instruction. Therefore, the trade-off between the calculation accuracy and the time required to create the distribution table 600 in advance can be determined based on the user instruction.

[0082] (9) The values ​​based on the calculation results of the probability density function in the distribution table 600 are cumulative frequency distributions created based on the calculation results of the probability density function. Therefore, the cumulative frequency, which takes more time than calculating the probability, can be calculated in advance, thereby reducing the time required for compression processing.

[0083] (10) The arithmetic device 100 includes an entropy coding unit 202 that encodes, i.e., compresses, the input information, the feature map F, using a value based on the calculation result of the probability density function. Therefore, the arithmetic device 100 can reduce the processing load of the compression process for creating the compressed file 700.

[0084] (11) The arithmetic device 100 includes a compressed file generating unit 230 that generates a compressed file by combining index parameter information that identifies each of the above-mentioned predetermined numerical ranges, probability identification information that identifies the corresponding information, and the encoded input information output by the encoding unit. Therefore, the arithmetic device 100 allows a different arithmetic device 100 to execute the decompression process by including information of the setting table 650 in the compressed file 700.

[0085] (12) The compressed file 700 has a data structure including index parameter information for dividing the parameter of the probability density distribution output by the predictor 203, which includes a neural network that outputs a parameter of a probability density distribution corresponding to an input symbol and in which the coupling coefficients are changed so that the average value of the probability of the symbol in a Gaussian distribution created using multiple parameters corresponding to multiple symbols input in advance is maximized, into a predetermined numerical range, probability specification information for dividing the parameter output by the predictor 203 into a predetermined numerical range using the index parameter information and obtaining a value based on a calculation result of the probability density distribution corresponding to the symbol using a representative value in the corresponding numerical range, and binary 712 which is compressed data in which the symbol is compressed using the value based on the calculation result of the probability density distribution. Therefore, the decompression process of the binary 712 can be efficiently performed using the index parameter information and the probability specification information.

[0086] (13) The arithmetic device 100 includes a neural network that outputs a parameter of a probability density distribution corresponding to an input symbol, and a predictor 203 including a neural network in which a coupling coefficient is changed so that an average value of the probability of a symbol in a Gaussian distribution created using a plurality of parameters corresponding to a plurality of previously input symbols is maximized. The arithmetic device 100 includes index parameter information for dividing the parameter of the probability density distribution output by the predictor 203 into a predetermined numerical range using the index parameter information, probability specification information for dividing the parameter output by the predictor 203 into a predetermined numerical range using a representative value in the corresponding numerical range and obtaining a value based on a calculation result of the probability density distribution corresponding to the symbol, and a symbol calculation method using the value based on the calculation result of the probability density distribution. The computing device 100 includes a storage medium 114 storing a compressed file including a representative value and a compressed data obtained by compressing a symbol, a predictor 203, a correspondence information creating unit (i.e., an index generating unit 211 and a distribution table generating unit 212) that creates correspondence information indicating the correspondence between a representative value and a value based on a calculation result of a probability density distribution corresponding to a symbol based on the probability specification information, a probability specification unit 222 that identifies a value based on a calculation result of a probability density distribution corresponding to a representative value using the representative value obtained by dividing the parameter of the probability density distribution output by the predictor 203 into a predetermined numerical range and the correspondence information based on the index parameter information, and an entropy decoding unit 302 that decodes a binary 712, which is compressed data, into a symbol by referring to the value based on the calculation result of the probability density distribution. Therefore, the computing device 100 can decompress the binary 712 stored in the compressed file 700 that is created based on the value of an arbitrary setting table 650.

[0087] The sensor server 102 may have processing resources equivalent to those of the arithmetic device 100 and perform compression and decompression processes similar to those of the arithmetic device 100. In addition, the arithmetic device 100 and the sensor server 102 may perform compression and decompression processes using processing resources such as a GPU or FPGA instead of a processor. implementation You may do so.

[0088] (Variation 2) The number of parameters of the probability density function output by predictor 203 is not limited to two, and may be one or more. The number of setting items in setting table 650 increases or decreases according to the number of parameters output by predictor 203. The total number of indexes written in index correspondence table 500 also changes according to the entries in setting table 650. The total number of indexes in distribution table 600 also changes accordingly.

[0089] In addition, when a probability density function having two or more parameters is used, one of the parameters may be a constant, and the predictor 203 may output only one parameter. For example, a Gaussian distribution generally has a mean and a standard deviation of two of However, the mean may be a constant of 0, and the predictor 203 may output only the standard deviation.

[0090] (Variation 3) The compressed file 700 may include information for identifying the index correspondence table 500 and the distribution table 600 instead of the setting table 650, for example, identifiers of a plurality of index correspondence tables 500 and distribution tables 600 created in advance. Furthermore, the compressed file 700 may include information for identifying parameters of the predictor 203 used in the compression process.

[0091] (Variation 4) In the first embodiment described above, a part of the feature map F is input to the predictor 203 during decompression, but a predictor that does not input any feature map F during decompression may be used. For example, in the compression process, the predictor 203 may create a hyper feature map corresponding to the features of the feature map F from the feature map F, and store the hyper feature map in a compressed file separately from the binary 712 of the feature map F after encoding by the range coder. With this configuration, it is not necessary to input the feature map to the predictor during decompression, and the above-mentioned prediction-decoding loop process is unnecessary. In this case, if the data amount of the hyper feature map is made sufficiently small, the data reduction effect by entropy encoding of the feature map can be achieved.

[0092] (Variation 5) In the first embodiment described above, it is not necessary to use the encoder 201. In this case, the sensor data S is input to the predictor 203 and the entropy encoding unit 202 instead of the feature map F.

[0093] (Variation 6) The output of the predictor 203 is not limited to the parameter of the probability density function. The predictor 203 may output any numerical value as the output of the neural network. If the output of the predictor 203 is a numerical value, the output of the predictor 203 can be indexed by the index specifying unit 221 by creating an index correspondence table 500 corresponding to the numerical value range in advance.

[0094] (Variation 7) In the above-mentioned first embodiment, the sensor data S has been described as an image having a two-dimensional spread, but it may be the output of a line sensor having fewer dimensions than an image, or a video having more dimensions than an image. The number of dimensions of the feature map F changes depending on the number of dimensions of the sensor data S, but the processing flow is the same.

[0095] (Variation 8) In the first embodiment described above, the arithmetic device 100 executes both the compression process and the decompression process. However, it is sufficient that the arithmetic device 100 is capable of executing at least one of the compression process and the decompression process. When the arithmetic device 100 executes only the compression process, the configuration shown in Fig. 2 may be configured with the decoder 301 and the entropy decoding unit 302 removed. When the arithmetic device 100 executes only the decompression process, the configuration shown in Fig. 2 may be configured with the encoder 201, the entropy encoding unit 202, and the compressed file generating unit 230 removed.

[0096] (Variation 9) 10 is a functional configuration diagram of a calculation device 100A in Modification 9. The calculation device 100A shown in FIG. 10 further includes a granularity determination unit 250 in addition to the configuration in the first embodiment. The granularity determination unit 250 determines the granularity of the parameter. That is, the granularity determination unit 250 determines at least one of the granularity of parameter A and the granularity of parameter B in the setting table 650.

[0097] For example, the granularity determination unit 250 executes a benchmark to evaluate the computing power of the computing device 100A, and sets the granularity according to the obtained benchmark score. The granularity determination unit 250 may also obtain information on the hardware configuration of the computing device 100A from the operating system or software platform of the computing device 100A, estimate the computing power from the hardware configuration, and set the granularity. The higher the benchmark score or the higher the estimated computing power, the finer the granularity is set by the granularity determination unit 250.

[0098] According to this modification, the calculation device 100A determines the granularity of the index determined by the index determination unit 240, i.e., the width of the above-mentioned predetermined numerical range, based on the calculation capacity of the calculation device 100A. Therefore, the higher the processing capacity of the calculation device 100A, the finer the granularity of the index can be, thereby improving accuracy.

[0099] (Variation 10) In the distribution table 600, two parameters may be entered instead of the index. In other words, the distribution table 600 may be a table showing the correspondence between the two parameters and the cumulative frequency. Note that, as in the description in the index correspondence table 500, each of the two parameters does not show the parameter value itself, but is a representative value divided into a predetermined numerical range.

[0100] --Second embodiment-- A second embodiment of the arithmetic device will be described with reference to Figs. 11 and 12. In the following description, the same components as in the first embodiment are given the same reference numerals, and differences will be mainly described. Points that are not specifically described are the same as in the first embodiment. This embodiment differs from the first embodiment mainly in that the index correspondence table 500 is not a required component.

[0101] 11 is a functional configuration diagram of a calculation device 100B in the second embodiment. The index generating unit 211 and the index identifying unit 221 are deleted from the configuration in the first embodiment, and an index determining unit 240 that performs the functions of both is clearly shown. The index determining unit 240 determines the index value without referring to the index correspondence table 500. That is, the index determining unit 240 determines the index value by performing a mathematical operation in the index determination process described below using two parameters output by the predictor 203.

[0102] 12 is a flowchart showing the index determination process by index determination unit 240. First, in step S401, index determination unit 240 refers to setting table 650 to obtain the "granularity," "minimum value," and "maximum value" of parameter A. In the following step S402, index determination unit 240 clips parameter A at the minimum and maximum values ​​to create output A. Since the value range of the output of a neural network cannot generally be limited, there is a possibility that a value outside the range of parameter A in distribution table 600 created beforehand will be output, and so it is necessary to limit it by clipping. By clipping, the value predicted by predictor 203 but This may cause the prediction accuracy to deteriorate, but this can be ignored if the range of parameter A in the pre-calculated distribution table 600 is sufficiently large.

[0103] For output A, the minimum value of parameter A is subtracted to make it a positive integer value for indexing. Then, the product is taken of the inverse of the granularity of parameter A and rounded off to an integer. This integer value is called sub-index A (Sub_Index A). In the following step S403, the "granularity", "minimum value", and "maximum value" of parameter B are obtained from setting table 650.

[0104] In the next step S404, the index determination unit 240 clips the parameter B, which is the output of the prediction, at the minimum and maximum values ​​to create the output B. Since the output of a neural network cannot generally be limited, there is a possibility that a value outside the range of the parameter B of the distribution table 600 created in advance will be output, and so it is necessary to limit it by clipping. Since the value predicted by the predictor 203 changes due to the clipping of the maximum and minimum values, there is a possibility that the prediction accuracy will deteriorate, but this can be ignored if the range of parameter B of the distribution table 600 calculated in advance is sufficiently large.

[0105] For output B, the minimum value of modulus B is subtracted to make it a positive integer value for indexing. Then, the product is taken with the inverse of the granularity of modulus B and rounded off to an integer. This integer-converted value is hereinafter referred to as sub-index B (Sub_Index B). In the following step S405, the maximum value of sub-index B (MAX_Sub_Index B) is calculated as "(maximum value of modulus B-minimum value of modulus B) x (inverse of granularity of modulus B)". In the following step S406, the index is calculated by performing the calculation Index=Sub_Index A x (MAX_Sub_Index B+1) + Sub_Index B.

[0106] According to the above-described second embodiment, the same effects as those of the first embodiment can be obtained without creating the index correspondence table 500.

[0107] In each of the above-mentioned embodiments and modifications, the configuration of the functional blocks is merely an example. Some functional configurations shown as separate functional blocks may be integrated, or a configuration shown in one functional block diagram may be divided into two or more functions. In addition, some of the functions of each functional block may be provided by other functional blocks.

[0108] In the above-described embodiments and modifications, the program for realizing the functions of the arithmetic device 100 is stored in a ROM (not shown), but the program may be stored in the storage medium 114. The arithmetic device 100 may also have an input / output interface (not shown), and the program may be read from another device via the input / output interface and a medium available to the arithmetic device 100 when necessary. The medium here refers to, for example, a storage medium that is detachable from the input / output interface, or a communication medium, i.e., a wired, wireless, optical, or other network, or a carrier wave or digital signal that propagates through the network. Some or all of the functions realized by the program may be realized by a hardware circuit or an FPGA.

[0109] The above-mentioned embodiments and modifications may be combined with each other. Although various embodiments and modifications have been described above, the present invention is not limited to these. Other aspects that are conceivable within the scope of the technical idea of ​​the present invention are also included in the scope of the present invention. [Explanation of symbols]

[0110] 100, 100A, 100B...Calculation unit 201...Encoder 202...Entropy coding unit 203…Predictor 211...Index generation unit 212…Distribution table generator 221...Index specific part 222…Probability determination section 230...Compressed file generator 240...Index determination section 301...Decoder 302...Entropy decoding unit 500...Index correspondence table 600…Distribution table 650…Setting table 700…Compressed files 711...Header 712...Binary

Claims

1. 1. A computing device having a predictor, an encoder, and a decoder, the computing device encoding and decoding data using a probability density distribution, At least the compression process of the learning process and the compression process can be executed, By learning using the neural network created in the learning process, a probability distribution table in which parameters correspond to probability distributions of symbol values ​​can be used. In the compression process, The predictor calculates a parameter from input data; the encoder compresses the input data using a probability distribution of symbol values ​​based on the calculated parameter and the probability distribution table; When the computing device does not execute the learning process, the probability distribution table created by another device is used. Computing device.

2. 2. The computing device according to claim 1, a probability specification unit that selects a probability distribution of the symbol values ​​to be used for the compression based on the calculated parameter and the probability distribution table. Computing device.

3. 2. The computing device according to claim 1, The parameters are the mean and variance of the probability density distribution of the input data. Computing device.

4. 4. The computing device according to claim 3, The learning process is performed, In the learning process, the coupling coefficients of the neural network are optimized to generate the probability density distribution. Computing device.

5. 5. The computing device according to claim 4, In the learning process, the coupling coefficients of the neural network are optimized so as to reduce the variance. Computing device.

6. 5. The computing device according to claim 4, In the learning process, creating said probability density distribution for each of a plurality of symbols of input data and calculating the parameter thereof; A parameter to be stored in the probability distribution table is set at a predetermined granularity based on a distribution range based on the maximum and minimum values ​​of the calculated multiple parameters, and a probability density distribution corresponding to the set parameter is entered in the probability distribution table. Computing device.

7. A compression method executed by a computing device having a predictor, an encoder, and a decoder, the computing device encoding and decoding data using a probability density distribution, comprising: the arithmetic unit is capable of executing at least a compression process among a learning process and a compression process, By learning using the neural network created in the learning process, a probability distribution table in which parameters correspond to probability distributions of symbol values ​​can be used. The compression process includes: The predictor calculates a parameter from input data; the encoder compresses the input data using a probability distribution of symbol values ​​based on the calculated parameter and the probability distribution table; A compression method, comprising the steps of: when the computing device does not execute the learning process, utilizing the probability distribution table created by another device.

8. a storage unit for storing a compressed file including index parameter information for indexing an output of a neural network for input information into an index value, probability specification information for obtaining an evaluation value using the index value, and encoded data obtained by encoding the input information using the evaluation value; a predictor including the neural network, which, when a portion of the input information is input, outputs a numerical value corresponding to the portion of the input information; an index determination unit that determines an index based on the numerical value output by the predictor based on the index parameter information; a correspondence information generating unit that generates correspondence information indicating a correspondence between the index and the evaluation value based on the probability identification information; an identification unit that identifies the evaluation value corresponding to the index by referring to the correspondence information; a decoding unit that decodes the encoded data into the input information by referring to the evaluation value.

Citation Information

Patent Citations

  • Encoding system, encoding method, encoding program, decoding system, decoding method, and decoding program

    JP2009159366A

  • Image decoding device, image encoding device, image processing system, and program

    JP2020057840A