Machine learning (ML) or deep learning (DL) has been growing exponentially in the last decade. ML and DL use neural networks (NN), which are mechanisms that basically mimic how a human brain learns. Neural networks (e.g., convolutional neural network (CNN))-based image compression and reconstruction are growing rapidly and can achieve or surpasses the state-of-the-art heuristic image compression methods, such as JPEG or BPG. A limitation of the application of the NN-based image compression is on the computation complexity during compression and reconstruction.
In some embodiments, an exemplary machine learning system includes: a compressor having circuitry configured to use a compression neural network to compress an image into a compressed representation, the compressed representation comprising a sequence of compressed channels; a selector having circuitry configured to select a part of the compressed channels from the compressed representation; and a learning module having circuitry configured to perform a learning task on the selected compressed channels.
In some embodiments, an exemplary method for machine learning includes: compressing an image with a compression neural network to generate a compressed representation comprising a sequence of compressed channels; selecting a part of the compressed channels from the compressed representation; and performing a learning task on the selected compressed channels.
In some embodiments, an exemplary apparatus for neural network learning includes at least one memory for storing instructions and at least one processor. At least one processor can be configured to execute the instructions to cause the apparatus to perform: compressing an image with a neural network to generate a compressed representation comprising a plurality of compressed channels; selecting a part of the compressed channels from the compressed representation; and performing a learning task on the selected compressed channels.
In some embodiments, an exemplary non-transitory computer readable storage medium storing a set of instructions that are executable by one or more processing devices to cause a computer to perform: compressing an image with a compression neural network to generate a compressed representation comprising a sequence of compressed channels; selecting a part of the compressed channels from the compressed representation; and performing a learning task on the selected compressed channels.
Additional features and advantages of the present disclosure will be set forth in part in the following detailed description, and in part will be obvious from the description, or may be learned by practice of the present disclosure. The features and advantages of the present disclosure will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims.
It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not restrictive of the disclosed embodiments.
The accompanying drawings, which comprise a part of this specification, illustrate several embodiments and, together with the description, serve to explain the principles and features of the disclosed embodiments. In the drawings:
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise represented. The implementations set forth in the following description of exemplary embodiments do not represent all implementations consistent with the invention. Instead, they are merely examples of apparatuses, systems and methods consistent with aspects related to the invention as recited in the appended claims.
The applications of neural networks (e.g., CNNs) are extended to non-visual understanding tasks, in particular, to image compression tasks. For example, a CNN can transform an image from color space domain (e.g., RGB domain) to a compressed representation. A purpose of image compression is to remove intrinsic redundancy in the image and thus be able to use much smaller number of bits to represent it, which is beneficial both in transmission and in data storage. To perform computer vision tasks from the compressed domain, the compressed representation (e.g., compressed representation 403 including a sequence of compressed channels in
In some embodiments of the present disclosure, a system or a method can perform machine learning (e.g., training or inference) from partial compressed representations in the compressed domain without reconstruction. Some embodiments can reduce computation complexity and latency of an image learning system.
Input layer 120 may comprise one or more nodes, e.g., node 120-1, node 120-2, . . . , node 120-a. Each node may apply an activation function to corresponding input (e.g., one or more of input 110-1, . . . , input 110-m) and weight the output from the activation function by a particular weight associated with the node. An activation function may comprise a Heaviside step function, a Gaussian function, a multiquadratic function, an inverse multi-quadratic function, a sigmoidal function, or the like. A weight may comprise a positive value between 0.0 and 1.0 or any other numerical value configured to allow some nodes in a layer to have corresponding output scaled more or less than output corresponding to other nodes in the layer.
As further depicted in
As further depicted in
Although depicted as fully connected in
Moreover, although depicted as a feedforward network in
It is appreciated that cores 202 can perform algorithmic operations based on communicated data. Cores 202 can include one or more processing elements that may include single instruction, multiple data (SIMD) architecture including one or more processing units configured to perform one or more operations (e.g., multiplication, addition, multiply-accumulate, etc.) based on commands received from command processor 204. To perform the operation on the communicated data packets, cores 202 can include one or more processing elements for processing information in the data packets. Each processing element may comprise any number of processing units. According to some embodiments of the present disclosure, accelerator architecture 200 may include a plurality of cores 202, e.g., four cores. In some embodiments, the plurality of cores 202 can be communicatively coupled with each other. For example, the plurality of cores 202 can be connected with a single directional ring bus, which supports efficient pipelining for large neural network models. The architecture of cores 202 will be explained in detail with respect to
Command processor 204 can interact with a host unit 220 and pass pertinent commands and data to corresponding core 202. In some embodiments, command processor 204 can interact with host unit under the supervision of kernel mode driver (KMD). In some embodiments, command processor 204 can modify the pertinent commands to each core 202, so that cores 202 can work in parallel as much as possible. The modified commands can be stored in an instruction buffer (not shown). In some embodiments, command processor 204 can be configured to coordinate one or more cores 202 for parallel execution.
DMA unit 208 can assist with transferring data between host memory 221 and accelerator architecture 200. For example, DMA unit 208 can assist with loading data or instructions from host memory 221 into local memory of cores 202. DMA unit 208 can also assist with transferring data between multiple accelerators. DMA unit 208 can allow off-chip devices to access both on-chip and off-chip memory without causing a host CPU interrupt. In addition, DMA unit 208 can assist with transferring data between components of accelerator architecture 200. For example, DMA unit 208 can assist with transferring data between multiple cores 202 or within each core. Thus, DMA unit 208 can also generate memory addresses and initiate memory read or write cycles. DMA unit 208 also can contain several hardware registers that can be written and read by the one or more processors, including a memory address register, a byte-count register, one or more control registers, and other types of registers. These registers can specify some combination of the source, the destination, the direction of the transfer (reading from the input/output (I/O) device or writing to the I/O device), the size of the transfer unit, or the number of bytes to transfer in one burst. It is appreciated that accelerator architecture 200 can include a second DMA unit, which can be used to transfer data between other accelerator architectures to allow multiple accelerator architectures to communicate directly without involving the host CPU.
JTAG/TAP controller 210 can specify a dedicated debug port implementing a serial communications interface (e.g., a JTAG interface) for low-overhead access to the accelerator without requiring direct external access to the system address and data buses. JTAG/TAP controller 210 can also have on-chip test access interface (e.g., a TAP interface) that implements a protocol to access a set of test registers that present chip logic levels and device capabilities of various parts.
Peripheral interface 212 (such as a PCIe interface), if present, serves as an (and typically the) inter-chip bus, providing communication between the accelerator and other devices.
Bus 214 (such as a I2C bus) includes both intra-chip bus and inter-chip buses. The intra-chip bus connects all internal components to one another as called for by the system architecture. While not all components are connected to every other component, all components do have some connection to other components they need to communicate with. The inter-chip bus connects the accelerator with other devices, such as the off-chip memory or peripherals. For example, bus 214 can provide high speed communication across cores and can also connect cores 202 with other units, such as the off-chip memory or peripherals. Typically, if there is a peripheral interface 212 (e.g., the inter-chip bus), bus 214 is solely concerned with intra-chip buses, though in some implementations it could still be concerned with specialized inter-bus communications.
Accelerator architecture 200 can also communicate with a host unit 220. Host unit 220 can be one or more processing unit (e.g., an X86 central processing unit). As shown in
In some embodiments, a host system having host unit 220 and host memory 221 can comprise a compiler (not shown). The compiler is a program or computer software that transforms computer codes written in one programming language into instructions for accelerator architecture 200 to create an executable program. In machine learning applications, a compiler can perform a variety of operations, for example, pre-processing, lexical analysis, parsing, semantic analysis, conversion of input programs to an intermediate representation, initialization of a neural network, code optimization, and code generation, or combinations thereof. For example, the compiler can compile a neural network to generate static parameters, e.g., connections among neurons and weights of the neurons.
In some embodiments, host system including the compiler may push one or more commands to accelerator architecture 200. As discussed above, these commands can be further processed by command processor 204 of accelerator architecture 200, temporarily stored in an instruction buffer of accelerator architecture 200, and distributed to corresponding one or more cores (e.g., cores 202 in
It is appreciated that the first few instructions received by the cores 202 may instruct the cores 202 to load/store data from host memory 221 into one or more local memories of the cores (e.g., local memory 2032 of
According to some embodiments, accelerator architecture 200 can further include a global memory (not shown) having memory blocks (e.g., 4 blocks of 8 GB second generation of high bandwidth memory (HBM2)) to serve as main memory. In some embodiments, the global memory can store instructions and data from host memory 221 via DMA unit 208. The instructions can then be distributed to an instruction buffer of each core assigned with the corresponding task, and the core can process these instructions accordingly.
In some embodiments, accelerator architecture 200 can further include memory controller (not shown) configured to manage reading and writing of data to and from a specific memory block (e.g., HBM2) within global memory. For example, memory controller can manage read/write data coming from core of another accelerator (e.g., from DMA unit 208 or a DMA unit corresponding to the another accelerator) or from core 202 (e.g., from a local memory in core 202). It is appreciated that more than one memory controller can be provided in accelerator architecture 200. For example, there can be one memory controller for each memory block (e.g., HBM2) within global memory.
Memory controller can generate memory addresses and initiate memory read or write cycles. Memory controller can contain several hardware registers that can be written and read by the one or more processors. The registers can include a memory address register, a byte-count register, one or more control registers, and other types of registers. These registers can specify some combination of the source, the destination, the direction of the transfer (reading from the input/output (I/O) device or writing to the I/O device), the size of the transfer unit, the number of bytes to transfer in one burst, or other typical features of memory controllers.
While accelerator architecture 200 of
One or more operation units can include first operation unit 2020 and second operation unit 2022. First operation unit 2020 can be configured to perform operations on received data (e.g., matrices). In some embodiments, first operation unit 2020 can include one or more processing units configured to perform one or more operations (e.g., multiplication, addition, multiply-accumulate, element-wise operation, etc.). In some embodiments, first operation unit 2020 is configured to accelerate execution of convolution operations or matrix multiplication operations.
Second operation unit 2022 can be configured to perform a pooling operation, an interpolation operation, a region-of-interest (ROI) operation, and the like. In some embodiments, second operation unit 2022 can include an interpolation unit, a pooling data path, and the like.
Memory engine 2024 can be configured to perform a data copy within a corresponding core 202 or between two cores. DMA unit 208 can assist with copying data within a corresponding core or between two cores. For example, DMA unit 208 can support memory engine 2024 to perform data copy from a local memory (e.g., local memory 2032 of
Sequencer 2026 can be coupled with instruction buffer 2028 and configured to retrieve commands and distribute the commands to components of core 202. For example, sequencer 2026 can distribute convolution commands or multiplication commands to first operation unit 2020, distribute pooling commands to second operation unit 2022, or distribute data copy commands to memory engine 2024. Sequencer 2026 can also be configured to monitor execution of a neural network task and parallelize sub-tasks of the neural network task to improve efficiency of the execution. In some embodiments, first operation unit 2020, second operation unit 2022, and memory engine 2024 can run in parallel under control of sequencer 2026 according to instructions stored in instruction buffer 2028.
Instruction buffer 2028 can be configured to store instructions belonging to the corresponding core 202. In some embodiments, instruction buffer 2028 is coupled with sequencer 2026 and provides instructions to the sequencer 2026. In some embodiments, instructions stored in instruction buffer 2028 can be transferred or modified by command processor 204.
Constant buffer 2030 can be configured to store constant values. In some embodiments, constant values stored in constant buffer 2030 can be used by operation units such as first operation unit 2020 or second operation unit 2022 for batch normalization, quantization, de-quantization, or the like.
Local memory 2032 can provide storage space with fast read/write speed. To reduce possible interaction with a global memory, storage space of local memory 2032 can be implemented with large capacity. With the massive storage space, most of data access can be performed within core 202 with reduced latency caused by data access. In some embodiments, to minimize data loading latency and energy consumption, static random access memory (SRAM) integrated on chip can be used as local memory 2032. In some embodiments, local memory 2032 can have a capacity of 192 MB or above. According to some embodiments of the present disclosure, local memory 2032 be evenly distributed on chip to relieve dense wiring and heating issues.
With the assistance of neural network accelerator architecture 200, cloud system 230 can provide the extended AI capabilities of image recognition, facial recognition, translations, 3D modeling, and the like. It is appreciated that neural network accelerator architecture 200 can be deployed to computing devices in other forms. For example, neural network accelerator architecture 200 can also be integrated in a computing device, such as a smart phone, a tablet, and a wearable device.
Moreover, while a neural network accelerator architecture is shown in
First buffer 310 may be configured to store input data. In some embodiments, data stored in first buffer 310 can be input data to be used in processing array 330 for execution. In some embodiments, the input data can be fetched from local memory (e.g., local memory 2032 in
Second buffer 320 may be configured to store weight data. In some embodiments, weight data stored in second buffer 320 can be used in processing array 330 for execution. In some embodiments, the weight data stored in second buffer 320 can be fetched from local memory (e.g., local memory 2032 in
According to some embodiments of the present disclosure, weight data stored in second buffer 320 can be compressed data. For example, weight data can be pruned data to save memory space on chip. In some embodiments, operation unit 2020 can further include a sparsity engine 390. Sparsity engine 390 can be configured to unzip compressed weight data to be used in processing array 330.
Processing array 330 may have a plurality of layers (e.g., K layers). According to some embodiments of the present disclosure, each layer of processing array 330 may include a plurality of processing strings, which may perform computations in parallel. For example, first processing string included in the first layer of processing array 330 can comprise a first multiplier (e.g., dot product) 340_1 and a first accumulator (ACC) 350_1 and second processing string can comprise a second multiplier 340_2 and a second accumulator 350_2. Similarly, i-th processing string in the first layer can comprise an i-th multiplier 340_i and an i-th accumulator 350_i.
In some embodiments, processing array 330 can perform computations under SIMD control. For example, when performing a convolution operation, each layer of processing array 330 can execute same instructions with different data.
According to some embodiments of the present disclosure, processing array 330 shown in
According to some embodiments of the present disclosure, processing array 330 may further include an element-wise operation processor (OP) 360. In some embodiments, element-wise operation processor 360 can be positioned at the end of processing strings. In some embodiments, processing strings in each layer of processing array 330 can share element-wise operation processor 360. For example, i number of processing strings in the first layer of processing array 330 can share element-wise operation processor 360. In some embodiments, element-wise operation processor 360 in the first layer of processing array 330 can perform its element-wise operation on each of output values, from accumulators 350_1 to 350_i, sequentially. Similarly, element-wise operation processor 360 in the Kth layer of processing array 330 can perform its element-wise operation on each of output values, from accumulators 350_1 to 350_i, sequentially. In some embodiments, element-wise operation processor 360 can be configured to perform a plurality of element-wise operations. In some embodiments, element-wise operation performed by the element-wise operation processor 360 may include an activation function such as ReLU function, ReLU6 function, Leaky ReLU function, Sigmoid function, Tanh function, or the like.
In some embodiments, multiplier 340 or accumulator 350 may be configured to perform its operation on different data type from what the element-wise operation processor 360 performs its operations on. For example, multiplier 340 or accumulator 350 can be configured to perform its operations on integer type data such as Int 8, Int 16, and the like and element-wise operation processor 360 can perform its operations on floating point type data such as FP24, and the like. Therefore, according to some embodiments of the present disclosure, processing array 330 may further include de-quantizer 370 and quantizer 380 with element-wise operation processor 360 positioned therebetween. In some embodiments, batch normalization operations can be merged to de-quantizer 370 because both de-quantizer 370 and batch normalization operations can be performed by multiplication operations and addition operations with constants, which can be provided from constant buffer 2030. In some embodiments, batch normalization operations and de-quantization operations can be merged into one operation by compiler. As shown in
As shown in
Compressed representation 403 can be input into reconstruction stage 404. Stage 404 can include a reconstruction neural network (e.g., neural network 100 of
In some embodiments, compressed representation 403 can be input into selection stage 406. At selection stage 406, a part of the sequence of compressed channels in compressed representation 403 can be selected. The selection can be based on statistics (e.g., entropies or feature value variations) of the compressed channels, a trained selection neural network, or the like. In some embodiments, at selection stage 406, a plurality of top compressed channels with larger entropies or feature value variances can be selected. For example, regarding a channel including n signals, s0, s1, . . . , si, . . . , sn−1, the entropy H of the channel can be calculated as follows,
H=−Σ
i=0
n−1(pi×log2pi) (Eq. 1)
where pi represents a probability of a signal being equal to si. Moreover, the feature value variance S of the channel can be calculated as follows,
where
In some embodiments, the compressed channels can be sorted by entropy or feature value variance of signals therein. The top C compressed channels with largest entropies or feature value variances can be selected. The number C can be determined based on the entropy distribution or feature value variance distribution over the compressed channels.
In some embodiments, the sequence of compressed channels can be input into a selection neural network that can select a plurality of compressed channels. The selection neural network can be trained to perform the selection and achieve good performance during learning with the selection.
The selected channels of compressed representation 403 can be input to learning stage 407 where a learning task can be performed thereon. It is appreciated that, learning task in the present disclosure can include both training or inference of a learning neural network and can be applied to various CV tasks, including, but not being limited to, image recognition, image classification, object detection, semantic segmentation, or the like. In some embodiments, process 400 can also include a resizing stage at which the selected compressed channels can be adjusted to the input size of the learning neural network. The resizing stage can include a DNN layer to perform the adjustment.
As shown in
As depicted in
Selector 603 can be coupled with compressor 602, as shown in
Learning module 604 can be coupled with selector 603, as shown in
In some embodiments, machine learning system 600 can also include a resizing module. The resizing module can have circuitry configured to adjust the selected compressed channels to the input size of the learning module. For example, the resizing module can have circuitry configured to execute a DNN layer to perform the adjustment.
As depicted in
Compressor 702 can receive an input 701, e.g., an image, and have circuitry configured to compress it to a compressed representation having a plurality of compressed channels. Compressor 702 can have circuitry configured to execute a compression neural network (e.g., a trained compression CNN, RNN, or the like) that can compress the input RGB image 701 to a plurality of compressed channels.
Selector 703 can receive the compressed representation and have circuitry configured to select a part of compressed channels of the compressed representation. In some embodiments, selector 703 can select C top compressed channels with largest entropies or feature value variances from the compressed representation. The number C can be determined based on the entropy distribution or feature value variance distribution over the compressed channels. In some embodiments, selector 703 can have circuitry configured to execute a selection neural network that can be trained to select a plurality of compressed channels from the compressed representation.
Multiplexer 704 can be coupled with compressor 702 and selector 703. Then, multiplexer 704 can receive the compressed representation from compressor 702 and the selected compressed channels from selector 703 and have circuitry configured to multiplex these input data. Multiplexer 704 can be coupled to transmitter 706 and output the compressed representation or the selected compressed channels to transmitter 706.
Controller 705 can be coupled to multiplexer 704 to provide a control signal. The control signal can indicate how to multiplex the compressed representation from compressor 702 and selected compressed channels from selector 703. Controller 705 can have circuitry configured to generate the control signal according to an input from a user, a pre-determined definition, a user-defined standard, or the like. For example, controller 705 can have circuitry configured to determine, according to a user-defined standard, whether to use all compressed channels or partial compressed channels based on tasks, e.g., image reconstruction or image learning. In a case that image 701 is to be applied to semantic segmentation, controller 705 can determine to use partial channels and send a control signal to multiplexer 704, indicating to use the selected compressed channels from selector 703. Multiplexer 704 can output, according to the control signal, the selected compressed channels to transmitter 706.
Transmitter 706 can transmit the compressed representation or the selected compressed channels to receiver 716 of learning apparatus 710. Learning apparatus 710 can include a multiplexer (MUX) 714 that can be coupled to receiver 716 and receive therefrom the compressed representation or the selected compressed channels. It is appreciated that, in some embodiments, compression apparatus 700 can include a memory (not shown in
Learning apparatus 710 can also include a learning module 717 and a decompressor 712 that can be coupled with multiplexer 714. Multiplexer 714 can have circuitry configured to multiplex the received (e.g., received from receiver 716 or read from the memory) compressed representation or selected compressed channels, and output it to learning module 717 or decompressor 712.
Controller 705 can be coupled to multiplexer 714 to provide a control signal. In some embodiments, learning apparatus 710 can include a controller (not shown in
Learning module 717 can have circuitry configured to perform a machine learning on the selected compressed channels. In some embodiments, learning module 717 can have circuitry configured to execute a learning neural network (e.g., neural network 100 of
Decompressor 712 can have circuitry configured to perform a reconstruction on the compressed representation. In some embodiments, decompressor 712 can have circuitry configured to execute a reconstruction neural network (e.g., neural network 100 of
As depicted in
Compressor 802 can receive an input 801, e.g., an image, and have circuitry configured to compress it to a compressed representation having a plurality of compressed channels (e.g., compressed representation 403 of
Transmitter 806 can be coupled to compressor 802 and transmit the compressed representation to receiver 816 of learning apparatus 810. Learning apparatus 810 can include a multiplexer (MUX) 814 that can be coupled to receiver 816 and receive therefrom the compressed representation. It is appreciated that, in some embodiments, compression apparatus 800 can include a memory (not shown in
Learning apparatus 810 can also include a controller 805, a selector 813, a learning module 817, a decompressor 812, and the like. Controller 805 can be coupled to multiplexer 814 to provide a control signal. The control signal can indicate how to multiplex the compressed representation. Controller 805 can have circuitry configured to generate the control signal according to an input from a user, a pre-determined definition, a user-defined standard, or the like. For example, controller 805 can determine, according to a user-defined standard, whether to use all channels or partial channels based on tasks, e.g., image reconstruction or image learning.
Multiplexer 814 can be coupled to selector 813 and decompressor 812 and have circuitry configured to multiplex, according to the control signal, the compressed representation among them. For example, in a case that image 801 is to be applied to semantic segmentation, the control signal can indicate to use a part of compressed channels. Multiplexer 814 can output, according to the control signal, the received (e.g., received from multiplexer 814 or read from the memory) compressed representation to selector 813. In a case that image is to be reconstructed, the control signal can indicate to use all compressed channels. Multiplexer 814 can output, according to the control signal, the received (e.g., received from multiplexer 814 or read from the memory) the compressed representation to decompressor 812.
Selector 813 can receive the compressed representation and have circuitry configured to select a part of compressed channels from the compressed representation. In some embodiments, selector 813 can select C top compressed channels with largest entropies or feature value variances from the compressed representation. The number C can be determined based on the entropy distribution (e.g., distribution 500 of
Learning module 817 can be coupled with selector 813 and have circuitry configured to perform a learning on the selected compressed channels. In some embodiments, learning module 817 can have circuitry configured to execute a learning neural network (e.g., neural network 100 of
Decompressor 812 can have circuitry configured to perform a reconstruction on the compressed representation. In some embodiments, decompressor 812 can have circuitry configured to execute a reconstruction neural network (e.g., neural network 100 of
As shown in
At step 903, method 900 can include selecting a part of the compressed channels from the compressed representation. In some embodiments, selecting a part of the compressed channels can include selecting a plurality of top compressed channels with largest entropies or feature value variances from the compressed representation. The number of selected channels can be determined based on the entropy distribution or feature value variance distribution over the compressed channels. In some embodiments, selecting a part of the compressed channels can include selecting, with a selection neural network, a plurality of compressed channels from the compressed representation. The selection neural network can be pre-trained to achieve good performance during learning with the selected channels. The selection step 903 can be performed by a selector (e.g., selector 603 of
At step 905, method 900 can include performing a learning task on the selected compressed channels. The learning task can include both training or inference of a learning neural network and can be applied to various CV tasks, including, but not being limited to, image recognition, image classification, object detection, semantic segmentation, or the like. The learning step 905 can be performed by a learning module (e.g., learning module 604 of
In some embodiments, method 900 can include decompressing the compressed representation to generate a decompressed image. The decompression step can be performed by a decompressor (e.g., decompressor 712 of
It is appreciated that the embodiments disclosed herein can be used in various application environments, such as artificial intelligence (AI) training and inference, database and big data analytic acceleration, video compression and decompression, and the like.
Embodiments of the present disclosure can be applied to many products. For example, some embodiments of the present disclosure can be applied to Ali-NPU (e.g., Hanguang NPU), Ali-Cloud, Ali PIM-AI (Processor-in Memory for AI), Ali-DPU (Database Acceleration Unit), Ali-AI platform, Ali-Data Center AI Inference Chip, IoT Edge AI Chip, GPU, TPU, or the like.
The embodiments may further be described using the following clauses:
1. A machine learning system, comprising:
a compressor having circuitry configured to use a compression neural network to compress an image into a compressed representation, the compressed representation comprising a sequence of compressed channels;
a selector having circuitry configured to select a part of the compressed channels from the compressed representation; and
a learning module having circuitry configured to perform a learning task on the selected compressed channels.
2. The machine learning system of clause 1, further comprising:
a first multiplexer communicatively coupled with the compressor and the selector and having circuitry configured to multiplex the compressed representation from the compressor and the selected compressed channels from the selector.
3. The machine learning system of clause 2, further comprising:
a decompressor having circuitry configured to decompress the compressed representation to generate a decompressed image; and
a second multiplexer having circuitry configured to receive the compressed representation or the selected compressed channels, the second multiplexer being communicatively coupled with the learning module and decompressor and having circuitry configured to output the compressed representation to the decompressor or the selected compressed channels to the learning module.
4. The machine learning system of clause 3, further comprising:
a transmitter communicatively coupled with the first multiplexer and configured to transmit the compressed representation or the selected compressed channels; and
a receiver communicatively coupled with the second multiplexer and configured to receive the compressed representation or the selected compressed channels from the transmitter and provide the received compressed representation or selected compressed channels to the second multiplexer.
5. The machine learning system of clause 3, further comprising:
a memory for storing the compressed representation or the selected compressed channels from the first multiplexer, wherein the second multiplexer has circuitry configured to read the stored compressed representation or selected compressed channels from the memory.
6. The machine learning system of any one of clauses 3-5, further comprising:
a controller communicatively coupled with the first multiplexer and the second multiplexer and having circuitry configured to send a control signal to the first multiplexer and the second multiplexer,
wherein the first multiplexer has circuitry configured to output, according to the control signal, the compressed representation or the selected compressed channels, and the second multiplexer has circuitry configured to output, according to the control signal, the compressed representation to the decompressor or the selected compressed channels to the learning module.
7. The machine learning system of clause 1, further comprising:
a decompressor having circuitry configured to decompress the compressed representation to generate a decompressed image;
a multiplexer having circuitry configured to receive the compressed representation, the multiplexer being communicatively coupled with the selector and the decompressor and having circuitry configured to output the compressed representation to the selector or the decompressor,
wherein the selector is communicatively coupled with the learning module.
8. The machine learning system of clause 7, further comprising:
a transmitter communicatively coupled with the compressor and configured to transmit the compressed representation; and
a receiver communicatively coupled with the multiplexer and configured to receive the compressed representation from the transmitter and provide the received compressed representation to the multiplexer.
9. The machine learning system of clause 7, further comprising:
a memory for storing the compressed representation from the compressor, wherein the multiplexer is configured to read the stored compressed representation from the memory.
10. The machine learning system of any one of clauses 7-9, further comprising:
a controller communicatively coupled with the multiplexer and having circuitry configured to send a control signal to the multiplexer.
11. The machine learning system of any one of clauses 1-10, wherein the selector has circuitry configured to select a plurality of top compressed channels with largest entropies or feature value variances.
12. The machine learning system of any one of clauses 1-10, wherein the selector has circuitry configured to use a selection neural network to select a plurality of compressed channels.
13. A method for machine learning, comprising:
compressing an image with a compression neural network to generate a compressed representation comprising a sequence of compressed channels;
selecting a part of the compressed channels from the compressed representation; and
performing a learning task on the selected compressed channels.
14. The method of clause 13, further comprising:
decompressing the compressed representation to generate a decompressed image.
15. The method of clause 14, further comprising:
determining whether the learning task or a reconstruction task is to be performed;
in response to the learning task being determined to be performed, selecting the part of the compressed channels from the compressed representation; and
in response to the reconstruction task being determined to be performed, decompressing the compressed representation to generate the decompressed image.
16. The method of any one of clauses 13-15, wherein selecting the part of the compressed channels comprises:
selecting a plurality of top compressed channels with largest entropies or feature value variances from the compressed representation.
17. The method of any one of clauses 13-15, wherein selecting the part of the compressed channels comprises:
selecting, with a selection neural network, a plurality of compressed channels from the compressed representation.
18. An apparatus for machine learning, comprising:
at least one memory for storing instructions; and
at least one processor configured to execute the instructions to cause the apparatus to perform:
decompressing the compressed representation to generate a decompressed image.
20. The apparatus of clause 19, wherein the at least one processor is configured to execute the instructions to cause the apparatus to perform:
determining whether the learning task or a reconstruction task is to be performed;
in response to the learning task being determined to be performed, selecting the part of the compressed channels from the compressed representation; and
in response to the reconstruction task being determined to be performed, decompressing the compressed representation to generate the decompressed image.
21. The apparatus of any one of clauses 18-20, wherein the at least one processor is configured to execute the instructions to cause the apparatus to perform:
selecting a plurality of top compressed channels with largest entropies or feature value variances from the compressed representation.
22. The apparatus of any one of clauses 18-20, wherein the at least one processor is configured to execute the instructions to cause the apparatus to perform:
selecting, with a selection neural network, a plurality of compressed channels from the compressed representation.
23. A non-transitory computer readable storage medium storing a set of instructions that are executable by one or more processing devices to cause a computer to perform:
compressing an image with a neural network to generate a compressed representation comprising a plurality of compressed channels;
selecting a part of the compressed channels from the compressed representation; and
performing a learning task on the selected compressed channels.
24. The non-transitory computer readable storage medium of clause 23, wherein the set of instructions are executable by the one or more processing devices to cause the computer to perform:
decompressing the compressed representation to generate a decompressed image.
25. The non-transitory computer readable storage medium of clause 24, wherein the set of instructions are executable by the one or more processing devices to cause the computer to perform:
determining whether the learning task or a reconstruction task is to be performed;
in response to the learning task being determined to be performed, selecting the part of the compressed channels from the compressed representation; and
in response to the reconstruction task being determined to be performed, decompressing the compressed representation to generate the decompressed image.
26. The non-transitory computer readable storage medium of any one of clauses 23-25, wherein the set of instructions are executable by the one or more processing devices to cause the computer to perform:
selecting a plurality of top compressed channels with largest entropies or feature value variances from the compressed representation.
27. The non-transitory computer readable storage medium of any one of clauses 23-25, wherein the set of instructions are executable by the one or more processing devices to cause the computer to perform:
selecting, with a selection neural network, a plurality of compressed channels from the compressed representation.
The various example embodiments described herein are described in the general context of method steps or processes, which may be implemented in one aspect by a computer program product, embodied in a computer readable medium, including computer-executable instructions, such as program code, executed by computers in networked environments. A computer readable medium may include removeable and nonremovable storage devices including, but not limited to, Read Only Memory (ROM), Random Access Memory (RAM), compact discs (CDs), digital versatile discs (DVD), etc. Generally, program modules may include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of program code for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represents examples of corresponding acts for implementing the functions described in such steps or processes.
The foregoing description has been presented for purposes of illustration. It is not exhaustive and is not limited to precise forms or embodiments disclosed. Modifications and adaptations of the embodiments will be apparent from consideration of the specification and practice of the disclosed embodiments. For example, the described implementations include hardware, but systems and methods consistent with the present disclosure can be implemented with hardware and software. In addition, while certain components have been described as being coupled to one another, such components may be integrated with one another or distributed in any suitable fashion.
Moreover, while illustrative embodiments have been described herein, the scope includes any and all embodiments having equivalent elements, modifications, omissions, combinations (e.g., of aspects across various embodiments), adaptations or alterations based on the present disclosure. The elements in the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as nonexclusive. Further, the steps of the disclosed methods can be modified in any manner, including reordering steps and/or inserting or deleting steps.
The features and advantages of the present disclosure are apparent from the detailed specification, and thus, it is intended that the appended claims cover all systems and methods falling within the true spirit and scope of the present disclosure. As used herein, the indefinite articles “a” and “an” mean “one or more.” Further, since numerous modifications and variances will readily occur from studying the present disclosure, it is not desired to limit the present disclosure to the exact reconstruction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope of the present disclosure.
As used herein, unless specifically stated otherwise, the term “or” encompasses all possible combinations, except where infeasible. For example, if it is stated that a component may include A or B, then, unless specifically stated otherwise or infeasible, the component may include A, or B, or A and B. As a second example, if it is stated that a component may include A, B, or C, then, unless specifically stated otherwise or infeasible, the component may include A, or B, or C, or A and B, or A and C, or B and C, or A and B and C.
Other embodiments will be apparent from consideration of the specification and practice of the embodiments disclosed herein. It is intended that the specification and examples be considered as example only, with a true scope and spirit of the disclosed embodiments being indicated by the following claims.