# US 2023/0274135 A1 · Method, System, and Computer Program Product for Embedding Compression and Regularization

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

- Number: US 2023/0274135 A1
- Document ID: US20230274135A1
- Status: Published application
- Kind: A1
- Application number: 18/027,028
- Filed: 2022-10-21
- Published: 2023-08-31
- Earliest claimed: 2021-10-21
- Assignees: Visa International Service Association
- Applicants: Visa International Service Association
- Inventors: Haoyu Li; Junpeng Wang; Liang Wang; Yan Zheng; Wei Zhang
- Web page: https://patentgrep.com/patent/US20230274135A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method, system, and computer program product is provided for embedding compression and reconstruction. The method includes receiving embedding vector data comprising a plurality of embedding vectors. A beta-variational autoencoder is trained based on the embedding vector data and a loss equation. The method includes determining a respective entropy of a respective mean and a respective variance of each respective dimension of a plurality of dimensions. A first subset of the plurality of dimensions is determined based on the respective entropy of the respective mean and the respective variance for each respective dimension of the plurality of dimensions. A second subset of the plurality of dimensions is discarded based on the respective entropy of the respective mean and the respective variance for each respective dimension of the plurality of dimensions. The method includes generating a compressed representation of the embedding vector data based on the first subset of dimensions.

## Claims

### Claim 1

A computer-implemented method for generating a compressed representation of embedding vector data, comprising:
receiving, with at least one processor, the embedding vector data comprising a plurality of embedding vectors;
training, with at least one processor, a beta-variational autoencoder based on the embedding vector data and a loss equation, the beta-variational autoencoder comprising an encoder network, a latent layer, and a decoder network, the loss equation comprising a first term associated with reconstruction of an input by the beta-variational autoencoder, a second term associated with regularization of a latent space of the latent layer, and a hyperparameter weight associated with a ratio of the first term and the second term, wherein the latent space has a plurality of dimensions;
determining, with at least one processor, a respective mean of each respective dimension of the plurality of dimensions;
determining, with at least one processor, a respective variance of each respective dimension of the plurality of dimensions;
determining, with at least one processor, a first subset of the plurality of dimensions based on the respective mean and the respective variance for each respective dimension of the plurality of dimensions;
discarding, with at least one processor, a second subset of the plurality of dimensions based on the respective mean and the respective variance of each respective dimension of the plurality of dimensions; and
generating, with at least one processor, the compressed representation of the embedding vector data based on the first subset of dimensions.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein determining the respective mean of each respective dimension of the plurality of dimensions comprises:
determining a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein training the beta-variational autoencoder comprises:
iteratively adjusting the hyperparameter weight and repeating the training, the determining of the respective entropy of the respective mean, the determining of the respective variance, the determining of the first subset, the discarding of the second subset, and the generating of the compressed representation.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein determining the respective mean of each respective dimension of the plurality of dimensions comprises:
determining a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein the computer-implemented method further comprises:
determining whether each respective dimension of the plurality of dimensions comprises a useful dimension or a deprecated dimension based on the respective mean and the respective variance for the respective dimension;
wherein the respective entropy of the respective mean for each useful dimension is higher than a first threshold and the respective variance of each useful dimension is lower than a second threshold, and wherein the respective entropy of the respective mean for each deprecated dimension is lower than the first threshold and the respective variance of each deprecated dimension is higher than the second threshold.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the first subset of the plurality of dimensions comprises each useful dimension, and wherein the second subset of the plurality of dimensions comprises each deprecated dimension.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein determining the respective mean of each respective dimension of the plurality of dimensions comprises:
determining, with at least one processor, a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein determining the first subset of the plurality of dimensions comprises:
determining, with at least one processor, the first subset of the plurality of dimensions based on the respective entropy of the respective mean and the respective variance for each respective dimension of the plurality of dimensions.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein discarding the second subset of the plurality of dimensions comprises:
discarding the second subset of the plurality of dimensions based on the respective entropy of the respective mean and the respective variance of each respective dimension of the plurality of dimensions.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the loss equation is:
ℒ
=
∑
i
=
1
n
(
x
i
-
x
^
i
)
2
+
β
⁢
∑
i
=
1
m
D
KL
(
𝒩
⁡
(
μ
i
,
σ
i
2
)
⁢

𝒩
⁡
(
0
,
1
)
)
;
wherein the first term associated with reconstruction of an input by the beta-variational autoencoder is:
∑
i
=
1
n
(
x
i
-
x
^
i
)
2
;
wherein the second term associated with regularization of the latent space of the latent layer is:
∑
i
=
1
m
D
KL
(
𝒩
⁡
(
μ
i
,
σ
i
2
)
⁢

𝒩
⁡
(
0
,
1
)
)
;
and
wherein the hyperparameter weight associated with the ratio of the first term and the second term is β.

### Claim 8

A system for generating a compressed representation of embedding vector data comprising at least one processor programmed or configured to:
receive the embedding vector data comprising a plurality of embedding vectors;
train a beta-variational autoencoder based on the embedding vector data and a loss equation, the beta-variational autoencoder comprising an encoder network, a latent layer, and a decoder network, the loss equation comprising a first term associated with reconstruction of an input by the beta-variational autoencoder, a second term associated with regularization of a latent space of the latent layer, and a hyperparameter weight associated with a ratio of the first term and the second term, wherein the latent space has a plurality of dimensions;
determine a respective mean of each respective dimension of the plurality of dimensions;
determine a respective variance of each respective dimension of the plurality of dimensions;
determine a first subset of the plurality of dimensions based on the respective mean and the respective variance for each respective dimension of the plurality of dimensions;
discard a second subset of the plurality of dimensions based on the respective mean and the respective variance of each respective dimension of the plurality of dimensions; and
generate the compressed representation of the embedding vector data based on the first subset of dimensions.

### Claim 9 (depends on 8)

The system of claim 8, wherein, when determining the respective mean of each respective dimension of the plurality of dimensions, the at least one processor is programmed or configured to:
determine a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein, when training the beta-variational autoencoder, the at least one processor is programmed or configured to:
iteratively adjust the hyperparameter weight and repeat the training, the determining of the respective entropy of the respective mean, the determining of the respective variance, the determining of the first subset, the discarding of the second subset, and the generating of the compressed representation.

### Claim 10 (depends on 8)

The system of claim 8, wherein, when determining the respective mean of each respective dimension of the plurality of dimensions, the at least one processor is programmed or configured to:
determine a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein the at least one processor is further programmed or configured to:
determine whether each respective dimension of the plurality of dimensions comprises a useful dimension or a deprecated dimension based on the respective mean and the respective variance for the respective dimension;
wherein the respective entropy of the respective mean for each useful dimension is higher than a first threshold and the respective variance of each useful dimension is lower than a second threshold, and wherein the respective entropy of the respective mean for each deprecated dimension is lower than the first threshold and the respective variance of each deprecated dimension is higher than the second threshold.

### Claim 11 (depends on 10)

The system of claim 10, wherein the first subset of the plurality of dimensions comprises each useful dimension, and wherein the second subset of the plurality of dimensions comprises each deprecated dimension.

### Claim 12 (depends on 8)

The system of claim 8, wherein, when determining the respective mean of each respective dimension of the plurality of dimensions, the at least one processor is programmed or configured to:
determine a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein, when determining the first subset of the plurality of dimensions, the at least one processor is programmed or configured to:
determine the first subset of the plurality of dimensions based on the respective entropy of the respective mean and the respective variance for each respective dimension of the plurality of dimensions.

### Claim 13 (depends on 12)

The system of claim 12, wherein, when discarding the second subset of the plurality of dimensions, the at least one processor is programmed or configured to:
discard the second subset of the plurality of dimensions based on the respective entropy of the respective mean and the respective variance of each respective dimension of the plurality of dimensions.

### Claim 14 (depends on 8)

The system of claim 8, wherein the loss equation is:
ℒ
=
∑
i
=
1
n
(
x
i
-
x
^
i
)
2
+
β
⁢
∑
i
=
1
m
D
KL
(
𝒩
⁡
(
μ
i
,
σ
i
2
)
⁢

𝒩
⁡
(
0
,
1
)
)
wherein the first term associated with reconstruction of an input by the beta-variational autoencoder is:
∑
i
=
1
n
(
x
i
-
x
^
i
)
2
;
wherein the second term associated with regularization of the latent space of the latent layer is:
∑
i
=
1
m
D
KL
(
𝒩
⁡
(
μ
i
,
σ
i
2
)
⁢

𝒩
⁡
(
0
,
1
)
)
;
and
wherein the hyperparameter weight associated with the ratio of the first term and the second term is β.

### Claim 15

A computer program product for generating a compressed representation of embedding vector data, the computer program product comprising at least one non-transitory computer readable medium including one or more instructions that, when executed by at least one processor, cause the at least one processor to:
receive the embedding vector data comprising a plurality of embedding vectors;
train a beta-variational autoencoder based on the embedding vector data and a loss equation, the beta-variational autoencoder comprising an encoder network, a latent layer, and a decoder network, the loss equation comprising a first term associated with reconstruction of an input by the beta-variational autoencoder, a second term associated with regularization of a latent space of the latent layer, and a hyperparameter weight associated with a ratio of the first term and the second term, wherein the latent space has a plurality of dimensions;
determine a respective mean of each respective dimension of the plurality of dimensions;
determine a respective variance of each respective dimension of the plurality of dimensions;
determine a first subset of the plurality of dimensions based on the respective mean and the respective variance for each respective dimension of the plurality of dimensions;
discard a second subset of the plurality of dimensions based on the respective mean and the respective variance of each respective dimension of the plurality of dimensions; and
generate the compressed representation of the embedding vector data based on the first subset of dimensions.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein, when determining the respective mean of each respective dimension of the plurality of dimensions, the one or more instructions cause the at least one processor to:
determine a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein, when training the beta-variational autoencoder, the one or more instructions further cause the at least one processor to:
iteratively adjust the hyperparameter weight and repeat the training, the determining of the respective entropy of the respective mean, the determining of the respective variance, the determining of the first subset, the discarding of the second subset, and the generating of the compressed representation.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein, when determining the respective mean of each respective dimension of the plurality of dimensions, the one or more instructions cause the at least one processor to:
determine a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein the one or more instructions further cause the at least one processor to:
determine whether each respective dimension of the plurality of dimensions comprises a useful dimension or a deprecated dimension based on the respective mean and the respective variance for the respective dimension;
wherein the respective entropy of the respective mean for each useful dimension is higher than a first threshold and the respective variance of each useful dimension is lower than a second threshold, and wherein the respective entropy of the respective mean for each deprecated dimension is lower than the first threshold and the respective variance of each deprecated dimension is higher than the second threshold.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the first subset of the plurality of dimensions comprises each useful dimension, and wherein the second subset of the plurality of dimensions comprises each deprecated dimension.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein, when determining the respective mean of each respective dimension of the plurality of dimensions, the one or more instructions cause the at least one processor to:
determine a respective entropy of the respective mean of each respective dimension of the plurality of dimensions; and
wherein, when determining the first subset of the plurality of dimensions, the one or more instructions cause the at least one processor to:
determine the first subset of the plurality of dimensions based on the respective entropy of the respective mean and the respective variance for each respective dimension of the plurality of dimensions.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein, when discarding the second subset of the plurality of dimensions, the one or more instructions cause the at least one processor to:
discard the second subset of the plurality of dimensions based on the respective entropy of the respective mean and the respective variance of each respective dimension of the plurality of dimensions,
wherein the loss equation is:
ℒ
=
∑
i
=
1
n
(
x
i
-
x
^
i
)
2
+
β
⁢
∑
i
=
1
m
D
KL
(
𝒩
⁡
(
μ
i
,
σ
i
2
)
⁢

𝒩
⁡
(
0
,
1
)
)
wherein the first term associated with reconstruction of an input by the beta-variational autoencoder is:
∑
i
=
1
n
(
x
i
-
x
^
i
)
2
;
wherein the second term associated with regularization of the latent space of the latent layer is:
∑
i
=
1
m
D
KL
(
𝒩
⁡
(
μ
i
,
σ
i
2
)
⁢

𝒩
⁡
(
0
,
1
)
)
;
and
wherein the hyperparameter weight associated with the ratio of the first term and the second term is β.
