TECHNOLOGY

VeRA adapters: learned vectors around shared random projections

In this article
THE QUICK TAKE

VeRA reduces trained state by freezing shared projections; those projections remain part of the effective adaptation even when regenerated from a seed.

VeRA adapts a model by learning scaling vectors around shared, frozen random projection matrices. Ordinary LoRA typically learns separate factor matrices for adapted layers. VeRA moves much of that structure outside the optimized parameter set, which is especially relevant when storing many task-specific adaptations rather than a single checkpoint.

Separate shared structure from learned state

The random matrices contribute to every adapted computation even though the optimizer does not update them. Each layer’s vectors modulate this shared structure to create its particular update. Calling the adapter a collection of vectors can therefore hide an essential dependency: the vectors only have meaning relative to the correct random projections. A different projection draw is a different model transformation, not an interchangeable way to decode the same learned coefficients.

Read the parameter budget precisely

Increasing the projection rank still changes the size of a learned scaling vector, while adapting more layers adds more layer-specific vectors. The trained state is small because large projection matrices are shared and frozen, not because capacity is independent of rank or layer count. Separate trainable parameters, stored projections and runtime working memory in any comparison. A report containing only optimizer-state bytes leaves the reader unable to reconstruct the full inference artifact or estimate how it behaves in a serving process.

Account for heterogeneous layer shapes

The PEFT implementation sizes shared projections for the largest needed dimensions and slices appropriate submatrices for individual layers. If an experiment adds unusually wide projections to the target list, the shared allocation can grow even when most adapted layers are narrower. Inspect the target shapes before attributing a memory change to another subsystem. Current documentation limits the supported module type to linear layers, so convolutional or embedding adaptation needs a separately supported approach rather than assuming the same configuration covers it.

Decide whether to save the projections

PEFT permits omitting projection tensors and regenerating them from a configured random seed. Its documentation explicitly qualifies reproducibility across devices and future PyTorch versions. For a durable handoff, saving projections avoids relying solely on the future behavior of a random-number implementation. If an experiment intentionally chooses seed-only storage, retain the software environment and test reconstruction on the intended deployment target. A small file is not automatically a fully specified, portable numerical artifact.

Evaluate adaptation and storage together

For an illustrative collection of support-domain classifiers, compare a shared-base VeRA setup with separate LoRA adaptations on the same labeled documents. Assess held-out task behavior, rejection and format parsing, as well as total storage across all tasks. Keep the number of simultaneously loaded adapters explicit when measuring runtime memory. This design tests the actual many-task use case; extrapolating a single adapter’s size without its shared dependencies would overstate the practical savings.

Preserve a complete checkpoint identity

Retain the base revision, tokenizer, target modules, vector state, projection policy and exact library versions. Reload one adaptation in a fresh process and compare fixed-input outputs with the training artifact in evaluation mode. The original VeRA research supplies evidence for its evaluated tasks, not a guarantee that random shared directions match every domain. Choose the method when the observed task quality and the reproducible storage model jointly support it.

Primary references

PEFT: VeRA.

VeRA original research.

PEFT checkpoint format.

Related explanations: training memory components; adapter configuration identity.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles