# US 12,748,947 B1 · Systems and methods for intelligently folding normalization and weight parameters during a training of an artificial neural network

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

- Number: US 12,748,947 B1
- Document ID: US12748947B1
- Status: Granted
- Kind: B1
- Application number: 19/578,037
- Filed: 2026-03-25
- Granted: 2026-09-29
- Earliest claimed: 2026-02-17
- Assignees: Mythic, Inc.
- Applicants: Mythic, Inc.
- Inventors: Daniel Graves; Michael Klachko; Dave Fick; Michail Tzoufras
- Web page: https://patentgrep.com/patent/US12748947B1

## CPC

- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems and methods for generating a hardware-executable artificial neural network are disclosed. A training system accesses a network graph representing a pre-trained artificial neural network including a plurality of computational nodes. The training system transforms the network graph by replacing at least one computational node with a system-generated node that combines computational operations and normalization operations. During retraining of the artificial neural network, parameters associated with the normalization operations and the computational operations are folded to generate integrated parameters including a folded weight matrix and a folded bias matrix. The integrated parameters are updated during training and scaled according to a weight-representation heuristic. Output activations associated with the integrated node may also be scaled based on a composite scaling factor that improves signal-to-noise characteristics. Based on the retraining, a hardware-execution graph corresponding to the artificial neural network is generated and compiled into instructions executable by a matrix multiply accelerator or other integrated circuit configured to execute the artificial neural network.

## Claims

### Claim 1

A computer-implemented method for generating a hardware-executable artificial neural network for execution on a matrix multiply accelerator, the method comprising:
accessing a network graph representing a pre-trained artificial neural network, the network graph comprising a plurality of nodes including at least one computational node configured to perform a weighted sum operation;
transforming, by one or more processors, the network graph into a transformed network graph by replacing the at least one computational node with a system-generated node comprising:
(i) computational operations corresponding to the computational node and
(ii) normalization operations associated with a normalization layer;
initializing one or more normalization parameters of the system-generated node based on statistics derived from training data;
retraining the artificial neural network using the transformed network graph, the retraining comprising:
folding parameters of the normalization operations and parameters of the computational operations to generate an integrated node having a folded weight matrix and a folded bias matrix;
updating the folded weight matrix and the folded bias matrix during training iterations;
scaling the folded weight matrix and the folded bias matrix based on a weight-representation heuristic; and
scaling output activations associated with the integrated node based on a composite scaling factor that increases a signal-to-noise ratio of the output activations; generating, based on the retraining, a hardware-execution graph corresponding to the artificial neural network; and
compiling the hardware-execution graph into instructions executable by the matrix multiply accelerator.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein transforming the network graph further comprises identifying an activation node succeeding the computational node and associating an activation function of the activation node with the system-generated node such that the activation function is executed as an attribute of the system-generated node.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein retraining the artificial neural network further comprises modeling hardware characteristics of the matrix multiply accelerator by injecting simulated noise or distortion into intermediate outputs of the transformed network graph.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein scaling the folded weight matrix and the folded bias matrix further comprises splitting a bias value of the folded bias matrix into a plurality of bias components distributed across multiple bias storage locations of the matrix multiply accelerator.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein transforming the network graph further comprises identifying a normalization node adjacent to the computational node and grouping the normalization node and the computational node into the system-generated node.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein folding the parameters of the normalization operations and the parameters of the computational operations comprises folding parameters of a batch normalization operation into parameters of a linear node.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein folding the parameters of the normalization operations and the parameters of the computational operations comprises folding parameters of a batch normalization operation into parameters of a convolutional node.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein scaling the folded weight matrix and the folded bias matrix comprises computing the weight-representation heuristic using at least one of a mean value, a median value, or a percentile value derived from a combined weight and bias matrix.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein scaling the output activations associated with the integrated node further comprises identifying a dominant channel associated with the integrated node and computing the composite scaling factor based on a signal range of the dominant channel.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the transformed network graph includes a residual connection between nodes of the artificial neural network, and wherein scaling the output activations further comprises balancing signal ranges of tensors associated with the residual connection before combining the tensors at a combination node, the combination node comprising at least one of an addition node or a concatenation node.

### Claim 11 (depends on 1)

The computer-implemented method of claim 1, wherein initializing the normalization parameters comprises computing normalization statistics including a mean value and a variance value derived from training data associated with outputs of the computational node.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein initializing the normalization parameters further comprises computing scale and offset parameters based on the normalization statistics.

### Claim 13 (depends on 1)

The computer-implemented method of claim 1, wherein retraining the artificial neural network further comprises updating normalization statistics of the system-generated node during training iterations using batches of the training data.

### Claim 14 (depends on 1)

The computer-implemented method of claim 1, wherein generating the hardware-execution graph further comprises removing nodes used during retraining that simulate hardware effects and that are not required during inference on the matrix multiply accelerator.

### Claim 15 (depends on 1)

The computer-implemented method of claim 1, wherein compiling the hardware-execution graph further comprises inserting scaling operations such that signals propagated between nodes remain within a dynamic range supported by the matrix multiply accelerator.

### Claim 16 (depends on 1)

The computer-implemented method of claim 1, wherein the matrix multiply accelerator comprises a plurality of processing tiles including matrix multiply units and local memory units storing weights associated with the artificial neural network.

### Claim 17

A system for generating a hardware-executable artificial neural network for execution on a matrix multiply accelerator, the system comprising:
one or more processors; and
one or more non-transitory computer-readable storage media storing instructions that, when executed by the one or more processors, cause the system to:
access a network graph representing a pre-trained artificial neural network comprising a plurality of nodes including at least one computational node configured to perform a weighted sum operation;
transform the network graph into a transformed network graph by replacing the computational node with a system-generated node comprising computational operations corresponding to the computational node and normalization operations associated with a normalization layer;
initialize normalization parameters of the system-generated node based on statistics derived from training data;
retrain the artificial neural network using the transformed network graph, the retraining comprising folding parameters of the normalization operations and parameters of the computational operations to generate an integrated node having a folded weight matrix and a folded bias matrix;
update the folded weight matrix and the folded bias matrix during training iterations;
scale the folded weight matrix and the folded bias matrix based on a weight-representation heuristic;
scale output activations associated with the integrated node based on a composite scaling factor that increases a signal-to-noise ratio of the output activations;
generate a hardware-execution graph corresponding to the artificial neural network; and
compile the hardware-execution graph into instructions executable by the matrix multiply accelerator.

### Claim 18 (depends on 17)

The system of claim 17, wherein transforming the network graph further comprises identifying an activation node adjacent to the computational node and associating an activation function of the activation node with the system-generated node.
