D2-LoRA用低秩适配提升模型性能,训练仅需5000样本且推理零延迟。
D2-LoRA: A Synergistic Approach to Differential and Directional Low-Rank Adaptation
- 结合符号低秩残差与加减组件,训练时列投影保持原始范数
- 8个问答任务平均准确率76.4%,比LoRA高2.2个百分点
- 适合资源受限场景,可无缝合并且训练更稳定
在实际数据和计算约束下,我们系统研究了参数高效微调的设计空间,并提出D2-LoRA。该方法在每个任务仅使用5000个训练样本和两个训练周期的情况下,实现了8个问答与阅读理解基准上的平均76.4%准确率,同时在推理时保持代数可合并性,数值等价近乎精确。该方法结合带符号的低秩残差更新与加法、减法分量,并引入训练时列方向投影,使每列接近原始范数。训练后适配器合并为单一权重矩阵,实现零推理延迟。相比LoRA,D2-LoRA平均准确率提升2.2个百分点;在参数量匹配(LoRA秩2r vs D2-LoRA秩r)时,仍提升1.6个百分点,表明改进源于架构设计而非参数增加。相比DoRA,在多数任务上表现持平或超越。在生成任务中,ROUGE-L提升1.2,胜率提升1.1个百分点,训练波动降低36%。合并后数值误差均值约0.03个百分点,评估吞吐量提升约1.91倍。训练开销为19%,与DoRA相当,并随输入序列增长而下降。我们提供了几何分析解释投影如何稳定训练,并通过消融实验分离各设计组件的贡献。
原文摘要 · Abstract (English)
We systematically investigate the parameter-efficient fine-tuning design space under practical data and compute constraints, and propose D2-LoRA. D2-LoRA achieves 76.4 percent average accuracy across eight question answering and reading comprehension benchmarks using only 5k training samples per task and two epochs, while preserving algebraic mergeability at inference with near-exact numerical equivalence. The method combines signed low-rank residual updates with additive and subtractive components, together with a train-time column-wise projection that keeps each column close to its original norm. After training, the adapter is merged into a single weight matrix, adding zero inference latency. Compared with LoRA, D2-LoRA improves average accuracy by 2.2 percentage points; at matched parameter counts (LoRA rank 2r versus D2-LoRA rank r), the improvement is 1.6 points, indicating gains from architectural design rather than increased parameterization. Compared with DoRA, it matches or exceeds performance on most tasks. Beyond QA and reading comprehension, D2-LoRA improves generative tasks (plus 1.2 ROUGE-L and plus 1.1 percent win rate) and shows 36 percent lower training volatility. The merge preserves numerical fidelity (mean gap about 0.03 percentage points) and recovers about 1.91x evaluation throughput. Training overhead is 19 percent, comparable to DoRA, and decreases with longer input sequences. We provide a geometric analysis explaining how the projection stabilizes training, together with ablation studies isolating the contribution of each design component.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。