WeGeFT:用于大型模型多方面高效自适应的权重生成微调
WeGeFT: Weight-Generative Fine-Tuning for Multi-Faceted Efficient Adaptation of Large Models
AI总结:
提出WeGeFT方法,通过从预训练权重生成微调权重,统一了参数高效与表示高效的微调,在多方面实现高效性的同时保持或超越了LoRA及其变体的性能。
摘要:
微调大型预训练Transformer模型可以侧重于引入少量新的可学习参数(参数效率),或使用轻量级模块编辑少量token的表示(表示效率)。开创性方法LoRA(Low-Rank Adaptation)内在地平衡了参数、计算和内存效率,但许多后续变体为了进一步减少微调参数,牺牲了计算和内存效率及/或性能。为解决这一局限并统一参数高效和表示高效的微调,我们提出了Weight-Generative Fine-Tuning(WeGeFT),这是一种直接从预训练权重生成微调权重的新颖方法。WeGeFT采用由两个线性层组成的简单低秩公式,这些层要么在预训练模型的多个层间共享,要么为不同层单独学习。该设计在参数、表示、计算和内存方面实现了多方面的高效性,同时保持或超越了LoRA及其变体的性能。在常识推理、算术推理、指令遵循、代码生成和视觉识别上的大量实验验证了我们提出的WeGeFT的有效性。我们的代码可在https://github.com/savadikarc/wegeft获取。
英文摘要:
Fine-tuning large pretrained Transformer models can focus on either introducing a small number of new learnable parameters (parameter efficiency) or editing representations of a small number of tokens using lightweight modules (representation efficiency). While the pioneering method LoRA (Low-Rank Adaptation) inherently balances parameter, compute, and memory efficiency, many subsequent variants trade off compute and memory efficiency and/or performance to further reduce fine-tuning parameters. To address this limitation and unify parameter-efficient and representation-efficient fine-tuning, we propose Weight-Generative Fine-Tuning (WeGeFT, pronounced wee-gift), a novel approach that learns to generate fine-tuning weights directly from the pretrained weights. WeGeFT employs a simple low-rank formulation consisting of two linear layers, either shared across multiple layers of the pretrained model or individually learned for different layers. This design achieves multi-faceted efficiency in parameters, representations, compute, and memory, while maintaining or exceeding the performance of LoRA and its variants. Extensive experiments on commonsense reasoning, arithmetic reasoning, instruction following, code generation, and visual recognition verify the effectiveness of our proposed WeGeFT. Our code is available at https://github.com/savadikarc/wegeft
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。