EP4736070A1 - Dispositif et procédé d'évaluation de similarité - Google Patents
Dispositif et procédé d'évaluation de similaritéInfo
- Publication number
- EP4736070A1 EP4736070A1 EP25728070.1A EP25728070A EP4736070A1 EP 4736070 A1 EP4736070 A1 EP 4736070A1 EP 25728070 A EP25728070 A EP 25728070A EP 4736070 A1 EP4736070 A1 EP 4736070A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- vector
- circuit
- electrical
- matrix multiplication
- pulses
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/063—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
- G06N3/065—Analogue means
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/049—Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
Definitions
- the invention relates to a device and a method for determining attention.
- the following equation can be used to determine attention.
- QK T is a vector-matrix multiplication.
- the result is a first vector.
- the softmax function is an operation on the first vector to transform it into a second vector containing probabilities.
- the softmax function divides each value of the first vector by the sum of all values in the first vector and stores the result in the new second vector.
- Multiplying the operation by V is another vector-matrix multiplication.
- the equation for Attention(Q,K,V) performs a similarity assessment between queries (Q) and keys (K) to weight the information of the value (V).
- K can be sequence elements from the future, present, and past, while Q is current input data.
- the equation for Attention(Q,K,V) outputs a weighted sum of values, allowing you to focus on the important parts of a query. Attention makes it possible to concentrate on specific information and ignore irrelevant parts. In machine learning, attention is used to focus on important elements of input data in order to improve task performance. Instead of the softmax function, other activation functions can also be used to detect attention. Determining attention requires very large matrix operations that consume a lot of power.
- the object of the invention is to enable the detection of attention with minimal effort.
- Method for detecting attention comprising the steps of: performing a first vector-matrix multiplication such that each value of the vector resulting from the vector-matrix multiplication is generated in the form of an electrical signal, such as an electric current; Converting any generated electrical signal into a pulse, the occurrence of which depends on the signal's magnitude, for example, the electrical charge of the signal, with the pulse occurring later the larger the electrical signal (e.g., the greater the charge); determining an action from the pulses.
- the electrical signal can be a flowing electric current.
- the electrical signal can be a voltage.
- the electrical signal can be integrated through a capacitor, thus yielding an action that results from the magnitude of the electrical signal.
- Determining the action from the pulses can involve a second vector-matrix multiplication.
- Determining attention from the pulses can involve a time-dependent reduction of values. Values generated using the pulses can be reduced over time. The earlier a value is generated, the greater the reduction can be. The time dependence of the reduction can be exponential.
- the first vector-matrix multiplication can be performed using an analog circuit. Determining attention from the pulses can be performed using an analog circuit.
- the analog circuit can include memristors.
- a device for carrying out the method can include a first electrical circuit configured to perform a vector-matrix multiplication and output the result of the vector-matrix multiplication in the form of electrical signals.
- the device can include a second electronic circuit configured to convert each electrical signal into a time-dependent electrical pulse.
- the circuit can include a third electronic circuit configured to determine attention from the time-dependent electrical pulses.
- the first, second, and/or third electrical circuits may include memristors. Circuits with memristors may be configured to perform vector-matrix multiplications.
- the third circuit may additionally include resistors and capacitors. The components of the third circuit may be configured to derive attention from input values.
- the resistors and capacitors of the third circuit may be designed to reduce values resulting from vector-matrix multiplications over time. These values may be reduced exponentially and may be values resulting from pulses of the second circuit.
- the second electrical circuit may include a capacitor for integrating an electrical signal.
- the second circuit may include a capacitor discharge device.
- the first circuit can include comparators.
- the second circuit can include transistors.
- the components of the second circuit can be configured to generate a time-dependent pulse from the magnitude of a time-dependent signal.
- the second circuit can include an operational amplifier.
- the second circuit can reduce a value, for example, linearly. This can be done by a charged capacitor that is discharged through an electrical resistor with a constant current. This can be done digitally, either alternatively or additionally.
- a procedure for determining attention can include the following steps: Performing an initial vector-matrix multiplication.
- the initial vector-matrix multiplication can be performed digitally or analogously.
- Each value of the vector resulting from the initial vector-matrix multiplication can be generated in the form of an electrical signal.
- the generated electrical signal can be an electric current.
- the amount of charge in the generated electric current can be a measure of the value of the resulting vector. The greater the amount of charge, the greater the value can be.
- Each generated value can be converted into an electrical pulse.
- the timing of such an electrical pulse can depend on the generated value. Therefore, the timing of such an electrical pulse can depend on the amount of charge in the respective generated current if the amount of charge in a generated electric current is a measure of the value of a generated vector.
- a pulse can occur later the larger a value is.
- a pulse can occur later the larger a charge quantity is, if the charge quantity of a generated electric current is a measure of the value of a generated vector.
- the time of occurrence of an electrical signal is then a measure of the value of a generated vector. Attention can be determined from the pulses. This means that attention is determined from the times of occurrence of pulses.
- the invention is therefore based on the idea of representing a vector by electrical signals, the timing of which is a measure of the vector's values. Determining attention from the pulses can include a second vector-matrix multiplication. This second vector-matrix multiplication can be performed analogously or digitally. Determining attention from the electrical pulses can include a time-dependent reduction of values, which can be performed digitally or analogously. Values generated using the pulses can be reduced in a time-dependent manner.
- a value generated based on the timing of an electrical pulse can subsequently be reduced, again depending on the timing of its occurrence.
- the earlier the electrical pulse occurs the greater the reduction of the value determined using that pulse. In other words, the earlier a value is generated, the greater the reduction can be.
- the time dependence of the reduction can be exponential.
- a value determined very early can be reduced significantly.
- a value determined somewhat later can be reduced considerably less.
- Values occurring late in the process can hardly be reduced at all. Values occurring late in the process can be reduced only minimally. In this sense, the time dependence of the reduction can correspond to an exponential decay.
- the first vector-matrix multiplication can be performed using an analog circuit. Compared to a digitally performed vector-matrix multiplication, this provides an improved solution to the problem of the invention.
- the analog circuit can include memristors to perform the first vector-matrix multiplication.
- the values of a matrix K ⁇ sub> T ⁇ /sub> can be programmed as resistance values of the memristors.
- Voltages applied to the analog circuit can represent the values of a vector Q.
- a separate input can be provided for each vector value.
- Each input can be electrically connected to a plurality of memristors.
- a first input can be electrically connected to the first memristors of the circuit for multiplication.
- a second input can be electrically connected to other second memristors for multiplication, and so on.
- a resulting current which depends on the voltage applied to the associated input and the resistance value of a memristor, is then a measure of the result of multiplying a vector value by a matrix value.
- the analog circuit designed to perform a first vector-matrix multiplication can have a separate output for each value of a vector resulting from the first vector-matrix multiplication. Each output can be electrically connected to a plurality of memristors to add currents.
- a first output can be electrically connected to a plurality of first memristors to add currents.
- a second output can be electrically connected to a plurality of second, other memristors to add currents, and so on.
- Electrical signals generated at the outputs of the analog circuit can therefore be the result of a vector-matrix multiplication.
- These can be analog electrical signals.
- An analog electrical signal can represent a quantity of charge. Determining an attention from the pulses can be performed using an analog circuit. Compared to a purely digital determination of attention from the pulses, this allows the object of the invention to be solved more effectively.
- the circuit for detecting attention can include an analog circuit that can operate like the analog circuit for detecting a first vector-matrix multiplication.
- the circuit for detecting attention can also include memristors so that the values of a matrix V can be programmed as resistance values.
- the analog circuit used for detecting attention can have a separate input for each pulse. The circuit performs a multiplication as soon as a pulse arrives.
- the results of the multiplications are available at different times.
- the result of a multiplication can be reduced by a preset factor for each unit of time. For example, this factor could be 0.9.
- the result of a multiplication will then be multiplied by 0.9 very often if the result of a multiplication arrives very early. The later the result of a multiplication arrives, the less often it is multiplied by 0.9. In this way, the results of a multiplication can be reduced as a function of time, according to an exponential decay.
- Figure 1 shows a circuit for performing a vector-matrix multiplication
- Figure 2 Circuit for generating time-dependent electrical signals
- Figure 3 Circuit for detecting attention
- Figure 4 Example of a circuit for integrating a time-dependent electrical signal.
- Figure 5 Delay circuit.
- Figure 1 shows a circuit 1 that can perform vector-matrix multiplication.
- the circuit 1 comprises memristors r11 to r34 and electrical terminals v11 to v14 for applying electrical voltages.
- the values of a matrix K ⁇ sub> T ⁇ /sub> can be stored in the memristors r11 to r34.
- the values of a vector Q can be applied to the terminals v11 to v14 in the form of voltages.
- the summed electric currents which have been routed to the outputs, can be converted into electric voltages by converters 5. These electric voltages can charge capacitors 6 to temporarily store the result of the vector addition.
- Each memristor r11 to r34 can be followed by a transistor 7 to switch the function of each memristor r11 to r34 via terminals 8.
- the circuit 1 shown in Figure 1 allows for energy-efficient vector-matrix multiplication with minimal technical effort, for example, to perform a vector-matrix multiplication QK T. However, it is not strictly necessary to use such an analog circuit 1.
- a vector-matrix multiplication, such as the matrix multiplication QK T can Alternatively, the process can be performed digitally.
- FIG. 2 illustrates how a time-dependent voltage pulse is generated from the charge of an electric current.
- An electric current entering the circuit shown in Figure 2 via an input IN is integrated by an integrator 9.
- the integrator 9 can include a capacitor for integration.
- the integrator can also include only one capacitor. Therefore, a capacitor can be the integrator itself, which is particularly preferable.
- the capacitor can be a capacitor 6 from Figure 1. Once the electric current has been integrated, the integrator 9 can then be discharged, for example, linearly. The resulting linearly decreasing voltage can be applied to the first inputs of two differential stages 10.
- the differential stages 10 can be comparators.
- a first reference voltage Vref1 can be applied to the second input of one differential stage 10, or one comparator, and a second reference voltage Vref2 can be applied to the second input of the other differential stage 10, or the second comparator.
- These two reference voltages, Vref1 and Vref2 define a voltage window. If the voltage applied to the first inputs of the two comparators 10 reaches a value within this window due to the discharge of the integrator 9, then two electrical switches 11 and 12, controlled by the differential stages 10, are open. An electric current can then flow through the two switches 11 and 12. If the voltage is outside the window, then at least one switch 11 or 12 is open. In this case, no current can flow through the two switches 11 and 12.
- the two switches 11 and 12 can be transistors.
- a delay circuit (also called a delay circuit) is an electronic circuit that deliberately delays a signal, i.e., The output signal occurs with a specific time delay after the input signal.
- the circuit can include a discharge device 13, through which the integrator 9 can be discharged linearly, for example, at a desired time.
- the discharge device 13 can include a transistor as a switch to enable the discharge to occur at a desired time.
- the discharge device 13 can also include an electrical resistor through which the integrator 9 can be discharged. The value of the electrical resistor determines how quickly the integrator 9 can discharge.
- a current mirror can be used for discharge.
- a current mirror is an electronic circuit that ensures that a specific electrical current is constantly duplicated or "mirrored.”
- a current mirror typically consists of two (or more) transistors, usually bipolar transistors or MOSFETs, connected in such a way that the current through one transistor (reference current) is replicated by one or more other transistors.
- a current mirror allows for particularly precise control of the discharge.
- the circuit sketched in Figure 2 is provided for each value of a vector previously generated by vector-matrix multiplication.
- the third circuit shown in Figure 3 can be used to determine an attention level .
- This third circuit can perform a second vector-matrix multiplication and comprises a circuit 1 for this purpose.
- Voltage pulses Vp1 to Vp4 can be applied to circuit 1 as soon as they occur.
- the values can be reduced exponentially to allow for suitable attention level determination.
- Capacitors 16 integrate the currents generated by the pulses. The capacitors 16 are discharged via the resistors 15.
- FIG. 4 shows an example of a circuit with one input IN and one output OUT for integrating incoming currents.
- the circuit comprises three resistors R1 to R3, two transistors T1 and T2, an operational amplifier OP, and a capacitor C.
- the capacitor C integrates the charge of a current arriving via the input IN. A discharge occurs as soon as transistor T1 is switched on. A current then flows through resistor R2.
- a self-feedback operational amplifier OP
- Switching on transistor T2 and resistor R3 ensures that the capacitor can be fully discharged initially.
- the circuit shown in Figure 4 can integrate an electrical signal.
- FIG. 5 An embodiment of a circuit for generating time-dependent electrical signals is shown in Figure 5.
- the circuit shown can be used for each output of the circuit 1 (array) shown in Figure 3.
- This embodiment of a circuit for generating time-dependent electrical signals shown in Figure 5, can connect a first such circuit 1 with a second such circuit 1 by applying pulses of constant length to the second circuit 1. The delay of these pulses is inversely linear and depends on the magnitude of the respective output current of the first circuit 1 during a charging process.
- the circuit for generating time-dependent electrical signals can, as shown in Figure 5, comprise an input 17, a comparator 18, a buffer 19, an inverter delay 20, a current mirror 21, an AND gate 22, a pulse gate 23, and/or an output 24.
- the switching voltage "V th " of the comparator is reached at a different time. This time is later the more charge was present after step 1. This charge, in turn, depends on the magnitude of the current that flowed through input 17 during the charging process. The switching time of the comparator 18 is thus inversely linearly dependent on the current.
- a digital buffer 19 serves to amplify the comparator signal.
- the buffered comparator signal is delayed by an inverting inverter delay 20, which can be implemented, for example, as an inverter delay with additional delay resistors in the GND or VSS path.
- a digital AND gate 22 with three inputs (3AND) controls, via the pulse gate 23, when a pulse is sent to the subsequent circuit 1 (array). As long as all three inputs to the AND gate 22 are HIGH, a pulse is applied. This is the case when the comparator 18 has switched to HIGH, but this switching has not yet been propagated by the inverter delay 20. Simultaneously, an enable signal is HIGH.
- the circuit shown in Figure 5 represents an alternative to the circuit shown in Figure 2.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Biomedical Technology (AREA)
- Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Biophysics (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Medical Informatics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Neurology (AREA)
- Manipulation Of Pulses (AREA)
Abstract
L'invention concerne un procédé de détermination de l'attention comprenant les étapes suivantes : - réaliser une première multiplication vecteur-matrice de sorte que chaque valeur du vecteur résultant de la multiplication vecteur-matrice est générée sous la forme d'un signal électrique; - convertir chaque signal électrique généré en une impulsion dont l'occurrence dépend de l'amplitude du signal respectivement généré, plus le signal est important, plus tard une impulsion se produit; et - déterminer l'attention à partir des impulsions. Une deuxième multiplication vecteur-matrice peut être effectuée. Un appareil pour la mise en oeuvre d'un procédé comprend un premier circuit électrique conçu pour réaliser une multiplication vecteur-matrice et délivrer en sortie le résultat de la multiplication vecteur-matrice sous forme de signaux électriques. L'appareil comprend un deuxième circuit électronique conçu pour convertir chaque signal électrique en une impulsion électrique dépendant du temps. L'appareil comprend un troisième circuit électronique conçu pour déterminer l'attention à partir des impulsions électriques dépendant du temps. Une deuxième multiplication vecteur-matrice peut être réalisée avec l'appareil.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| DE102024204913.1A DE102024204913A1 (de) | 2024-05-28 | 2024-05-28 | Vorrichtung und Verfahren für eine Ähnlichkeitsbewertung |
| PCT/EP2025/063826 WO2025247700A1 (fr) | 2024-05-28 | 2025-05-20 | Dispositif et procédé d'évaluation de similarité |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP4736070A1 true EP4736070A1 (fr) | 2026-05-06 |
Family
ID=95859845
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP25728070.1A Pending EP4736070A1 (fr) | 2024-05-28 | 2025-05-20 | Dispositif et procédé d'évaluation de similarité |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP4736070A1 (fr) |
| DE (1) | DE102024204913A1 (fr) |
| WO (1) | WO2025247700A1 (fr) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11023559B2 (en) * | 2019-01-25 | 2021-06-01 | Microsemi Soc Corp. | Apparatus and method for combining analog neural net with FPGA routing in a monolithic integrated circuit |
-
2024
- 2024-05-28 DE DE102024204913.1A patent/DE102024204913A1/de active Pending
-
2025
- 2025-05-20 WO PCT/EP2025/063826 patent/WO2025247700A1/fr active Pending
- 2025-05-20 EP EP25728070.1A patent/EP4736070A1/fr active Pending
Also Published As
| Publication number | Publication date |
|---|---|
| WO2025247700A1 (fr) | 2025-12-04 |
| DE102024204913A1 (de) | 2025-12-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| DE69621068T2 (de) | Analog-Digitalwandler nach dem Verfahren der sukzessiven Approximation | |
| DE112018004223T5 (de) | Trainieren künstlicher neuronaler Netze | |
| DE60024030T2 (de) | Auf Nadelpulsen basierter Analog-Digital-Wandlung des Stromtyps | |
| DE112019006735T5 (de) | Vorrichtung und verfahren zum kombinieren eines analogen neuronalen netzes mit fpga-routing in einer monolithischen integrierten schaltung | |
| DE2216123C3 (de) | Verfahren und Anordnung zur Analog-Digital-Umsetzung unter mehrfacher Integration | |
| DE112021006006T5 (de) | VERWENDUNG FERROELEKTRISCHER FELDEFFEKTTRANSISTOREN (FeFETs) ALS KAPAZITIVE VERARBEITUNGSEINHEITEN FÜR IN-MEMORY-COMPUTING | |
| DE19738561A1 (de) | Verfahren zum Steuern von Analog-Digital-Wandlern | |
| DE1474388B2 (de) | Schieberegisterspeicherstufe mit feldeffekttransistoren | |
| DE2439937A1 (de) | Verzoegerungspulsgenerator | |
| DE3149494C2 (fr) | ||
| DE69924013T2 (de) | Kapazitiver paralleler analog-digitalwandler | |
| DE69810405T2 (de) | Adiabatische Logikschaltung | |
| EP0834117B1 (fr) | Circuit permettant de comparer deux grandeurs electriques fournies par un premier neuro-transistor a effet de champ mos et une source de reference | |
| DE102021105181A1 (de) | Vorrichtung und verfahren zum lesen von daten in einem speicher | |
| DE2856955C2 (de) | Verfahren und Vorrichtung zur Digital-Analog- und Analog-Digital-Umwandlung | |
| WO2025247700A1 (fr) | Dispositif et procédé d'évaluation de similarité | |
| DE68921965T2 (de) | Schaltungsanordnung zur Verarbeitung von analogen elektrischen Signalen. | |
| DE1930275C3 (de) | Analog-Digital-Wandler | |
| DE69113414T2 (de) | Integrierte Konstantstromversorgung. | |
| DE112020002169T5 (de) | Recheneffiziente implementierung eines analogen neurons | |
| EP0128283A1 (fr) | Procédé et dispositif pour la conversion d'une valeur de température | |
| DE1801886C3 (de) | Taktgesteuerte elektronische Ver zogerungsstufe mit Feldeffekttransistoren | |
| DE2714946A1 (de) | Transfersales filter mit ladungsuebertragungsschaltungen | |
| DE2832155A1 (de) | Konstantstromschaltung mit misfets und ihre verwendung in einem signalumsetzer | |
| WO1996002090A1 (fr) | Procede de conversion analogique/numerique d'un signal electrique et dispositif de mise en ×uvre dudit procede |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: UNKNOWN |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20260127 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |