GateTrim: Adaptive-Rank Quantization for Large Language Models
Hongwei Ren, Jincheng Ren, Yuchuan Zhou, Jingchun Ling
Key points
From the paper's conclusion- We introduce GateTrim, an adaptive-rank post-training quantization method for large language models that learns matrix-specific ranks through gate optimization and threshold-based rank selection.
Abstract
We introduce GateTrim, an adaptive-rank post-training quantization method for large language models that learns matrix-specific ranks through gate optimization and threshold-based rank selection. GateTrim standardizes the low-rank factors of a quantized low-rank--residual representation, learns a separate gate vector for each target weight matrix, and uses a shared threshold to automatically determine its retained rank. The resulting ranks can differ across matrices, and the compact quantized representations are subsequently reconstructed. We evaluate GateTrim under W4A8 on Qwen3-4B/8B/14B, Llama-3.2-3B-Instruct, and Llama-3.1-8B-Instruct. Across all five models, we observe a counterintuitive finding: increasing the threshold from $\tau=0.3$ to $\tau=0.7$ reduces the mean retained rank by 46.60%--67.89% while simultaneously lowering WikiText-2 perplexity by 0.59%--5.17%. Threshold 0.7 achieves the lowest mean retained rank and final perplexity among the three tested thresholds, 0.3, 0.5, and 0.7, and reduces measured target-export size by 1.50%--4.25% relative to 0.3. GateTrim uses an $8\times512$-token fitting pool and a separate development pool of the same size. Its Qwen3-4B/8B/14B perplexities at $\tau=0.7$ are numerically below TwinQuant's published W4A8 values, reported with a $128\times2048$-token calibration pool, in a cross-study comparison. On Qwen3-8B, the threshold-0.7 configuration already has the lowest perplexity before reconstruction under both tested initialization seeds; reconstruction improves it further without increasing retained rank or export size.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- RoleQ: Role-Aligned Scales for Converting Language Models to TernaryarXiv · 2026
- Scale Sensitivity in Low-Bit Post-Training Quantization: Curvature of the Quantization Error LandscapearXiv · 2026
- Deflating the Hessian: Rank-4 W4A4 Quantization for Multimodal Diffusion TransformersarXiv · 2026
- JointQ: Joint Scale-and-Integer Quantization for Large Language ModelsarXiv · 2026
- QTEA: Ternary LLMs with Sparse Residual Salient Weight and By-Column OptimizationarXiv · 2026
- QDA: Closed-Loop LLM Quantization Design with AgentsarXiv · 2026