arXiv:2506.00726cs.CL2025-06被引 9

用梯度引导提升大模型少样本微调的稳定性和适应性

Structured Gradient Guidance for Few-Shot Adaptation in Large Language Models

  • 通过梯度方向与幅度双重正则化,控制参数更新路径
  • 在少样本下平均准确率更高,梯度更稳定,方向对齐更好
  • 适合低资源场景下的多任务、跨域微调,尤其关注训练稳定性

本文提出一种基于梯度信息的少样本微调方法,旨在提升大语言模型在数据有限时的任务适应性和训练稳定性。该方法在基础损失函数基础上引入两项梯度相关正则项:第一项强制梯度方向一致性,引导参数沿任务相关方向更新并防止偏离;第二项控制梯度幅度,避免异常更新。二者共同构建更高效稳定的优化路径。为进一步提升跨任务泛化能力,方法还引入梯度对齐机制,衡量源任务与目标任务优化方向的一致性,在多任务和跨领域场景中显著提升微调性能。在多种自然语言理解任务上,该方法在平均准确率、梯度稳定性及方向对齐度方面均优于现有策略。不同样本量和领域任务的实证评估验证了其在低资源环境中的鲁棒性与广泛适用性。结果表明,基于梯度的微调框架能有效利用大模型表征能力,确保训练稳定,同时降低对大规模标注数据的依赖。

原文摘要 · Abstract (English)

This paper presents a gradient-informed fine-tuning method for large language models under few-shot conditions. The goal is to enhance task adaptability and training stability when data is limited. The method builds on a base loss function and introduces two gradient-related regularization terms. The first enforces gradient direction consistency to guide parameter updates along task-relevant directions and prevent drift. The second controls gradient magnitude to avoid abnormal updates. Together, these components support a more efficient and stable optimization path. To further improve cross-task generalization, the method incorporates a gradient alignment mechanism. This mechanism measures the consistency between optimization directions of the source and target tasks. It enhances fine-tuning performance in multi-task and cross-domain scenarios. Across various natural language understanding tasks, the method outperforms existing fine-tuning strategies in average accuracy, gradient stability, and directional alignment. Empirical evaluations under different sample sizes and domain-specific tasks confirm the method's robustness and broad applicability in low-resource environments. In particular, the method shows clear advantages in controlling parameter update paths. The results demonstrate that a gradient-based fine-tuning framework can effectively leverage the representational power of large language models. It ensures training stability while reducing dependence on large volumes of labeled data.

大模型微调少样本学习梯度控制训练稳定

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。