Manuscript Offprint

arXiv:2610.21808

RoleQ: Role-Aligned Scales for Converting Language Models to Ternary

Johannes Knittel, Alec Helbling, Hanspeter Pfister

ABSTRACT

Weight quantization below four bits shrinks memory and bandwidth at a perplexity that looks acceptable, but often at the cost of factual knowledge and task accuracy. Ternary weights have mostly been obtained by training from scratch or long fine-tuning. We introduce RoleQ, a quantization framework that places scales by the functional roles of Transformer units rather than by the layout of the weight matrix, as conventional formats do. Vectors that read from the residual stream take one scale per output unit; those that write to it, one per input unit. The rule is structural, needs no search, calibration or stored state, and holds on integer and ternary grids. In a rotated basis it matches a per-layer axis search at half the solver work, and at ternary it cuts perplexity by up to half against layout-based placement in two families at every size from 0.6B to 14B, where per-row scales leave MMLU at chance. Our lightweight post-training pipeline converts an existing checkpoint to 1.59 bits per weight in a few GPU-hours, a fraction of the cost of learned ternarization, and leads every post-training ternary method at matched or lower memory-resident bits on perplexity, zero-shot accuracy and MMLU, most widely on knowledge. A sparse second ternary plane placed by a per-unit Fisher saliency keeps the matmul multiplication-free and recovers what ternary loses first: at 8B, a fraction of a bit returns about half the MMLU that conversion costs, well ahead of random or Hessian-based placement at equal bits.

1 INTRODUCTION

Weight memory and bandwidth constrain language-model deployment on phones and in browsers. At batch size one, decoding is typically bandwidth-bound, making bits per weight a key determinant of latency (Wang et al., 2025; Wei et al., 2025), motivating ultra-low-bit quantization. Below four bits, however, acceptable perplexity can conceal severe losses in factual knowledge and task accuracy. We therefore evaluate quantization with three complementary measures: WikiText2 perplexity, a seven-task zero-shot average and five-shot MMLU.

Ternary weights replace weight multiplications with additions and subtractions. Pretraining (Wang et al., 2023; Ma et al., 2024), quantization-aware training (Liu et al., 2025c), code fine-tuning (Malinovskii et al., 2024) and learned ternarization over many epochs (Wang et al., 2026c;b) preserve much of the model's knowledge at substantial computational cost. Post-training conversion (Zhang et al., 2026; Yan et al., 2026a; Guo et al., 2026) is much cheaper but loses factual knowledge: on Qwen3-8B-Base, these methods score 26–35 on MMLU, versus 77 at full precision. The challenge is to approach training-based retention at post-training conversion cost.

Our central insight is that quantization should allocate bits by function. We introduce RoleQ, a format that assigns scales to functional units: vectors that read from the residual stream receive one scale per output unit; vectors that write to it receive one per input unit. This structural rule applies to integer and ternary grids and requires neither calibration data nor stored axis choices. RoleQ-T combines this format with a data-free learned rotation, ternary GPTQ (Frantar et al., 2023) with an exact per-vector step, and brief scale distillation with frozen codes (Figure 2). Qwen3-8B-Base (Yang et al., 2025) reaches 1.59 bits per weight (bpw), 11.33 perplexity, 60.3 zero-shot accuracy and 47.6 MMLU in a few GPU-hours, a fraction of the tens of A100-hours for CAT-Q's learned ternarization at this size (Section 4.1).

A. Rows read from the residual stream; columns write to the residual stream

B. RoleQ aligns quantization scales with the roles of each matrix

Figure

C. RoleQ boosts performance with same bit budget

Figure

Figure 1: RoleQ aligns scales with the roles. (A) Readers read from the residual stream through rows, writers write to it through columns. (B) RoleQ places the scales on the unit axis, per row for readers and per column for writers, never on the stream axis. (C) Qwen3-14B, ternary at equal bits: the placement alone lifts MMLU from 25.4 (chance) with per-output-channel scales to 38.5.

Functional units also guide the allocation of extra bits. At a tight budget, selecting units by quantization-error magnitude can perform worse than random; per-unit Fisher saliency estimates how strongly each unit's error affects the loss. RoleQ-T therefore optionally adds a sparse second ternary plane to Fisher-selected units, preserving multiplication-free matrix products. At 2.16 bpw, Qwen3-8B-Base reaches 9.30 perplexity, 65.9 zero-shot accuracy and 62.8 MMLU. On post-trained Qwen3-8B, 1.99 bpw surpasses CAT-Q on all three measures for 0.28 additional bits.

We make three contributions.

  1. Role-aligned scale placement (Section 3.1). In a rotated basis, RoleQ matches AdaDim's (Heo et al., 2024) reconstruction quality at half the solver work of a two-way search, without calibration data or stored axis choices. Per-vector INT4 matches MXFP4 at 8% fewer bits; ternary perplexity improves over the best uniform placement by up to 2×, with gains at every tested size from 0.6B to 14B across two families. At 14B, RoleQ raises MMLU from 25.4 (chance) with per-output-channel scales to 38.5.

  2. Efficient ternary conversion (Sections 3.2–3.4). RoleQ-T outperforms Qronos, PT 2^{2}-LLM and QTEA on all three measures at matched or lower memory-resident rates, with the largest gains on knowledge. At 14B, it surpasses QTEA's released checkpoint after scale distillation using 0.67 fewer bpw. Applying the same distillation to PT 2^{2}-LLM leaves it over four perplexity points behind at a higher rate.

  3. Fisher-guided secondary planes (Section 3.5). At 8B, +0.57 bpw recovers about half the MMLU lost on Base. On the post-trained model at 1.99 bpw, Fisher selection beats random by 6.2 points and Hessian×weight by 9.0.

References (81)