FIM-LoRA: 通过校准时间梯度方差估计实现任务信息的秩分配
FIM-LoRA: Task-Informative Rank Allocation for LoRA via Calibration-Time Gradient-Variance Estimation
AI总结:
本文提出FIM-LoRA,通过校准时间梯度方差估计来分配任务信息的秩,以优化LoRA的秩分配,从而提高模型性能。
摘要:
低秩适应(LoRA)为每个适应的权重矩阵分配一个统一的秩——一种实用的便利,但忽略了一个基本现实:不同层对任务适应的贡献不均。我们通过一种轻量级的工程解决方案来解决这个问题:在微调开始之前,运行八次校准反向传递,计算每个LoRA-B矩阵的梯度方差作为层信息度的代理,并按比例重新分配秩预算。所得到的适配器是一个标准的LoRA,具有每层的秩模式——没有新的参数,没有训练开销,没有对服务基础设施的更改。我们通过高效地近似经验 Fisher 信息矩阵(eFIM)对角线,仅限于 LoRA 适配器矩阵,来实现这一点,这将内存成本降低了大约256倍相比完整的模型 Fisher 估计。在 GLUE 上使用 DeBERTa-v3-base 时,FIM-LoRA 在相同参数预算下与 LoRA 相当(88.6 vs. 88.7),在常识推理上使用 LLaMA-3-8B 时达到 68.5 vs. 68.7。每层的秩映射是可解释的:值投影和早期到中期层一致获得更高的秩,与已建立的 transformer 层角色研究结果一致。
英文摘要:
Low-rank adaptation (LoRA) assigns a uniform rank to every adapted weight matrix - a practical convenience that ignores a fundamental reality: different layers contribute unequally to task adaptation. We address this with a lightweight engineering solution: before fine-tuning begins, run eight calibration backward passes, compute the gradient variance of each LoRA-B matrix as a proxy for layer informativeness, and redistribute the rank budget proportionally. The resulting adapter is a standard LoRA with a per-layer rank pattern - no new parameters, no training overhead, no changes to serving infrastructure. We implement this via an efficient approximation of the empirical Fisher Information Matrix (eFIM) diagonal, restricted to LoRA adapter matrices only, which reduces memory cost by approximately 256x compared to full-model Fisher estimation. On GLUE with DeBERTa-v3-base, FIM-LoRA matches LoRA (88.6 vs. 88.7) at the same parameter budget, and on commonsense reasoning with LLaMA-3-8B reaches 68.5 vs. 68.7 for LoRA. The per-layer rank maps are interpretable: value projections and early-to-middle layers consistently receive higher rank, consistent with established findings on transformer layer roles.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。