Parameter-efficient fine-tuning is the adaptation layer between large-scale pretraining and transfer learning and application-specific behavior. Instead of updating every parameter in a Transformer checkpoint, it freezes most of the base model and trains a small set of task-specific parameters. The practical effect is operational: one expensive base model can support many small adapters, making open foundation model families locally customizable without repeating pretraining or storing a full checkpoint per task. 1 2

Low-rank adaptation

LoRA treats fine-tuning as a constrained weight update. For a frozen matrix , it learns a low-rank update , where and with , then adds that update in parallel to the original projection. Only the low-rank matrices are trained; the pretrained weight stays fixed. 1

This matters because the low-rank update can be merged into the base weight for inference as . That avoids the extra sequential layers of classic adapters, so LoRA can keep the latency profile of full fine-tuning while storing only small per-task modules. 1

LoRA’s empirical lesson is that many downstream adaptations appear low-rank relative to the pretrained model. In the paper’s GPT-scale experiments, adapting attention projections such as and with small ranks was competitive with much larger updates, and the learned update appears to amplify task-relevant directions already latent in the pretrained weights. 1

Quantized fine-tuning

QLoRA combines LoRA with low-bit base-model storage. It stores the pretrained model in 4-bit NormalFloat, dequantizes weights to BF16 for forward and backward computation, and backpropagates through the frozen quantized model into trainable LoRA adapters. 3

The key additions are NF4 for normally distributed pretrained weights, double quantization to reduce the overhead of quantization constants, and paged optimizers to handle transient memory spikes. In the paper’s framing, this moved 65B-parameter fine-tuning from a multi-hundred-GB memory requirement to a single 48GB GPU while preserving the quality of 16-bit LoRA or full fine-tuning in the evaluated settings. 3

QLoRA also changed the practical LoRA recipe. The paper found that query/value-only LoRA was not always enough to match full fine-tuning on LLaMA models; applying LoRA across all linear transformer-block layers mattered more than aggressively minimizing adapter count, because the quantized base model and activations dominated memory more than the LoRA parameters themselves. 3

Memory and optimizer tradeoffs

Parameter efficiency reduces trainable state, gradient state, optimizer state, and checkpoint storage, but those savings are not identical. LoRA reduces trainable parameters and lets many task modules share one base checkpoint; the LoRA paper reports GPT-3-scale examples where adapter checkpoints shrink from hundreds of GB to tens of MB and training memory falls because most optimizer states are unnecessary. 1

QLoRA exposes the next bottleneck: once adapter weights are tiny, base-model representation, activation gradients, sequence length, and optimizer spikes become dominant. Its memory design combines quantized base storage, gradient checkpointing, broad adapter placement, and paged optimizers rather than treating adapter parameter count as the only objective. 3 This connects PEFT to efficient attention and training systems, because usable adaptation depends on memory movement and runtime behavior as much as on parameter count.

There is also a serving tradeoff. If LoRA weights are merged into the base matrix, a single task can run with no extra inference latency; if many tasks must be served together with different adapters per request, batching and adapter swapping become more complicated. 1 Llama 3’s FP8 inference work is a separate example of quantization as deployment optimization rather than adaptation: it reduces inference cost for the served model, while QLoRA uses quantization to make training adapters feasible. 4

Role in open model customization

Open model families make PEFT strategically important. Llama 2 released base and chat checkpoints while emphasizing that deployment still requires application-specific safety testing and tuning; the expensive part shifts from training a base model to adapting and validating it for a concrete use case. 2

Llama 3 shows the same pattern at larger scale. Its post-training stack uses SFT, rejection sampling, and DPO across capabilities such as coding, reasoning, long context, multilinguality, tool use, safety, and response quality. 4 That belongs with instruction tuning and alignment, but PEFT supplies a narrower and cheaper lever when the goal is task or domain adaptation rather than full behavior shaping.

The Llama 3 multimodal experiments show a related adapter pattern, though not always a tiny one: visual recognition is added by composing a pretrained image encoder with the language model through cross-attention layers, image SFT keeps the language-model weights frozen, and video training freezes everything except video-specific components. 4 The principle is modular backbone preservation: keep the expensive language model stable, then learn a bridge or adapter for a new capability. This links PEFT to multimodal foundation models and agentic and coding models without making it a substitute for broader post-training.

A practical open-model workflow is therefore: choose a pretrained base, use instruction/alignment methods when the target behavior changes, use LoRA or QLoRA-style adapters when full fine-tuning is too expensive, and reserve full continued training for cases that need broad new capabilities or domain knowledge. 3 2

Footnotes

  1. LoRA - Low-Rank Adaptation of Large Language Models 2 3 4 5 6

  2. Llama 2 - Open Foundation and Fine-Tuned Chat Models 2 3

  3. QLoRA - Efficient Finetuning of Quantized LLMs 2 3 4 5

  4. The Llama 3 Herd of Models 2 3