Sherry: Hardware-Efficient 1.25-Bit Ternary Quantization via Fine-grained Sparsification

Hong Huang, Decheng Wu, Qiangqiang Hu, Guanghua Yu, Jinhai Yang, Jianchen Zhu, Xue Liu, Dapeng Wu

TL;DR

This paper introduces Sherry, a novel ternary quantization method that achieves a 1.25-bit weight representation for Large Language Models (LLMs). By combining a hardware-friendly 3:4 sparsity pattern with a training technique called "Arenas," Sherry significantly reduces model size and speeds up inference on edge devices without sacrificing accuracy, outperforming existing methods.

What Problem Does This Paper Address?

Deploying powerful Large Language Models (LLMs) on resource-constrained edge devices (like smartphones or embedded systems) is a major challenge. These devices have limited memory and computational power, making it difficult to run large models. While quantization (reducing the precision of model weights) is a key solution, existing methods for ternary quantization (using weights {-1, 0, +1}) face a dilemma: either use 2-bit packing which wastes space, or 1.67-bit packing which is inefficient for modern hardware and slows down inference. This paper aims to bridge this gap by developing a ternary quantization method that is both highly efficient in terms of bit usage and compatible with commodity hardware, leading to faster and smaller LLMs for edge deployment.

Methods

Sherry introduces two main innovations:

  • 3:4 Fine-grained Sparsity: Instead of arbitrary sparsity, Sherry enforces a structured pattern where for every four weights, exactly three are non-zero (±1) and one is zero. This allows packing four weights into just five bits, achieving a regularized 1.25-bit width. Crucially, this 4-weight block structure aligns with common hardware operations (like SIMD units), avoiding the bit-shuffling overhead that plagues other irregular packing schemes.
  • Arenas: Annealing Residual Synapse: Directly applying the 3:4 sparsity during training can lead to "weight trapping," where weights collapse into a limited range, hurting performance. To combat this, Sherry uses the "Arenas" module during training. It injects a temporary, full-precision "residual synapse" that provides a richer gradient signal, preventing weight collapse and maintaining representational diversity. This residual is gradually annealed to zero by the end of training, so it has no impact on inference.

Datasets

The paper evaluates Sherry on the LLaMA-3.2 model family. For training and evaluation, they use 10B tokens sampled from the UltraFineWeb dataset. The evaluation benchmarks include:

  • PIQA (Physical Interaction Question Answering)
  • ARC-Easy and ARC-Challenge (AI2 Reasoning Challenge)
  • HellaSwag (Contextual Commonsense Inference)
  • WinoGrande (Pronoun Resolution)

Key Insights and Ideas

  • Hardware-Aware Sparsity is Key: The paper highlights that simply reducing bits isn't enough; the structure of the sparsity matters for hardware efficiency. Sherry's 3:4 pattern is a "sweet spot" that balances bit savings, SIMD alignment, and LUT capacity.
  • Weight Trapping is a Major Hurdle for Sparse Quantization: The authors identify and address a critical training problem where structured sparsity can lead to performance degradation due to weights collapsing into a narrow range.
  • Arenas: A Clever Training Trick for Robustness: The Arenas module is a novel way to inject necessary gradient diversity during training without adding any overhead during inference, effectively solving the weight trapping problem.
  • 1.25-bit is Achievable and Beneficial: Sherry demonstrates that a 1.25-bit representation is not only feasible but also offers significant advantages in terms of model size and speed, especially when combined with hardware-friendly packing.

Key Results

  • Accuracy Parity: Sherry achieves performance comparable to state-of-the-art (SOTA) ternary quantization methods.
  • Significant Bit Savings: The 1.25-bit width represents a 25% reduction compared to common 1.67-bit methods.
  • Improved Inference Speed: On an Intel i7-14700HX CPU, Sherry achieves a 10% speedup over SOTA 1B ternary LLMs.
  • Zero Accuracy Loss: Notably, on a 1B model, Sherry achieved zero accuracy loss compared to SOTA baselines.
  • Effective Arenas: Ablation studies show consistent performance improvements with Arenas across different quantization schemes (1-bit, 3:4 sparse, and pure ternary).

Limitations and Future Work

  • Model Scale: The current evaluation focuses on models up to 3B parameters. The authors suggest validating Sherry's effectiveness on larger, server-grade models (70B+) and exploring the behavior of the Arenas mechanism and 3:4 sparsity pattern on these scales.
  • Server-Specific Optimizations: The work prioritizes edge inference efficiency and general SIMD packing. Future research could explore optimizations for server-specific hardware like NVIDIA Sparse Tensor Cores.
  • Weight-Only Quantization: Sherry currently focuses on weight quantization. Integrating activation quantization could further reduce memory bottlenecks, especially for long-context inference.
  • Training Overhead: While inference is highly efficient, the Arenas mechanism adds computational overhead during the training phase. This is a one-time cost but could be a consideration for researchers with limited training budgets.

Summary updated

BibTeX
@inproceedings{huang2026sherry,
  author = {Hong Huang and Decheng Wu and Qiangqiang Hu and Guanghua Yu and Jinhai Yang and Jianchen Zhu and Xue Liu and Dapeng Wu},
  title = {{Sherry: Hardware-Efficient 1.25-Bit Ternary Quantization via Fine-grained Sparsification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.513},
}

Loading related content...

Figure