Diffusion large language models (dLLMs), which offer bidirectional context and flexible masked-denoising generation, are emerging as a compelling alternative to autoregressive (AR) LLMs. However, like AR LLMs, their model sizes continue to grow, motivating weight compression for deployment. Although post-training quantization (PTQ) is effective for AR LLMs, directly transferring it to dLLMs at 2-bit leads to unsatisfactory performance. To tackle these challenges, we propose Quant-dLLM, an ultra-low-bit PTQ framework tailored to dLLMs. Since masked-denoising activations in dLLMs differ from the fully visible signals assumed by standard PTQ methods, we introduce Masked Calibration Simulation (MCS) to align calibration with the timestep-dependent masking, which yields more reliable calibrations. Moreover, we propose a Data-aware Any-order Quantizer (DAQ) that learns ultra-low-bit weight representations via an optimization algorithm. It performs iterative approximation guided by our simulated calibration data. In addition, under a strict 2-bit budget, we introduce Adaptive Blockwise Mixed Precision (ABMP), a sensitivity-based precision allocation scheme that adaptively assigns bit width across channel groups. When restricted to 2-bit precision, Quant-dLLM consistently achieves higher accuracy than state-of-the-art (SOTA) AR-transfer PTQ methods on dLLMs. The code and models will be available at: https://github.com/ZTA2785/Quant-dLLM.
Reasoning on the Manifold: Bidirectional Consistency for Self-Verification in Diffusion Language Models
Institute of Science and Technology for Brain-Inspired Intelligence(脑启发智能科学与技术研究院);Fudan University(复旦大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);University of Science and Technology of China(中国科学技术大学);IEG, Tencent Inc.(腾讯IEG)
STaR-Quant: State-Time Consistent Post-Training Quantization for Diffusion Large Language Models
School of Artificial Intelligence, Beijing Normal University, Beijing, China(北京师范大学人工智能学院);Department of Computer Science, National University of Singapore, Singapore(新加坡国立大学计算机科学系);Centre for Frontier AI Research, Agency for Science, Technology and Research (A*STAR), Singapore(科技研究局前沿人工智能研究中心)
The case for 4-bit precision: k-bit Inference Scaling Laws
University of Washington(华盛顿大学)
量化方法减少了表示模型中每个参数所需的位数,以更小的内存占用和推理延迟换取准确性。然而,最终的模型大小取决于原始模型的参数数量和压缩率。例如,30 B 8位模型和60 B 4位模型具有相同的位数,但可能具有非常不同的zero-shot精度。在这项工作中,我们研究了这种权衡,通过开发大语言模型(LLM)中的zero-shot性能的推理缩放定律,以确定最大化zero-shot性能的位精度和模型大小。我们使用16位输入和k位参数运行了超过35,000个实验,以检查哪些zero-shot量化方法在LLM系列BLOOM、OPT、NeoX/Pythia和GPT-2中在19 M至176 B参数的尺度下提高了3至8位精度的缩放。我们发现,改进比特级缩放权衡是具有挑战性的,仅有的改进是使用小的块大小-将参数分割成小的独立量化的块-以及使用量化数据类型(例如,Int vs Float)。总的来说,我们的研究结果表明,{4位}精度几乎是普遍最佳的总模型位和zero-shot精度。
Semi-Relaxed Quantization with DropBits: Training Low-Bit Neural Networks via Bit-wise Regularization
网络量化旨在减少网络权重和激活的位长度,已经成为减少神经网络的大小以将其部署到资源有限的设备的关键成分之一。为了克服将连续激活和权重转换为离散激活和权重的性质,最近一项名为松弛量化(RQ)的研究[Louizos et al. 2019]成功地采用了流行的Gumbel-Softmax,该算法允许通过基于梯度的有效优化进行这种转换。然而,RQ与此Gumbel-Softmax松弛仍然遭受偏差方差权衡取决于Gumbel-Softmax的温度参数。为了解决这个问题,我们提出了一种新的方法,半松弛量化(SRQ),它使用多类直通估计器来有效地减少偏差和方差,以及一种新的正则化技术,DropBits,它取代了dropout正则化来随机丢弃比特而不是神经元,以进一步减少SRQ中多类直通估计器的偏差。作为DropBits的自然扩展,我们进一步介绍了学习异构量化级别的方法,以使用DropBits为每一层找到合适的比特长度。我们在各种基准数据集和网络架构上通过实验验证了我们的方法,并且还支持量化彩票假设:从头开始学习异构量化级别优于使用相同但固定的量化级别的情况。