Invention Grant
- Patent Title: Accelerating inference of transformer-based models
-
Application No.: US17372902Application Date: 2021-07-12
-
Publication No.: US11763082B2Publication Date: 2023-09-19
- Inventor: Saurabh Goyal , Anamitra Roy Choudhury , Saurabh Manish Raje , Venkatesan T. Chakaravarthy , Yogish Sabharwal , Ashish Verma
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Ryan, Mason & Lewis, LLP
- Main IPC: G06F40/284
- IPC: G06F40/284 ; G06N3/0495 ; G06N3/082 ; G06N3/04 ; G06N3/08

Abstract:
Methods, systems, and computer program products for accelerating inference of transformer-based models are provided herein. A computer-implemented method includes obtaining a machine learning model comprising a plurality of transformer blocks, a task, and a natural language dataset; generating a compressed version of the machine learning model based on the task and the natural language dataset, wherein the generating comprises: obtaining at least one set of tokens, wherein each token in the set corresponds to one of the items in the natural language dataset, identifying and removing one or more redundant output activations of different ones of the plurality of transformer blocks for the at least one set of tokens, and adding one or more input activations corresponding to the one or more removed output activations into the machine learning model at subsequent ones of the plurality of the transformer blocks; and outputting the compressed version of the machine learning model to at least one user.
Public/Granted literature
- US20230015895A1 ACCELERATING INFERENCE OF TRANSFORMER-BASED MODELS Public/Granted day:2023-01-19
Information query