Neural network system and implementation method thereof
The neural network system employs a self-reference circuit to adjust weights in memory cells, addressing the challenges of high-density weight programming in large-scale neural networks, achieving fast and accurate synaptic element programming for efficient edge device implementation.
Patent Information
- Application Number
- PCT/KR2024/002180
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-07
- Filing Date
- 2024-02-20
- Publication Date
- 2024-09-12
AI Technical Summary
Existing methods for implementing trained deep learning models on edge devices face challenges with accuracy and speed due to high-density weight programming in large-scale neural networks, leading to disturbances and errors in adjacent synaptic elements, making mass production time-consuming and inaccurate.
A neural network system utilizing a self-reference circuit that applies current to row or column lines to adjust the weights of memory cells in an array, minimizing disturbances and enabling high-speed, accurate programming of synaptic elements, even in high-density crossbar arrays.
This approach allows for ultra-fast and accurate implementation of deep neural network models by parallel programming of weights in integrated circuits, reducing errors and speeding up the process, making it suitable for mass production of edge devices.
Smart Images

Figure KR2024002180_12092024_PF_FP_ABST
Abstract
Description
Neural network system and its implementation method
[0001] The present invention relates to a neural network system and a method for implementing the same, and more particularly, to an ultra-fast parallel programming method for transplanting a learned model into a large-scale neural network and a neural network system implemented by the method.
[0002] Artificial neural networks (ANNs) mimic biological neural networks. They can learn from a large amount of input data and are used to estimate or approximate results that are difficult to derive using conventional techniques. An ANN consists of layers of interconnected neurons that exchange signals, and synapses have weights that can be tuned based on learning or experience.
[0003] In order for users to train artificial neural networks, the amount of training data must be large, and the training must be performed on high-performance computing devices. Users must also be able to perform additional training on edge devices using the trained neural network.
[0004] However, to accurately implement trained deep learning models on embedded SoCs of edge devices and to mass-produce these edge devices, the accuracy and processing speed of weight programming are very important.
[0005] The background technology described above is technical information that the inventor possessed for the purpose of deriving the present invention or acquired in the process of deriving the present invention, and cannot necessarily be considered as publicly known technology disclosed to the general public prior to the application for the present invention.
[0006] The purpose of the present disclosure is to provide a neural network system and a method for implementing the same. The problems addressed by the present disclosure are not limited to the technical problems mentioned above. Additional technical problems not mentioned above will be clearly understood by those skilled in the art from the description of the present disclosure, and will be further understood by the embodiments of the present disclosure. Furthermore, it will be appreciated that the problems and advantages addressed by the present disclosure can be realized by the means and combinations thereof set forth in the claims.
[0007] As a means for solving the above-mentioned technical problem, a first aspect of the present disclosure can provide a neural network system, comprising: a neural network circuit including first memory cells arranged in an array form; and a self-reference circuit electrically connected to a row line or a column line of the neural network circuit and applying current to the connected row line or column line so that a plurality of target memory cells have preset target weights; wherein the target memory cells are all memory cells located in the row line or the column line to which the self-reference circuit is connected.
[0008] A second aspect of the present disclosure may provide a method for implementing a neural network system, comprising: a step of obtaining a target weight of a first memory cell included in a neural network circuit and arranged in an array form; a step of tuning a self-reference circuit; and a step of electrically connecting the tuned self-reference circuit to a row line or a column line of the neural network circuit to adjust the weight of the neural network circuit; wherein the self-reference circuit applies a current to the connected row line or column line so that a plurality of target memory cells have the target weight, wherein the target memory cells are all memory cells located in the row line or the column line to which the self-reference circuit is connected.
[0009] A third aspect of the present disclosure can provide a computer-readable recording medium having recorded thereon a program for executing the method of the second aspect on a computer.
[0010] In addition, other methods for implementing the present invention, other devices, and computer-readable recording media recording a program for executing the method may be further provided.
[0011] Other aspects, features and advantages other than those described above will become apparent from the following drawings, patent claims and detailed description of the invention.
[0012] According to the problem solving means of the present disclosure described above, a device and an operating method thereof can be provided for transplanting a deep neural network model at ultra-high speed by programming the weights of synaptic elements in parallel to an integrated circuit having a large-scale neural network.
[0013] In addition, according to the problem solving means of the present disclosure, a high-precision transplant device and its operating method can be provided by minimizing disturbance during programming of adjacent synaptic elements even when synaptic elements have high-density weights.
[0014] The effects of the embodiments are not limited to the effects mentioned above, and other effects not mentioned will be clearly understood by those skilled in the art from the description of the present invention.
[0015] FIG. 1 is a diagram for explaining the implementation of a neural network system according to one embodiment.
[0016] FIG. 2 is a diagram for explaining a bit-by-bit programming method according to one embodiment.
[0017] Figure 3 is a conceptual diagram schematically representing a bit-by-bit programming method according to one embodiment.
[0018] Figure 4 is a conceptual diagram schematically representing a self-referential programming method according to one embodiment.
[0019] FIG. 5 is an example diagram of a neural network system implemented using self-referential programming according to one embodiment.
[0020] FIG. 6 is a diagram for explaining the operation of a self-reference circuit according to one embodiment.
[0021] Figure 7 is an exemplary diagram of a self-reference circuit according to one embodiment.
[0022] Figure 8 is a graph showing the result of self-referential programming according to one embodiment.
[0023] Figure 9 is a flowchart of a method for implementing a neural network system according to one embodiment.
[0024] In a neural network system, a system can be provided, comprising: a neural network circuit including first memory cells arranged in an array form; and a self-reference circuit electrically connected to a row line or a column line of the neural network circuit and applying current to the connected row line or column line so that a plurality of target memory cells have preset target weights; wherein the target memory cells are all memory cells located in the row line or the column line to which the self-reference circuit is connected.
[0025] In describing the present invention, if it is determined that a detailed description of a related known technology may obscure the gist of the present invention, the detailed description may be omitted, and unless defined otherwise, all terms used in this specification have the same meaning as generally understood by a person of ordinary skill in the technical field to which the present invention belongs.
[0026] The appearances of phrases such as “according to one embodiment,” “relating to one embodiment,” or “according to an implementation of one embodiment” in this specification do not necessarily all refer to the same embodiment.
[0027] The embodiments may be modified in various ways and may take various forms. Some embodiments are illustrated in the drawings and described in detail. However, this is not intended to limit the embodiments to a specific disclosed form, but rather to encompass all modifications, equivalents, and alternatives falling within the spirit and technical scope of the embodiments. The terminology used in the specification is solely for the purpose of describing the embodiments and is not intended to limit the embodiments.
[0028] The terms used in the examples are selected from widely used, common terms, taking into account the functions of the examples. However, these terms may vary depending on the intentions of engineers working in the technical fields to which the examples pertain, precedents, the emergence of new technologies, etc. Furthermore, in certain cases, terms may be arbitrarily selected by the applicant, in which case their meanings will be described in detail in the relevant section. Therefore, the terms used in the examples should be defined based on the meaning of the terms and the overall content of the examples, rather than simply their names.
[0029] Some embodiments of the present disclosure may be represented by functional block configurations and various processing steps. Some or all of these functional blocks may be implemented by various hardware and / or software components that perform specific functions. For example, the functional blocks of the present disclosure may be implemented by one or more microprocessors or by circuit configurations for specific functions.
[0030] Additionally, for example, the functional blocks of the present disclosure may be implemented in various programming or scripting languages. The functional blocks may be implemented as algorithms that run on one or more processors. Furthermore, the present disclosure may employ conventional techniques for electronic configuration, signal processing, and / or data processing.
[0031] Terms such as "database," "element," "means," and "configuration" are broadly used and are not limited to mechanical or physical components. Furthermore, terms such as "-unit" and "-module" described in the specification mean a unit that processes at least one function or operation, which may be implemented in hardware, software, or a combination of hardware and software.
[0032] Additionally, the connecting lines or connecting members between components depicted in the drawings are merely exemplary representations of functional connections and / or physical or circuit connections. In an actual device, connections between components may be represented by various functional connections, physical connections, or circuit connections that may be replaced or added.
[0033] Additionally, terms including ordinal numbers, such as "first" or "second," used herein may be used to describe various components, but the components should not be limited by the terms. The terms are used only to distinguish one component from another.
[0034] Additionally, some components in the drawings may be depicted with somewhat exaggerated sizes or proportions. Additionally, components depicted in one drawing may not be depicted in another drawing.
[0035] Throughout this specification, the term "embodiment" is an arbitrary distinction used to facilitate the description of the invention in this disclosure, and each embodiment is not necessarily mutually exclusive. For example, the configurations disclosed in one embodiment may be applied and / or implemented in other embodiments, and may be modified and applied and / or implemented without departing from the scope of the present disclosure.
[0036] Additionally, the terminology used in this disclosure is for the purpose of describing embodiments and is not intended to limit the embodiments. In this disclosure, singular forms also include plural forms unless specifically stated otherwise.
[0037] Below, embodiments of the present disclosure are described in detail with reference to the attached drawings so that those skilled in the art can easily implement the present disclosure. However, the embodiments of the present disclosure may be implemented in various different forms and are not limited to the embodiments described in the present disclosure.
[0038] Hereinafter, the present invention will be described in detail with reference to the drawings based on this.
[0039] FIG. 1 is a diagram for explaining the implementation of a neural network system according to one embodiment.
[0040] Referring to Fig. 1, the trained artificial neural network model (10) and actual hardware (20) can be confirmed.
[0041] The fact that the artificial neural network model (10) has been trained means that the weights of each layer of the artificial neural network model (10) have been determined by a large amount of learning data. If the weights, which are the results of the learning of the artificial neural network model (10), are stored in a central cloud server, a cloud computing device using the artificial neural network model (10) can communicate with the central cloud server to transmit input values to the artificial neural network model (10) and receive output values. In this case, even if the artificial neural network model (10) is very complex or large-scale, the output values can be used without any problems in the cloud computing device.
[0042] However, in the case of an edge computing device (20) that processes data on the device itself without communicating with a central cloud server, the artificial neural network model (10), i.e., the weights determined through learning, must be accurately transplanted to the actual hardware (20). This becomes a problem when the artificial neural network model (10) is very complex or large-scale.
[0043] In the artificial neural network model (10), when the state values of each weight are very diverse (e.g., 128 states), the crossbar array implemented in the actual hardware (20) is formed with high density. Each memory cell included in the neural network circuit of the actual hardware (20) is located on the same word line (WL) and bit line (BL) as the adjacent memory cell. At this time, the program / erase operation that transplants the weight to the memory cell may cause disturbance to the adjacent memory cell, which may cause broadening and shift of the current of the adjacent memory cell. This disturbance phenomenon may cause the state values of each weight to overlap in the high-density crossbar array, making it difficult to accurately arrange the weights.
[0044] Additionally, when the artificial neural network model (10) is large-scale, the number of memory cells can reach millions or tens of millions. There is a problem in that the time required to transplant weights into numerous memory cells and to mass-produce such hardware (20) to deploy the artificial neural network model (10) on hardware (20) is extremely time-consuming.
[0045] FIG. 2 is a diagram for explaining a bit-by-bit programming method according to one embodiment.
[0046] Referring to FIG. 2, a neural network system (20) implemented using bit-unit programming may include a neural network circuit (200), an address decoder (210), and a controller (220).
[0047] The neural network circuit (200) may include memory cells arranged in an array form.
[0048] In one embodiment, the memory cell of the neural network circuit (200) may be a flash memory cell. The memory cell includes a source region and a drain region formed on a semiconductor substrate, and a channel region is formed between the source region and the drain region. In addition, a floating gate is formed over at least one of the source region, the drain region, and the channel region, and is insulated from the regions by a gate insulating film.
[0049] In one embodiment, the memory cell of the neural network circuit (200) may be a split-gate memory cell. The split-gate memory cell includes a source / drain region formed on a semiconductor substrate, and a pair of floating gates are disposed on the semiconductor substrate adjacent to both sides of the source / drain region. Each upper surface of the floating gates is covered by an inter-gate oxide film, and a control gate is formed to cover an upper surface of the inter-gate oxide film and is insulated from the floating gate. A gate insulating film is formed between the floating gates and the semiconductor substrate, and a select gate is disposed on an upper portion of the source / drain region and is insulated by the gate insulating film. The control gate and the select gate are insulated by an extension of the inter-gate oxide film formed between the floating gate and the control gate.
[0050] Meanwhile, in a split-gate memory cell, a source region or a drain region can be formed on the semiconductor substrate on opposite sides of the source / drain region based on the floating gates. A cell in which the source / drain region operates as a source is called an odd cell, and a cell in which the source / drain region operates as a drain is called an even cell. Odd cells and even cells can have a mirror-symmetrical structure based on the source / drain region.
[0051] In one embodiment, the memory cell of the neural network circuit (200) may have a two-layer crossbar array structure having a crossbar array composed of row lines and column lines, and a crossbar array composed of word lines and bit lines. The word line terminal is connected to a select gate, and the bit line terminal is connected to a drain region, so that a write (program / erase) operation and a read operation can be performed, respectively.
[0052] A memory cell removes electrons from the floating gate by applying a high positive voltage to the word line terminal. This is called an erase operation. Specifically, when a high positive voltage is applied to the word line terminal, electrons in the floating gate tunnel from the floating gate, pass through the insulator, and are injected into the select gate. In other words, they are injected into the word line terminal.
[0053] A memory cell is activated by applying a positive voltage to the word line terminal and a positive voltage to the source region, causing electrons to be injected into the floating gate. This is called a program operation. Specifically, when a positive voltage is applied to the word line terminal and the source region, electron current flows from the source region toward the drain region. As the electrons reach the space between the word line terminal and the floating gate, they are accelerated and heated, and some of them pass through the insulating film due to electrostatic attraction and are injected into the floating gate.
[0054] The configuration and arrangement of the source region, drain region, channel region, floating gate, and select gate of a flash memory cell may vary depending on the structure of the flash memory.
[0055] In one embodiment, the memory cell may correspond to not only flash memory, but also RRAM (Resistive Random Access Memory), PRAM (Phase-Change Random Access Memory), MRAM (Magnetic Random Access Memory), etc., and the type of memory cell is not limited thereto.
[0056] The address decoder (210) may include a column decoder (X-address decoder) and a row decoder (Y-address decoder). The column decoder may include a word line decoder and a bit line decoder. The row decoder may include a source line decoder and a control gate decoder. Each decoder may decode an input to the memory cell array of the neural network (200). Additionally, the source line decoder may decode an output of the memory cell array of the neural network (200).
[0057] The controller (220) transmits the location of the memory cell to perform a read / write operation to the address decoder (210) and the program / erase voltage ( , ) to control the write operation, and the read operation can be controlled by receiving the current output from the memory cell.
[0058] Below, the bit-by-bit programming method is explained.
[0059] The controller (220) transmits a signal to the address decoder (210) to designate one memory cell (for convenience of explanation, the first memory cell) in which to store the weight, and stores the weight in the first memory cell by applying a program / erase voltage through a word line corresponding to the first memory cell. A read operation through a bit line may be performed before and after the program / erase operation.
[0060] Next, the controller (220) transmits a signal to the address decoder (210) to designate a second memory cell in which to store the weight, and stores the weight in the second memory cell by applying a program / erase voltage through a word line corresponding to the second memory cell. Similarly, a read operation through a bit line can be performed before and after the program / erase operation.
[0061] In this way, a neural network system (20) can be implemented by sequentially applying program / erase voltages to all memory cells of a neural network circuit (200) to store weights determined from a learned model.
[0062] Figure 3 is a conceptual diagram schematically representing a bit-by-bit programming method according to one embodiment.
[0063] Referring to FIG. 3, the bit-by-bit programming method described in FIG. 2 can be schematically confirmed when the neural network circuit has M row lines and N column lines.
[0064] In bit-level programming operations, weights are directly stored in M*N memory cells, which is the product of the number of row lines and the number of column lines. In other words, the weight trimming operation through program / erase operations is directly performed for each memory cell.
[0065] However, as described above, memory cells sharing word lines or bit lines may move away from the target weight due to the expansion and movement of current caused by disturbance during program / erase operations of adjacent memory cells after the weights are stored. The disturbance phenomenon may be amplified by repetition of program / erase operations, and in the case of a neural network circuit (200) of a high-density crossbar array, the state values of the weights may overlap. This may cause errors in the neural network system (20).
[0066] Additionally, bit-level programming has the problem that it is not suitable for mass production because it requires performing write / read operations on each of millions to tens of millions of memory cells in the case of large-scale neural network systems.
[0067] Figure 4 is a conceptual diagram schematically representing a self-referential programming method according to one embodiment.
[0068] There are various programming methods for weight programming of memory cells, including bit-by-bit programming described above as well as iterative programming.
[0069] The iterative programming method performs a program / erase operation, i.e., a write operation, on all memory cells of the neural network circuit, verifies the stored weights through a read operation, and then performs the write operation again to remove errors corresponding to the difference value with the target weights.
[0070] At this time, an error correction code may be applied to the write operation to remove the error.
[0071] In this way, by repeating write and read operations for the entire memory cell, the error value of the target current of the memory cell can be reduced, and thus, the disturbance phenomenon of adjacent memory cells can be minimized compared to the bit-by-bit programming method described through FIGS. 2 and 3.
[0072] However, for high-density crossbar arrays, dozens of iterated write / read operations are required to reduce error levels sufficiently to distinguish the weight state values. Therefore, for large-scale neural network systems, the total programming time is long, making iterative programming methods unsuitable for mass production of products using large-scale neural network systems.
[0073] The iterative programming approach is suitable for applications where the size of the neural network system is sufficiently small.
[0074] Accordingly, in one embodiment of the present invention, a two-step programming method is disclosed, which performs weight programming for a small-scale embedded system and then performs programming for the entire neural network circuit using the programmed small-scale embedded system.
[0075] For example, referring to FIG. 4, a weight trimming (1st Trim) operation through a program / erase operation is performed on a small-scale crossbar array having n memory cells, and the programmed small-scale crossbar arrays are prepared in numbers equal to the number of row lines (M) or the number of column lines (N) and electrically connected to the row lines or column lines of a neural network circuit, and each small-scale crossbar array can perform a weight trimming (2nd Trim) operation through a program / erase operation on the memory cells of the column lines or the entire memory cells of the row lines.
[0076] That is, row-by-row programming or column-by-column programming can be performed.
[0077] Below, a self-referential programming method according to one embodiment is described based on row-level programming, but it can also be applied to column-level programming, and the principles are the same. Furthermore, in the above description, small-scale embedded systems and small-scale crossbar arrays may refer to self-referential circuits.
[0078] FIG. 5 is an example diagram of a neural network system implemented using self-referential programming according to one embodiment.
[0079] Referring to FIG. 5, the neural network system may include a self-reference circuit (500), a neural network circuit (510), and a band gap circuit (520).
[0080] The neural network circuit (510) may include a plurality of memory cells arranged in an array form. Hereinafter, the memory cell included in the neural network circuit (510) is referred to as a first memory cell.
[0081] In the description of the first memory cell, any description that overlaps with that described above with reference to FIG. 2 will be omitted. That is, the first memory cell may correspond not only to flash memory, but also to RRAM (Resistive Random Access Memory), PRAM (Phase-Change Random Access Memory), MRAM (Magnetic Random Access Memory), etc.
[0082] The band gap circuit (520) can provide a reference voltage so that a constant voltage is applied to the self-reference circuit (500). Since the band gap circuit (520) does not sensitively change its output depending on the external environment, it can operate as a reference voltage source or a reference current source, and is therefore also called a band gap reference circuit. The band gap circuit (520) can be electrically connected to a plurality of self-reference circuits (500) to provide a reference voltage or a reference current so that a constant voltage or a constant current is applied to the self-reference circuits (500).
[0083] In one embodiment, the self-reference circuit (500) may be electrically connected to a row line of a neural network circuit (510). When the neural network circuit (510) forms a crossbar array with M row lines and N column lines, the M self-reference circuits (500) may be electrically connected to each row line of the neural network circuit (510). The self-reference circuit (500) may perform weight programming on a first memory cell located in a connected row line. Hereinafter, all memory cells located in a row line to which the self-reference circuit (500) is connected among the first memory cells are defined as target memory cells.
[0084] In one embodiment, the self-reference circuit (500) can apply current to the connected row lines so that the plurality of target memory cells have preset target weights. For example, the neural network system may further include a write circuit (not shown) that performs a programming operation on the target memory cells so that the target memory cells have preset target weights. That is, the self-reference circuit (500) can perform a read operation on the target memory cells, specifically, can deliver an accurate source voltage to the target memory cells, and the write circuit (not shown) can perform a write operation on the target memory cells.
[0085] FIG. 6 is a diagram for explaining the operation of a self-reference circuit according to one embodiment.
[0086] Referring to FIG. 6, a crossbar array circuit and a self-reference circuit (500) that embody the neural network circuit (510) of FIG. 5 can be confirmed.
[0087] The neural network circuit (510) may be composed of a first crossbar array and a second crossbar array. The memory cells of the neural network circuit (510) may be composed of split-gate memory cells to implement a two-layer crossbar array structure. For convenience of explanation, the first row line (hereinafter referred to as “first row line”) (601) and the first column line (hereinafter referred to as “first column line”) (611) of the first crossbar array, and the first row line (hereinafter referred to as “first* row line”) (602) and the first column line (hereinafter referred to as “first* row line”) (612) of the second crossbar array will be described.
[0088] The first row line (601) may correspond to a source line that supplies a source voltage to the memory cell (600). The first column line (611) may correspond to a bit line that performs a read operation. The first* row line (602) may supply an input voltage to the memory cell (600). The first* column line (612) may correspond to a word line that performs a write operation.
[0089] In one embodiment, the source region, the drain region, and the gate of each of the plurality of first memory cells or target memory cells (600) located in the neural network circuit may be connected to at least one of the row line and the column line of the neural network circuit. As an example, the target memory cell (600) located in the first row line (601) and the first column line (611) of the neural network circuit may have its components electrically connected to the first column line (611), the first* row line (602), and the first* column line (612).
[0090] Specifically, a drain region of the target memory cell (600) may be connected to a first column line (611) and may receive a drain voltage from the first column line. A control gate of the target memory cell (600) may be connected to a first row line (602) and may receive a gate voltage from the first row line (602). Therefore, the first row line (602) may perform a write operation on the target memory cell (600). A select gate of the target memory cell (600) may be connected to the first column line (612). A source region of the target memory cell (600) may be electrically connected to a self-reference circuit (500).
[0091] In one embodiment, for a self-reference circuit (500) connected to a first row line (601), a cell designation circuit (not shown) can select a designated memory cell by designating a specific column line, i.e., a target line. The first memory cell is determined by an address at the intersection of the connected row line and column line, and each of the first memory cells has a preset target weight. Accordingly, the cell designation circuit (not shown) can select a designated memory cell so that a current corresponding to the target weight can be applied from the self-reference circuit (500) to an appropriate memory cell.
[0092] Figure 7 is an exemplary diagram of a self-reference circuit according to one embodiment.
[0093] Referring to FIG. 7, the self-reference circuit (500) may include a second memory cell (710), a comparator (720), and a pass gate (730).
[0094] In one embodiment, the second memory cell (710) may have a tuning gate voltage applied to its control gate.
[0095] In one embodiment, the number of second memory cells (710) may be two or more. When the number of second memory cells (710) is two or more, each of the second memory cells (710) may be connected in parallel. In addition, different tuning gate voltages may be applied to the control gates of the second memory cells (710) connected in parallel, so that different output currents may flow. In this case, since no current flows when the second memory cells (710) are in an inactive (turned off) state, the output current may include 0.
[0096] In one embodiment, the number of second memory cells (710) may be determined based on the number of state values of the weights that the target memory cell can have. For example, when the neural network system is configured so that the first memory cell has 256 state values, the self-reference circuit (500) may include eight second memory cells (710). Accordingly, weight programming of the second memory cells (710) may be performed so that the output currents of each second memory cell (710) flow differently, and the eight second memory cells (710) may be activated or deactivated depending on whether each of them is activated or deactivated. The state values of the dog can be output. Meanwhile, if the second memory cell (710) is a split-gate type memory cell, the positive state value and the negative state value can be output from the odd cells and the even cells, respectively. That is, the second memory cell (710) can output the positive state value and the negative state value according to the output of each odd cell and even cell. It can output the dog's status value.
[0097] That is, the first memory cell When configuring a neural network system to have a state value of a dog, the self-reference circuit (500) may include n second memory cells (710). In addition,
[0098] According to the above description, since weight programming of the target memory cell is performed based on a combination of output currents flowing through the second memory cell (710), the output currents can be combined to correspond to the state values of the weights. Consequently, the combination of output currents can be applied to each target memory cell of the row line to which the self-reference circuit (500) is connected through the pass gate (730), so that weight programming can be performed to have a preset target weight.
[0099] In one embodiment, the comparator (720) compares the voltage across the second memory cell (710) with a preset comparator voltage ( ) can output the comparison result as a digital signal. For example, the comparator (720) can output the voltage at both ends of the second memory cell (710) and the preset comparator voltage ( ) are the same, current may not flow through both ends of the comparator (720). Specifically, when a tuning gate voltage is applied to the second memory cell (710) and a target output current flows through the second memory cell (710), the channel conductance of the second memory cell (710) and the potential of the band gap circuit connected to the self-reference circuit (500) become the same. That is, since the voltage across both ends of the second memory cell (710) input to the comparator (720) and the comparator voltage become the same, the comparator (720) can determine that tuning of the second memory cell (710) is completed as a digital signal.
[0100] In one embodiment, the comparator (720) can determine whether the self-reference circuit (500) is connected to the neural network circuit and has completed weight programming so that the target memory cell (the first memory cell) has a target weight. For example, when current is applied to the target memory cell of the neural network circuit so that the target memory cell has a target weight, the channel conductance of the target memory cell and the channel conductance of the second memory cell (710) of the self-reference circuit (500) become the same. That is, since the voltage across the target memory cell input to the comparator (720) and the comparator voltage become the same, the comparator (720) can determine that the weight programming of the target memory cell is completed as a digital signal.
[0101] In one embodiment, the pass gate (730) allows current to pass through the second memory cell (710) according to the digital signal.
[0102] In one embodiment, the second memory cell (710) of the self-reference circuit (500) may be programmed by a bit-by-bit programming method or an iterative programming method. Specifically, the tuning gate voltage of the second memory cell (710) may be determined by an iterative programming method and applied to each second memory cell (710). As described above, the self-reference circuit (500) is a small-scale embedded system determined by the number of state values of the weights of the first memory cells, and thus can be quickly programmed by a bit-by-bit programming method or an iterative programming method. In particular, by applying an iterative programming method, highly accurate programming can be performed in a short time.
[0103] Figure 8 is a graph showing the result of self-referential programming according to one embodiment.
[0104] Referring to Figure 8, the cumulative distribution function of the weight state values of each first memory cell as a result of self-reference programming can be confirmed. It can be confirmed that each weight state value is programmed to be clearly distinguished in a high-density crossbar array.
[0105] In Fig. 8, a 7-bit state is illustrated, but this is only an example, and the number of state values of the weight is not limited thereto.
[0106] Figure 9 is a flowchart of a method for implementing a neural network system according to one embodiment.
[0107] Referring to FIG. 9, a method for implementing a neural network system can be performed by a neural network system implementation device (hereinafter referred to as “device”).
[0108] In step 910, the device can obtain a target weight of a first memory cell included in a neural network circuit and arranged in an array form.
[0109] At step 920, the device can tune the self-reference circuit.
[0110] In one embodiment, the self-reference circuit can apply current to connected row lines or column lines such that a plurality of target memory cells have target weights. In this case, the target memory cells may refer to all memory cells located in the row lines or column lines to which the self-reference circuit is connected.
[0111] In one embodiment, the self-reference circuit may include a plurality of second memory cells connected in parallel with each other, with a tuning gate voltage applied to the control gate.
[0112] In one embodiment, the number of second memory cells may be determined based on the number of state values of weights that the target memory cell can have.
[0113] In one embodiment, the self-reference circuit may include a comparator that outputs a comparison result between a voltage across both ends of the second memory cell and a set comparator voltage as a digital signal.
[0114] In one embodiment, the device can apply different tuning gate voltages to the control gate to cause different output currents to flow to the plurality of second memory cells. In this case, the output current can include 0, and the combination of output currents can correspond to the state values of the weights.
[0115] In one embodiment, the self-reference circuit can apply a combination of output currents to the target memory cells such that the target memory cells have a predetermined target weight.
[0116] At step 930, the device can electrically connect the tuned self-reference circuit to a row line or a column line of the neural network circuit to adjust the weights of the neural network circuit.
[0117] In one embodiment, the device can select a designated memory cell corresponding to a target line from among a plurality of target memory cells by specifying a target line of a neural network circuit.
[0118] In one embodiment, the device can perform a programming operation on a target memory cell such that the target memory cell has a target weight.
[0119] In one embodiment, the device can provide a reference voltage such that a constant voltage is applied to the self-reference circuit.
[0120] Meanwhile, embodiments according to the present invention may be implemented in the form of a computer program that can be executed through various components on a computer, and such a computer program may be recorded on a computer-readable medium. At this time, the medium may include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specifically configured to store and execute program instructions, such as ROMs, RAMs, and flash memories.
[0121] Meanwhile, the computer program may be specifically designed and constructed for the present invention, or may be one known and available to those skilled in the computer software field. Examples of computer programs may include not only machine language code, such as that generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.
[0122] According to one embodiment, the method according to various embodiments of the present disclosure may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) through an application store (e.g., Play Store™) or directly between two user devices. In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.
[0123] Unless the steps constituting the method according to the present invention are explicitly described in a specific order or are otherwise described in a different order, the steps may be performed in any appropriate order. The present invention is not necessarily limited to the order in which the steps are described. The use of all examples or exemplary terms in the present invention is merely intended to illustrate the present invention in detail, and the scope of the present invention is not limited by the examples or exemplary terms unless otherwise defined by the claims. Furthermore, those skilled in the art will appreciate that various modifications, combinations, and variations can be configured according to design conditions and factors within the scope of the appended claims or their equivalents.
[0124] Therefore, the idea of the present invention should not be limited to the embodiments described above, and not only the scope of the patent claims described below but also all scopes equivalent to or equivalently modified from the scope of the patent claims are considered to fall within the scope of the idea of the present invention.
Claims
1. In neural network systems, A neural network circuit comprising first memory cells arranged in an array form; and A self-reference circuit electrically connected to a row line or a column line of the neural network circuit and applying current to the connected row line or column line so that a plurality of target memory cells have preset target weights; Including, The above target memory cell is, A system in which all memory cells located in a row line or column line to which the above self-reference circuit is connected.
2. In paragraph 1, The above self-reference circuit, A tuning gate voltage is applied to the control gate, and a plurality of second memory cells are connected in parallel with each other; and A system comprising a comparator that outputs a comparison result between the voltage at both ends of the second memory cell and a preset comparator voltage as a digital signal.
3. In paragraph 2, The above plurality of second memory cells, A system in which the number is determined based on the number of state values of the weight that the target memory cell can have.
4. In paragraph 3, The above plurality of second memory cells, Different tuning gate voltages are applied to the control gate, so that different output currents - including 0 - flow. The combination of the above output currents is: A system characterized in that it corresponds to the state value of the above weight.
5. In paragraph 4, The above self-reference circuit, A system that applies a combination of the output currents to the target memory cells so that the target memory cells have preset target weights.
6. In paragraph 1, The above neural network system, A system comprising: a write circuit for performing a programming operation on the target memory cell so that the target memory cell has the preset target weight; 7. In paragraph 1, A system further comprising a band gap circuit providing a reference voltage so that a constant voltage is applied to the self-reference circuit.
8. In the method of implementing a neural network system, A step of obtaining a target weight of a first memory cell included in a neural network circuit and arranged in an array form; Step of tuning the self-reference circuit; and A step of electrically connecting the tuned self-reference circuit to a row line or a column line of the neural network circuit to adjust the weight of the neural network circuit; The above self-reference circuit, Applying current to the connected row line or column line so that a plurality of target memory cells have the target weight, The above target memory cell is, A method wherein all memory cells located in a row line or column line to which the above self-reference circuit is connected.
9. In paragraph 8, The above self-reference circuit, A tuning gate voltage is applied to the control gate, and a plurality of second memory cells are connected in parallel with each other; and A method comprising a comparator that outputs a comparison result between the voltage at both ends of the second memory cell and a preset comparator voltage as a digital signal.
10. In paragraph 9, The above plurality of second memory cells, A method in which the number is determined based on the number of state values of the weight that the target memory cell can have.
11. In paragraph 10, The step of tuning the above self-reference circuit is: A step of applying different tuning gate voltages to the control gate so that different output currents, including 0, flow through the plurality of second memory cells; The combination of the above output currents is: A method characterized in that it corresponds to the state value of the above weight.
12. In paragraph 11, The above self-reference circuit, A method of applying a combination of the output currents to the target memory cells so that the target memory cells have preset target weights.
13. In paragraph 8, The above method, A method further comprising: performing a programming operation on the target memory cell so that the target memory cell has the target weight.
14. In paragraph 8, The above method, A method further comprising the step of providing a reference voltage so that a constant voltage is applied to the self-reference circuit.
15. A computer-readable recording medium recording a program for executing the method of Article 8 on a computer.
Citation Information
Patent Citations
Apparatus and method for making dental prostheses
KR1020200091744A
Method and apparatus for providing random selection and long-term potentiation and depression in an artificial network
US20150106315A1
Neuromorphic device and electronic device including the same
US20230005529A1
KR20210110354A
KR20230022589A
