SLIM: Let LLM Learn More and Forget Less with Soft LoRA and Identity Mixture

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Han, Jiayi, Du, Liang, Du, Hongwei, Zhou, Xiangguo, Wu, Yiwen, Zheng, Weibo, Han, Donghong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929688511774720
author Han, Jiayi
Du, Liang
Du, Hongwei
Zhou, Xiangguo
Wu, Yiwen
Zheng, Weibo
Han, Donghong
author_facet Han, Jiayi
Du, Liang
Du, Hongwei
Zhou, Xiangguo
Wu, Yiwen
Zheng, Weibo
Han, Donghong
contents Although many efforts have been made, it is still a challenge to balance the training budget, downstream performance, and the general capabilities of the LLMs in many applications. Training the whole model for downstream tasks is expensive, and could easily result in catastrophic forgetting. By introducing parameter-efficient fine-tuning (PEFT), the training cost could be reduced, but it still suffers from forgetting, and limits the learning on the downstream tasks. To efficiently fine-tune the LLMs with less limitation to their downstream performance while mitigating the forgetting of general capabilities, we propose a novel mixture of expert (MoE) framework based on Soft LoRA and Identity Mixture (SLIM), that allows dynamic routing between LoRA adapters and skipping connection, enables the suppression of forgetting. We adopt weight-yielding with sliding clustering for better out-of-domain distinguish to enhance the routing. We also propose to convert the mixture of low-rank adapters to the model merging formulation and introduce fast dynamic merging of LoRA adapters to keep the general capabilities of the base model. Extensive experiments demonstrate that the proposed SLIM is comparable to the state-of-the-art PEFT approaches on the downstream tasks while achieving the leading performance in mitigating catastrophic forgetting.
format Preprint
id arxiv_https___arxiv_org_abs_2410_07739
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SLIM: Let LLM Learn More and Forget Less with Soft LoRA and Identity Mixture
Han, Jiayi
Du, Liang
Du, Hongwei
Zhou, Xiangguo
Wu, Yiwen
Zheng, Weibo
Han, Donghong
Machine Learning
Computation and Language
Although many efforts have been made, it is still a challenge to balance the training budget, downstream performance, and the general capabilities of the LLMs in many applications. Training the whole model for downstream tasks is expensive, and could easily result in catastrophic forgetting. By introducing parameter-efficient fine-tuning (PEFT), the training cost could be reduced, but it still suffers from forgetting, and limits the learning on the downstream tasks. To efficiently fine-tune the LLMs with less limitation to their downstream performance while mitigating the forgetting of general capabilities, we propose a novel mixture of expert (MoE) framework based on Soft LoRA and Identity Mixture (SLIM), that allows dynamic routing between LoRA adapters and skipping connection, enables the suppression of forgetting. We adopt weight-yielding with sliding clustering for better out-of-domain distinguish to enhance the routing. We also propose to convert the mixture of low-rank adapters to the model merging formulation and introduce fast dynamic merging of LoRA adapters to keep the general capabilities of the base model. Extensive experiments demonstrate that the proposed SLIM is comparable to the state-of-the-art PEFT approaches on the downstream tasks while achieving the leading performance in mitigating catastrophic forgetting.
title SLIM: Let LLM Learn More and Forget Less with Soft LoRA and Identity Mixture
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2410.07739