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

SWIFT:一种可扩展的轻量级微调基础设施

SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuning

Alibaba Group(阿里巴巴集团)

Yuze Zhao, Jintao Huang, Jinghan Hu, Xingjun Wang, Yunlin Mao, Daoze Zhang, Hong Zhang, Zeyinzi Jiang, Zhikai Wu, Baole Ai, Ang Wang, Wenmeng Zhou, Yingda Chen

AI总结:

本研究推出可定制的大模型一站式微调基础设施SWIFT,支持数百款大模型与多模态大模型,集成全流程工具,在智能体微调任务中实现显著性能提升。

摘要:

大语言模型(LLMs)与多模态大语言模型(MLLMs)的最新发展依托基于注意力机制的Transformer架构,取得了卓越的性能与泛化能力,现已覆盖传统学习任务的广泛领域。例如,文本分类、序列标注等文本类任务,以及视觉问答(VQA)、光学字符识别(OCR)等多模态任务,此前需采用不同模型解决,如今均可基于单一基础模型完成。因此,LLMs与MLLMs尤其是基于Transformer架构的这类模型的训练与轻量微调变得尤为重要。\n为满足这些迫切需求,我们开发了SWIFT——一款可定制的大模型一站式基础设施。SWIFT支持300多款LLM与50多款MLLM,是目前对大模型微调支持最全面的开源框架,更是首个为MLLM提供系统性支持的训练框架。除微调核心功能外,SWIFT还集成了推理、评估、模型量化等训练后流程,助力大模型在各类应用场景中快速落地。通过系统整合多种训练技术,SWIFT还提供大模型不同训练技术的基准对比等实用工具。\n针对智能体框架专用模型的微调,实验表明,在SWIFT上使用定制数据集训练,可在ToolBench排行榜上取得显著提升:相较于各类基线模型,Act.EM指标提升5.2%-21.8%,幻觉现象减少1.6%-14.1%,平均性能提升8%-17%。

英文摘要:

Recent development in Large Language Models (LLMs) and Multi-modal Large Language Models (MLLMs) have leverage Attention-based Transformer architectures and achieved superior performance and generalization capabilities. They have since covered extensive areas of traditional learning tasks. For instance, text-based tasks such as text-classification and sequence-labeling, as well as multi-modal tasks like Visual Question Answering (VQA) and Optical Character Recognition (OCR), which were previously addressed using different models, can now be tackled based on one foundation model. Consequently, the training and lightweight fine-tuning of LLMs and MLLMs, especially those based on Transformer architecture, has become particularly important. In recognition of these overwhelming needs, we develop SWIFT, a customizable one-stop infrastructure for large models. With support of over $300+$ LLMs and $50+$ MLLMs, SWIFT stands as the open-source framework that provide the most comprehensive support for fine-tuning large models. In particular, it is the first training framework that provides systematic support for MLLMs. In addition to the core functionalities of fine-tuning, SWIFT also integrates post-training processes such as inference, evaluation, and model quantization, to facilitate fast adoptions of large models in various application scenarios. With a systematic integration of various training techniques, SWIFT offers helpful utilities such as benchmark comparisons among different training techniques for large models. For fine-tuning models specialized in agent framework, we show that notable improvements on the ToolBench leader-board can be achieved by training with customized dataset on SWIFT, with an increase of 5.2%-21.8% in the Act.EM metric over various baseline models, a reduction in hallucination by 1.6%-14.1%, and an average performance improvement of 8%-17%.

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

↑