PT$^2$-LLM: Post-Training Ternarization for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yan, Xianglong, Bao, Chengzhu, Li, Zhiteng, Zhang, Tianao, Yang, Kaicheng, Qin, Haotong, Xie, Ruobing, Sun, Xingwu, Zhang, Yulun
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912860768043008
author Yan, Xianglong
Bao, Chengzhu
Li, Zhiteng
Zhang, Tianao
Yang, Kaicheng
Qin, Haotong
Xie, Ruobing
Sun, Xingwu
Zhang, Yulun
author_facet Yan, Xianglong
Bao, Chengzhu
Li, Zhiteng
Zhang, Tianao
Yang, Kaicheng
Qin, Haotong
Xie, Ruobing
Sun, Xingwu
Zhang, Yulun
contents Large Language Models (LLMs) have shown impressive capabilities across diverse tasks, but their large memory and compute demands hinder deployment. Ternarization has gained attention as a promising compression technique, delivering substantial size reduction and high computational efficiency. However, its potential in the post-training quantization (PTQ) setting remains underexplored, due to the challenge of training-free parameter optimization and the quantization difficulty posed by outliers and dispersed weights. To address these issues, we propose PT$^2$-LLM, a post-training ternarization framework tailored for LLMs. At its core is an Asymmetric Ternary Quantizer equipped with a two-stage refinement pipeline: (1) Iterative Ternary Fitting (ITF), which alternates between optimal ternary grid construction and flexible rounding to minimize quantization error, and (2) Activation-aware Grid Alignment (AGA), which further refines the ternary grid to better match full-precision outputs. In addition, we propose a plug-and-play Structural Similarity-based Reordering (SSR) strategy that leverages inter-column structural similarity to ease quantization and mitigate outlier effects, further enhancing overall performance. Extensive experiments demonstrate that PT$^2$-LLM delivers competitive performance against state-of-the-art (SOTA) 2-bit PTQ methods with lower memory cost, while also accelerating both prefill and decoding to achieve end-to-end speedup. The code and models will be available at https://github.com/XIANGLONGYAN/PT2-LLM.
format Preprint
id arxiv_https___arxiv_org_abs_2510_03267
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PT$^2$-LLM: Post-Training Ternarization for Large Language Models
Yan, Xianglong
Bao, Chengzhu
Li, Zhiteng
Zhang, Tianao
Yang, Kaicheng
Qin, Haotong
Xie, Ruobing
Sun, Xingwu
Zhang, Yulun
Machine Learning
Artificial Intelligence
Large Language Models (LLMs) have shown impressive capabilities across diverse tasks, but their large memory and compute demands hinder deployment. Ternarization has gained attention as a promising compression technique, delivering substantial size reduction and high computational efficiency. However, its potential in the post-training quantization (PTQ) setting remains underexplored, due to the challenge of training-free parameter optimization and the quantization difficulty posed by outliers and dispersed weights. To address these issues, we propose PT$^2$-LLM, a post-training ternarization framework tailored for LLMs. At its core is an Asymmetric Ternary Quantizer equipped with a two-stage refinement pipeline: (1) Iterative Ternary Fitting (ITF), which alternates between optimal ternary grid construction and flexible rounding to minimize quantization error, and (2) Activation-aware Grid Alignment (AGA), which further refines the ternary grid to better match full-precision outputs. In addition, we propose a plug-and-play Structural Similarity-based Reordering (SSR) strategy that leverages inter-column structural similarity to ease quantization and mitigate outlier effects, further enhancing overall performance. Extensive experiments demonstrate that PT$^2$-LLM delivers competitive performance against state-of-the-art (SOTA) 2-bit PTQ methods with lower memory cost, while also accelerating both prefill and decoding to achieve end-to-end speedup. The code and models will be available at https://github.com/XIANGLONGYAN/PT2-LLM.
title PT$^2$-LLM: Post-Training Ternarization for Large Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2510.03267