# US 2026/0037798 A1 · Model optimization method

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

- Number: US 2026/0037798 A1
- Document ID: US20260037798A1
- Status: Published application
- Kind: A1
- Application number: 19/239,685
- Filed: 2025-06-16
- Published: 2026-02-05
- Earliest claimed: 2024-07-30
- Assignees: Harman International Industries, Incorporated
- Applicants: Harman International Industries, Incorporated
- Inventors: Yu-Tin CHAO; Huaming CHEN; Hongwei YU; Qiang CHEN; ZhouYing YAN
- Web page: https://patentgrep.com/patent/US20260037798A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure provides a model optimization method capable of implementing cross-platform intelligent model deployment. A model optimization method executed on a first device may include: performing training using a first training dataset to obtain a first model; transforming the first training dataset with a transformation function to obtain a transformed dataset, and generating a second training dataset based on the first training dataset and the transformed dataset; training the first model using the second training dataset to obtain an adjusted first model; performing performance tests on the first model and the adjusted first model using a test dataset to respectively obtain a first performance metric and a second performance metric, and calculating a performance metric difference between the first and second performance metrics; generating an adjusted second training dataset based on the performance metric difference.

## Claims

### Claim 1

A method, comprising:
performing training on a first device using a first training dataset to obtain a first model;
transforming the first training dataset with a transformation function to obtain a transformed dataset;
generating a second training dataset based on the first training dataset and the transformed dataset, wherein the transformation function represents a processing capability of a second device to which a model is to be deployed with respect to data in the first training dataset;
training the first model on the first device using the second training dataset to obtain an adjusted first model;
performing performance tests on the first model and the adjusted first model using a test dataset to respectively obtain a first performance metric of the first model and a second performance metric of the adjusted first model, and calculating a performance metric difference between the first performance metric and the second performance metric;
adjusting the second training dataset based on the performance metric difference to generate an adjusted second training dataset, and training the adjusted first model using the adjusted second training dataset to obtain a second model; and
performing dynamic quantization on the second model on the first device to obtain an optimized model deployable to the second device.

### Claim 2 (depends on 1)

The method according to claim 1, wherein:
generating the second training dataset based on the first training dataset and the transformed dataset comprises selecting a portion of data from the transformed dataset to add to the first training dataset to generate the second training dataset; and
adjusting the second training dataset based on the performance metric difference to generate the adjusted second training dataset comprises increasing or decreasing a proportion of the portion of data in the transformed dataset based on the performance metric difference to generate the adjusted second training dataset.

### Claim 3 (depends on 1)

The method according to claim 1, wherein:
the first training dataset is an audio dataset;
the second device is an audio processing device; and
the transformation function is a frequency response curve of the second device with respect to audio data.

### Claim 4 (depends on 1)

The method according to claim 1, wherein:
the first training dataset is an image dataset;
the second device is an image processing device; and
the transformation function is a processing function of the second device with respect to image data.

### Claim 5 (depends on 1)

The method according to claim 1, wherein performing the dynamic quantization on the second model on the first device to obtain the optimized model deployable to the second device comprises:
quantizing each of a plurality of layers of the second model to generate a plurality of quantized layers;
calculating a difference between outputs of each of the plurality of layers and its corresponding quantized layer with respect to a same input to generate a set of output differences; and
replacing, when hardware resources on the second device are insufficient for all layers of the second model, one or more layers corresponding to one or more small output differences in the set of output differences with corresponding quantized layers to obtain the optimized model.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
converting a model file of the second model or the optimized model into an operator list, wherein the model file comprises a computation graph and a weight set, and the operator list comprises an operator position matrix, an operator size matrix, an operator weight matrix, an operator bias matrix, and an operator scale matrix; and
parsing the operator list in a traversal manner to extract a parameter set for each operator to generate a parameter list, wherein the parameter set comprises a weight, a bias, and a scale of each operator, and the parameter list is configured to be written into the second device to perform model computations.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
for two or more parameters in the parameter list that have a same size, calculating a similarity between the two or more parameters; and
when the similarity is greater than a predetermined threshold, retaining, in the parameter list, only a parameter value of one parameter among the two or more parameters and positions of parameters among the two or more parameters.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
deploying the optimized model on a second device, wherein the optimized model is obtained based on model optimization performed on the first device;
acquiring system memory and a system processing capability of the second device in real time prior to invoking the optimized model;
configuring layers and parameters of the optimized model based at least on the system memory and the system processing capability to generate an invoked model; and
executing the invoked model by the second device.

### Claim 9 (depends on 8)

The method according to claim 8, wherein configuring the layers and parameters of the optimized model based at least on the system memory and the system processing capability to generate the invoked model comprises:
determining a baseline model of the optimized model and a set of base layers serving as supplements to the baseline model;
calculating a count of configurable layers for each base layer based on the system memory, the system processing capability, and required memory and a required processing capability of each base layer in the set of base layers;
determining a plurality of base layers in the set of base layers with the count of configurable layers greater than zero as a set of candidate layers; and
selecting, based at least on the system memory and the system processing capability, one or more candidate layers from the set of candidate layers to supplement into the baseline model to generate the invoked model.

### Claim 10

A non-transitory computer-readable storage medium having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor on a first device, cause the processor to perform the steps of:
performing training using a first training dataset to obtain a first model;
transforming the first training dataset with a transformation function to obtain a transformed dataset, and generating a second training dataset based on the first training dataset and the transformed dataset, wherein the transformation function represents a processing capability of a second device to which a model is to be deployed with respect to data in the first training dataset;
training the first model using the second training dataset to obtain an adjusted first model;
performing performance tests on the first model and the adjusted first model using a test dataset to respectively obtain a first performance metric of the first model and a second performance metric of the adjusted first model, and calculating a performance metric difference between the first performance metric and the second performance metric;
adjusting the second training dataset based on the performance metric difference to generate an adjusted second training dataset, and training the adjusted first model using the adjusted second training dataset to obtain a second model; and
performing dynamic quantization on the second model to obtain an optimized model deployable to the second device.

### Claim 11 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein:
generating the second training dataset based on the first training dataset and the transformed dataset comprises selecting a portion of data from the transformed dataset to add to the first training dataset to generate the second training dataset; and
adjusting the second training dataset based on the performance metric difference to generate the adjusted second training dataset comprises increasing or decreasing a proportion of the portion of data in the transformed dataset based on the performance metric difference to generate the adjusted second training dataset.

### Claim 12 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein:
the first training dataset is an audio dataset;
the second device is an audio processing device; and
the transformation function is a frequency response curve of the second device with respect to audio data.

### Claim 13 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein:
the first training dataset is an image dataset;
the second device is an image processing device; and
the transformation function is a processing function of the second device with respect to image data.

### Claim 14 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein performing the dynamic quantization on the second model to obtain the optimized model deployable to the second device comprises:
quantizing each of a plurality of layers of the second model to generate a plurality of quantized layers;
calculating a difference between outputs of each of the plurality of layers and its corresponding quantized layer with respect to a same input to generate a set of output differences; and
replacing, when hardware resources on the second device are insufficient for all layers of the second model, one or more layers corresponding to one or more small output differences in the set of output differences with corresponding quantized layers to obtain the optimized model.

### Claim 15 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein the steps further comprise:
converting a model file of the second model or the optimized model into an operator list, wherein the model file comprises a computation graph and a weight set, and the operator list comprises an operator position matrix, an operator size matrix, an operator weight matrix, an operator bias matrix, and an operator scale matrix; and
parsing the operator list in a traversal manner to extract a parameter set for each operator to generate a parameter list, wherein the parameter set comprises a weight, a bias, and a scale of each operator, and the parameter list is configured to be written into the second device to perform model computations.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the steps further comprise:
for two or more parameters in the parameter list that have a same size, calculating a similarity between the two or more parameters; and
when the similarity is greater than a predetermined threshold, retaining, in the parameter list, only a parameter value of one parameter among the two or more parameters and positions of parameters among the two or more parameters.

### Claim 17 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein the steps further comprise:
deploying the optimized model on a second device, wherein the optimized model is obtained based on model optimization performed on the first device;
acquiring system memory and a system processing capability of the second device in real time prior to invoking the optimized model;
configuring layers and parameters of the optimized model based at least on the system memory and the system processing capability to generate an invoked model; and
executing the invoked model by the second device.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein configuring layers and parameters of the optimized model based at least on the system memory and the system processing capability to generate the invoked model comprises:
determining a baseline model of the optimized model and a set of base layers serving as supplements to the baseline model;
calculating a count of configurable layers for each base layer based on the system memory, the system processing capability, and required memory and a required processing capability of each base layer in the set of base layers;
determining a plurality of base layers in the set of base layers with the count of configurable layers greater than zero as a set of candidate layers; and
selecting, based at least on the system memory and the system processing capability, one or more candidate layers from the set of candidate layers to supplement into the baseline model to generate the invoked model.

### Claim 19

A system comprising:
a first device including:
a memory storing instructions for an application; and
a processor coupled to the memory that implements the application by performing the steps of:
performing training using a first training dataset to obtain a first model;
transforming the first training dataset with a transformation function to obtain a transformed dataset, and generating a second training dataset based on the first training dataset and the transformed dataset, wherein the transformation function represents a processing capability of a second device to which a model is to be deployed with respect to data in the first training dataset;
training the first model using the second training dataset to obtain an adjusted first model;
performing performance tests on the first model and the adjusted first model using a test dataset to respectively obtain a first performance metric of the first model and a second performance metric of the adjusted first model, and calculating a performance metric difference between the first performance metric and the second performance metric;
adjusting the second training dataset based on the performance metric difference to generate an adjusted second training dataset, and training the adjusted first model using the adjusted second training dataset to obtain a second model; and
performing dynamic quantization on the second model on the first device to obtain an optimized model deployable to the second device.

### Claim 20 (depends on 19)

The system of claim 19, wherein the steps further comprise:
deploying the optimized model on a second device, wherein the optimized model is obtained based on model optimization performed on the first device;
acquiring system memory and a system processing capability of the second device in real time prior to invoking the optimized model;
configuring layers and parameters of the optimized model based at least on the system memory and the system processing capability to generate an invoked model; and
executing the invoked model by the second device.
