# US 2024/0202347 A1 · Method and apparatus for power efficient lossless compression and decompression

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0202347 A1
- Document ID: US20240202347A1
- Status: Published application
- Kind: A1
- Application number: 18/067,163
- Filed: 2022-12-16
- Published: 2024-06-20
- Earliest claimed: 2022-12-16
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Farooq HABIB; Chandra Mouli DHANDAPANI; Haoting LUO; Anand Krishnamoorthy IYER
- Web page: https://patentgrep.com/patent/US20240202347A1

## CPC

- G06F 21/602: {Providing cryptographic facilities or services}
- H03M 7/4006: {Conversion to or from arithmetic code}
- G06F 17/145: {Square transforms, e.g. Hadamard, Walsh, Haar, Hough, Slant transforms}
- H03M 7/6047: {Power optimization with respect to the encoder, decoder, storage or transmission}
- H04L 9/085: {Secret sharing or secret splitting, e.g. threshold schemes}
- H03M 7/6029: {Pipelining}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Mechanisms are disclosed for performing efficient lossless encryption and decryption to reduce power consumption and improve the efficiency of processing streams of digital data. An input data stream associated with a stream of input data is received. A discrete wavelet transform is applied to a first serial input data value in the input data stream. Distributed components of the first serial input data value are distributed by computing a cumulative probability that the first serial input data value is less than or equal to a power-of-two range value associated with a power-of-two probability distribution function. An entropy encoded encryption value is computed based on a range variant asymmetrical numeral system based on the power-of-two probability distribution function. The entropy encoded encryption value is unloaded based on one or more computed next states. Compressed serial output data streams are compressed based on the unloaded entropy encoded encryption value.

## Claims

### Claim 1

A computer-implemented method for performing efficient lossless encryption and decryption to reduce power consumption and improve the efficiency of processing streams of digital data, the method comprising:
receiving an input data stream associated with a stream of input data having an input data width;
applying a discrete wavelet transform to a first serial input data value in the input data stream;
distributing one or more distributed components of the first serial input data value by computing a cumulative probability that the first serial input data value is less than or equal to a power-of-two range value associated with a power-of-two probability distribution function;
computing an entropy encoded encryption value based on a range variant asymmetrical numeral system based on the power-of-two probability distribution function;
unloading the entropy encoded encryption value based on one or more computed next states; and
packing one or more compressed serial output data streams based on the unloaded entropy encoded encryption value.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the input data stream comprises training data to train a machine learning model.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the input data width is 128 bytes.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the discrete wavelet transform is a Haar transform.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the cumulative probability is computed according to a range of values corresponding to the power-of-two probability distribution function.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more computed next states is computed based on a current state and the entropy encoded encryption value corresponding to an entropy encoded encryption value of a parallel bank in a set of parallel banks having a number of banks.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, serializing output from the set of parallel banks.

### Claim 8

A circuit for performing efficient lossless encryption and decryption to reduce power consumption and improve the efficiency of processing streams of digital data, the circuit comprising:
at least one input circuit for receiving an input data stream associated with a stream of input data having an input data width;
at least one preprocessing circuit for applying a discrete wavelet transform to a first serial input data value in the input data stream;
at least one multiplexer circuit distributing one or more distributed components of the first serial input data value by computing a cumulative probability that the first serial input data value is less than or equal to a power-of-two range value associated with a power-of-two probability distribution function,
wherein an entropy encoded encryption value is computed based on a range variant asymmetrical numeral system based on the power-of-two probability distribution function;
at least one unloading circuit for unloading the entropy encoded encryption value based on one or more computed next states; and
a parallel-to-serial converter for packing one or more compressed serial output data streams based on the unloaded entropy encoded encryption value.

### Claim 9 (depends on 8)

The circuit of claim 8, wherein the input data stream comprises training data to train a machine learning model.

### Claim 10 (depends on 8)

The circuit of claim 8, wherein the input data width is 128 bytes.

### Claim 11 (depends on 8)

The circuit of claim 8, wherein the discrete wavelet transform is a Haar transform.

### Claim 12 (depends on 8)

The circuit of claim 8, wherein the cumulative probability is computed according to a range of values corresponding to the power-of-two probability distribution function.

### Claim 13 (depends on 8)

The circuit of claim 8, wherein the one or more computed next states is computed based on a current state and the entropy encoded encryption value corresponding to an entropy encoded encryption value of a parallel bank in a set of parallel banks having a number of banks.

### Claim 14 (depends on 13)

The circuit of claim 13, wherein the at least one unloading circuit further comprises logic to serialize output from the set of parallel banks.

### Claim 15

A non-transitory machine-readable medium storing a program executable by a computer for storing and retrieving data, the program comprising sets of instructions for:
receiving an input data stream associated with a stream of input data having an input data width;
applying a discrete wavelet transform to a first serial input data value in the input data stream;
distributing one or more distributed components of the first serial input data value by computing a cumulative probability that the first serial input data value is less than or equal to a power-of-two range value associated with a power-of-two probability distribution function;
computing an entropy encoded encryption value based on a range variant asymmetrical numeral system based on the power-of-two probability distribution function;
unloading the entropy encoded encryption value based on one or more computed next states; and
packing one or more compressed serial output data streams based on the unloaded entropy encoded encryption value.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the input data stream comprises training data to train a machine learning model.

### Claim 17 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the input data width is 128 bytes.

### Claim 18 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the discrete wavelet transform is a Haar transform.

### Claim 19 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the cumulative probability is computed according to a range of values corresponding to the power-of-two probability distribution function.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the one or more computed next states is computed based on a current state and the entropy encoded encryption value corresponding to an entropy encoded encryption value of a parallel bank in a set of parallel banks having a number of banks.
