paper-with-me

Papers

I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models

2024-05-28 · Xing Hu, Yuan Cheng, Dawei Yang, Zhihang Yuan, Jiangyong Yu, Chen Xu, Sifan Zhou

Post-training quantization (PTQ) serves as a potent technique to accelerate the inference of large language models (LLMs). Nonetheless, existing works still necessitate a considerable number of floating-point (FP) operations during inference, including additional quantization and de-quantization, as well as non-linear operators such as RMSNorm and Softmax. This limitation hinders the deployment of LLMs on the edge and cloud devices. In this paper, we identify the primary obstacle to integer-only quantization for LLMs lies in the large fluctuation of activations across channels and tokens in both linear and non-linear operations. To address this issue, we propose I-LLM, a novel integer-only fully-quantized PTQ framework tailored for LLMs. Specifically, (1) we develop Fully-Smooth Block-Reconstruction (FSBR) to aggressively smooth inter-channel variations of all activations and weights. (2) to alleviate degradation caused by inter-token variations, we introduce a novel approach called Dynamic Integer-only MatMul (DI-MatMul). This method enables dynamic quantization in full-integer matrix multiplication by dynamically quantizing the input and outputs with integer-only operations. (3) we design DI-ClippedSoftmax, DI-Exp, and DI-Normalization, which utilize bit shift to execute non-linear operators efficiently while maintaining accuracy. The experiment shows that our I-LLM achieves comparable accuracy to the FP baseline and outperforms non-integer quantization methods. For example, I-LLM can operate at W4A4 with negligible loss of accuracy. To our knowledge, we are the first to bridge the gap between integer-only quantization and LLMs. We've published our code on anonymous.4open.science, aiming to contribute to the advancement of this field.

📄 PDF Abstract BibTeX arXiv:2405.17849

Code (0)

등록된 구현이 없습니다.

Tasks

Quantization

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
RMSNorm 설명 없음

Similar Papers 제목 키워드 기반

Learning Quantized Continuous Controllers for Integer Hardware

2025-11-10 · Fabian Kresse, Christoph H. Lampert arxiv

Deploying continuous-control reinforcement learning policies on embedded hardware requires meeting tight latency and power budgets. Small FPGAs can deliver these, but only if costly floating-point pipelines are avoided. …

Reinforcement Learning

Batch Normalization-Free Fully Integer Quantized Neural Networks via Progressive Tandem Learning

2025-12-18 · Pengfei Sun, Wenyu Jiang, Piew Yoong Chee, Paul Devos 외 arxiv

Quantised neural networks (QNNs) shrink models and reduce inference energy through low-bit arithmetic, yet most still depend on a running statistics batch normalisation (BN) layer, preventing true integer-only deployment…

AQD: Towards Accurate Fully-Quantized Object Detection

2020-07-14 · CVPR 2021 1 · Peng Chen, Jing Liu, Bohan Zhuang, Mingkui Tan 외

Network quantization allows inference to be conducted using low-precision arithmetic for improved inference efficiency of deep neural networks on edge devices. However, designing aggressively low-bit (e.g., 2-bit) quanti…

Image ClassificationObjectobject-detectionObject Detection+1

Hadamard Domain Training with Integers for Class Incremental Quantized Learning

2023-10-05 · Martin Schiemer, Clemens JS Schaefer, Jayden Parker Vap, Mark James Horeni 외

Continual learning is a desirable feature in many modern machine learning applications, which allows in-field adaptation and updating, ranging from accommodating distribution shift, to fine-tuning, and to learning new ta…

Activity Recognitionclass-incremental learningClass Incremental LearningContinual Learning+3

Integer-only Quantized Transformers for Embedded FPGA-based Time-series Forecasting in AIoT

2024-07-06 · Tianheng Ling, Chao Qian, Gregor Schiele

This paper presents the design of a hardware accelerator for Transformers, optimized for on-device time-series forecasting in AIoT systems. It integrates integer-only quantization and Quantization-Aware Training with opt…

QuantizationTime SeriesTime Series Forecasting