# US 2021/0287077 A1 · Systems and methods for implementing operational transformations for restricted computations of a mixed-signal integrated circuit

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

- Number: US 2021/0287077 A1
- Document ID: US20210287077A1
- Status: Published application
- Kind: A1
- Application number: 17/149,843
- Filed: 2021-01-15
- Published: 2021-09-16
- Earliest claimed: 2019-11-26
- Assignees: Mythic, Inc.
- Applicants: Mythic, Inc.
- Inventors: Andrew Morten; Eric Stotzer; Pei-Ci Wu; Michail Tzoufras; David Fick
- Web page: https://patentgrep.com/patent/US20210287077A1

## CPC

- G06N 3/048: Activation functions
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 18/24133: {Distances to prototypes}
- G06F 18/29: {Graphical models, e.g. Bayesian networks}
- G06N 3/0499: Feedforward networks
- G06N 3/065: Analogue means
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for improving a computational performance of a mixed-signal integrated circuit includes identifying a suboptimal graph component of a computation graph of a subject application, wherein: (i) the computation graph comprises a plurality of graphical nodes representing computational operations and a plurality of graphical edges representing data dependencies between the graphical nodes, and (ii) the suboptimal graph component comprises a subset of the plurality of graphical nodes and the plurality of graphical edges that do not satisfy an optimal operation threshold; at compile time, selectively applying an optimizing transformation to the suboptimal graph component based on attributes of a first activation function within the suboptimal graph component, wherein the optimization transformation, when applied, transforms the suboptimal graph component to an optimal graph component that satisfies the optimal operation threshold; and reconstructing the computation graph using the optimal graph component in a place of the suboptimal graph component.

## Claims

### Claim 1

A method for transforming one or more components of a computation network graph, the method comprising:
identifying an input leading into an activation operation node of a computation graph, the input comprising a dataset having negative data values;
implementing one or more computing devices executing a compiler program that transforms the activation operation node of the computation graph based on the identifying the input having the dataset having the negative data values, the transforming includes:
replacing a first activation function of the activation operation node with a second activation function, wherein:
(a) the first activation function, if applied at runtime to the dataset having the negative data values, replaces the negative data values with zero, and
(b) the second activation function, when applied to the dataset having the negative data values, shifts the negative data values into a positive range of values.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
identifying a computation operation of the computation graph that outputs the dataset having the negative data values, wherein the transforming further includes:
adjusting the weights bias value of the computation operation based on a bit range of an analog-to-digital converter (ADC).

### Claim 3 (depends on 2)

The method according to claim 2, wherein
the adjusting the weights bias value of the computation operation includes reducing the weights bias value by one-half the bit range of the ADC.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
the first activation function comprises a rectifier linear unit,
the second activation function comprises a hard sigmoid, and
after the transformation, the activation operation node comprises the hard sigmoid.

### Claim 5 (depends on 1)

The method according to claim 1, wherein
at runtime, the activation operation node comprising the second activation function is applied following a first computation operation of the computation graph that outputs the dataset having the negative data values.

### Claim 6 (depends on 5)

The method according to claim 5, wherein
the computation operation is implemented by a matrix multiply accelerator.

### Claim 7 (depends on 5)

The method according to claim 5, wherein
the computation operation is implemented by a streaming arithmetic logic unit.

### Claim 8 (depends on 2)

The method according to claim 2, wherein
the adjusting the weights bias value of the computation operation is further based on one or more of a gain and a scaling factor.

### Claim 9

A method for transforming one or more components of a computation network graph, the method comprising:
identifying a first computation operation in a first branch of a computation graph, the first computation operation having a saturating activation function;
identifying a second computation operation in a second branch of the computation graph, the second computation operation having the saturating activation function;
at compile time, transforming the first computation operation and the second computation operation, wherein the transforming includes:
fusing the first computation operation and the second computation operation into a combined computation operation.

### Claim 10 (depends on 9)

The method according to claim 9, wherein
the first computation operation is implemented by a first matrix multiply accelerator; and
the second computation operation is implemented by a second matrix multiply accelerator.

### Claim 11 (depends on 9)

The method according to claim 9, wherein
the saturating activation function is applied to an output of the combined computation operation.

### Claim 12 (depends on 9)

The method according to claim 9, wherein
the saturating activation function of the first computation operation and the second computation operation comprises a hardtanh activation.

### Claim 13 (depends on 9)

The method according to claim 9, wherein
the fusing includes:
concatenating computational weights and biases of the first computation operation and the second computation operation.

### Claim 14 (depends on 9)

The method according to claim 9, wherein:
an output of the combined operation leads as input into an activation operation node of the computation graph, the input comprising a dataset having negative data values;
the activation operation node of the computation graph is transformed based on the identifying the input having the dataset having the negative data values, the transforming of the activation operation node includes:
replacing a first activation function of the activation operation node with a second activation function, wherein:
(a) the first activation function, if applied at runtime to the dataset having the negative data values, replaces the negative data values with zero, and
(b) the second activation function, when applied to the dataset having the negative data values, shifts the negative data values into a positive range of values

### Claim 15

A method for transforming one or more components of a computation network graph, the method comprising:
identifying a first computation operation node of a computation graph that outputs a dataset having negative data values;
identifying an input leading into a second computation operation node of the computation graph, the input having the dataset having negative data values;
at compile time, transforming the first computation operation node based on identifying the input leading into the second computation operation, the transforming includes:
(i) installing an activation function within the first computation operation node, the activation function, when applied to the output of the first computation operation node, converts the negative data values of the output of the first computation operation node to positive data values.
or
(ii) replacing a first activation function of the first computation operation node with a second activation function, the second activation function, when applied to the output of the first computation operation node, converts the negative data values of the output of the first computation operation node to positive data values.

### Claim 16 (depends on 15)

The method according to claim 15, wherein
the first computation operation node is implemented by a streaming arithmetic logic unit, and
the activation function comprises a hard sigmoid activation.

### Claim 17 (depends on 15)

The method according to claim 15, wherein
the first computation operation node is implemented by a streaming arithmetic logic unit or a matrix multiply accelerator, and
the first activation function comprises a hardtanh activation and the second activation function replacing the first activation function comprises a hard sigmoid activation.

### Claim 18 (depends on 15)

The method according to claim 15, wherein
the transforming further includes:
adjusting the weights bias value of the second computation operation node based on an input range of a matrix multiply accelerator implementing the second computation operation node.

### Claim 19 (depends on 18)

The method according to claim 18, wherein
the adjusting the weights bias value includes reducing the weights bias value by one-half of the input range of the matrix multiply accelerator.
