Back to search

National University of Singapore

OPTIMIZING TRANSFORMER MODELS FOR IMPROVED INFERENCE EFFICIENCY AND COMPACTNESS

Abstract

dc:description.abstract

Transformer models, such as BERT and GPT, have revolutionized NLP and computer vision tasks, enabling advanced applications like large language models (LLMs) and Vision Transformers (ViTs). However, these models often suffer from slow inference speeds and high memory consumption due to their complex computations and large number of parameters. This thesis presents four innovative techniques to mitigate these challenges. Firstly, we implement a three-stage process that includes fusion, tiling, and thread allocation, optimized specifically for Transformer architectures. Secondly, we employ hierarchical reinforcement learning to automatically search for optimal configurations, including tile sizes and computation locations, enhancing performance. Thirdly, we use rapid full-integer quantized kernels, such as Softmax, GELU, and LayerNorm, to reduce latency and memory usage, enabling deployment on edge devices. Finally, we introduce a Hessian-based layer-wise pruning method, compressing large language models to 30% of their original size. These approaches accelerate full-precision and integer-based inference, significantly reduce memory footprint, and maintain accuracy. Experimental results demonstrate their effectiveness, showing potential for further optimization and application in growing model sizes.

Degree

thesis:*
Name thesis:degree_name
DOCTOR OF PHILOSOPHY (SOC)
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • ZHANG ZINING
Advisor dc:contributor.supervisor
  • Bingsheng He
ORCID dc:identifier.orcid

Subjects

dc:subject × 6

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Thesis Thesis Identifier
23369

Chain of custody

source
Harvested from
National University of Singapore
Base URL
scholarbank.nus.edu.sg/oai/request
Last updated
2026-11-28
Source record
OAI-PMH GetRecord
citation

ZHANG ZINING. OPTIMIZING TRANSFORMER MODELS FOR IMPROVED INFERENCE EFFICIENCY AND COMPACTNESS. 2024. https://scholarbank.nus.edu.sg/handle/10635/309534