研究上下文长度对大模型联邦微调的影响,发现质量比长度更重要。
CLLoRA: An Approach to Measure the Effects of the Context Length for LLM Fine-Tuning
- 用LoRA高效微调不同规模模型,评估上下文长度与质量影响。
- 上下文质量失衡会损害本地训练和全局性能,长度影响较小。
- 适合关注联邦学习中数据异构性与微调策略的研究者。
大语言模型微调被证实是将预训练模型应用于新领域的一种高效方法。为保障不同数据所有者的隐私,模型常在联邦学习环境中跨多个数据所有者进行微调,但这一过程往往面临数据异构性问题,影响微调效果。此外,训练数据的上下文长度被确认为影响大模型性能的关键因素。为有效衡量上下文长度对大模型微调性能的影响,本文提出CLLoRA。CLLoRA采用基于LoRA的参数高效微调方法,针对不同规模的大语言模型,研究上下文质量与长度是否可作为衡量非独立同分布(non-IID)上下文的标准。结果表明,上下文质量不均衡不仅影响客户端的本地训练,也显著影响全局模型性能;而上下文长度对本地训练影响较小,对全局模型影响更显著。这些发现为理解联邦学习环境下上下文质量与长度对大模型微调性能的影响提供了重要洞见。
原文摘要 · Abstract (English)
Large language model fine-tuning has been identified as an efficient approach to applying the pre-trained Large language models to other domains. To guarantee data privacy for different data owners, models are often fine-tuned in federated learning environments across different data owners, which often involve data heterogeneity issues and affect the fine-tuning performance. In addition, the length of the context for the training data has been identified as a major factor that affects the LLM's model performance. To efficiently measure how the context length affects the LLM's model performance in heterogeneous federated learning environments, we propose CLLoRA. CLLoRA utilizes the parameter-efficient fine-tuning approach LoRA based on different kinds of LLMs with varying sizes as the fine-tuning approach to investigate whether the quality and length of contexts can serve as standards for measuring non-IID context. The findings indicate that an imbalance in context quality not only affects local training on clients but also impacts the global model's performance. However, context length has a minimal effect on local training but a more significant influence on the global model. These results provide insights into how context quality and length affect the model performance for LLM fine-tuning in federated learning environments.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。