arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.00726cs.CL
收藏

大型语言模型少样本适配的结构化梯度引导

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

The Chinese University of Hong Kong(香港中文大学);Georgia Institute of Technology(佐治亚理工学院);San Francisco State University(旧金山州立大学);Stevens Institute of Technology(斯蒂文斯理工学院)

Hongye Zheng, Yichen Wang, Ray Pan, Guiran Liu, Binrong Zhu, Hanlu Zhang

AI总结:

本文提出一种基于梯度方向一致性与幅度控制的结构化微调方法,并结合梯度对齐机制,在少样本条件下提升大型语言模型的任务适应性、训练稳定性及跨任务泛化能力。

摘要:

本文提出了一种在少样本条件下用于大型语言模型的梯度信息微调方法。其目标是在数据有限时增强任务适应性和训练稳定性。该方法建立在一个基础损失函数之上,并引入两个与梯度相关的正则化项。第一项强制梯度方向一致性,以引导参数更新沿着与任务相关的方向进行,并防止漂移。第二项控制梯度幅度,以避免异常更新。这些组件共同支持更高效、更稳定的优化路径。为了进一步提高跨任务泛化能力,该方法引入了一种梯度对齐机制。该机制衡量源任务与目标任务优化方向之间的一致性。它增强了多任务和跨领域场景下的微调性能。在各种自然语言理解任务中,该方法在平均准确率、梯度稳定性和方向对齐方面均优于现有的微调策略。在不同样本规模和领域特定任务下的实证评估证实了该方法在低资源环境中的鲁棒性和广泛适用性。特别是,该方法在控制参数更新路径方面表现出明显优势。结果表明,基于梯度的微调框架能够有效利用大型语言模型的表示能力。它在确保训练稳定性的同时,减少了对大量标注数据的依赖。

英文摘要:

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.

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

↑