arXiv:2506.11044cs.LG2025-06被引 1

通过零空间优化,显著提升大模型量化后的性能。

Boost Post-Training Quantization via Null Space Optimization for Large Language Models

  • 将权重扰动限制在输入激活的零空间内,降低量化误差。
  • 在LLaMA3、DeepSeek、Qwen3上实现更优量化精度,优于现有方法。
  • 无需额外内存开销,可无缝集成到主流量化框架中。

现有大语言模型(LLMs)后训练量化方法已取得显著成果,但性能提升趋于饱和,表明当前策略难以支持更紧凑模型的发展。本文首次引入零空间概念于LLM量化,提出通过约束量化后权重扰动位于输入激活的零空间内,有效缓解量化误差。为此,设计了即插即用的零空间投影模块Q2N:首先针对LLM特性提出高效准确的零空间投影近似方法;随后理论推导出满足推理条件的闭式等效向量,避免额外内存开销。在多个前沿大模型(LLaMA3、DeepSeek、Qwen3)和基准上进行大量实验,验证了Q2N及零空间优化视角的有效性。本工作为未来降低量化误差提供新思路,代码已公开。

原文摘要 · Abstract (English)

Existing post-training quantization methods for large language models (LLMs) offer remarkable success. However, the increasingly marginal performance gains suggest that existing quantization strategies are insufficient to support the development of more compressed models. To inspire new directions for future research, this paper introduces the concept of null space into LLMs quantization. We argue that the quantization error can be effectively alleviated by constraining the post-quantization weight perturbation to lie within the null space of input activations. To prove this idea, we propose a plug-and-play null space projection module for existing milestone PTQ baselines named Q2N. Specifically, we first design an efficient and accurate null space projection approximation method tailored to the characteristics of LLMs. Subsequently, we theoretically derive a closed-form solution for an equivalent vector of the obtained projection matrix, which satisfies practical inference condition while avoiding additional memory overhead. Extensive experiments are conducted on various state-of-the-art LLMs (LLaMA3, DeepSeek, Qwen3) and baselines, demonstrating the effectiveness of both our Q2N and the perspective of null space optimization for LLMs quantization. We view this paper the first step to further alleviate the quantization error based on the insights of null space, hoping it inspiring future researchers to design more advanced quantization methods. Codes are available at https://github.com/zjq0455/q2n.

量化大模型零空间推理优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。