# US 2025/0095728 A1 · Computing apparatus and robustness processing method therefor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0095728 A1
- Document ID: US20250095728A1
- Status: Published application
- Kind: A1
- Application number: 18/580,872
- Filed: 2021-12-13
- Published: 2025-03-20
- Earliest claimed: 2021-07-21
- Assignees: Tsinghua University
- Applicants: Tsinghua University
- Inventors: Bin GAO; Peng YAO; Huaqiang WU; Jianshi TANG; He QIAN
- Web page: https://patentgrep.com/patent/US20250095728A1

## CPC

- G11C 13/004: {Reading or sensing circuits or methods}
- G11C 13/0007: {comprising metal oxide memory material, e.g. perovskites}
- G11C 13/0069: {Writing or programming circuits or methods}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G11C: STATIC STORES (semiconductor memory devices H10B)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A computing apparatus and a robustness processing method thereof. The robustness processing method includes: based on model parameters of a target algorithm model, obtaining a mapping relationship between the model parameters and the first computing memristor array; based on an influence factor that determines a critical weight device, determining a way to obtain a weight criticality of the plurality of memristor devices from the influence factor; obtaining an input set of the algorithm model, and determining a criticality value for each of the plurality of memristor devices according to the way; determining a critical weight device among the plurality of memristor devices according to the criticality value for each of the plurality of memristor devices; and based on the critical weight device, performing an optimization processing on the first processing unit.

## Claims

### Claim 1

A robustness processing method of a computing apparatus, the computing apparatus comprising at least one processing unit, the at least one processing unit comprising a first processing unit, the first processing unit comprising a first computing memristor array, the first computing memristor array comprising a plurality of memristor devices arranged in an array,
wherein the method comprises:
based on model parameters of a target algorithm model, obtaining a mapping relationship between the model parameters and the first computing memristor array;
based on an influence factor that determines a critical weight device, determining a way to obtain a weight criticality of the plurality of memristor devices from the influence factor;
obtaining an input set of the algorithm model, and determining a criticality value for each of the plurality of memristor devices according to the way;
determining a critical weight device among the plurality of memristor devices according to the criticality value for each of the plurality of memristor devices; and
based on the critical weight device, performing an optimization processing on the first processing unit.

### Claim 2 (depends on 1)

The method according to claim 1, wherein a critical weight comprises a first critical weight that is independent of a hardware of the first processing unit, and the influence factor that determines the critical weight device comprises at least one first sub-influence factor,
based on the influence factor that determines the critical weight device, determining a way to obtain a first weight criticality of the plurality of memristor devices from the influence factor, comprising:
based on the at least one first sub-influence factor, determining a way to obtain a first weight criticality for each of the plurality of memristor devices from the first sub-influence factor.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the at least one first sub-influence factor comprises an importance factor for each of the plurality of memristor devices and/or a risk factor that affects a reliability of the first processing unit.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the importance factor for each of the plurality of memristor devices comprises a conductance value or a received input value for each of the plurality of memristor devices; the risk factor that affects the reliability of the first processing unit comprises a hardware feature or an algorithm task feature of the first processing unit.

### Claim 5 (depends on 3)

The method according to claim 3, wherein based on the at least one first sub-influence factor, determining a way to obtain a first weight criticality for each of the plurality of memristor devices from the first sub-influence factor, comprising:
through formula (1):
f
⁢
1
i
=
∑
i
[
r
p
·
(
α
·
g
·
x
i
+
β
·
r
⁡
(
g
)
)
]
(
1
)
calculating a first weight criticality value of any memristor device R in the first computing memristor array for the input value xi, wherein
f1i is the first weight criticality value of the memristor device R for the input value xi,
g is a conductance value of the memristor device R,
p refers to the first processing unit or the first computing memristor array,
xi is an input value for the memristor device R in the i-th operation,
r(g) is a reliability risk coefficient in the case where the conductance value is g,
rp is a model risk of the first processing unit or the first computing memristor array,
α is a hyperparameter corresponding to the importance factor,
β is a hyperparameter corresponding to the risk factor.

### Claim 6 (depends on 5)

The method according to claim 5, wherein based on the at least one first sub-influence factor, determining a way to obtain a first weight criticality for each of the plurality of memristor devices from the first sub-influence factor, further comprising:
for the memristor device R, accumulating the first weight criticality values of all the input values in a first input set to obtain a final first weight criticality value of the memristor device R.

### Claim 7 (depends on 6)

The method according to claim 6, wherein based on the at least one first sub-influence factor, determining a way to obtain a first weight criticality for each of the plurality of memristor devices from the first sub-influence factor, further comprising:
obtaining the first input set by uniformly sampling a training set for the algorithm model.

### Claim 8 (depends on 1)

The method according to claim 1, wherein a critical weight comprises a second critical weight related to the first processing unit, and the influence factor that determines the critical weight device comprises at least one second sub-influence factor,
based on the influence factor that determines the critical weight device, determining a way to obtain a second weight criticality of the plurality of memristor devices from the influence factor, comprising:
based on the at least one second sub-influence factor, determining a way to obtain a second weight criticality for each of the plurality of memristor devices from the second sub-influence factor.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the at least one second sub-influence factor comprises: an on-chip calculation deviation, an algorithm model risk coefficient, or input values for the plurality of memristor devices.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the on-chip calculation deviation comprises:
a first deviation between a first actual output value of each column of the first computing memristor array and a corresponding first ideal value, and/or
a second deviation between a second actual output value of each neuron in a neural unit layer of the neural network where the first computing memristor array is located and a corresponding second ideal value.

### Claim 11 (depends on 10)

The method according to claim 10, wherein based on the at least one second sub-influence factor, determining a way to obtain a second weight criticality for each of the plurality of memristor devices from the second sub-influence factor, comprising:
through formula (2):
f
⁢
2
i
=
∑
i
r
p
·
(
α
·
x
i
·
δ
i
)
(
2
)
calculating a second weight criticality value of any memristor device R in the first computing memristor array for the input value xi, wherein
f2i is the second weight criticality value of the memristor device R for the input value xi,
xi is an input value for the memristor device R in the i-th operation,
δi is a first deviation or a second deviation of a column or a neuron where the memristor device R is located in the i-th operation,
rp is a model risk coefficient of the first processing unit or the first computing memristor array,
α is an importance coefficient and is a hyperparameter.

### Claim at position 12

12-13. (canceled)

### Claim 14 (depends on 11)

The method according to claim 11, wherein based on the at least one second sub-influence factor, determining a way to obtain a second weight criticality for each of the plurality of memristor devices from the second sub-influence factor, further comprising:
during a computing process, setting different weight coefficients for different input values.

### Claim 15 (depends on 1)

The method according to claim 1, wherein based on the critical weight device, optimizing the first processing unit, comprising:
optimizing the critical weight devices by using an averaging strategy; and/or
optimizing the critical weight devices by using a re-refreshing strategy.

### Claim 16 (depends on 1)

The method according to claim 1, wherein determining a critical weight device among the plurality of memristor devices based on the criticality value for each of the plurality of memristor devices, comprises:
among the plurality of memristor devices, selecting a memristor device with a criticality value greater than a threshold corresponding to the first processing unit as the critical weight device; or,
among the plurality of memristor devices, selecting a device whose criticality value is within a first percentage of criticality values being sorted by size of the plurality of memristor devices as the critical weight device; or
in each column of the plurality of memristor devices, selecting a device whose criticality value is within a second percentage of criticality values being sorted by size of the memristor device in the each column as the critical weight device.

### Claim 17

(canceled)

### Claim 18 (depends on 1)

The method according to claim 1, wherein obtaining a mapping relationship between the model parameters and the first computing memristor array, comprises:
obtaining the model parameters through compiler deployment and division, and mapping a portion of the model parameters corresponding to the first computing memristor array to a plurality of memristor devices of the first computing memristor array.

### Claim 19

A computing apparatus, comprising: a first computing module, a second computing module, a third computing module and an in-memory computing module,
wherein the in-memory computing module comprises at least one processing unit and an optimization unit, the at least one processing unit comprises a first processing unit, the first processing unit comprises a first computing memristor array, and the first computing memristor array comprises a plurality of memristor devices arranged in an array;
the first computing module is configured to, based on model parameters of a target algorithm model, obtain a mapping relationship between the model parameters and the first computing memristor array, and based on an influence factor that determines a critical weight device, determine a way to obtain a weight criticality of the plurality of memristor devices from the influence factor;
the second computing module is configured to, obtain an input set of the algorithm model, and determine a criticality value for each of the plurality of memristor devices according to the way;
the third computing module is configured to determine a critical weight device among the plurality of memristor devices according to the criticality value for each of the plurality of memristor devices;
the optimization unit is configured to perform optimization processing on the first processing unit based on the critical weight device.

### Claim 20

A computing apparatus, comprising: a first computing sub-apparatus and an in-memory computing module,
wherein the in-memory computing module comprises at least one processing unit and an optimization unit, the at least one processing unit comprises a first processing unit, the first processing unit comprises a first computing memristor array, and the first computing memristor array comprises a plurality of memristor devices arranged in an array;
the first computing sub-apparatus comprises:
a processor and a memory, wherein the memory stores a computer executable program, and the computer executable program, when executed by the processor, is configured to implement the following method:
based on model parameters of a target algorithm model, obtaining a mapping relationship between the model parameters and the first computing memristor array;
based on an influence factor that determines a critical weight device, determining a way to obtain a weight criticality of the plurality of memristor devices from the influence factor;
obtaining an input set of the algorithm model, and determine a criticality value for each of the plurality of memristor devices according to the way;
determining a critical weight device among the plurality of memristor devices according to the criticality value for each of the plurality of memristor devices; and
based on the critical weight device, providing an instruction for performing optimization processing on the first processing unit;
wherein the optimization unit is configured to, based on the critical weight device, perform an optimization processing on the first processing unit according to the instruction.

### Claim 21 (depends on 19)

The computing apparatus according to claim 19, wherein the optimization unit comprises a redundant weight processing unit, which comprises a first redundant memristor array,
columns of the first redundant memristor array are in one-to-one correspondence with columns of the first computing memristor array to share the same bit line,
rows of the first redundant memristor array are parallel to rows of the first computing memristor array.

### Claim 22

(canceled)

### Claim 23 (depends on 19)

The computing apparatus according to claim 19, wherein the in-memory computing module further comprises a critical weight control unit, which is configured to select and process the critical weight device.

### Claim 24 (depends on 19)

The computing apparatus according to claim 19, wherein the in-memory computing module further comprises a deviation computing and processing unit, and the deviation computing and processing unit is configured to,
receive a first actual output value of each column of the first computing memristor array during an operation process and receive a corresponding first ideal value, and obtain a first deviation between the first actual output value and the first ideal value, and/or
receive a second actual output value of each neuron in a neural unit layer of the neural network where the first computing memristor array is located and a corresponding second ideal value, and obtain a second deviation between the second actual output value and the second ideal value.
