arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.13641cs.CLcs.CV
收藏

超越准确率优化:面向大语言模型微调的计算机视觉损失函数

Beyond Accuracy Optimization: Computer Vision Losses for Large Language Model Fine-Tuning

Politecnico di Torino(都灵理工大学)

Daniele Rege Cambrin, Giuseppe Gallipoli, Irene Benedetto, Luca Cagliero, Paolo Garza

AI总结:

针对大语言模型现有训练方案可扩展性不足的问题,本研究将计算机视觉领域的语义分割损失函数用于LLM微调,在数学应用题和问答任务上实现精确匹配率平均提升42%,无需额外数据或人工反馈。

摘要:

大语言模型(LLM)已在各类任务中展现出出色性能。然而,当前训练方法将标准交叉熵损失与海量数据、人类反馈或特设方法相结合来提升性能,这类方案往往因相关成本、复杂度或资源需求而不具备可扩展性或可行性。本研究探索将成熟的语义分割损失函数应用于自然语言生成,打造一种通用、实用且可扩展的方案,用于不同架构的微调。我们在不同规模的模型上,评估了这些损失函数在解决数学应用题和问答任务上的效果。针对所分析的任务,我们发现传统交叉熵损失并非最优选择,而采用Focal、Lovász等替代(依赖任务的)损失进行最小化训练的模型,在无需额外数据或人类反馈的情况下,精确匹配率平均提升42%。这些发现为更高效、更易实现的训练流程提供了一条有前景的路径。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive performance across various tasks. However, current training approaches combine standard cross-entropy loss with extensive data, human feedback, or ad hoc methods to enhance performance. These solutions are often not scalable or feasible due to their associated costs, complexity, or resource requirements. This study investigates the use of established semantic segmentation loss functions in natural language generation to create a versatile, practical, and scalable solution for fine-tuning different architectures. We evaluate their effectiveness in solving Math Word Problems and question answering across different models of varying sizes. For the analyzed tasks, we found that the traditional Cross-Entropy loss represents a sub-optimal choice, while models trained to minimize alternative (task-dependent) losses, such as Focal or Lovász, achieve a mean improvement of +42% on exact match without requiring additional data or human feedback. These findings suggest a promising pathway for more efficient and accessible training processes.

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

↑