Structured Gradient Guidance for Few-Shot Adaptation in Large Language Models
Hongye ZhengYWYichen WangRay PanGuiran LiuBinrong ZhuHanlu Zhang
Hongye Zheng
YWYichen Wang
Ray Pan
Guiran Liu
Binrong Zhu
Hanlu Zhang
+6
This paper introduces a gradient-informed fine-tuning method for large language models in few-shot settings. It augments a base loss with two regularization terms: one enforces gradient direction consistency to prevent parameter drift, and the other controls gradient magnitude to avoid abnormal updates. A gradient alignment mechanism further measures optimization-direction consistency between source and target tasks, improving cross-task generalization. On natural language understanding benchmarks, the method outperforms existing strategies in accuracy, gradient stability, and directional alignment, demonstrating robust few-shot adaptation with reduced labeled-data dependence.

arXiv ·
· May 31, 2025