Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

TWLA: Achieving Ternary Weights and Low-Bit Activations for LLMs via Post-Training Quantization

About

Large language models (LLMs) exhibit exceptional general language processing capabilities, but their memory and compute costs hinder deployment. Ternarization has emerged as a promising compression technique, offering significant reductions in model size and inference complexity. However, existing methods struggle with heavy-tailed activation distributions and therefore keep activations in high precision, fundamentally limiting end-to-end inference acceleration. To overcome this limitation, we propose TWLA, a post-training quantization (PTQ) framework that achieves 1.58-bit weight compression and 4-bit activation quantization while maintaining high accuracy. TWLA comprises three components: (1) Euclidean-to-Manifold Asymmetric Ternary Quantizer (E2M-ATQ) minimizes layer-output error under weight ternarization via a two-stage optimization from Euclidean initialization to manifold relocation; (2) Kronecker Orthogonal Tri-Modal Shaping (KOTMS) applies a Kronecker-structured orthogonal rotation to reshape weights into ternary-friendly tri-modal distributions, while the shared rotation statistically suppresses activation outliers; and (3) Inter-Layer Aware Activation Mixed Precision (ILA-AMP) explicitly introduces adjacent-layer second-order interaction costs in bit allocation and jointly optimizes for the layer-wise disparity of activation quantization gains induced by the shared orthogonal transform, preventing cascades triggered by a few weak layers. Extensive experiments demonstrate that TWLA maintains high accuracy under W1.58A4, while delivering significant inference acceleration. The code is available at https://github.com/Kishon-zzx/TWLA.

Zhixiong Zhao, Zukang Xu, Zhixuan Chen, Xing Hu, Zhe Jiang, Dawei Yang• 2026

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText2
Perplexity4.13
4085
Sentence CompletionHellaSwag
Accuracy76.89
440
Language ModelingLambada OpenAI
Accuracy78.4
134
Zero-shot EvaluationArc-Challenge, Arc-Easy, HellaSwag, LAMBADA-openai, LAMBADA-standard, PIQA, and WinoGrande Zero-Shot
Accuracy (0-shot)73.6
123
Physical Commonsense ReasoningPIQA
Accuracy79.4
85
Multiple-choice Question AnsweringARC Challenge (test)
Accuracy55.33
71
Multi-Domain KnowledgeMMLU
MMLU Multi-Domain Knowledge Acc75.59
68
Multiple-choice Question AnsweringARC Easy v1 (test)
Accuracy80.73
43
Language Modeling and ReasoningARC-Challenge (AC), ARC-Easy (AE), HellaSwag (HS), LAMBADA-openai (LO), LAMBADA-standard (LS), PIQA (PQ), WinoGrande (WG) zero-shot
Accuracy (ARC-E)78.6
39
Commonsense ReasoningWinoGrande (WG)
Accuracy77.35
38
Showing 10 of 11 rows

Other info

Follow for update