Neural network weight encoding
Abstract
According to an aspect, a neural network circuit for decoding weights of a neural network includes a weight memory configured to store encoded weights for the neural network, where the encoded weights includes an index weight word, and a decompression logic circuit configured to retrieve the encoded weights from the weight memory, decode the encoded weights using the index weight word to obtain a sequence of one or more non-pruned weight words and one or more pruned weight words, and provide the sequence of the non-pruned weight words and the pruned weight words to a plurality of input-weight multipliers.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 1.
Claims (8)
- Claim 1Independent Claim
A neural network circuit for decoding weights of a neural network, the neural network circuit comprising: a weight memory configured to store encoded weights for the neural network, the encoded weights including an index weight word and a set of non-zero-value weight words; and a weight decoder configured to retrieve the encoded weights from the weight memory, decode the encoded weights using the index weight word to generate decoded weights, and provide the decoded weights to a plurality of input-weight multipliers, the decoded weights having one or more zero-value weight words within the set of non-zero-value weight words, the weight decoder including: a plurality of shifters, including a first shifter and a second shifter, configured to execute a shift operation on the set of non-zero-value weight words based on a respective bit value of the index weight word, a number of the plurality of shifters corresponding to a number of non-zero-value weight words in the set; and a plurality o
- Claim 2Depends on #1
The neural network circuit of claim 1, wherein, in response to a bit value having a first bit value, the first shifter is configured to shift the set of non-zero-value weight words, wherein, in response to the bit value having a second bit value, the first shifter is configured to not shift the set of non-zero-value weight words.
- Claim 3Depends on #1
The neural network circuit of claim 1, wherein the weight decoder is configured to decode the encoded weights within a single clock cycle.
- Claim 4Depends on #1
The neural network circuit of claim 1, wherein the weight decoder is a first weight decoder configured to decode a first portion of the encoded weights, the neural network circuit further comprising: a second weight decoder configured to decode a second portion of the encoded weights; and a control logic circuit configured to control the first weight decoder and the second weight decoder.
- Claim 5Depends on #4
The neural network circuit of claim 4, wherein the first weight decoder is configured to receive a signal, from the control logic circuit, indicating a number of available weight words stored in a weight word buffer, the first weight decoder configured to determine a number of bits having a first bit value in the index weight word, and decode the first portion of the encoded weights in response to the number of available weight words stored in the weight word buffer being equal to or greater than the number of bits having the first bit value.
- Claim 6Independent Claim
A device comprising: a neural network configured to receive a set of inputs and generate a set of outputs; a weight memory configured to store encoded weights for the neural network, the encoded weights including an index weight word and a set of non-zero-value weight words; and an accelerator configured to execute the neural network, the accelerator including: a weight decoder including: an index word decoder configured to receive the index weight word and generate control signals based on bit values of the index weight word; a first plurality of shifters, including a first shifter and a second shifter, connected to the index word decoder and configured to receive the set of non-zero-value weight words and to execute a shift operation on the set of non-zero-value weight words based on a respective control signal, a number of the first plurality of shifters corresponding to a number of non-zero-value weight words in the set; and a plurality of digital logic gates, including a first dig
- Claim 7Depends on #6
The device of claim 6, wherein the weight decoder is a first weight decoder configured to decode a first portion of the encoded weights, the index weight word being a first index weight word, the accelerator further including: a weight word buffer configured to temporarily store the encoded weights; and a second weight decoder configured to decode a second portion of the encoded weights, at least partially, in parallel with the first weight decoder.
- Claim 8Depends on #6
The device of claim 6, wherein each bit value in the index weight word has a first bit value or a second bit value, the first bit value indicating an inclusion of a zero-value weight word in the decoded weights, the second bit value indicating an inclusion of a non-zero-value weight word in the decoded weights.
Technical Overview & Description
FIELD OF THE DISCLOSURE The present disclosure relates to neural network weight encoding. BACKGROUND Neural networks may be used for signal processing. A neural network includes a number of layers, where each layer has a number of neurons. Between each layer, the neurons are associated with weight factors. Since the number of weights is the product of the number of neurons in both layers, the amount of weights can be relatively large (thereby increasing the amount of memory to store these weights) and the amount of multiplications can be relatively large (thereby increasing the amount of processing power to perform the multiplications). SUMMARY According to an aspect, a neural network circuit for decoding weights of a neural network includes a weight memory configured to store encoded weights for the neural network, where the encoded weights includes an index weight word, and a decompression logic circuit configured to retrieve the encoded weights from the weight memory, decode the encoded weights using the index weight word to obtain a sequence of one or more non-pruned weight words and one or more pruned weight words, and provide the sequence of the non-pruned weight words and the pruned weight words to a plurality of input-weight multipliers. In some examples, the pruned weight words include zero-value weight words, and the non-pruned weight words include non-zero-value weight words. According to an aspect, the neural network circuit may include one or more of the following features (or any combination thereof). The index weight word includes a plurality of bits, where each bit has a first bit value or a second bit value, the first bit value indicates a pruned weight word in the sequence, and the second bit value indicates a non-pruned weight word in the sequence. The decompression logic circuit is configured to decode the encoded weights within a single clock cycle. The decompression logic circuit includes a weight word decoder, where the weight word decoder inc
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,437,183 B2 | Subtask storage for streaming convolutions in neural network processor | 2025 | 0 |
References Cited — Backward Prior Art (17)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Han et al. (
- “
- A low-power deep neural network online learning processor for real-time object tracking application.
- ”
- IEEE Transactions on Circuits and Systems-I: Regular Papers, vol. 66, No. 5, May 2019 (Year: 2019).
- Roohi et al. (
- “
- Processing-in-memory acceleration of convolutional neural networks for energy-effciency, and power-intermittency resilience.
- ”
- 20th International Symposium on Quality Electronic Design (ISQED). IEEE, 2019 (Year: 2019).