Reproduce “I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Xing Hu, Yuan Cheng, Dawei Yang, Zhihang Yuan, Jiangyong Yu, Chen Xu, Sifan Zhou

Researchers from Houmo AI and collaborating universities developed I-LLM, a novel post-training quantization framework that enables efficient, fully integer-only inference for low-bit Large Language Models. This framework achieves competitive perplexity and zero-shot task accuracy across various LLMs, including LLaMA and OPT, even at aggressive 4-bit and 6-bit quantization levels, by addressing activation variations and designing integer-only approximations for all operations.

Key insights

  • Large fluctuations in LLM activations across channels and tokens are a primary challenge for low-bit integer-only quantization, requiring both static smoothing and dynamic, per-token handling.
  • Efficient and accurate integer-only approximations for complex non-linear functions (like Softmax, RMSNorm, and SwiGLU) are essential for a truly end-to-end integer inference pipeline.
  • Representing quantization scales as dyadic numbers allows for all scaling and zero-point computations to be performed using bit shifts and simple integer arithmetic, significantly boosting efficiency.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.