FPTQuant: Function-Preserving Transforms for LLM Quantization

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

Summary

FPTQuant, developed by Qualcomm AI Research, introduces four novel function-preserving transforms (FPTs) to address performance degradation in Large Language Models (LLMs) caused by outliers during quantization. These lightweight, expressive FPTs—including a mergeable pre-RoPE transform for queries/keys, a mergeable transform for values, a mergeable scaling transform within the MLP block, and a cheap dynamic scaling transform—maintain model function while shaping activation distributions for better quantization. FPTQuant requires no custom kernels, adds virtually no inference overhead, and enables static INT4 quantization with up to a 3.9x speed-up over FP. It demonstrates an excellent accuracy-speed trade-off, performing on par with or exceeding most prior work, and only slightly lower accuracy than a method up to 29% slower.

Key takeaway

For Machine Learning Engineers optimizing LLM inference on resource-constrained edge devices, FPTQuant offers a compelling solution for aggressive quantization. You should consider integrating FPTQuant's mergeable transforms to achieve static INT4 quantization, potentially yielding up to 3.9x speed-ups over FP with minimal accuracy loss and virtually no inference overhead. This approach prioritizes efficiency and broad hardware compatibility, making it ideal for deployments where dynamic quantization is unsupported or too costly.

Key insights

Function-preserving transforms can shape LLM activation distributions for efficient INT4 quantization with minimal overhead.

Principles

Method

FPTQuant uses four novel FPTs trained locally to reduce outliers and then end-to-end via student-teacher training to match full-precision model outputs, ensuring function preservation and quantization friendliness.

In practice

Topics

Code references

Best for: AI Engineer, NLP Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, AI Hardware Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.