arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.21759cs.CV
收藏

IntLoRA:量化扩散模型的积分低秩适配

IntLoRA: Integral Low-rank Adaptation of Quantized Diffusion Models

Tsinghua University(清华大学);Shenzhen University(深圳大学);Peng Cheng Laboratory(鹏城实验室)

Hang Guo, Yawei Li, Tao Dai, Shu-Tao Xia, Luca Benini

AI总结:

针对现有量化扩散模型LoRA微调方案推理效率低、低比特下部署需额外训练后量化导致性能下降的问题,提出IntLoRA方法,用整数型低秩参数适配量化模型,训练时保持预训练权重量化、推理时无缝合并且无需PTQ,实现训练与推理显著加速且无性能损失。

摘要:

在有限预算下微调预训练扩散模型已取得巨大成功。尤其是近期利用低秩适配(LoRA)直接微调量化权重的进展进一步降低了训练成本。尽管有这些进展,我们指出现有适配方案的推理效率不高。具体而言,部署时需要对微调后的权重进行额外的训练后量化(PTQ),当位宽较低时会导致明显的性能下降。基于这一观察,我们提出IntLoRA,它使用整数型低秩参数适配量化扩散模型,从而在微调过程中兼顾推理效率。具体来说,IntLoRA使预训练权重在训练期间保持量化状态,便于在消费级GPU上进行微调。推理时,IntLoRA权重可以无缝合并到预训练权重中,无需PTQ即可直接获得量化的下游任务权重。大量实验表明,我们的IntLoRA在训练和推理上都实现了显著加速,且没有性能损失。

英文摘要:

Fine-tuning pre-trained diffusion models under limited budgets has gained great success. In particular, the recent advances that directly fine-tune the quantized weights using Low-rank Adaptation (LoRA) further reduces training costs. Despite these progress, we point out that existing adaptation recipes are not inference-efficient. Specifically, additional post-training quantization (PTQ) on tuned weights is needed during deployment, which results in noticeable performance drop when the bit-width is low. Based on this observation, we introduce IntLoRA, which adapts quantized diffusion models with integer-type low-rank parameters, to include inference efficiency during tuning. Specifically, IntLoRA enables pre-trained weights to remain quantized during training, facilitating fine-tuning on consumer-level GPUs. During inference, IntLoRA weights can be seamlessly merged into pre-trained weights to directly obtain quantized downstream weights without PTQ. Extensive experiments show our IntLoRA achieves significant speedup on both training and inference without losing performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑