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

Zhixiong Zhao, Zukang Xu, Zhixuan Chen, Xing Hu, Zhe Jiang +1 more
6/11/2026
cs.LGcs.AI

Official code: Kishon-zzx/TWLA (9 stars, last commit 2026-06-02).

Abstract

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>.

View on arXivView PDF

Code Implementations(1)

Kishon-zzx/TWLAOfficial100%

[ICML'26] TWLA: Achieving Ternary Weights and Low-Bit Activations for LLMs via Post-Training Quantization

97PythonJan 27, 20264 months ago

Similar Papers

Cite this paper

@article{zhao2026twla,
  title  = {TWLA: Achieving Ternary Weights and Low-Bit Activations for LLMs via Post-Training Quantization},
  author = {Zhixiong Zhao and Zukang Xu and Zhixuan Chen and Xing Hu and Zhe Jiang and Dawei Yang},
  year   = {2026},
  eprint = {2606.13054},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.13054v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.13054.svg)](https://codeofpaper.com/paper/2606.13054)

Discussion