Highlight

LoRA: Low-Rank Adaptation of Large Language Models

Proposes LoRA, which freezes pre-trained weights and injects trainable low-rank decomposition matrices into Transformer layers for efficient adaptation.

Based on

LoRA: Low-Rank Adaptation of Large Language Models

By J. Hu, Yelong Shen, Phillip Wallis et al.International Conference on Learning Representations
Read original article →

This paper targets the growing infeasibility of full fine-tuning as pre-trained language models scale — deploying independent fine-tuned instances of a model like GPT-3 175B is prohibitively expensive. Low-Rank Adaptation (LoRA) freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of parameters trained for downstream tasks.

Compared to fine-tuning GPT-3 175B with Adam, LoRA reduces trainable parameters by 10,000 times and the GPU memory requirement by 3 times, while performing on par with or better than full fine-tuning on RoBERTa, DeBERTa, GPT-2, and GPT-3 — with higher training throughput and, unlike adapters, no additional inference latency. The paper also empirically investigates rank-deficiency in language model adaptation to explain LoRA's efficacy, and releases a package integrating LoRA with PyTorch along with implementations and model checkpoints.

Abstract

Full fine-tuning of large pre-trained language models becomes impractical at scale — deploying independent fine-tuned instances of GPT-3 175B is prohibitively expensive. LoRA freezes pre-trained weights and injects trainable rank decomposition matrices into each Transformer layer, cutting trainable parameters for downstream tasks by 10,000x and GPU memory by 3x versus fine-tuning GPT-3 with Adam. LoRA matches or beats fine-tuning quality on RoBERTa, DeBERTa, GPT-2, and GPT-3, with higher training throughput and, unlike adapters, no added inference latency.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

LoRAparameter-efficient fine-tuninglow-rank adaptationTransformerslarge language models
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.

LoRA: Low-Rank Adaptation of Large Language Models | Aramai