Implementing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array - Patents.com

By adjusting column thresholds and calculating a conversion bias current reference in compute-in-memory arrays, the XNOR operations are eliminated, reducing transistor count and power consumption in binary neural networks, leading to smaller and more efficient memory implementations.

JP7539971B2Active Publication Date: 2024-08-26QUALCOMM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022514184
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-09
Filing Date
2020-09-08
Publication Date
2024-08-26
Estimated Expiration
2040-09-08

AI Technical Summary

Technical Problem

Conventional compute-in-memory systems for binary neural networks require an XNOR operation in each bit cell, increasing transistor count, cell size, and power consumption, which is undesirable.

Method used

Adjust the activation threshold for each column of a compute-in-memory array based on weight and activation values, and calculate a conversion bias current reference to eliminate the need for XNOR functions in bit cells, thereby reducing transistor count and power consumption.

Benefits of technology

This approach reduces memory size and improves power efficiency in compute-in-memory systems by eliminating XNOR operations, allowing for smaller and more energy-efficient binary neural network implementations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007539971000070
    Figure 0007539971000070
  • Figure 0007539971000064
    Figure 0007539971000064
  • Figure 0007539971000065
    Figure 0007539971000065
Patent Text Reader

Abstract

A method implements an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network. The method includes adjusting activation thresholds generated for each column of the compute-in-memory array based on a function of weight values ​​and activation values. The method also includes calculating a conversion bias current reference based on input values ​​to the compute-in-memory array from an input vector, the compute-in-memory array being programmed with a set of weights. The adjusted activation thresholds and conversion bias current reference are used as thresholds for determining output values ​​of the compute-in-memory array.
Need to check novelty before this filing date? Find Prior Art

Description

Claiming priority

[0001] Claiming priority under 35 U.S.C. § 119

[0001] This patent application claims priority to non-provisional application Ser. No. 16 / 565,308, entitled "PERFORMING XNOR EQUIVALENT OPERATIONS BY ADJUSTING COLUMN THRESHOLDS OF A COMPUTE-IN-MEMORY ARRAY," filed Sep. 9, 2019, assigned to the assignee of the present application, and expressly incorporated herein by reference. [Technical field]

[0002] Aspects of the present disclosure generally relate to implementing XNOR equality operations by adjusting column thresholds of compute-in-memory arrays in artificial neural networks. [Background technology]

[0003]

[0003] Very low bit width neural networks, such as binary neural networks (BNNs), are a powerful new approach in deep neural networking (DNNs). Binary neural networks can significantly reduce data traffic and save power. For example, memory storage for binary neural networks is significantly reduced compared to floating-point / fixed-point precision because both weights and neuron activations are binarized to -1 or +1.

[0004]

[0004] However, digital complementary metal-oxide semiconductor (CMOS) processing uses a [0,1] basis. To perform the binary implementations associated with these binary neural networks, the [-1,+1] basis of the binary network must be converted to a CMOS [0,1] basis. The conversion employs computationally intense exclusive-negative OR (XNOR) operations.

[0005]

[0005] A compute-in-memory system can implement a very low bit-width neural network, such as a binary neural network (BNN). The compute-in-memory system has a memory with some processing capabilities. For example, each intersection of a bit line and a word line represents a filter weight value, which is multiplied by the input activation on the word line to generate a product. The individual products along each bit line are then summed to generate a corresponding output value of an output tensor. This implementation can be viewed as a multiply accumulate (MAC) operation. These MAC operations can convert the [-1, +1] basis of the binary network to a CMOS [0, 1] basis.

[0006]

[0006] Conventionally, transformations in compute-in-memory systems are accomplished by completing an XNOR operation in each bit cell. The results along each bit line are then summed to generate a corresponding output value. Unfortunately, including an XNOR function in each bit cell consumes a large area and increases power consumption.

[0007]

[0007] In conventional implementations, each bit cell includes, in addition to the basic memory functions of read and write, an additional logic function of XNOR between the input and the cell state. As a result of including the XNOR capability, the number of transistors for each cell in a memory (e.g., a static random access memory (SRAM)) increases from six or eight to twelve, which significantly increases the cell size and power consumption. It would be desirable to eliminate the XNOR operation while still being able to convert from a binary neural network [-1, +1] basis to a CMOS [0, 1] basis. Summary of the Invention

[0008]

[0008] In one aspect of the disclosure, an apparatus includes a compute-in-memory array including columns and rows. The compute-in-memory array is configured to adjust an activation threshold generated for each column of the compute-in-memory array based on a function of a weight value and an activation value. The compute-in-memory array is also configured to calculate a conversion bias current reference based on an input value from an input vector to the compute-in-memory array. The compute-in-memory array is programmed with a set of weight values. The adjusted activation threshold and conversion bias current reference are used as thresholds for determining an output value of the compute-in-memory array.

[0009] Another aspect discloses a method for performing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array having rows and columns. The method includes adjusting an activation threshold generated for each column of the compute-in-memory array based on a function of a weight value and an activation value. The method also includes calculating a conversion bias current reference based on an input value from an input vector to the compute-in-memory array. The compute-in-memory array is programmed with a set of weight values. The adjusted activation threshold and conversion bias current reference are used as thresholds for determining an output value of the compute-in-memory array.

[0010] In another aspect, a non-transitory computer-readable medium has non-transitory program code recorded thereon. The non-transitory program code, when executed by a processor(s), causes the processor(s) to adjust an activation threshold generated for each column of a compute-in-memory array having rows and columns based on a function of a weight value and an activation value. The program code also causes the processor(s) to calculate a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array. The compute-in-memory array is programmed with a set of weight values. The adjusted activation threshold and conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array.

[0011] Another aspect discloses an apparatus for performing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array having rows and columns. The apparatus includes means for adjusting activation thresholds generated for each column of the compute-in-memory array based on a function of a weight value and an activation value. The apparatus also includes means for calculating a conversion bias current reference based on an input value from an input vector to the compute-in-memory array. The compute-in-memory array is programmed with a set of weight values. The adjusted activation thresholds and conversion bias current reference are used as thresholds for determining an output value of the compute-in-memory array.

[0012]

[0012] The features and technical advantages of the present disclosure have been outlined rather broadly herein so that the following detailed description may be better understood. Additional features and advantages of the present disclosure are described below. Those skilled in the art will appreciate that the present disclosure may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present disclosure. Those skilled in the art will also appreciate that such equivalent constructions do not depart from the teachings of the present disclosure as set forth in the appended claims. The novel features which are believed to characterize the present disclosure, both as to its organization and method of operation, together with further objects and advantages, will be better understood from a consideration of the following description in conjunction with the accompanying figures. It is to be expressly understood, however, that each of the figures is provided for the purpose of illustration and description only and is not intended to define the limits of the present disclosure.

[0013]

[0013] The features, nature, and advantages of the present disclosure will become more apparent from the detailed description set forth below when taken in conjunction with the drawings in which like reference characters refer to like elements throughout. [Brief description of the drawings]

[0014] [Figure 1]FIG. 1 illustrates an example implementation of designing a neural network using a system-on-chip (SOC) including a general-purpose processor in accordance with some aspects of the present disclosure. [Figure 2A]

[0015] FIG. 1 illustrates a neural network according to an aspect of the present disclosure. [Figure 2B] FIG. 1 illustrates a neural network according to an aspect of the present disclosure. [Figure 2C] FIG. 1 illustrates a neural network according to an aspect of the present disclosure. [Figure 2D]

[0016] FIG. 1 illustrates an example deep convolutional network (DCN), in accordance with aspects of the present disclosure. [Diagram 3]

[0017] FIG. 1 is a block diagram illustrating an example deep convolutional network (DCN), in accordance with aspects of the present disclosure. [Figure 4]

[0018] FIG. 1 illustrates an architecture showing a compute-in-memory (CIM) array for an artificial neural network, according to an aspect of the present disclosure. [Diagram 5]

[0019] FIG. 1 illustrates an architecture for implementing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network, according to aspects of the present disclosure. [Figure 6]

[0020] FIG. 1 illustrates a method for implementing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network, according to aspects of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015]

[0021] The detailed description of the embodiments of the invention described below with reference to the accompanying drawings illustrates various configurations and does not represent the only configurations in which the concepts described herein may be practiced. The detailed description of the embodiments of the invention includes specific details to provide a thorough understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts may be practiced without these specific details. In some instances, well-known structures and components are shown in block diagram form in order to avoid obscuring such concepts.

[0016]

[0022] Based on these teachings, one skilled in the art should appreciate that the scope of the present disclosure covers any aspect of the present disclosure, whether implemented independently of or in combination with other aspects of the present disclosure. For example, an apparatus may be implemented or a method may be practiced using any number of the described aspects. Furthermore, the scope of the present disclosure is intended to cover such an apparatus or method implemented using other structures, functions, or structures and functions in addition to or other than the various aspects of the present disclosure described. It should be understood that any aspect of the present disclosure disclosed may be embodied by one or more elements of a claim.

[0017]

[0023] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any aspect described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects.

[0018]

[0024] Although specific aspects are described herein, many variations and permutations of these aspects fall within the scope of the disclosure. Although some benefits and advantages of the preferred aspects are described, the scope of the disclosure is not limited to any particular benefit, use, or purpose. Rather, the aspects of the disclosure are intended to be broadly applicable to a variety of technologies, system configurations, networks, and protocols, some of which are illustrated by way of example in the figures and the following description of the preferred aspects. The detailed description and drawings are merely illustrative rather than limiting of the disclosure, the scope of which is defined by the appended claims and their equivalents.

[0019]

[0025] Compute-in-memory (CIM) is a method of implementing multiply and accumulate (MAC) operations in a memory array. Compute-in-memory can improve parallelism in a memory array by activating multiple rows and using analog column currents to perform multiplication and addition operations. For example, SRAM bit cells can be customized to enable XNOR and bit-counting operations for binary neural networks.

[0020]

[0026] Traditionally, compute-in-memory binary neural network implementations are accomplished by completing an XNOR operation in each bit cell and adding the results for each bit cell. Adding an XNOR function in each bit cell increases the layout area and increases power consumption. For example, the number of transistors in each cell in a memory (e.g., SRAM) increases from six or eight to twelve.

[0021]

[0027] Aspects of the present disclosure are directed to implementing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network (e.g., a binary neural network). In one aspect, an activation threshold for each column of the memory array is adjusted based on a function of a weight value and an activation value. A conversion bias current reference is calculated based on an input value from an input vector.

[0022]

[0028] In one aspect, a bitline population count is compared to the sum of a conversion bias current reference and an adjusted activation threshold to determine the output of the bitline. The bitline population count is the sum of each output of the bitcell corresponding to the bitline of the memory array. For example, the sum (or population count) of the outputs of each bitcell associated with a first bitline is provided as a first input to a comparator. The population count is then compared to the sum of the conversion bias current reference and the adjusted activation threshold to determine the output of the bitline. In some aspects, the activation threshold is less than 1 / 2 the number of rows of the memory array. The number of rows corresponds to the size of the input vector. In some aspects, the conversion bias current reference is less than 1 / 2 the number of rows of the memory array.

[0023]

[0029] The artificial neural network of the present disclosure may be a binary neural network, a multi-bit neural network, or an ultra-low bit width neural network. Aspects of the present disclosure may be applicable to devices that specify extremely low memory processing and power (e.g., edge devices), or large-scale networks that can benefit from memory savings resulting from a binary format. Aspects of the present disclosure reduce the size of the memory and improve memory power consumption by eliminating XNOR operations in compute-in-memory systems that implement binary neural networks. For example, a basis transformation is implemented to avoid the use of an XNOR function and its corresponding transistor(s) in each bit cell, thereby reducing the size of the memory.

[0024]

[0030] 1 illustrates an exemplary implementation of a system-on-chip (SOC) 100 that may include a central processing unit (CPU) 102 or multi-core CPU configured to convert multiply-add operations for a compute-in-memory (CIM) array of an artificial neural network according to some aspects of the disclosure. Variables (e.g., neural signals and synaptic weights), system parameters associated with a computing device (e.g., a neural network with weights), delays, frequency bin information, and task information may be stored in memory blocks associated with a neural processing unit (NPU) 108, in memory blocks associated with the CPU 102, in memory blocks associated with a graphics processing unit (GPU) 104, in memory blocks associated with a digital signal processor (DSP) 106, in memory blocks 118, or distributed across multiple blocks. Instructions executed in the CPU 102 may be loaded from a program memory associated with the CPU 102 or from the memory blocks 118.

[0025]

[0031] The SOC 100 may also include additional processing blocks adapted to specific functions, such as a GPU 104, a DSP 106, a connectivity block 110 that may include fifth generation (5G) connectivity, fourth generation long-term evolution (4G LTE) connectivity, Wi-Fi connectivity, USB connectivity, Bluetooth connectivity, etc., and a multimedia processor 112 that may detect and recognize gestures, for example. In one implementation, the NPU is implemented in the CPU, DSP, and / or GPU. The SOC 100 may also include a sensor processor 114, an image signal processor (ISP) 116, and / or a navigation module 120 that may include a global positioning system.

[0026]

[0032] The SOC 100 may be based on an ARM instruction set. In one aspect of the disclosure, the instructions loaded into the general-purpose processor 102 may comprise code for adjusting an activation threshold for each column of the array based on a function of a weight value (e.g., a weight matrix) and an activation value. The general-purpose processor 102 may further comprise code for calculating a conversion bias current reference based on an input value from an input vector.

[0027]

[0033] Deep learning architectures may perform object recognition tasks by learning to represent inputs at successively higher levels of abstraction at each layer, thereby accumulating useful feature representations of the input data. In this way, deep learning addresses a major bottleneck of traditional machine learning. Prior to the advent of deep learning, machine learning approaches to object recognition problems may have relied heavily on human-designed features, possibly in combination with shallow classifiers. A shallow classifier may be, for example, a two-class linear classifier in which a weighted sum of feature vector components may be compared to a threshold to predict which class an input belongs to. Human-designed features may be templates or kernels adapted to a particular problem domain by an engineer with domain expertise. In contrast, deep learning architectures learn to represent features that are similar to those that a human engineer might design, but may do so through training. Furthermore, deep networks may learn to represent and recognize new types of features that humans may not have considered.

[0028]

[0034] Deep learning architectures may learn a hierarchy of features. For example, when presented with visual data, a first layer may learn to recognize relatively simple features in the input stream, such as edges. In another example, when presented with auditory data, the first layer may learn to recognize spectral power at specific frequencies. A second layer, taking the output of the first layer as input, may learn to recognize combinations of features, such as simple shapes in the case of visual data, or combinations of sounds in the case of auditory data. For example, higher layers may learn to represent complex shapes in visual data, or words in auditory data. Even higher layers may learn to recognize common visual objects or spoken phrases.

[0029]

[0035] Deep learning architectures can work particularly well when applied to problems that have a natural hierarchical structure. For example, motor vehicle classification can benefit from first learning to recognize wheels, windshields, and other features. These features can be combined in different ways in higher layers to recognize cars, trucks, and planes.

[0030]

[0036] Neural networks can be designed with a variety of connectivity patterns. In feedforward networks, information is passed from lower layers to higher layers, with each neuron in a given layer communicating to a neuron in a higher layer. As explained above, in successive layers of a feedforward network, a hierarchical representation can be accumulated. Neural networks can also have recurrent or (also called top-down) feedback connections. In recurrent connections, the output from a neuron in a given layer can be communicated to another neuron in the same layer. Recurrent architectures can be useful for recognizing patterns across two or more of the input data chunks that are delivered sequentially to the neural network. Connections from neurons in a given layer to neurons in a lower layer are called feedback (or top-down) connections. Networks with many feedback connections can be useful when recognition of high-level concepts can help discriminate certain low-level features of the input.

[0031]

[0037] The connections between layers of a neural network can be fully connected or locally connected. FIG. 2A shows an example of a fully connected neural network 202. In the fully connected neural network 202, a neuron in a first layer can communicate its output to every neuron in a second layer, such that each neuron in the second layer receives input from every neuron in the first layer. FIG. 2B shows an example of a locally connected neural network 204. In the locally connected neural network 204, a neuron in a first layer can be connected to a limited number of neurons in the second layer. More generally, the locally connected layer of the locally connected neural network 204 can be configured such that each neuron in the layer has the same or similar connectivity pattern, but with connection strengths that can have different values ​​(e.g., 210, 212, 214, and 216). The connectivity pattern of the locally connected can result in spatially separate receptive fields in the upper layers, since the upper layer neurons in a given region can receive inputs that are conditioned through training to the properties of a limited portion of the total inputs to the network.

[0032]

[0038] One example of a locally connected neural network is a convolutional neural network. Figure 2C shows an example of a convolutional neural network 206. The convolutional neural network 206 may be configured such that the connection strengths associated with the inputs for each neuron in the second layer are shared (e.g., 208). Convolutional neural networks may be suitable for problems where the spatial location of the inputs is meaningful.

[0033]

[0039] One type of convolutional neural network is the deep convolutional network (DCN). Figure 2D shows a detailed example of a DCN 200 designed to recognize visual features from images 226 input from an image capture device 230, such as an on-board camera. The DCN 200 of this example may be trained to identify traffic signs and numbers given on the traffic signs. Of course, the DCN 200 may be trained for other tasks, such as identifying lane markings or identifying traffic signals.

[0034]

[0040] The DCN 200 may be trained using supervised learning. During training, the DCN 200 may be presented with an image, such as an image 226 of a speed limit sign, and then a forward pass may be computed to generate the output 222. The DCN 200 may include a feature extraction section and a classification section. Upon receiving the image 226, the convolution layer 232 may apply a convolution kernel (not shown) to the image 226 to generate the first set of feature maps 218. As an example, the convolution kernel for the convolution layer 232 may be a 5×5 kernel that generates a 28×28 feature map. In this example, four different feature maps are generated in the first set of feature maps 218, so four different convolution kernels were applied to the image 226 in the convolution layer 232. A convolution kernel may also be referred to as a filter or a convolution filter.

[0035]

[0041] The first set of feature maps 218 may be subsampled by a max pooling layer (not shown) to generate a second set of feature maps 220. The max pooling layer reduces the size of the first set of feature maps 218. That is, the size of the second set of feature maps 220, such as 14×14, is smaller than the size of the first set of feature maps 218, such as 28×28. The reduced size provides similar information to subsequent layers while reducing memory consumption. The second set of feature maps 220 may be further convolved via one or more subsequent convolutional layers (not shown) to generate one or more subsequent sets of feature maps (not shown).

[0036]

[0042] In the example of FIG. 2D , the second set of feature maps 220 are convolved to generate a first feature vector 224. Moreover, the first feature vector 224 is further convolved to generate a second feature vector 228. Each feature in the second feature vector 228 may include a number corresponding to a possible feature of the image 226, such as “sign”, “60”, and “100”. A softmax function (not shown) may convert the numbers in the second feature vector 228 into probabilities. Thus, the output 222 of the DCN 200 is the probability that the image 226 contains one or more features.

[0037]

[0043] In this example, the probabilities in the output 222 for "sign" and "60" are higher than the probabilities of others of the output 222, such as "30", "40", "50", "70", "80", "90", and "100". Before training, the output 222 generated by the DCN 200 may be inaccurate. Thus, an error may be calculated between the output 222 and a target output. The target output is the ground truth of the image 226 (e.g., "sign" and "60"). The weights of the DCN 200 may then be adjusted so that the output 222 of the DCN 200 is more closely aligned with the target output.

[0038]

[0044] To adjust the weights, the learning algorithm may calculate a gradient vector for the weights. The gradient may indicate the amount by which the error increases or decreases if the weights are adjusted. In the top layer, the gradient may correspond directly to the values ​​of the weights connecting the activated neurons in the penultimate layer and the neurons in the output layer. In lower layers, the gradient may depend on the values ​​of the weights and the calculated error gradients of the upper layers. The weights may then be adjusted to reduce the error. This manner of adjusting weights is sometimes called "backpropagation" because it involves a "backward pass" through the neural network.

[0039]

[0045] In practice, the error gradient of the weights may be calculated over a small number of examples such that the calculated gradient approximates the true error gradient. This approximation method is sometimes called stochastic gradient descent. Stochastic gradient descent may be repeated until the achievable error rate of the overall system no longer decreases or until the error rate reaches a target level. After training, the DCN may be presented with a new image (e.g., a speed limit sign in image 226) and a forward pass through the network may result in an output 222, which may be considered the inference or prediction of the DCN.

[0040]

[0046] A deep belief network (DBN) is a probabilistic model with multiple layers of hidden nodes. DBNs can be used to extract hierarchical representations of a training dataset. DBNs can be obtained by stacking layers of Restricted Boltzmann Machines (RBMs). RBMs are a type of artificial neural network that can learn probability distributions over a set of inputs. RBMs are often used in unsupervised learning because they can learn probability distributions in the absence of information about the class into which each input should be categorized. Using a hybrid unsupervised and supervised paradigm, the lower RBM of the DBN can be trained in an unsupervised manner and act as a feature extractor, and the upper RBM can be trained in a supervised manner (on the joint distribution of inputs from the previous layer and the target class) and act as a classifier.

[0041]

[0047] Deep Convolutional Networks (DCNs) are networks of convolutional networks, composed of additional pooling and normalization layers. DCNs have achieved state-of-the-art performance for many tasks. DCNs can be trained using supervised learning, where both the input and output targets are known for many examples and are used to modify the network weights by using gradient descent methods.

[0042]

[0048] The DCN may be a feedforward network. Furthermore, as described above, the connections from neurons in the first layer of the DCN to groups of neurons in the next higher layer are shared across the neurons in the first layer. The feedforward and shared connections of the DCN may be exploited for high speed processing. The computational burden of the DCN may be much less than that of a similarly sized neural network with, for example, recurrent or feedback connections.

[0043]

[0049] The processing of each layer of the convolutional network may be considered as a spatially invariant template or basis projection. If the input is initially decomposed into multiple channels, such as the red, green, and blue channels of a color image, the convolutional network trained on that input may be considered to be three-dimensional, with two spatial dimensions along the axes of the image and a third dimension capturing color information. The output of the convolutional combinations may be considered to form a feature map in the subsequent layer, where each element of the feature map (e.g., 220) may receive inputs from various neurons in the previous layer (e.g., feature map 218) and from each of the multiple channels. The values ​​in the feature map may be further processed using nonlinearities, such as rectification, max(0,x), etc. Values ​​from neighboring neurons may be further pooled, which corresponds to downsampling and may provide further local invariance and dimensionality reduction. Normalization, which corresponds to whitening, may also be applied by lateral inhibition between neurons in the feature map.

[0044]

[0050] The performance of deep learning architectures can improve as more labeled data points become available or as computational power increases. Modern deep neural networks are routinely trained with computing resources thousands of times greater than those available to the average researcher only 15 years ago. New architectures and training paradigms can further improve deep learning performance. Rectified linear units can reduce a training problem known as vanishing gradients. New training techniques can reduce over-fitting and thus enable larger models to achieve better generalization. Encapsulation techniques can extract data in a given receptive field, further improving overall performance.

[0045]

[0051] 3 is a block diagram illustrating a deep convolutional network 350. The deep convolutional network 350 may include multiple different types of layers based on connectivity and weight sharing. As shown in FIG. 3, the deep convolutional network 350 includes convolutional blocks 354A, 354B. Each of the convolutional blocks 354A, 354B may be composed of a convolutional layer (CONV) 356, a normalization layer (LNorm) 358, and a max pooling layer (MAX POOL) 360.

[0046]

[0052] The convolution layer 356 may include one or more convolution filters, which may be applied to the input data to generate feature maps. Although only two of the convolution blocks 354A, 354B are shown, the disclosure is not so limited and instead any number of convolution blocks 354A, 354B may be included in the deep convolution network 350 according to design preferences. The normalization layer 358 may normalize the output of the convolution filters. For example, the normalization layer 358 may perform whitening or lateral suppression. The max pooling layer 360 may perform downsampling aggregation across space for local invariance and dimensionality reduction.

[0047]

[0053] For example, the parallel filter bank of the deep convolutional network may be loaded onto the CPU 102 or GPU 104 of the SOC 100 to achieve high performance and low power consumption. In alternative embodiments, the parallel filter bank may be loaded onto the DSP 106 or ISP 116 of the SOC 100. Additionally, the deep convolutional network 350 may access other processing blocks that may be present on the SOC 100, such as the sensor processor 114 and the navigation module 120, which are dedicated to sensors and navigation, respectively.

[0048]

[0054] The deep convolutional network 350 may also include one or more fully connected layers 362 (FC1 and FC2). The deep convolutional network 350 may further include a logistic regression (LR) layer 364. Between each layer 356, 358, 360, 362, 364 of the deep convolutional network 350, there are weights (not shown) to be updated. The output of each of the layers (e.g., 356, 358, 360, 362, 364) may serve as an input of a subsequent layer of the layers (e.g., 356, 358, 360, 362, 364) in the deep convolutional network 350 to learn a hierarchical feature representation from the input data 352 (e.g., image, audio, video, sensor data, and / or other input data) provided in the first of the convolutional blocks 354A. The output of the deep convolutional network 350 is a classification score 366 for the input data 352. The classification score 366 may be a set of probabilities, where each probability is the probability that the input data contains a feature from the set of features.

[0049]

[0055] The memory storage of an artificial neural network (e.g., a binary neural network) can be significantly reduced when weights and neuron activations are binarized to -1 or +1 ([-1,+1] space). However, digital complementary metal-oxide semiconductor (CMOS) logic operates in [0,1] space. Therefore, during binary implementation, a conversion is made between digital CMOS devices that use a [0,1] basis and binary neural networks that use a [-1,+1] basis.

[0050]

[0056] The memory cells may be configured to support an exclusive negated OR (XNOR) function. For example, Tables 1-3 (e.g., truth tables) show the mapping of a binary neural network in [0,1] space to a binary multiplication in a binarized [-1,+1] space. Two-input logic functions are shown in Truth Tables 1-3.

[0051]

[0057] Table 1 shows an example of binary multiplication in binarized [-1,+1] space. For example, multiplication in binarized [-1,+1] space produces a 4-bit output of -1*-1, -1*+1, +1*-1, +1*+1 (e.g., "1, -1, -1, 1").

[0052] [Table 1]

[0053]

[0058] Table 2 shows an example of an XNOR implementation. The memory cell may be configured to perform an XNOR function on a first input value (e.g., a binary neuron activation) and a second input value (e.g., a binary synaptic weight) to generate a binary output. For example, the XNOR function is true only when all of the input values ​​are true or when all of the input values ​​are false. If some of the inputs are true and other inputs are false, the output of the XNOR function is false. Thus, as shown in Table 2, when both inputs (e.g., the first input and the second input) are false (e.g., the first input is 0 and the second input is 0), the output is true (e.g., 1). When the first input is false (0) and the second input is true (1), the output is false (0). When the first input is true (1) and the second input is false (0), the output is false (0). When the first input is true (1) and the second input is false (0), the output is false (0). When the first input is true (1) and the second input is true (1), the output is true (1). Thus, the truth table for an XNOR function with two inputs has a binary output of "1, 0, 0, 1".

[0054]

[0059] Therefore, a binary multiplication in the binarized [-1,+1] space maps to the binary output of XNOR in [0,1] space. For example, a "1" in the 4-bit output of the binarized [-1,+1] space maps to a "1" in the binary output of the XNOR function, and a "-1" in the 4-bit output of the binarized [-1,+1] space maps to a "0" in the binary output of the XNOR function.

[0055] [Table 2]

[0056] [Table 3]

[0057]

[0060] In contrast, binary multiplication in binarized [-1,+1] space does not map to binary multiplication in binarized [0,1] space shown in Table 3. For example, Table 3 shows multiplication in binarized [0,1] space to produce a 4-bit output of "0,0,0,1", which does not map to a 4-bit output of "1,-1,-1,1" in binarized [-1,+1] space. For example, a 4-bit output of "0,0,0,1" contains only one true bit (e.g., the last bit), while a 4-bit output of "1,-1,-1,1" contains two true bits (e.g., the first bit and the last bit).

[0058]

[0061] Traditionally, binary neural networks implemented using compute-in-memory systems are realized by computing an XNOR in each bit cell and adding the results along each bit line to generate an output value. However, adding an XNOR function in each bit cell is costly. For example, the number of transistors for each cell in a memory (e.g., SRAM) increases from six or eight to twelve, which significantly increases cell size and power consumption.

[0059]

[0062] Aspects of the present disclosure are directed to reducing memory size and improving memory power consumption by eliminating XNOR in binary neural network compute-in-memory arrays. In one aspect, the activation threshold for each column of the compute-in-memory array is adjusted to avoid the use of the XNOR function in each bit cell and its corresponding transistor(s). For example, smaller memories with smaller memory bit cells (e.g., eight transistor SRAMs) can be used for compute-in-memory binary neural networks.

[0060]

[0063] FIG. 4 illustrates an example architecture 400 for a compute-in-memory (CIM) array of an artificial neural network, according to an embodiment of the present disclosure. Compute-in-memory is a method of implementing multiply-accumulate operations in a memory array. The memory array is structured by word lines 404 (or WL1), 405 (or WL2)...406 (or WL M ), as well as bit lines 401 (or BL1), 402 (or BL2)...403 (or BL N ). Weights (e.g., binary synaptic weight values) are stored in bit cells of the memory array. Input activations (e.g., input values, which may be input vectors) are on the word lines. Multiplication occurs at each bit cell, and the results of the multiplication are output through the bit lines. For example, the multiplication includes multiplying the weights by the input activations at each bit cell. A summing device (not shown), such as a voltage / current summing device, associated with the bit lines or columns (e.g., 401) sums the outputs (e.g., charge, current, or voltage) of the bit lines and passes the result (e.g., output) to an analog-to-digital converter (ADC). For example, the sum of each bit line is calculated from the respective outputs of the bit cells of each bit line.

[0061]

[0064] In one aspect of the present disclosure, activation threshold adjustment is performed at each column (corresponding to a bit line) instead of at each bit cell to improve area efficiency.

[0062]

[0065] Traditionally, starting with a binary neural network implementation where weights and neuron activations are binarized to -1 or +1 ([-1,+1] space), the multiply-and-accumulate operation becomes an XNOR operation (at the bit cells) with the XNOR result and a population count of the XNOR result. For example, the population count of a bit line contains the sum of the positive (e.g., "1") results of each bit cell of the bit line. The ADC acts like a comparator by using an activation threshold. For example, the population count is compared by the ADC to an activation threshold or reference. If the population count is greater than the activation threshold, the output of the bit line is "1". Otherwise, if the population count is less than or equal to the activation threshold, the output of the bit line is "0". However, to reduce the size of the memory, it is desirable to eliminate the XNOR function and its corresponding transistor(s) in each bit cell. A specific technique for adjusting the activation threshold is as follows.

[0063]

[0066] A convolutional layer of a neural network (e.g., a binary neural network) may include cells (e.g., bit cells) organized in an array (e.g., a compute-in-memory array). The cells include gating devices, where the charge levels present in the gating devices represent the stored weights of the array. A trained XNOR binary neural network with an array of M rows (e.g., the size of the input vector) and N columns may store M×N binary synaptic weights W that are weights with binary values ​​[−1, +1]. ij and N activation thresholds C jThe inputs to the array may correspond to word lines and the outputs may correspond to bit lines. For example, an input activation X i is X1, X2...X M The sum of the products of the inputs with the corresponding weights

[0064]

number

[0065] is the weighted sum

[0066]

number

[0067] It is known as.

[0068] For example, the weighted sum is the activation threshold C j When the input signal is greater than 1, the output is equal to 1. Otherwise, the output is equal to 0. The XNOR binary neural network can be mapped to a non-XNOR binary neural network in [0,1] space while eliminating the XNOR function and its corresponding transistor(s) in each bit cell to reduce the size of the memory. In one aspect, the XNOR binary neural network calculates the activation threshold C for each column as follows: j can be mapped to a non-XNOR binary neural network with tuning. Equation 1 expresses the sum of products of inputs with corresponding weights and the activation threshold C for an XNOR binary neural network. j This shows the relationship between

[0069]

number

[0070] Where: -Xi (For example, X1, X2...X M ) is an input with binary values ​​[-1,+1] - W ij are the binary weights [-1,+1] (e.g., an M×N matrix), - Y j (For example, Y1, Y2...Y N ) is the output of the bit line with binary value [-1,+1]

[0068] Traditionally, compute-in-memory binary neural network implementations are accomplished by completing an XNOR operation in each bit cell and adding the results for each bit line. However, adding an XNOR function in each bit cell increases the layout area and increases power consumption. For example, the number of transistors in each cell in a memory (e.g., SRAM) increases from six or eight to twelve. Thus, aspects of the present disclosure are directed to converting multiply-add operations for compute-in-memory arrays of artificial neural networks (e.g., binary neural networks) from [-1, +1] space to [0, 1] space using activation threshold tuning.

[0071] Binary neural networks are networks that operate in the [-1, +1] space (where

[0072]

number

[0073] ) to [0,1] space, and the output of the bit line in [0,1] space is compared to a different threshold (eg, the derivation of which is described below) as follows:

[0074]

number

[0075] -

[0076]

number

[0077] is an input with binary values ​​[0,1] -

[0078]

number

[0079] are weights with binary values ​​[0,1] Where:

[0080]

number

[0081] corresponds to tunable activation (or tuned activation threshold) in [0,1] space,

[0082]

number

[0083] represents the conversion bias (eg, the conversion bias current reference) in the [0,1] space.

[0084]

[0070] Adjusting the activation threshold as described herein makes it possible to avoid / refrain from implementing an XNOR function in each bit cell while obtaining the same result as if an XNOR function was implemented. Adjusting the activation threshold allows the use of simpler and smaller memory bit cells (e.g., 8-transistor (8T) SRAM).

[0085]

[0071] Equations (3 and 4) below contain variables to map the network in [-1, +1] space to [0, 1] space.

[0086]

number

[0087]

[0072] By inserting the values ​​of Equation 3 and Equation 4 into Equation 1, the adjusted activation threshold can be determined through a conversion or transformation between the [-1, +1] space and the [0, 1] space. The following is the derivation of the adjusted activation threshold:

[0088]

number

[0089] Expanding equation 5 gives us

[0090]

number

[0091] Output Y on the bit line with binary value [-1,+1] (as in Equation 1) j Let us define the activation threshold C j In comparison,

[0092]

number

[0093] Population count per bitline in [0,1] space

[0094]

number

[0095] To obtain the bit line output Y j Putting the value of into Equation 1, we get

[0096]

number

[0097]

[0073] Population count per bit line in [0,1] space in Equation 9

[0098]

number

[0099] is the population count per bitline in the [-1,+1] space.

[0100]

number

[0101] , we obtain N activation thresholds C j is a tunable activation vector in [0,1] space.

[0102]

number

[0103] and conversion bias

[0104]

number

[0105] For example, to achieve a non-XNOR binary neural network in [0,1] space while eliminating the XNOR function and its corresponding transistor(s), we use a tunable activation

[0106]

number

[0107] and conversion bias

[0108]

number

[0109] is used.

[0110]

[0074] Referring to Equation 9, the function

[0111]

number

[0112] Adjustable activation

[0113]

number

[0114] For example, the element

[0115]

number

[0116] Adjustable activation

[0117]

number

[0118] Corresponds to the activation value of . Adjustable activation

[0119]

number

[0120] is the activation input X iIndependent and adjustable activation

[0121]

number

[0122] is the activation threshold C j Certain parameters (e.g., binary synaptic weights W ij )

[0123]

[0075] Function

[0124]

number

[0125] Conversion Bias

[0126]

number

[0127] Conversion bias is used to determine

[0128]

number

[0129] depends only on the input activation, which means that the conversion bias is constantly changing when new input is received.

[0130] For example, C j = 0,

[0131]

number

[0132] and

[0133]

number

[0134] When

[0135]

number

[0136] ,

[0137]

number

[0138] and

[0139]

number

[0140] The value of is calculated in terms of Equation 9 as follows:

[0141]

number

[0142]

[0077] Similarly,

[0143]

number

[0144] and

[0145]

number

[0146] and

[0147]

number

[0148] When

[0149]

number

[0150] ,

[0151]

number

[0152] and

[0153]

number

[0154] The value of is calculated in terms of Equation 9 as follows:

[0155]

number

[0156] In some embodiments, the function

[0157]

number

[0158] is the weight of the binary value

[0159]

number

[0160] ,=1, the conversion bias from the reference column (e.g., a bit line that is not part of the N bit lines, used as a reference) is

[0161]

number

[0162] can be used to generate Equal to 1

[0163]

number

[0164] By substituting the values ​​of into Equation 9, the resulting equation is:

[0165]

number

[0166]

[0079] The population count is

[0167]

number

[0168] which can be used to offset the activation current. Thus, only a single column is designated to determine the reference bias value or conversion bias for the entire memory array.

[0169]

[0080] Figure 5 illustrates an exemplary architecture 500 for implementing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network, according to aspects of the present disclosure. The architecture includes a memory array including a reference column 502, a comparator 504, bit lines 506 (corresponding to columns of the memory array), and word lines 508 (corresponding to rows of the memory array). Input activations are received via the word lines. In one example, the input activations X i The binary value for is 10101011.

[0170]

[0081] Multiplication (e.g., X i W ij ) occurs at each bit cell, and the result of the multiplication from each bit cell is output through a bit line 506. A summing device 510 associated with each of the bit lines 506 sums the outputs of the bit cells of the memory array and passes the result to a comparator 504. The comparator 504 may be part of an analog-to-digital converter (ADC) as shown in FIG. 4. In one aspect, the output of each bit cell associated with a first bit line is summed separately from the output of each bit cell associated with a second bit line.

[0171]

[0082] The activation threshold adjustment is done at each column (corresponding to a bit line) instead of at each bit cell to improve area efficiency. For example, the sum (or population count) of the outputs of each bit cell associated with a first bit line is provided as a first input to a comparator 504. A second input of the comparator is an adjustable activation threshold.

[0172]

number

[0173] and conversion bias

[0174]

number

[0175] (e.g., conversion bias current reference).

[0176]

number

[0177] can be programmed into the reference (e.g., reference column 502) for each of the bit lines 506.

[0178]

number

[0179] and conversion bias

[0180]

number

[0181] When the population count is greater than the sum of the adjustable activation count and the output of the comparator 504 corresponding to the output of the first bit line is "1".

[0182]

number

[0183] and conversion bias

[0184]

number

[0185] If the population count of the first bit line is less than or equal to the sum of the counts, then the output of the comparator corresponding to the output of the first bit line is "0".

[0186]

number

[0187] and conversion bias

[0188]

number

[0189] It is compared with the sum of

[0190]

[0083] Figure 6 illustrates a method 600 for performing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network according to an aspect of the disclosure. As shown in Figure 6, in block 602, an activation threshold generated for each column of the compute-in-memory array may be adjusted based on a function of a weight value and an activation value. In block 604, a conversion bias current criterion is calculated based on an input value from an input vector to the compute-in-memory array, and the compute-in-memory array is programmed with a set of weight values. Each of the adjusted activation thresholds and the conversion bias current criterion is used as a threshold for determining an output value of the compute-in-memory array. The compute-in-memory array has both columns and rows.

[0191] According to a further aspect of the present disclosure, an apparatus for performing an XNOR equality operation by adjusting column thresholds of a compute-in-memory array of an artificial neural network is described. The apparatus includes means for adjusting activation thresholds for each column of the array based on a function of weight values ​​and activation values. The adjusting means includes the deep convolutional network 200, the deep convolutional network 350, the convolutional layer 232, the SoC 100, the CPU 102, the architecture 500, the architecture 400, and / or the convolutional block 354A. The apparatus further includes means for calculating a conversion bias current criterion based on an input value from an input vector. The calculating means includes the deep convolutional network 200, the deep convolutional network 350, the convolutional layer 232, the SoC 100, the CPU 102, the architecture 500, the architecture 400, and / or the convolutional block 354A.

[0192]

[0085] The apparatus further includes means for comparing the bit line population count with the sum of a conversion bias current reference and an adjusted activation threshold to determine the output of the bit line. The comparing means includes the comparator 504 of Fig. 5 and / or the analog-to-digital converter (ADC) of Fig. 4. In another aspect, the above-mentioned means may be any module or any device configured to perform the functions recited by the above-mentioned means.

[0193]

[0086] The various operations of the methods described above may be implemented by any suitable means capable of performing the corresponding functions. Those means may include various (one or more) hardware and / or software components and / or modules, including but not limited to circuits, application specific integrated circuits (ASICs), or processors. Generally, where there are operations illustrated in the figures, those operations may have corresponding counterpart means-plus-function components with similar numbering.

[0194]

[0087] As used herein, the term "determining" encompasses a wide variety of actions. For example, "determining" may include calculating, computing, processing, deriving, investigating, looking up (e.g., looking up in a table, database or another data structure), ascertaining, and the like. Additionally, "determining" may include receiving (e.g., receiving information), accessing (e.g., accessing data in a memory), and the like. Additionally, "determining" may include resolving, selecting, choosing, establishing, and the like.

[0195]

[0088] As used herein, a phrase referring to "at least one of" a list of items refers to any combination of those items, including single members. As an example, "at least one of a, b, or c" is intended to include a, b, c, ab, ac, bc, and abc.

[0196]

[0089] The various example logic blocks, modules and circuits described in connection with this disclosure may be implemented or performed using a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array signal (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but alternatively, the processor may be any commercially available processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.

[0197]

[0090] The steps of a method or algorithm described in connection with the present disclosure may be implemented directly in hardware, or in a software module executed by a processor, or in a combination of the two. The software module may reside in any form of storage medium known in the art. Some examples of storage media that may be used include random access memory (RAM), read only memory (ROM), flash memory, erasable programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disks, removable disks, CD-ROMs, etc. A software module may comprise a single instruction, or many instructions, and may be distributed over several different code segments, among different programs, and across multiple storage media. A storage medium may be coupled to a processor such that the processor can read information from and write information to the storage medium. Alternatively, the storage medium may be integral to the processor.

[0198]

[0091] The methods disclosed herein comprise one or more steps or actions for achieving the described method. The steps and / or actions of the methods may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of steps or actions is specified, the order and / or use of specific steps and / or actions may be changed without departing from the scope of the claims.

[0199]

[0092] The described functions may be implemented in hardware, software, firmware, or any combination thereof. When implemented in hardware, an exemplary hardware configuration may include a processing system in a device. The processing system may be implemented using a bus architecture. The bus may include any number of interconnected buses and bridges depending on the particular application and overall design constraints of the processing system. The bus may link various circuits together, including processors, machine-readable media, and bus interfaces. The bus interface may be used to connect a network adapter, among other things, to the processing system via the bus. The network adapter may be used to implement signal processing functions. In some aspects, a user interface (e.g., keypad, display, mouse, joystick, etc.) may also be connected to the bus. The bus may also link various other circuits, such as timing sources, peripherals, voltage regulators, power management circuits, etc., which are well known in the art and therefore will not be described further.

[0200]

[0093] The processor may be responsible for managing the bus and general processing, including the execution of software stored on the machine-readable medium. The processor may be implemented using one or more general-purpose and / or special-purpose processors. Examples include microprocessors, microcontrollers, DSP processors, and other circuitry capable of executing software. Software should be broadly construed to mean instructions, data, or any combination thereof, whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise. The machine-readable medium may include, by way of example, a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a magnetic disk, an optical disk, a hard drive, or any other suitable storage medium, or any combination thereof. The machine-readable medium may be embodied in a computer program product. The computer program product may comprise packaging materials.

[0201]

[0094] In a hardware implementation, the machine-readable medium may be part of a processing system separate from the processor. However, as one skilled in the art would readily appreciate, the machine-readable medium, or any portion thereof, may be external to the processing system. By way of example, the machine-readable medium may include a transmission line, a carrier wave modulated by data, and / or a computer product separate from the device, all of which may be accessed by the processor via a bus interface. Alternatively, or in addition, the machine-readable medium, or any portion thereof, may be integrated into the processor, as may be a cache and / or a general-purpose register file. Although the various components described, such as local components, may be described as having specific locations, they may also be configured in various ways, such as some components being configured as part of a distributed computing system.

[0202]

[0095] The processing system may be configured as a general-purpose processing system with one or more microprocessors providing processor functions and external memory providing at least a portion of the machine-readable medium, all linked together with other support circuits via an external bus architecture. Alternatively, the processing system may include one or more neuromorphic processors for implementing the neuron models and models of neural systems described herein. As another alternative, the processing system may be implemented using an application specific integrated circuit (ASIC) with a processor, bus interface, user interface, support circuits, and at least a portion of the machine-readable medium integrated into a single chip, or using one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, or other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this disclosure. Those skilled in the art will understand how the functions described for the processing system may best be implemented depending on the particular application and the overall design constraints imposed on the overall system.

[0203]

[0096] The machine-readable medium may comprise several software modules. The software modules include instructions that, when executed by the processor, cause the processing system to perform various functions. The software modules may include a transmitting module and a receiving module. Each software module may reside in a single storage device or may be distributed across multiple storage devices. As an example, a software module may be loaded from a hard drive into RAM when a triggering event occurs. During execution of the software module, the processor may load some of the instructions into a cache to increase access speed. One or more cache lines may then be loaded into a general purpose register file for execution by the processor. When referring to the functionality of a software module below, it will be understood that such functionality is implemented by the processor when executing instructions from that software module. It should further be appreciated that aspects of the present disclosure may result in improvements in the functionality of a processor, computer, machine, or other system implementing such aspects.

[0204]

[0097] If implemented in software, the functions may be stored on or transmitted over a computer-readable medium as one or more instructions or code. Computer-readable media includes both computer storage media and communication media, including any medium that enables transfer of a computer program from one place to another. A storage medium may be any available medium that can be accessed by a computer. By way of example and not limitation, such computer-readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared (IR), radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. Thus, in some aspects computer readable medium may comprise non-transitory computer readable medium (e.g., tangible media). Additionally, in other aspects computer readable medium may comprise transitory computer readable medium (e.g., signal). Combinations of the above should also be included within the scope of computer readable medium.

[0205]

[0098] Accordingly, some aspects may comprise a computer program product for performing the operations presented herein. For example, such a computer program product may comprise a computer-readable medium having stored thereon (and / or encoded) instructions executable by one or more processors to perform the operations described herein. In some aspects, the computer program product may include packaging materials.

[0206]

[0099] Furthermore, it should be appreciated that modules and / or other suitable means for implementing the methods and techniques described herein may be downloaded and / or otherwise obtained by a user terminal and / or base station, where applicable. For example, such devices may be coupled to a server to enable transfer of means for implementing the methods described herein. Alternatively, the various methods described herein may be provided by a storage means such that the user terminal and / or base station may obtain the various methods upon coupling or providing the storage means (e.g., RAM, ROM, physical storage medium such as a compact disk (CD) or floppy disk, etc.) to the device. Moreover, any other suitable technique for providing the methods and techniques described herein to a device may be utilized.

[0207]

[0100] It should be understood that the claims are not limited to the precise configuration and components illustrated above. Various modifications, changes and variations may be made in the arrangement, operation and details of the methods and apparatus described above without departing from the scope of the claims. The invention as described in the claims of the original application is set forth below. [C1] A compute-in-memory array having rows and columns, the compute-in-memory array comprising: adjusting an activation threshold generated for each column of the compute-in-memory array based on a function of a weight value and an activation value; calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and programming the compute-in-memory array with a set of weight values, wherein the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array. An apparatus configured to: [C2] The apparatus of C1, further comprising a comparator configured to compare a bitline population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bitline. [C3] The apparatus of C1, wherein the artificial neural network including the compute-in-memory array comprises a binary neural network. [C4] The apparatus of C1, wherein the activation threshold is less than 1 / 2 the number of rows in the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C5] The apparatus of C1, wherein the conversion bias current reference is less than 1 / 2 the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C6] adjusting an activation threshold generated for each column of a compute-in-memory array having rows and columns based on a function of a weight value and an activation value; calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and programming the compute-in-memory array with a set of weight values, wherein the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array. A method for providing the above. [C7] The method of C6, further comprising comparing a bitline population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bitline. [C8] The method of C6, wherein the artificial neural network including the compute-in-memory array comprises a binary neural network. [C9] The method of C6, wherein the activation threshold is less than 1 / 2 the number of rows in the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C10] The method of C6, wherein the conversion bias current reference is less than 1 / 2 the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C11] A non-transitory computer-readable medium having recorded thereon non-transitory program code, the program code comprising: program code for adjusting an activation threshold generated for each column of a compute-in-memory array having rows and columns based on a function of a weight value and an activation value; program code for calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and the compute-in-memory array is programmed with a set of weight values, where the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array. 1. A non-transitory computer-readable medium comprising: [C12] The non-transitory computer-readable medium of C11, further comprising program code for comparing a bit line population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bit line. [C13] The non-transitory computer-readable medium of C11, wherein the artificial neural network that is the subject of the training and the computing comprises a binary neural network. [C14] The non-transitory computer-readable medium of C11, wherein the activation threshold is less than 1 / 2 the number of rows in the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C15] The non-transitory computer-readable medium of C11, wherein the conversion bias current reference is less than 1 / 2 the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C16] means for adjusting an activation threshold generated for each column of a compute-in-memory array having rows and columns based on a function of a weight value and an activation value; means for calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and the compute-in-memory array is programmed with a set of weight values, where the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array. An apparatus comprising: [C17] The apparatus of C16, further comprising means for comparing a bitline population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bitline. [C18] The apparatus of C16, wherein the artificial neural network including the compute-in-memory array comprises a binary neural network. [C19] The apparatus of C16, wherein the activation threshold is less than 1 / 2 a number of rows in the compute-in-memory array, the number of rows corresponding to a size of the input vector. [C20] The apparatus of C16, wherein the conversion bias current reference is less than 1 / 2 the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector.

Claims

1. a compute-in-memory array having rows and columns, the compute-in-memory array comprising: adjusting an activation threshold generated for each column of the compute-in-memory array based on a function of a weight value and an activation value; calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and programming the compute-in-memory array with a set of weight values, wherein the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array. An apparatus configured to:

2. 2. The apparatus of claim 1, further comprising: a comparator configured to compare a bitline population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bitline.

3. The apparatus of claim 1 , wherein the artificial neural network including the compute-in-memory array comprises a binary neural network.

4. 2. The apparatus of claim 1, wherein the activation threshold is less than half a number of rows in the compute-in-memory array, the number of rows corresponding to a size of the input vector.

5. 2. The apparatus of claim 1, wherein the conversion bias current reference is less than one-half a number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector.

6. adjusting an activation threshold generated for each column of a compute-in-memory array having rows and columns based on a function of a weight value and an activation value; calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and programming the compute-in-memory array with a set of weight values, wherein the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array. A method for providing the above.

7. 7. The method of claim 6, further comprising: comparing a bitline population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bitline.

8. The method of claim 6 , wherein the artificial neural network including the compute-in-memory array comprises a binary neural network.

9. 7. The method of claim 6, wherein the activation threshold is less than half the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector.

10. 7. The method of claim 6, wherein the conversion bias current reference is less than 1 / 2 the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector.

11. A non-transitory computer readable medium having non-transitory program code recorded thereon, the program code comprising: program code for adjusting an activation threshold generated for each column of a compute-in-memory array having rows and columns based on a function of a weight value and an activation value; program code for calculating a conversion bias current criterion based on an input value from an input vector to the compute-in-memory array; and the compute-in-memory array is programmed with a set of weight values, where the adjusted activation threshold and the conversion bias current criterion are used as thresholds for determining an output value of the compute-in-memory array.

1. A non-transitory computer-readable medium comprising:

12. 12. The non-transitory computer-readable medium of claim 11, further comprising program code for comparing a bitline population count to the sum of the conversion bias current reference and the adjusted activation threshold to determine an output of a bitline.

13. 12. The non-transitory computer-readable medium of claim 11, wherein the artificial neural network subject to the training and the calculating comprises a binary neural network.

14. 12. The non-transitory computer-readable medium of claim 11, wherein the activation threshold is less than one-half the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector.

15. 12. The non-transitory computer-readable medium of claim 11, wherein the conversion bias current reference is less than one-half the number of rows of the compute-in-memory array, the number of rows corresponding to a size of the input vector.

Citation Information

Patent Citations

  • Image processing system and medical information processing system

    JP2018206382A

  • Static random access memory (SRAM) cell and related SRAM array for deep neural network and machine learning applications

    US20180315473A1

  • Programmable Neuron For Analog Non-Volatile Memory In Deep Learning Artificial Neural Network

    US20190205729A1