Tequila: Trapping-free Ternary Quantization for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Huang, Hong, Wu, Decheng, Cen, Rui, Yu, Guanghua, Li, Zonghang, Liu, Kai, Zhu, Jianchen, Chen, Peng, Liu, Xue, Wu, Dapeng
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909851757576192
author Huang, Hong
Wu, Decheng
Cen, Rui
Yu, Guanghua
Li, Zonghang
Liu, Kai
Zhu, Jianchen
Chen, Peng
Liu, Xue
Wu, Dapeng
author_facet Huang, Hong
Wu, Decheng
Cen, Rui
Yu, Guanghua
Li, Zonghang
Liu, Kai
Zhu, Jianchen
Chen, Peng
Liu, Xue
Wu, Dapeng
contents Quantization techniques are essential for the deployment of Large Language Models (LLMs) on edge devices. However, prevailing methods often rely on mixed-precision multiplication that lacks efficient hardware support, making it not feasible. Ternary weight quantization addresses this by constraining weights to {-1, 0, 1}, replacing expensive multiplications with hardware-efficient additions. However, such aggressive compression leads to significant accuracy degradation, even after costly quantization-aware training with massive data. We identify the core issue as deadzone trapping: a large number of weights are trapped at the deadzone boundary. This occurs because these weights receive only noisy, uninformative gradients, preventing stable escape from the deadzone and severely impeding model capacity and optimization. To address this issue, we propose Tequila, a trapping-free quantization optimization method that reactivates deadzone-trapped weights by repurposing them as dynamic biases. This allows the repurposed weights to provide a continuous signal in the forward pass and, critically, receive direct, meaningful gradient signals during backpropagation, thereby enhancing model capacity and optimization with nearly zero inference overhead. Extensive evaluations demonstrate that Tequila outperforms state-of-the-art (SOTA) ternary quantization methods across five benchmarks. Specifically, on the ARC benchmark, it achieves >4% accuracy gain over the SOTA baseline, nearly matching full-precision performance (within <1% gap) with a 3.0x inference speedup. Consequently, Tequila offers a highly practical and efficient implementation for the deployment of advanced LLMs in resource-constrained environments. The code is available at https://github.com/Tencent/AngelSlim.
format Preprint
id arxiv_https___arxiv_org_abs_2509_23809
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Tequila: Trapping-free Ternary Quantization for Large Language Models
Huang, Hong
Wu, Decheng
Cen, Rui
Yu, Guanghua
Li, Zonghang
Liu, Kai
Zhu, Jianchen
Chen, Peng
Liu, Xue
Wu, Dapeng
Machine Learning
Artificial Intelligence
Quantization techniques are essential for the deployment of Large Language Models (LLMs) on edge devices. However, prevailing methods often rely on mixed-precision multiplication that lacks efficient hardware support, making it not feasible. Ternary weight quantization addresses this by constraining weights to {-1, 0, 1}, replacing expensive multiplications with hardware-efficient additions. However, such aggressive compression leads to significant accuracy degradation, even after costly quantization-aware training with massive data. We identify the core issue as deadzone trapping: a large number of weights are trapped at the deadzone boundary. This occurs because these weights receive only noisy, uninformative gradients, preventing stable escape from the deadzone and severely impeding model capacity and optimization. To address this issue, we propose Tequila, a trapping-free quantization optimization method that reactivates deadzone-trapped weights by repurposing them as dynamic biases. This allows the repurposed weights to provide a continuous signal in the forward pass and, critically, receive direct, meaningful gradient signals during backpropagation, thereby enhancing model capacity and optimization with nearly zero inference overhead. Extensive evaluations demonstrate that Tequila outperforms state-of-the-art (SOTA) ternary quantization methods across five benchmarks. Specifically, on the ARC benchmark, it achieves >4% accuracy gain over the SOTA baseline, nearly matching full-precision performance (within <1% gap) with a 3.0x inference speedup. Consequently, Tequila offers a highly practical and efficient implementation for the deployment of advanced LLMs in resource-constrained environments. The code is available at https://github.com/Tencent/AngelSlim.
title Tequila: Trapping-free Ternary Quantization for Large Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2509.23809