[논문 리뷰] Chain of LoRA: Efficient Fine-tuning of Language Models via Residual Learning
COLA는 저랭크 LoRA 모듈의 체인을 점진적으로 학습하고, 이를 백본에 점진적으로 병합하며, 새로운 모듈에 대해 재초기화하여 추론 시 추가 계산 없이 LoRA보다 더 나은 일반화 성능을 달성한다.
Fine-tuning is the primary methodology for tailoring pre-trained large language models to specific tasks. As the model's scale and the diversity of tasks expand, parameter-efficient fine-tuning methods are of paramount importance. One of the most widely used family of methods is low-rank adaptation (LoRA) and its variants. LoRA encodes weight update as the product of two low-rank matrices. Despite its advantages, LoRA falls short of full-parameter fine-tuning in terms of generalization error for certain tasks. We introduce Chain of LoRA (COLA), an iterative optimization framework inspired by the Frank-Wolfe algorithm, to bridge the gap between LoRA and full parameter fine-tuning, without incurring additional computational costs or memory overheads. COLA employs a residual learning procedure where it merges learned LoRA modules into the pre-trained language model parameters and re-initilize optimization for new born LoRA modules. We provide theoretical convergence guarantees as well as empirical results to validate the effectiveness of our algorithm. Across various models (OPT and llama-2) and seven benchmarking tasks, we demonstrate that COLA can consistently outperform LoRA without additional computational or memory costs.
연구 동기 및 목표
- 모델이 커지고 작업 다양성이 확장될 때 매개변수 효율적인 미세 조정을 고무한다.
- 추가 비용 없이 LoRA와 전체 매개변수 미세 조정 간의 일반화 격차를 좁힌다.
- 학습된 모듈을 백본에 병합하여 적응력을 향상시키는 반복적 잔차 학습 프레임워크를 개발한다.
제안 방법
- 작업 특이적 가중치 업데이트를 저랭크 항의 합으로 근사하기 위해 LoRA 모듈의 체인을 형성한다.
- 각 단계에서 이전 백본 가중치를 고정한 채 새로운 LoRA (A_i, B_i)를 학습한다.
- 현재 LoRA (B_i A_i)를 고정된 백본 가중치에 병합하여 매듭을 묶고, 잔차에 대해 새로운 LoRA를 재초기화하여 체인을 확장한다.
실험 결과
연구 질문
- RQ1동일한 계산 부담을 유지하면서 잔차 LoRA 업데이트의 체인이 LoRA와의 일반화 격차를 줄일 수 있는가?
- RQ2반복적 병합 및 확장(COLA)이 서로 다른 모델 아키텍처와 데이터 세트에서 더 좋은 작업 적응성을 가져오는가?
- RQ3비볼록 확률적 최적화 설정에서 COLA가 나타내는 수렴 특성은 무엇인가?
주요 결과
- COLA는 동일한 학습 예산으로 OPT-1.3B에서 일곱 가지 작업에 걸쳐 LoRA를 지속적으로 능가한다.
- OPT-1.3B에서 COLA는 WSC에서 LoRA 대비 상대적으로 6.47%의 테스트 정확도 이득을 달성한다.
- OPT-1.3B에서 COLA는 BoolQ에서 1.95%, RTE에서 2.29%의 상대 개선을 달성한다.
- Llama2-7B에서 COLA가 RTE를 82.09에서 85.70으로 개선하여 상대 이익 4.40%를 달성한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.