Compression of machine-learned models by vector quantization
Abstract
A computing system can include one or more processors and one or more computer-readable media storing instructions that, when executed by the one or more processors, cause the computing system to perform operations including obtaining model structure data indicative of a plurality of parameters of a machine-learned model; determining a codebook comprising a plurality of centroids, the plurality of centroids having a respective index of a plurality of indices indicative of an ordering of the codebook; determining a plurality of codes respective to the plurality of parameters, the plurality of codes respectively comprising a code index of the plurality of indices corresponding to a closest centroid of the plurality of centroids to a respective parameter of the plurality of parameters; and providing encoded data as an encoded representation of the plurality of parameters of the machine-learned model, the encoded data comprising the codebook and the plurality of codes.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 1.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A computing system comprising: one or more processors; and one or more computer-readable medium storing instructions that when executed by the one or more processors cause the computing system to perform operations, the operations comprising: obtaining model structure data indicative of a plurality of parameters of a machine-learned model; determining a codebook comprising a plurality of centroids, the plurality of centroids having a respective index of a plurality of indices indicative of an ordering of the codebook; determining a plurality of codes respective to the plurality of parameters, the plurality of codes respectively comprising a code index of the plurality of indices corresponding to a closest centroid of the plurality of centroids to a respective parameter of the plurality of parameters; and deploying the codebook and the plurality of codes as a compressed representation of the machine-learned model to an autonomous vehicle; wherein determining the codebook comprising the
- Claim 2Depends on #1
The computing system of claim 1, wherein the plurality of parameters comprises a plurality of weights of at least one layer of the machine-learned model, the plurality of weights comprising a weight matrix of the at least one layer, wherein a length of the codebook is less than a number of plurality of weights of the weight matrix.
- Claim 3Depends on #2
The computing system of claim 2, wherein the weight matrix comprises a plurality of subvectors, each subvector of the plurality of subvectors comprising a block of contiguous scalars in a column of the weight matrix, and wherein the plurality of codes are respective to the plurality of subvectors.
- Claim 4Depends on #2
The computing system of claim 2, wherein the at least one layer comprises a fully-connected (FC) layer, and wherein the plurality of weights comprises weights of connections from a prior layer to the fully-connected layer.
- Claim 5Depends on #2
The computing system of claim 2, wherein the at least one layer comprises a convolutional layer, wherein the plurality of weights comprises weights of a convolutional kernel, and wherein the weight matrix is reshaped into a two-dimensional matrix.
- Claim 6Depends on #2
The computing system of claim 2, wherein a set comprising the plurality of centroids of the codebook is smaller than a set comprising the plurality of parameters of the machine-learned model.
- Claim 7Depends on #2
The computing system of claim 2, wherein the weight matrix is permuted by a row permutation matrix, and wherein the operations comprise determining the row permutation matrix such that a determinant of a covariance of the plurality of weights is optimized.
- Claim 8Depends on #7
The computing system of claim 7, wherein determining the row permutation matrix comprises: obtaining an initial row permutation matrix that optimizes a product of diagonal elements of the initial row permutational matrix, wherein obtaining the initial row permutation matrix comprises: determining a plurality of buckets of row indices; determining a variance of each row of the weight matrix; assigning each row index of the plurality of buckets of row indices to a non-full bucket that results in a lowest variance of the plurality of buckets; and interlacing rows from the plurality of buckets such that rows from a same bucket are placed a number of rows apart; and iteratively searching a plurality of candidate permutations of the initial row permutation matrix to select the row permutation matrix as a selected candidate permutation of the plurality of candidate permutations based at least in part on a determinant of a covariance of the selected candidate permutation.
Technical Overview & Description
RELATED APPLICATION The present application is based on and claims the benefit of U.S. Provisional Patent Application No. 63/058,041 having a filing date of Jul. 29, 2020, which is incorporated by reference herein. BACKGROUND The present disclosure relates generally to machine-learned modeling techniques. In particular, the present disclosure relates to machine-learned model compression techniques that can be used with robotic platforms, for example, autonomous vehicles. Robots, including autonomous vehicles, can receive data that is used to perceive an environment through which the robot can travel. Robots can rely on machine-learned models to detect objects within an environment. The effective operation of a robot can depend on accurate and efficient object detection provided by the machine-learned models. Various machine-learned compression and training techniques can be applied to improve such object detection. SUMMARY Aspects and advantages of embodiments of the present disclosure will be set forth in part in the following description, or may be learned from the description, or may be learned through practice of the embodiments. One example aspect of the present disclosure is directed to a computing system for compression of machine-learned models by vector quantization. The computing system can include one or more processors and one or more computer-readable media storing instructions that, when executed by the one or more processors, cause the computing system to perform operations including obtaining model structure data indicative of a plurality of parameters of a machine-learned model; determining a codebook including a plurality of centroids, the plurality of centroids having a respective index of a plurality of indices indicative of an ordering of the codebook; determining a plurality of codes respective to the plurality of parameters, the plurality of codes respectively including a code index of the plurality of indices corresponding to a closest centro
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,718,107 B2 | Method and apparatus with neural network processing | 2026 | 0 |
References Cited — Backward Prior Art (1)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Cheng et al,
- “
- A Survey on Model Compression and Acceleration for Deep Neural Networks
- ”
- , arXiv:1710.09282v9, Jun. 14, 2020, 10 pages.
- Courbariaux et al.,
- “
- Binarized Neural Networks: Training Deep Neural Networks with Weights and Activations Constrained to +1 or
- −
- 1