Devices, systems, and methods for accelerating siamese neural networks
Abstract
A hardware-accelerated siamese neural network device includes a first hardware-accelerated convolutional neural network (CNN) circuit configured to apply a certain weight to a first input at a specific moment of an operation. The hardware-accelerated siamese neural network device also includes a second hardware-accelerated CNN circuit configured to apply the certain weight to a second input at the specific moment of the operation. In addition, the hardware-accelerated siamese neural network device includes a classifier circuit configured to generate a score that represents a degree of similarity between the first input and the second input.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (18 — 3 Independent, 15 Dependent)
- Claim 1Independent Claim
A hardware-accelerated siamese neural network device comprising: a systolic array including a plurality of data processing units (DPUs) configured to process a first input and a second input in parallel, wherein the plurality of DPUs includes (1) a first hardware-accelerated convolutional neural network (CNN) circuit configured to apply a weight to a first value derived from the first input, and (2) a second hardware-accelerated CNN circuit configured to apply the weight to a second value derived from the second input, wherein the weight is applied to the first value and the second value simultaneously; and a classifier circuit configured to generate a score that represents a degree of similarity between the first input and the second input.
- Claim 2Depends on #1
The hardware-accelerated siamese neural network device of claim 1, further comprising at least one application specific integrated circuit (ASIC) that includes the systolic array and the classifier circuit.
- Claim 3Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein the DPUs included in the systolic array are communicatively coupled to one another via a plurality of data lanes that facilitate passing the first value and the second value from one of the DPUs to another one of the DPUs simultaneously.
- Claim 4Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein: the first hardware-accelerated CNN circuit is equipped with a first data lane configured to feed the first value to a first DPU included in the systolic array; and the second hardware-accelerated CNN circuit is equipped with a second data lane configured to feed the second value to the first DPU included in the systolic array; and wherein the first value and the second value are fed to the first DPU simultaneously.
- Claim 5Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein each of the DPUs comprises a plurality of processing lanes that facilitate simultaneous processing of the first input and the second input in parallel.
- Claim 6Depends on #5
The hardware-accelerated siamese neural network device of claim 5, wherein each of the processing lanes comprises a multiply circuit and an add circuit.
- Claim 7Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein the DPUs included in the systolic array: are communicatively coupled to one another via a single data lane; and are configured to: vectorize the first input and the second input into a data vector; and pass the data vector from one of the DPUs to another one of the DPUs via the single data lane for subsequent processing.
- Claim 8Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein: the first hardware-accelerated CNN circuit is further configured to output a first fully connected layer representative of a first convolution performed on the first input; the second hardware-accelerated CNN circuit is further configured to output a second fully connected layer representative of a second convolution performed on the second input; and the classifier circuit is further configured to generate the score by comparing the first fully connected layer and the second fully connected layer to one another.
- Claim 9Depends on #8
The hardware-accelerated siamese neural network device of claim 8, wherein the classifier circuit is further configured to compare the first fully connected layer and the second fully connected layer by applying a sigmoid activation function.
- Claim 10Depends on #1
The hardware-accelerated siamese neural network device of claim 1, further comprising a storage device configured to store the first input in a dataset, wherein: the first input includes a reference object known to belong to a certain class of interest; and the second input includes an unknown object.
- Claim 11Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein: the first hardware-accelerated CNN circuit is trained with a set of training data; and the second hardware-accelerated CNN circuit is trained with the set of training data such that both the first hardware-accelerated CNN circuit and the second hardware-accelerated CNN circuit share identical weights upon completion of training.
- Claim 12Depends on #11
The hardware-accelerated siamese neural network device of claim 11, wherein the set of training data comprises: positive data pairs that belong to a single class of interest; and negative data pairs that belong to different classes of interest; and the classifier circuit is trained by randomly sampling examples of the positive data pairs and the negative data pairs.
- Claim 13Depends on #11
The hardware-accelerated siamese neural network device of claim 11, wherein the classifier circuit is trained by processing the set of training data via a loss function comprising at least one of: a triplet loss function; a contrastive loss function; or a binary cross-entropy loss function.
- Claim 14Depends on #11
The hardware-accelerated siamese neural network device of claim 11, wherein the set of training data comprises: an anchor object that belongs to a certain class of interest; a positive object that belongs to the certain class of interest; and a negative object that belongs to a class different from the certain class of interest; and the classifier circuit is trained by deliberately sampling the anchor object, the positive object, and the negative object in connection with the certain class of interest.
- Claim 15Depends on #1
The hardware-accelerated siamese neural network device of claim 1, wherein the classifier circuit is further configured to: classify the second input based at least in part on the score; and provide a classification of the second input to a computing circuit configured to perform at least one action in response to the classification.
- Claim 16Independent Claim
A system comprising: a storage device configured to store reference data; and a hardware-accelerated siamese neural network communicatively coupled to the storage device, the hardware-accelerated siamese neural network comprising: a systolic array including a plurality of data processing units (DPUs) configured to process a first input and a second input in parallel, wherein the plurality of DPUs includes (1) a first hardware-accelerated convolutional neural network (CNN) circuit configured to apply a weight to a first value derived from the first input, and (2) a second hardware-accelerated CNN circuit configured to apply the weight to a second value derived from the second input comprising at least a portion of the reference data, wherein the weight is applied to the first value and the second value simultaneously; and a classifier circuit configured to generate a score that represents a degree of similarity between the first input and the second input.
- Claim 17Depends on #16
The system of claim 16, further comprising at least one application specific integrated circuit (ASIC) that includes the systolic array and the classifier circuit.
- Claim 18Independent Claim
A method comprising: within a systolic array including a plurality of data processing units (DPUs) configured to process a first input and a second input in parallel, (1) configuring a first hardware-accelerated convolutional neural network (CNN) circuit to apply a weight to a first value derived from the first input, and (2) configuring a second hardware-accelerated CNN circuit to apply the weight to a second value derived from the second input, wherein the weight is applied to the first value and the second value simultaneously; and communicatively coupling the first hardware-accelerated CNN circuit and the second hardware-accelerated CNN circuit to a classifier circuit configured to generate a score that represents a degree of similarity between the first input and the second input.
Technical Overview & Description
BACKGROUND Siamese neural networks are often used to detect specific features, objects, patterns, and/or configurations in images. Unfortunately, some siamese neural networks have shortcomings and/or deficiencies that impair the speed, efficiency, and/or performance of those siamese neural networks. The instant disclosure, therefore, identifies and addresses a need for additional and improved devices, systems, and methods for accelerating siamese neural networks. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings illustrate number of exemplary implementations and are a part of the specification. Together with the following description, these drawings demonstrate and explain various principles of the instant disclosure. FIG. 1 is a block diagram of an exemplary hardware-accelerated siamese neural network device according to one or more implementations of this disclosure. FIG. 2 is a block diagram of an exemplary implementation of an analytics flow for a hardware-accelerated siamese neural network device according to one or more variations of this disclosure. FIG. 3 is a block diagram of an exemplary data processing unit implemented in a hardware-accelerated siamese neural network device according to one or more variations of this disclosure. FIG. 4 is a block diagram of an exemplary implementation of an analytics flow for a hardware-accelerated siamese neural network device according to one or more variations of this disclosure, FIG. 5 is a block diagram of an exemplary implementation of a computing device that includes a hardware-accelerated siamese neural network device according to one or more embodiments of this disclosure. FIG. 6 is a flowchart of an exemplary method for accelerating siamese neural networks according to one or more implementations of this disclosure. Throughout the drawings, identical reference characters and descriptions indicate similar, but not necessarily identical, elements. While the exemplary implementations described herein are
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
Non-Patent Literature (10)
- Lungu, Iulia Alexandra, et al.
- “
- Siamese networks for few-shot learning on edge embedded devices.
- ”
- IEEE Journal on Emerging and Selected Topics in Circuits and Systems 10.4 (2020): 488-497. (Year: 2020).
- Wang, Xingbin, et al.
- “
- SNA: A Siamese Network Accelerator to Exploit the Model-Level Parallelism of Hybrid Network Structure.
- ”
- 2020 (Year: 2020).