# US 2023/0419088 A1 · Bundling hypervectors

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

- Number: US 2023/0419088 A1
- Document ID: US20230419088A1
- Status: Published application
- Kind: A1
- Application number: 17/809,052
- Filed: 2022-06-27
- Published: 2023-12-28
- Earliest claimed: 2022-06-27
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Michael Andreas Hersche; Abbas Rahimi
- Web page: https://patentgrep.com/patent/US20230419088A1

## CPC

- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/063: using electronic means
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments are disclosed for a method. The method includes bundling a set of M code hypervectors, each of dimension D, where M>1. The bundling includes receiving an M-dimensional vector comprising weights for weighting the set of code hypervectors. The bundling further includes mapping the M-dimensional vector to an S-dimensional vector, sk, such that each element of the S-dimensional vector, sk, indicates one of the set of code hypervectors, where S=D/L and L≥1. Additionally, the bundling includes building a hypervector such that an ith element of the built hypervector is an ith element of the code hypervector indicated in an ith element of the S-dimensional vector, sk.

## Claims

### Claim 1

A system comprising:
a computer processing circuit; and
a computer-readable storage medium storing instructions, which, when executed by the computer processing circuit, are configured to cause the computer processing circuit to perform a method comprising:
bundling a set of M code hypervectors, each of dimension D, where M>1, by:
receiving an M-dimensional vector comprising a plurality of weights for weighting the set of code hypervectors;
mapping the M-dimensional vector to an S-dimensional vector, sk, such that each element of the S-dimensional vector, sk, indicates one of the set of code hypervectors, where S=D/L and L≥1; and
building a hypervector such that an ith element of the built hypervector is an ith element of the code hypervector indicated in an ith element of the S-dimensional vector, sk.

### Claim 2 (depends on 1)

The system of claim 1, wherein the hypervector comprises binary values {0, 1}D, and wherein the hypervector comprises a sparsity smaller than a sparsity threshold, and wherein the sparsity is equal to S/D, and wherein the hypervector comprises a fraction of non-zero values.

### Claim 3 (depends on 2)

The system of claim 2, wherein the sparsity threshold is in a range of: 0.3% to 50%.

### Claim 4 (depends on 1)

The system of claim 1, wherein the S-dimensional vector, sk, is defined as: for every ith element, generating a value v, and determining the ith element with a mapping function:
s
k
(
i
)
=
{
0
⁢
if
⁢
v
≤
∂
0
…
m
⁢
if
∂
m
-
1
<
v
≤
∂
m
where v comprises a randomly generated value or a deterministic value defined as v=i/S, where ∂=cumsum(a)/sum(a) is a step function, where a is the M-dimensional vector, where cumsum(a) returns a vector containing a cumulative sum of a plurality of elements of vector a, and sum(a) returns a sum of elements of vector a, and ∂m refers to an mth element of ∂.

### Claim 5 (depends on 1)

The system of claim 1, the method further comprising repeating the mapping and the building, a p number of times, to generate p built hypervectors, and using the p built hypervectors to determine a hypervector that represents a bundling version of the set of code hypervectors.

### Claim 6 (depends on 1)

The system of claim 1, wherein the bundling is performed for online hyperdimensional learning, wherein the set of code hypervectors comprises an encoded hypervector and a model hypervector, and wherein the M-dimensional vector comprises weights w and 1−w, and wherein the built hypervector is provided as an update of the model hypervector, and w is a scalar.

### Claim 7 (depends on 1)

The system of claim 1, wherein the built hypervector is a vectorized representation of a probability mass function (PMF), and wherein the M-dimensional vector comprises a plurality of values in the PMF, and the set of code hypervectors are basis vectors of a codebook for representing the PMF in a vector space.

### Claim 8

A method comprising:
bundling a set of M code hypervectors, each of dimension D, where M>1, by:
receiving an M-dimensional vector comprising a plurality of weights for weighting the set of code hypervectors;
mapping the M-dimensional vector to an S-dimensional vector, sk, such that each element of the S-dimensional vector, sk, indicates one of the set of code hypervectors, where S=D/L and L≥1; and
building a hypervector such that an ith element of the built hypervector is an ith element of the code hypervector indicated in an ith element of the S-dimensional vector, sk.

### Claim 9 (depends on 8)

The method of claim 8, wherein the hypervector comprises binary values {0, 1}D, and wherein the hypervector comprises a sparsity smaller than a sparsity threshold, and wherein the sparsity is equal to S/D, and wherein the hypervector comprises a fraction of non-zero values.

### Claim 10 (depends on 9)

The method of claim 9, wherein the sparsity threshold is in a range of: 0.3% to 50%.

### Claim 11 (depends on 8)

The method of claim 8, wherein the S-dimensional vector, sk, is defined as: for every ith element, generating a value v, and determining the ith element with a mapping function:
s
k
(
i
)
=
{
0
⁢
if
⁢
v
≤
∂
0
…
m
⁢
if
∂
m
-
1
<
v
≤
∂
m
where v comprises a randomly generated value or a deterministic value defined as v=i/S, where ∂=cumsum(a)/sum(a) is a step function, where a is the M-dimensional vector, where cumsum(a) returns a vector containing a cumulative sum of a plurality of elements of vector a, and sum(a) returns a sum of elements of vector a, and ∂m refers to an mth element of 0.

### Claim 12 (depends on 8)

The method of claim 8, further comprising repeating the mapping and the building a p number of times to generate p built hypervectors, and using the p built hypervectors to determine a hypervector that represents a bundling version of the set of code hypervectors.

### Claim 13 (depends on 8)

The method of claim 8, wherein the bundling is performed for online hyperdimensional learning, wherein the set of code hypervectors comprises an encoded hypervector and a model hypervector, and wherein the M-dimensional vector comprises weights w and 1−w, and wherein the built hypervector is provided as an update of the model hypervector, and w is a scalar.

### Claim 14 (depends on 8)

The method of claim 8, wherein the built hypervector is a vectorized representation of a probability mass function (PMF), and wherein the M-dimensional vector comprises a plurality of values in the PMF, and the set of code hypervectors are basis vectors of a codebook for representing the PMF in a vector space.

### Claim 15

A computer program product including program instructions stored on a computer readable storage medium, the program instructions executable by a processor to cause the processor to perform a method comprising:
bundling a set of M code hypervectors, each of dimension D, where M>1, by:
receiving an M-dimensional vector comprising a plurality of weights for weighting the set of code hypervectors;
mapping the M-dimensional vector to an S-dimensional vector, sk, such that each element of the S-dimensional vector, sk, indicates one of the set of code hypervectors, where S=D/L and L≥1; and
building a hypervector such that an ith element of the built hypervector is an ith element of the code hypervector indicated in an ith element of the S-dimensional vector, sk.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the hypervector comprises binary values {0, 1}D, and wherein the hypervector comprises a sparsity smaller than a sparsity threshold, and wherein the sparsity is equal to S/D, and wherein the hypervector comprises a fraction of non-zero values.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the sparsity threshold is in a range of: 0.3% to 50%.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the S-dimensional vector, sk, is defined as: for every ith element, generating a value v, and determining the ith element with a mapping function:
s
k
(
i
)
=
{
0
⁢
if
⁢
v
≤
∂
0
…
m
⁢
if
∂
m
-
1
<
v
≤
∂
m
where v comprises a randomly generated value or a deterministic value defined as v=i/S, where ∂=cumsum(a)/sum(a) is a step function, where a is the M-dimensional vector, where cumsum(a) returns a vector containing a cumulative sum of a plurality of elements of vector a, and sum(a) returns a sum of elements of vector a, and ∂m refers to an mth element of ∂.

### Claim 19 (depends on 15)

The computer program product of claim 15, the method further comprising repeating the mapping and the building a p number of times to generate p built hypervectors, and using the p built hypervectors to determine a hypervector that represents a bundling version of the set of code hypervectors.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the bundling is performed for online hyperdimensional learning, wherein the set of code hypervectors comprises an encoded hypervector and a model hypervector, and wherein the M-dimensional vector comprises weights w and 1−w, and wherein the built hypervector is provided as an update of the model hypervector, and w is a scalar.
