AdaMSS
5 memberslucid.peft.tuners.adamsslucid.peft.tuners.adamss — AdaMSS: independent low-rank updates inside clustered subspaces of the SVD.
AdaMSS (Zheng et al., 2025, NeurIPS) takes the SVD of each weight, clusters the rows of its leading left singular directions into subspaces and learns an independent low-rank update inside each, optionally freezing the less important subspaces while training. Pick it for a low-rank adapter whose capacity is spent where the weight's spectrum needs it: a handful of tiny factors per layer instead of one large pair.
Where the reference library keeps them, so isinstance(m, AdamssLayer) and from lucid.peft.tuners.adamss import AdamssConfig, Linear read as they do there. One layer type for
the one module the method adapts, nn.Linear; SubspaceAllocator is the adaptive allocation's
state, which AdamssModel.update_and_allocate drives. AdamssConfig and AdamssModel are
here and exported from lucid.peft. Importing the package registers the method (its config under
PeftType.ADAMSS, its tuner and layer), which is what makes get_peft_model and
PeftModel.from_pretrained know it.
Zheng, Jingjing, et al. "AdaMSS: Adaptive Multi-Subspace Approach for Parameter-Efficient Fine-Tuning." NeurIPS, 2025.
AdaMSS (Zheng et al., 2025, NeurIPS — Adaptive Multi-Subspace Approach for Parameter-Efficient
Fine-Tuning) takes the SVD of each weight (joined to its bias as one more column), clusters the rows of its
top-r left singular directions into num_subspaces subspaces, and learns an independent
rank-subspace_rank update inside each one while the weight stays frozen. With use_asa, an adaptive
allocation freezes the less important subspaces during training, down to about asa_target_subspaces
trainable ones in all.
Classes
SubspaceAllocator7 methodsDecides, on a schedule, which subspaces of an AdaMSS model stay trainable.
AdamssConfig9 methodsHow lucid.peft.get_peft_model adapts a model with AdaMSS.
AdamssLayer22 methodsAdapter bookkeeping and the multi-subspace update shared by the AdaMSS layers.
LinearAn nn.Linear whose rows are split into subspaces, each with its own low-rank update.
AdamssModel18 methodsA model whose chosen linear layers train a low-rank update inside each subspace of their rows.