Manuscript Offprint

arXiv:2608.24469

Low-Rank Ternary Adaptation for Fine-Tuning Transformers

Alexandru-Dragos Manolache, Yunqiang Li, Jan van Gemert

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Alexandru-Dragos Manolache 1∗^{1*}, Yunqiang Li 2∗^{2*}, and Jan van Gemert 1^{1}

1^{1} Delft University of Technology, The Netherlands

2^{2} Amazon Development Center

Abstract. Ternary transformers offer extreme memory and compute efficiency, but existing low-bit LoRA-based methods cannot directly fine-tune ternary weights. Current approaches either require dequantization, restoring low-bit base weights to higher precision to merge with adaptation weight, or update only quantization parameters, preventing a merged model that remains ternary. We propose ternary multiplicative adaptation, which represents discrete updates of ternary weights such as sign flips or zeroing through a low-rank Kronecker factorization into two small ternary matrices applied element-wise to ternary weights. This design is parameter-efficient and expressive, preserves the ternary domain, and supports direct merging without dequantization. Experiments on six models across language and vision, including ternarized LLaMA-3 1B and 3B and a ternary ViT-B/16, demonstrate that our method recovers much of the performance lost to quantization and outperforms strong low-bit and ternary baselines. Code is available at https://github.com/alexmanoo/ternary_adaptation.

Keywords: Parameter-Efficient Fine-Tuning (PEFT) · Low-Rank Adaptation (LoRA) · Ternary Transformers · 1.58-bit Quantization · Vision Transformers (ViTs) · Large Language Models (LLMs)

1 Introduction

Transformer models deliver strong performance across many tasks, including language and vision, but their memory and compute requirements make deployment expensive. Quantization offers a solution to reduce these costs by compressing model weights from full-precision to a few bits while preserving most of the accuracy. In current LLMs, 2-bit weight quantization is a viable setting for aggressive compression [4, 18]. In this work, we investigate the next step in compression: ternary quantization which restricts weights to {−1,0,1}\{-1, 0, 1\} with the advantage of memory savings and throughput efficiency suitable for lower end hardware [27, 38, 49]. The memory budget of a ternary quantized model corresponds to log⁡23≈1.58\log_2 3 \approx 1.58 bits per weight, reducing the theoretical memory footprint of a 16-bit precision Llama 8B [15] model from 16GB to only 1.6GB.

∗^{*} Equal contribution.

A. Manolache et al.

Table 1: Comparison of QLoRA, QA-LoRA, and our ternary multiplicative adapter. Each column indicates whether a method satisfies key properties needed for adapting ternary models. Base weights ternary asks if the backbone can be stored in a ternary format during fine-tuning. Dequant-free merge asks whether the adaptation can be merged directly into the base-weights while keeping the low-bit quantization. Ternary merged model indicates whether the final weights remain ternary after merging. The bottom rows describe how the adaptation is applied: QLoRA adds a low-rank update to dequantized floating-point weights, QA-LoRA adds a low-rank update to quantization parameters, and our method applies a multiplicative ternary adaptation directly to ternary weights. Only our method both operates natively on ternary backbones and produces a merged model that stays ternary while avoiding any dequantization step.

PropertyQLoRAQA-LoRAOurs
Base weights ternary✓✕✓
Dequant-free merge✕✓✓
Ternary merged model✕✕✓
Update typeAdditiveAdditiveMultiplicative
Applied onFP weightsQuantizerTernary weights

Fine-tuning all weights of large pretrained models is often prohibitively expensive, motivating parameter efficient fine-tuning (PEFT) that adjusts a large network by updating a smaller set of parameters. The leading PEFT method is Low-Rank Adaptation (LoRA) [23]; it fine-tunes a low-dimensional weight decomposition which during inference can be added to the original base weight to obtain an adapted, merged model. Building on LoRA, recent work has explored PEFT for quantized base models. QLoRA [11] combines post-training quantization (PTQ) of pre-trained weights with low-rank adaptation. QA-LoRA [53] improves further by integrating the adaptation directly into the quantization parameters. These two methods make LoRA-style adaptation a compelling strategy for low-bit transformer backbones.

However, adapting low-bit quantized models introduces new challenges. QLoRA [11] requires dequantizing base weights back to full precision to add with adaptations, after which the merged model must be re-quantized for low-bit inference. QA-LoRA shows that such re-quantization leads to noticeable accuracy degradation at 2-bit widths and therefore proposes a direct merging strategy that integrates the adaptation into per-group quantization parameters, avoiding dequantization. While effective at 2 bits, QA-LoRA is incompatible with ternary quantization, where both the base weights and the merged weights are constrained to {−1,0,1}\{-1, 0, 1\}. This gap motivates an adaptation design that supports direct merging for ternary models.

In the ternary quantization setting, the update space is discrete. Weights cannot be adjusted by small continuous steps, because the main degrees of freedom are flipping signs or zeroing weights. Conventional LoRA-style approaches [11,23, 31,59], which use continuous additive updates in floating-point space, are there-

Ternary Multiplicative Update

Figure

Δij={+1,retain Wij,0,zero out Wij,−1,flip sign of Wij.\Delta_{ij} = \begin{cases} +1, & \text{retain } \mathbf{W}_{ij}, \\ 0, & \text{zero out } \mathbf{W}_{ij}, \\ -1, & \text{flip sign of } \mathbf{W}_{ij}. \end{cases}

Kronecker-structured Ternary Adaptation

Figure

Fig. 1: Visualization of our ternary multiplicative adapter. Ternary Multiplicative Update (top): a ternary mask Δtern∈{−1,0,1}dout×din\Delta_{\text{tern}} \in \{-1, 0, 1\}^{d_{\text{out}} \times d_{\text{in}}} is applied element-wise (Hadamard product) to the pretrained ternary weights Wtern\mathbf{W}_{\text{tern}} to obtain merged ternary weights Wmerged\mathbf{W}_{\text{merged}}, where each entry Δij∈{−1,0,1}\Delta_{ij} \in \{-1, 0, 1\} respectively keeps, zeros, or flips the sign of Wij\mathbf{W}_{ij}. Kronecker-structured Ternary Adaptation (bottom): the adaptation Δtern\Delta_{\text{tern}} is constructed as a Kronecker product A⊗B\mathbf{A} \otimes \mathbf{B} of two small ternary factors; the toy example shows how each entry of A\mathbf{A} scales a copy of B\mathbf{B} to form a larger ternary matrix. Our adapter uses a compact Kronecker-structured mask to implement discrete keep/zero/flip operations directly on ternary weights, enabling a mergeable fine-tuned model that remains fully ternary.

fore not directly compatible with ternary weights for efficient inference [18,33,45]. Moreover, representing such discrete ternary updates via trainable low-rank decomposition matrices is non-trivial, as the update space is both discrete and non-linear. A possibility is to temporarily dequantize ternary weights to higher precision, apply a continuous adaptation, and then requantize. However, as observed in prior work at 2 bits [53], this dequantize-requantize process introduces additional quantization error, which becomes even more harmful for sub-2-bit quantization. We therefore seek a PEFT solution that (i) operates natively in the ternary domain by expressing flips and zeroing of weights via a low-rank representation, and (ii) can be merged into the base ternary weights without any dequantization or requantization.

We tackle two challenges: representing discrete ternary updates, and decomposing them with low-rank matrices in a compact yet expressive form. To this end, we introduce a ternary multiplicative adaptation that directly models ternary updates, as illustrated in Figure 1 and Table 1, where ternary weights are flipped or zeroed instead of updated continuously. The adaptation is constructed as the Kronecker product of two smaller ternary matrices and applied via element-wise Hadamard multiplication. This design achieves high rank using two trainable low-rank matrices, keeps the number of adaptation parameters small, preserves the ternary domain, and implements three operations per weight: keep, zeroing, or flip sign, without leaving the domain. As in prior LoRA-style

A. Manolache et al.

methods, the adaptation can be fully merged into the base model post-tuning. In our case, the merged weights remain ternary, so no dequantization or re-quantization is required.

We make the following contributions: 1) A ternary multiplicative adaptation that directly models discrete ternary updates for ternary LLMs and vision transformers. 2) A low-rank Kronecker decomposition of the ternary updates, achieving high expressivity while remaining parameter-efficient. 3) The adapter can be fully merged into the base ternary model, enabling zero-overhead deployment. 4) We evaluate our method on six models across language and vision. On ternarized Llama-3.2 1B and 3B models, our method recovers much of the performance lost to quantization, outperforms stronger 2-bit baselines on most tasks, and outperforms requantized QLoRA baseline under the same 1.58-bit quantization level. We also validate on a ternary ViT-B/16 fine-tuned on ImageNet-100 [1], where our merged 1.58-bit model outperforms requantized QLoRA and narrows the gap to full ternary fine-tuning.

References (57)