LoRA

Method · 2021 · Also known as Low-Rank Adaptation

Definition

“An important paradigm of natural language processing consists of large-scale pre-training on general domain data and adaptation to particular tasks or domains.”

From the defining paper: LoRA: Low-Rank Adaptation of Large Language Models (Edward J. Hu, Yelong Shen, Phillip Wallis, et al., ICLR 2022).

Lineage

Parent: Adapters

Children: QLoRA; AdaLoRA; DoRA; PiSSA; VeRA

Incoming edges (3)

improves · memory efficiency

From Full fine-tuning · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible” Source: LoRA: Low-Rank Adaptation of Large Language Models
Mechanism
“which freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer” Source: LoRA: Low-Rank Adaptation of Large Language Models
Trade-off
No trade-off quoted.

improves · inference speed

From Adapters · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“unlike adapters, no additional inference latency” Source: LoRA: Low-Rank Adaptation of Large Language Models
Mechanism
“which freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer” Source: LoRA: Low-Rank Adaptation of Large Language Models
Trade-off
No trade-off quoted.

compares · memory efficiency

From Prefix-tuning · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible” Source: LoRA: Low-Rank Adaptation of Large Language Models
Mechanism
“which freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer” Source: LoRA: Low-Rank Adaptation of Large Language Models
Trade-off
No trade-off quoted.

Outgoing edges (5)

improves · memory efficiency

To QLoRA · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“reduces memory usage enough to finetune a 65B parameter model on a single 48GB GPU” Source: QLoRA: Efficient Finetuning of Quantized LLMs
Mechanism
“QLoRA backpropagates gradients through a frozen, 4-bit quantized pretrained language model into Low Rank Adapters” Source: QLoRA: Efficient Finetuning of Quantized LLMs
Trade-off
No trade-off quoted.

improves · memory efficiency

To AdaLoRA · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“These methods often evenly distribute the budget of incremental updates across all pre-trained weight matrices, and overlook the varying importance of different weight parameters” Source: AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning
Mechanism
“we propose AdaLoRA, which adaptively allocates the parameter budget among weight matrices according to their importance score” Source: AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning
Trade-off
No trade-off quoted.

improves · accuracy

To DoRA · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“there still often exists an accuracy gap between these methods and full fine-tuning (FT)” Source: DoRA: Weight-Decomposed Low-Rank Adaptation
Mechanism
“DoRA decomposes the pre-trained weight into two components, magnitude and direction, for fine-tuning” Source: DoRA: Weight-Decomposed Low-Rank Adaptation
Trade-off
No trade-off quoted.

improves · training stability

To PiSSA · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“which may lead to slow convergence” Source: PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Models
Mechanism
“allowing faster convergence and enhanced performance” Source: PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Models
Trade-off
No trade-off quoted.

improves · memory efficiency

To VeRA · confidence 0.8 (Tradeoff quote is null; confidence 0.8.)

Bottleneck
“but still faces acute storage challenges when scaling to even larger models or deploying numerous per-user or per-task adapted models” Source: VeRA: Vector-based Random Matrix Adaptation
Mechanism
“It achieves this by using a single pair of low-rank matrices shared across all layers and learning small scaling vectors instead” Source: VeRA: Vector-based Random Matrix Adaptation
Trade-off
No trade-off quoted.

Back to the explorer