arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.18990cs.LGcs.AIcs.CL
收藏

持续关注:超参数对现实应用中LLM调优影响的实证研究

Stay Tuned: An Empirical Study of the Impact of Hyperparameters on LLM Tuning in Real-World Applications

IBM Research(IBM研究院)

Alon Halfon, Shai Gretz, Ofir Arviv, Artem Spector, Orith Toledo-Ronen, Yoav Katz, Liat Ein-Dor, Michal Shmueli-Scheuer, Noam Slonim

AI总结:

本文通过超过一万次实验研究Llama-3-8B和Mistral-7B在全量微调与LoRA下的超参数影响,提出基于覆盖的搜索方法并给出实用配置推荐,发现Llama-3-8B和LoRA通常更优。

摘要:

微调大型语言模型(LLMs)是提升其在下游任务上表现的有效方法。然而,选择合适的调优超参数(HPs)设置是一个劳动密集且计算成本高昂的过程。在此,我们针对实际使用场景提供了推荐的超参数配置,这些配置为实践者提供了一个更好的起点,同时考虑了两个最先进的LLM和两种常用的调优方法。我们描述了基于覆盖的搜索(Coverage-based Search,CBS),这是一种基于离线大规模网格搜索对超参数配置进行排序的过程,使得排名靠前的配置能够共同为广泛的数据集和领域提供实用且稳健的推荐。我们将实验重点放在Llama-3-8B和Mistral-7B上,以及全量微调和LoRA上,总共进行了超过10,000次调优实验。我们的结果表明,一般来说,在可能的情况下应优先选择Llama-3-8B和LoRA。此外,我们表明,对于这两种模型和调优方法,按照我们的分析建议仅探索少数几个超参数配置,就能在实践中提供出色的结果,使这项工作成为实践者的宝贵资源。

英文摘要:

Fine-tuning Large Language Models (LLMs) is an effective method to enhance their performance on downstream tasks. However, choosing the appropriate setting of tuning hyperparameters (HPs) is a labor-intensive and computationally expensive process. Here, we provide recommended HP configurations for practical use-cases that represent a better starting point for practitioners, when considering two SOTA LLMs and two commonly used tuning methods. We describe Coverage-based Search (CBS), a process for ranking HP configurations based on an offline extensive grid search, such that the top ranked configurations collectively provide a practical robust recommendation for a wide range of datasets and domains. We focus our experiments on Llama-3-8B and Mistral-7B, as well as full fine-tuning and LoRa, conducting a total of > 10,000 tuning experiments. Our results suggest that, in general, Llama-3-8B and LoRA should be preferred, when possible. Moreover, we show that for both models and tuning methods, exploring only a few HP configurations, as recommended by our analysis, can provide excellent results in practice, making this work a valuable resource for practitioners.

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

↑