# US 2017/0293659 A1 · Method, System and Program Product for Mask-Based Compression of a Sparse Matrix

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

- Number: US 2017/0293659 A1
- Document ID: US20170293659A1
- Status: Published application
- Kind: A1
- Application number: 15/485,036
- Filed: 2017-04-11
- Published: 2017-10-12
- Earliest claimed: 2016-04-12
- Inventors: Hsilin Huang
- Web page: https://patentgrep.com/patent/US20170293659A1

## CPC

- G06F 16/24561: {Intermediate data storage techniques for performance improvement}
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M 7/3066: {by means of a mask or a bit-map}
- H03M 7/3082: {Vector coding (for television signals, see H04N19/94)}
- H03M 7/70: {Type of the data to be coded, other than image and sound}
- 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)

## Abstract

A method, system and program product includes examining elements of a first matrix in a sequential fashion. Values of the examined elements are determined. A corresponding bit of a first mask is set to a first value if a determined value is zero. A corresponding bit of a first mask is set to a second value if a determined value is non-zero. The non-zero values are packed in a first vector, wherein bits of at least the first mask determine operations on packed values.

## Claims

### Claim 1

A method comprising the steps of:
examining elements of a first matrix in a sequential fashion;
determining values of the examined elements;
setting a corresponding bit of a first mask to a first value if a determined value is zero;
setting a corresponding bit of a first mask to a second value if a determined value is non-zero; and
packing the non-zero values in a first vector, wherein bits of at least the first mask determine operations on packed values.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising generating at least a second mask, wherein bits of at least the second mask determine operations on packed values.

### Claim 3 (depends on 1)

The method as recited in claim 1, in which the first mask and packed values are separated in different formats and surfaces.

### Claim 4 (depends on 1)

The method as recited in claim 1, in which the surfaces at least comprises a mask surface and a packed values surface.

### Claim 5 (depends on 1)

The method as recited in claim 1, in which the surfaces further comprises a block length surface.

### Claim 6 (depends on 1)

The method as recited in claim 1, in which operations on packed values are skipped at least based in part on values of the first mask.

### Claim 7 (depends on 1)

The method as recited in claim 1, in which operations on packed values are skipped at least based in part on values of the first mask and nodes in a neural net dropout.

### Claim 8 (depends on 2)

The method as recited in claim 2, in which operations on packed values are skipped at least based in part on values of the first mask and the second mask.

### Claim 9 (depends on 2)

The method as recited in claim 2, in which said generating further comprises:
evaluating bits in the first mask;
storing results of said evaluating in a second matrix;
examining elements of the second matrix in a sequential fashion;
determining values of the examined elements;
setting a corresponding bit of a second mask to a third value if a determined value is zero;
setting a corresponding bit of a second mask to a fourth value if a determined value is non-zero; and
evaluating bits in the second mask; and
storing results of said evaluating bits in the second mask.

### Claim 10 (depends on 2)

The method as recited in claim 2, in which said generating further comprises:
evaluating bits in the first mask;
packing results of said evaluating bits in the first mask in a second vector;
examining elements of the first mask in a sequential fashion;
determining values of the examined elements of the first mask;
setting a corresponding bit of a second mask to a third value if a determined value of the examined elements of the first mask is zero;
setting a corresponding bit of a second mask to a fourth value if a determined value of the examined elements of the first mask is non-zero; and
evaluating bits in the second mask; and
storing results of said evaluating bits in the second mask.

### Claim 11

A system comprising:
a module for examining elements of a first matrix in a sequential fashion;
determining values of the examined elements;
setting a corresponding bit of a first mask to a first value if a determined value is zero;
setting a corresponding bit of a first mask to a second value if a determined value is non-zero; and
packing the non-zero values in a first vector; and
a module for skipping operations on packed values at least based in part on values of the first mask.

### Claim 12

A non-transitory computer-readable storage medium with an executable program stored thereon, wherein the program instructs one or more processors to perform the following steps:
examining elements of a first matrix in a sequential fashion;
determining values of the examined elements;
setting a corresponding bit of a first mask to a first value if a determined value is zero;
setting a corresponding bit of a first mask to a second value if a determined value is non-zero; and
packing the non-zero values in a first vector, wherein bits of at least the first mask determine operations on packed values.

### Claim 13 (depends on 12)

The program instructing the one or more processors as recited in claim 12, further comprising generating at least a second mask, wherein bits of at least the second mask determine operations on packed values.

### Claim 14 (depends on 12)

The program instructing the one or more processors as recited in claim 12, in which the first mask and packed values are separated in different formats and surfaces.

### Claim 15 (depends on 12)

The program instructing the one or more processors as recited in claim 12, in which the surfaces at least comprises a mask surface and a packed values surface.

### Claim 16 (depends on 12)

The program instructing the one or more processors as recited in claim 12, in which the surfaces further comprises a block length surface.

### Claim 17 (depends on 12)

The program instructing the one or more processors as recited in claim 12, in which operations on packed values are skipped at least based in part on values of the first mask.

### Claim 18 (depends on 13)

The program instructing the one or more processors as recited in claim 13, in which operations on packed values are skipped at least based in part on values of the first mask and the second mask.

### Claim 19 (depends on 13)

The program instructing the one or more processors as recited in claim 13, in which said generating further comprises:
evaluating bits in the first mask;
storing results of said evaluating in a second matrix;
examining elements of the second matrix in a sequential fashion;
determining values of the examined elements;
setting a corresponding bit of a second mask to a third value if a determined value is zero;
setting a corresponding bit of a second mask to a fourth value if a determined value is non-zero; and
evaluating bits in the second mask; and
storing results of said evaluating bits in the second mask.

### Claim 20 (depends on 13)

The program instructing the one or more processors as recited in claim 13, in which said generating further comprises:
evaluating bits in the first mask;
packing results of said evaluating bits in the first mask in a second vector;
examining elements of the first mask in a sequential fashion;
determining values of the examined elements of the first mask;
setting a corresponding bit of a second mask to a third value if a determined value of the examined elements of the first mask is zero;
setting a corresponding bit of a second mask to a fourth value if a determined value of the examined elements of the first mask is non-zero; and
evaluating bits in the second mask; and
storing results of said evaluating bits in the second mask.
