Skip to main content
QUICK REVIEW

[논문 리뷰] LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report

Justin Zhao, Timothy C. Wang|arXiv (Cornell University)|2024. 04. 29.
Particle accelerators and beam dynamicsEngineering인용 수 8
한 줄 요약

논문은 10개의 기본 모델과 31개의 작업에 걸쳐 310개의 LoRA-미세조정 LLM을 평가하며, 4비트 LoRA 미세조정이 평균적으로 기본 모델과 GPT-4를 종종 능가하고 LoRAX 및 LoRA Land를 통해 단일 A100 GPU에서 25개의 미세조정된 Mistral-7B 모델을 호스팅하는 실세계 배포를 보여준다.

ABSTRACT

Low Rank Adaptation (LoRA) has emerged as one of the most widely adopted methods for Parameter Efficient Fine-Tuning (PEFT) of Large Language Models (LLMs). LoRA reduces the number of trainable parameters and memory usage while achieving comparable performance to full fine-tuning. We aim to assess the viability of training and serving LLMs fine-tuned with LoRA in real-world applications. First, we measure the quality of LLMs fine-tuned with quantized low rank adapters across 10 base models and 31 tasks for a total of 310 models. We find that 4-bit LoRA fine-tuned models outperform base models by 34 points and GPT-4 by 10 points on average. Second, we investigate the most effective base models for fine-tuning and assess the correlative and predictive capacities of task complexity heuristics in forecasting the outcomes of fine-tuning. Finally, we evaluate the latency and concurrency capabilities of LoRAX, an open-source Multi-LoRA inference server that facilitates the deployment of multiple LoRA fine-tuned models on a single GPU using shared base model weights and dynamic adapter loading. LoRAX powers LoRA Land, a web application that hosts 25 LoRA fine-tuned Mistral-7B LLMs on a single NVIDIA A100 GPU with 80GB memory. LoRA Land highlights the quality and cost-effectiveness of employing multiple specialized LLMs over a single, general-purpose LLM.

연구 동기 및 목표

  • 현실 세계 애플리케이션에서 LoRA-미세조정 LLM의 학습 및 서비스 가능성 평가.
  • 표준화된 프롬프트 하에서 다양한 기본 모델과 작업에 걸친 LoRA 미세조정으로 인한 성능 향상 정량화.
  • 미세조정 이익을 예측하는 데 도움이 되는 어떤 기본 모델 및 작업 특성이 가장 큰 영향을 미치는지 조사.
  • 생산 환경에서 LoRAX를 사용해 여러 LoRA 어댑터를 효율적으로 서비스하는 것이 가능한지 평가.

제안 방법

  • 10개의 기본 모델에서 4비트 양자화와 랭크 8을 사용한 LoRA로 310개 LLM의 표준화된 미세조정.
  • 일관된 학습 설정: 40,000 스텝, 배치 크기 1, 페이지화된 Adam, 학습률 0.002, 코사인 스케줄링 3% 워밍업, 누적 단계 16.
  • 제출물의 출력 맵핑을 위한 Ground-truth 어휘를 얻기 위한 정규식 추출을 포함한 제로샷 또는 원샷 완료 프롬프트로 평가.
  • 생성 태스크에 대해 ROUGE-L, 분류에 대해 정밀도/재현율, 회귀에 대해 MAE를 사용하되 태스크별 적응을 적용(위키SQL ROUGE를 프록시로 사용).
  • LoRAX를 이용해 단일 GPU에서 동적 어댑터 로딩 및 다중 모델 서비스가 가능하도록 하고 LoRA Land에 25개의 LoRA-미세조정된 Mistral-7B 모델을 배포한다.
Figure 1 : Average model performance for GPT-3.5, GPT-4, and 310 LLMs, before and after fine-tuning with LoRA, across 31 different tasks and 10 different base models. Zephyr-7b and Mistral-7b models exhibit the best performance after LoRA-based fine-tuning.
Figure 1 : Average model performance for GPT-3.5, GPT-4, and 310 LLMs, before and after fine-tuning with LoRA, across 31 different tasks and 10 different base models. Zephyr-7b and Mistral-7b models exhibit the best performance after LoRA-based fine-tuning.

실험 결과

연구 질문

  • RQ1표준화된 프롬프트 하에서 광범위한 기본 모델 및 작업 집합에 대해 LoRA 미세조정이 얼마나 효과적인가?
  • RQ2LoRA 미세조정으로 가장 큰 이익을 얻는 기본 모델은 무엇이며 모델 크기가 이익에 어떤 영향을 미치는가?
  • RQ3작업 복잡도 휴리스틱이 미세조정 이익의 크기 및 벤치마크 대비 상승을 예측할 수 있는가?
  • RQ4LoRAX를 사용해 Production에서 여러 LoRA 어댑터를 효율적으로 배포하고 서비스하는 것이 가능한가?

주요 결과

  • 4비트 LoRA 미세조정 모델은 평균적으로 기본 모델 대비 34포인트, 31개 작업 및 10개 기본 모델에서 GPT-4 대비 평균 10포인트를 상회한다.
  • 가장 우수한 미세조정 LLM은 310개 작업 중 301개에서 기본 모델 대비를 능가하고, 310개 중 224개에서 GPT-4를 능가한다.
  • Phi-2(2B)는 미세조정 후 GPT-4와 경쟁력이 있으며; 7B 모델은 일반적으로 2B 대비 미세조정 후 성능이 더 우수하다.
  • LoRA 미세조정에 대해 Mistral-7B 및 Zephyr-7b-beta가 최상위 기본 모델로 나타났으며, Mistral-7B가 작업 전반에서 가장 자주 상위를 차지하고 Zephyr-7b-beta가 전체 평균에서 가장 높은 성능을 달성한다.
  • LoRAX를 통해 단일 A100에서 25개의 LoRA-미세조정된 Mistral-7B 모델을 서비스하는 것이 가능해 실제적이고 비용 효율적인 다중 모델 배치를 시연한다.
Figure 2 : Examples of different styles of prompting. To maintain using the same prompts when comparing models and to ensure the highest likelihood of success amongst all types of models (fine-tuned, auto-complete, or instruction-tuned), all of our prompts adhere to completion style.
Figure 2 : Examples of different styles of prompting. To maintain using the same prompts when comparing models and to ensure the highest likelihood of success amongst all types of models (fine-tuned, auto-complete, or instruction-tuned), all of our prompts adhere to completion style.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.