AngelSlim: A more accessible, comprehensive, and efficient toolkit for large model compression

Rui Cen, QiangQiang Hu, Hong Huang, Hong Liu, Song Liu, Xin Luo, Lin Niu, Yifan Tan, Decheng Wu, Linchuan Xie, Rubing Yang, Guanghua Yu, Jianchen ZhuarXiv 2026

TL;DR

AngelSlim is a comprehensive, unified model compression toolkit developed by Tencent’s Hunyuan team that bridges the gap between theoretical compression algorithms and industrial deployment. By co-optimizing ultra-low-bit quantization (down to 2-bit and ternary), training-aligned speculative decoding, sparse attention, and multimodal token pruning, it delivers up to an 8× acceleration on edge devices and a 2× throughput gain in cloud inference without sacrificing accuracy.

What Problem Does This Paper Address?

Large Language Models (LLMs) and Multimodal Large Models (MLMs) face a massive computational bottleneck known as the "Inference Wall." This wall is built from the quadratic scaling of the self-attention mechanism and the extreme memory bandwidth required to fetch billions of parameters during generation.

While the research community has proposed various compression paradigms—such as quantization, sparsification, token pruning, and speculative decoding—existing solutions typically treat these optimizations as isolated silos. This fragmentation causes cross-technique interference when methods are applied concurrently, creating a significant gap between theoretical compression and practical, unified industrial deployment. AngelSlim addresses this by providing a holistic, hardware-aware optimization framework that treats these compression axes as a cohesive, multi-objective manifold.

Methods

AngelSlim consolidates cutting-edge compression techniques into a unified, production-ready pipeline:

  • Multi-Tier Quantization Suite:
    • 2-Bit QAT: Utilizes Stretched Elastic Quantization (SEQ) to eliminate the zero-point and optimize dynamic range, enabling the creation of the industrially viable HY-1.8B-2Bit model.
  • Ternary Quantization: Introduces 1.58-Bit Tequila, which repurposes deadzone weights as dynamic biases during training to avoid gradient stagnation, and 1.25-Bit Sherry, which enforces a 3:4 structured sparsity packed into a SIMD-friendly 5-bit index.
  • LeptoQuant (FP8 PTQ): Dynamically isolates outliers in Laplacian-like weight distributions to prevent the precision erosion typical of standard FP8-E4M3 quantization.
  • Training-Aligned Speculative Decoding: A scalable framework designed to align draft models with target models across text, vision, and speech modalities. It also integrates SpecExit, an algorithmic innovation that predicts early-exit signals directly from draft hidden states to terminate generation once a sufficient answer is formed.
  • Sparse Attention (Stem): A training-free framework for long-context prefill acceleration that combines Token Position-Decay (TPD) (allocating higher budget to crucial initial anchor tokens) and an Output-Aware Metric (OAM) (incorporating value vector magnitudes to minimize output distortion).
  • Multimodal Token Pruning: Features IDPruner for vision tokens (adapting Maximal Marginal Relevance without requiring attention maps) and Samp for audio tokens (a two-stage similarity-attention merging and pruning pipeline).

Datasets

The toolkit's performance is validated across a massive array of standard benchmarks:

  • General Knowledge & Reasoning: CMMLU, C-Eval, GPQA (Diamond), ARC (Easy/Challenge), BBH.
  • Mathematics & Coding: GSM8K, HumanEval, LiveCodeBench, OlympiadBench, AIME (2024/2025), MATH-500.
  • Instruction Following: Alpaca, MT-Bench.
  • Multimodal & Speech: MMMU, MMStar, OmniDocBench (OCR), LibriSpeech, Fleurs, AISHELL-1/2, WenetSpeech, LibriTTS.
  • Long-Context: LongBench, RULER.

Key Insights and Ideas

  • Distillation Beats Scratch Training: Compressing a larger model (1.8B) into an ultra-low-bit format (2-bit, resulting in a 0.3B bit-equivalent size) yields a 16% average accuracy advantage over training a scale-equivalent dense model (0.5B) from scratch.
  • Hardware Alignment Trumps Pure Bit-Width: The 1.25-bit Sherry format outperforms standard 1.67-bit ternary packing in actual inference speed. By restoring power-of-two alignment via 3:4 structured sparsity, it natively satisfies SIMD vector lanes and avoids irregular bit-packing bottlenecks.
  • Speculative Decoding as a System Capability: Rather than treating speculative decoding as an inference-time heuristic, AngelSlim integrates it directly into the training pipeline. This multi-modal alignment ensures high token acceptance rates across text, vision, and audio models.
  • Pruning "Overthinking" in Reasoning Models: SpecExit demonstrates that large reasoning models often generate redundant reasoning chains. By embedding early-exit decisions directly into the draft model's Multi-Token Prediction (MTP) layer, it shortens reasoning trajectories by up to 66% without degrading final answer quality.

Key Results

  • HY-1.8B-2Bit Edge Efficiency: Achieves near-parity with INT4 precision (only a 0.13% accuracy gap) while delivering a 3× to 8× acceleration in Time-to-First-Token (TTFT) and a >2× generation speedup over a BF16 baseline on Apple M4 hardware.
  • Tequila & Sherry Throughput: On an Intel i7 CPU, Sherry (1.25-bit) achieves a generation speed of 148.27 tokens/second at the 0.7B scale, outperforming 2-bit baselines while reducing model size by approximately 20%.
  • Speculative Decoding Speedups: Eagle3 speculative decoding delivers a consistent 1.8× to 2.0× end-to-end throughput improvement across language, vision-language, OCR, and speech models.
Speculative decoding speedup and accept lengths across LLM, VLM, and Audio models.
  • SpecExit Latency Reduction: Reduces generated tokens by up to 54% on GSM8K for Qwen3-4B-Thinking, translating to a nearly 2× end-to-end latency reduction compared to the EAGLE3 baseline.

Limitations and Future Work

Although AngelSlim pushes the boundaries of extreme compression, the authors acknowledge that ultra-low-bit regimes (2-bit and ternary) still experience minor performance degradation in highly complex logical reasoning and long-context comprehension compared to full-precision teachers. The Tencent Hunyuan team plans to continuously expand the toolkit's functionality, open-sourcing more advanced compression algorithms and refining co-optimization strategies to completely close the precision-efficiency gap.

Summary updated

BibTeX
@misc{cen2026angelslim,
  author = {Rui Cen and QiangQiang Hu and Hong Huang and Hong Liu and Song Liu and Xin Luo and Lin Niu and Yifan Tan and Decheng Wu and Linchuan Xie and Rubing Yang and Guanghua Yu and Jianchen Zhu},
  title = {{AngelSlim: A more accessible, comprehensive, and efficient toolkit for large model compression}},
  year = {2026},
  eprint = {2602.21233},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.21233},
}
Figure