arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.07850cs.CLcs.AIcs.LG
收藏

MatryoshkaLoRA: 学习准确的分层低秩表示以用于大语言模型微调

MatryoshkaLoRA: Learning Accurate Hierarchical Low-Rank Representations for LLM Fine-Tuning

ISTA;Lancaster University, UK(兰卡斯特大学,英国);ISTA Institute of Science and Technology Austria (ISTA)(奥地利ISTA科学与技术研究所(ISTA))

Ionut-Vlad Modoranu, Mher Safaryan, Dan Alistarh

AI总结:

MatryoshkaLoRA通过引入固定对角矩阵P,学习准确的分层低秩表示,实现动态秩选择并提升精度-性能平衡。

摘要:

随着深度学习模型参数规模的增加,微调的计算成本仍是部署的主要障碍。尽管低秩适应(LoRA)已成为参数高效微调的标准方法,但需要预设静态秩r,需进行详尽的网格搜索以平衡效率和性能。现有秩自适应解决方案如DyLoRA通过在训练期间从预定义分布中采样秩来缓解这一问题,但通常在更高秩时由于缺乏在整个秩层次中的梯度信号而产生次优结果,因此这些方法数据效率低下。在本文中,我们提出MatryoshkaLoRA,一种受Matryoshka启发的LoRA训练框架,通过在现有的LoRA适配器之间插入一个固定且精心设计的对角矩阵P来调整其子秩,从而学习准确的分层低秩表示。通过引入这个简单的修改,我们的通用框架仅通过改变P即可恢复LoRA和DyLoRA,并确保所有子秩高效嵌入可用的梯度信息。我们的MatryoshkaLoRA支持动态秩选择,且在准确性上几乎没有降级。我们进一步提出了面积下秩精度曲线(AURAC)指标,该指标一致评估分层低秩适配器的性能。我们的结果表明,MatryoshkaLoRA比先前的秩自适应方法学习了更准确的分层低秩表示,并在评估数据集上实现了更优的精度-性能权衡。我们的代码可在https://github.com/IST-DASLab/MatryoshkaLoRA上获得。

英文摘要:

With the rise in scale for deep learning models to billions of parameters, the computational cost of fine-tuning remains a significant barrier to deployment. While Low-Rank Adaptation (LoRA) has become the standard for parameter-efficient fine-tuning, the need to set a predefined, static rank $r$ requires exhaustive grid searches to balance efficiency and performance. Existing rank-adaptive solutions such as DyLoRA mitigate this by sampling ranks during the training from a predefined distribution. However, they often yield sub-optimal results at higher ranks due to lack of consistent gradient signals across the full hierarchy of ranks, thus making these methods data-inefficient. In this paper, we propose MatryoshkaLoRA, a general, Matryoshka-inspired training framework for LoRA that learns accurate hierarchical low-rank representations by inserting a fixed, carefully crafted diagonal matrix $P$ between the existing LoRA adapters to scale their sub-ranks accordingly. By introducing this simple modification, our general framework recovers LoRA and DyLoRA only by changing $P$ and ensures all sub-ranks embed the available gradient information efficiently. Our MatryoshkaLoRA supports dynamic rank selection with minimal degradation in accuracy. We further propose Area Under the Rank Accuracy Curve (AURAC), a metric that consistently evaluates the performance of hierarchical low-rank adapters. Our results demonstrate that MatryoshkaLoRA learns more accurate hierarchical low-rank representations than prior rank-adaptive approaches and achieves superior accuracy-performance trade-offs across ranks on the evaluated datasets. Our code is available at https://github.com/IST-DASLab/MatryoshkaLoRA.

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

↑