IP Library Granted Patent US 12,737,609
Granted Patent B2
US 12,737,609 · App. 17/165,849 · Granted Sep 15, 2026

Systems and methods for quantization aware training of a neural network for heterogeneous hardware platform

Inventors: Yang Liu (San Jose, CA); Yongxiong Ren (San Jose, CA); Lingzhi Liu (San Jose, CA)
Assignee: BEIJING TRANSTREAMS TECHNOLOGY CO. LTD.
G06N3/08G06F18/211G06F18/217
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,737,609
App. No.
17/165,849
Granted
Sep 15, 2026
Kind
B2
Abstract

Systems and methods are provided for quantization aware training of a neural network for heterogeneous hardware platform. In the method, the system acquires hardware profiles with respect to a plurality of hardware components of a heterogeneous hardware platform. The system determines a plurality of hardware configurations based on the hardware profiles. The system acquires a set of training data and performing a quantization aware training using the training data on a network model based on the hardware configurations. The system obtains the network model with model weights for the heterogeneous hardware platform.

Claims (62)

1 . A method of performing quantization aware training (QAT) of a neural network, comprising:

acquiring hardware profiles with respect to a plurality of hardware components of a heterogeneous hardware platform, wherein the hardware profiles comprise performance data associated with the execution of different types of neural networks;

determining hardware configurations based on the performance data without imposing architecture constraints by:

selecting a computational component from the hardware components for each layer of the quantization aware training based on the hardware profiles comprising the performance data;

determining a computing precision for each layer of the quantization aware training based on the hardware profiles comprising the performance data; and

generating the hardware configurations associated with the selected computational component and the determined computing precision with respect to performing the neural network based on the hardware profile corresponding to the selected computational component, wherein the hardware configurations comprise one or more of quantization configurations and a plurality of computing precisions with respect to performing the neural network;

acquiring a set of training data and performing a quantization aware training using the training data on a network model based on the hardware configurations to mimic the hardware configurations of the heterogeneous hardware platform; and

obtaining the network model with model weights for the heterogeneous hardware platform based at least in part on the hardware configurations.

2 . The method of claim 1 ,

further comprising:

determining whether computational components and computing precisions are determined for each layer of quantization aware training;

in response to determining that the computational component and the computing precision are not determined for one layer of quantization aware training, selecting a computational component and determining a computing precision for a next layer of the quantization aware training based on the hardware profiles comprising the performance data; and

in response to determining that the computational component and the computing precision are determined for one layer of quantization aware training, acquiring the set of training data and performing the quantization aware training using the training data on the network model based on the hardware configurations.

3 . The method of claim 1 , wherein the plurality of computing precisions are determined based on the hardware profiles with respect to performing the neural network.

4 . The method of claim 1 , wherein the hardware configurations are determined based on:

selecting a computational component and determining a computing precision for each layer of the quantization aware training based on the hardware profiles, wherein the computational component is selected from the hardware components.

5 . The method of claim 1 , further comprising:

evaluating the trained network model on the heterogeneous hardware platform and obtaining an evaluation result; and

fine-tunning the hardware configurations based on the evaluation result.

6 . The method of claim 1 , wherein the hardware components are one or more selected from central processing unit (CPU), graphics processing unit (GPU), application-specific integrated circuit (ASIC), and field programmable gate array (FPGA).

7 . The method of claim 1 , wherein the performance data comprise throughput, latency, power consumption, or cost associated with the hardware components of the heterogeneous hardware platform.

8 . A quantization aware training (QAT) system, comprising:

at least one computer storage memory operable to store data along with computer-executable instructions; and

at least one processor operable to read the data and operate the computer-executable instructions to:

acquiring hardware profiles with respect to a plurality of hardware components of a heterogeneous hardware platform, wherein the hardware profiles comprise performance data associated with the execution of different types of neural networks;

determining hardware configurations based at least in part on the performance data without imposing architecture constraints by:

selecting a computational component from the hardware components for each layer of the quantization aware training based on the hardware profiles comprising the performance data;

determining a computing precision for each layer of the quantization aware training based on the hardware profiles comprising the performance data; and

generating the hardware configurations associated with the selected computational component and the determined computing precision with respect to performing the neural network based on the hardware profile corresponding to the selected computational component, wherein the hardware configurations comprise one or more of quantization configurations and a plurality of computing precisions with respect to performing the neural network;

acquiring a set of training data and performing a quantization aware training using the training data on a network model based on the hardware configurations to mimic hardware configurations of the heterogeneous hardware platform; and

outputting the network model with model weights for the heterogeneous hardware platform based at least in part on the hardware configurations.

9 . The QAT system of claim 8 , wherein the at least one processor is further configured to

determine whether computational components and computing precisions are determined for each layer of quantization aware training;

in response to determining that the computational component and the computing precision are not determined for one layer of quantization aware training, select a computational component and determine a computing precision for a next layer of the quantization aware training based on the hardware profiles comprising the performance data; and

in response to determining that the computational component and the computing precision are determined for one layer of quantization aware training, acquire the set of training data and perform the quantization aware training using the training data on the network model based on the hardware configurations.

10 . The QAT system of claim 8 , wherein the plurality of computing precisions are determined based on the hardware profiles with respect to performing the neural network.

11 . The QAT system of claim 8 , wherein the at least one processor is further configured to determine the hardware configurations based on:

selecting a computational component and determining a computing precision for each layer of the QAT based on the hardware profiles, wherein the computational component is selected from the hardware components.

12 . The QAT system of claim 8 , wherein the at least one processor is further configured to:

evaluating the trained network model on the heterogeneous hardware platform and obtaining an evaluation result; and

fine-tunning the hardware configurations based on the evaluation result.

13 . The QAT system of claim 8 , wherein the hardware components are one or more selected from central processing unit (CPU), graphics processing unit (GPU), application-specific integrated circuit (ASIC), and field programmable gate array (FPGA).

14 . The QAT system of claim 8 , wherein the performance data comprise throughput, latency, power consumption, or cost associated with the hardware components of the heterogeneous hardware platform.

15 . A non-transitory computer readable medium having stored thereon a program for executing a method of performing quantization aware training of a neural network, the method comprising:

acquiring hardware profiles with respect to a plurality of hardware components of a heterogeneous hardware platform, wherein the hardware profiles comprise performance data associated with the execution of different types of neural networks;

determining hardware configurations based at least in part on the performance data without imposing architecture constraints by:

selecting a computational component from the hardware components for each layer of the quantization aware training based on the hardware profiles comprising the performance data;

determining a computing precision for each layer of the quantization aware training based on the hardware profiles comprising the performance data; and

generating the hardware configurations associated with the selected computational component and the determined computing precision with respect to performing the neural network based on the hardware profile corresponding to the selected computational component, wherein the hardware configurations comprise one or more of quantization configurations and a plurality of computing precisions with respect to performing the neural network;

acquiring a set of training data and performing a quantization aware training using the training data on a network model based on the hardware configurations to mimic hardware configurations of the heterogeneous hardware platform; and

obtaining the network model with model weights for the heterogeneous hardware platform based at least in part on the hardware configurations.

16 . The non-transitory computer readable medium of claim 15 , wherein the method further comprises

determining whether computational components and computing precisions are determined for each layer of quantization aware training;

in response to determining that the computational component and the computing precision are not determined for one layer of quantization aware training, selecting a computational component and determining a computing precision for a next layer of the quantization aware training based on the hardware profiles comprising the performance data; and

in response to determining that the computational component and the computing precision are determined for one layer of quantization aware training, acquiring the set of training data and performing the quantization aware training using the training data on the network model based on the hardware configurations.

17 . The non-transitory computer readable medium of claim 15 , wherein the plurality of computing precisions are determined based on the hardware profiles with respect to performing the neural network.

18 . The non-transitory computer readable medium of claim 15 , wherein the method further determines the hardware configurations based on:

selecting a computational component and determining a computing precision for each layer of the QAT based on the hardware profiles, wherein the computational component is selected from the hardware components.

19 . The non-transitory computer readable medium of claim 15 , wherein the method further comprising:

evaluating the trained network model on the heterogeneous hardware platform and obtaining an evaluation result; and

fine-tunning the hardware configurations based on the evaluation result.

20 . The non-transitory computer readable medium of claim 15 , wherein the hardware profiles comprise throughput, latency, power consumption, or cost associated with the hardware components of the heterogeneous hardware platform.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 28, 2024
From: BEIJING DAJIA INTERNET INFORMATION TECHNOLOGY CO. LTD.,
To: BEIJING TRANSTREAMS TECHNOLOGY CO. LTD.
Reel/Frame 066941/0319 →
CORRECTIVE ASSIGNMENT TO CORRECT THE APPLICATION 11830480 TO PATENT NUMBER PREVIOUSLY RECORDED AT REEL: 66622 FRAME: 672. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT . Recorded Mar 12, 2024
From: KWAI INC.
To: BEIJING DAJIA INTERNET INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 066795/0775 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2024
From: KWAI INC.
To: BEIJING DAJIA INTERNET INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 066622/0672 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 3, 2021
From: LIU, YANG; REN, YONGXIONG; LIU, LINGZHI
To: KWAI INC.
Reel/Frame 055123/0150 →
Continuity (1)
Related Publication 20220245447A1 · Aug 4, 2022
References Cited (15)
US 11615304B1 · Palkar · 2023 [cited by examiner]
US 11676004B2 · Denolf · 2023 [cited by examiner]
US 20190057305A1 · Denolf · 2019 [cited by examiner]
US 20190391898A1 · Vichare · 2019 [cited by examiner]
US 20200210832A1 · Driscoll · 2020 [cited by examiner]
US 20200218962A1 · Lee · 2020 [cited by examiner]
US 20200302289A1 · Ren · 2020 [cited by examiner]
US 20210019630A1 · Yao · 2021 [cited by examiner]
US 20210125042A1 · Han · 2021 [cited by examiner]
US 20210224658A1 · Mathew · 2021 [cited by examiner]
US 20220044109A1 · Donnelly · 2022 [cited by examiner]
US 20230055313A1 · Cao · 2023 [cited by examiner]
D. Marculescu, D. Stamoulis and E. Cai, “Hardware-Aware Machine Learning: Modeling and Optimization, ” 2018 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), San Diego, CA, USA, 2018, pp. 1-8, doi: 10.… [cited by examiner]
Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han, “HAQ: Hardware-Aware Automated Quantization with Mixed Precision” (Year: 2019). [cited by examiner]
Krishnamoorthi, Raghuraman, “Quantizing deep convolutional networks for efficient inference: A whitepaper” Jun. 2018, (36p). [cited by applicant]