Skip to content
module

FRoD

4 members
lucid.peft.tuners.frod

lucid.peft.tuners.frod — FRoD: a full-rank update from a sparse trainable matrix over a shared basis.

FRoD (Wan et al., 2025, arXiv:2512.23485 — Full-Rank Efficient Fine-Tuning with Rotational Degrees) writes the weights of every layer of one role in the network as Wi=UiΣiV⊤W_i = U_i\Sigma_i V^\top over a basis VV they share (the query projections of all blocks, say), and trains Σi\Sigma_i plus a sparse matrix SiS_i of a few off-diagonal entries: Wi′=Ui(Σi+Si)V⊤W_i' = U_i(\Sigma_i + S_i)V^\top. The off-diagonal entries rotate the weight's axes, so the update is full-rank with few parameters. Pick it for converging faster than a low-rank adapter at a similar number of trainable parameters.

Where the reference library keeps them, so isinstance(m, FrodLayer) and from lucid.peft.tuners.frod import FrodConfig, Linear read as they do there. One layer type for the one module the method adapts, nn.Linear. FrodConfig and FrodModel are here and exported from lucid.peft. Importing the package registers the method (its config under PeftType.FROD, its tuner and layer), which is what makes get_peft_model and PeftModel.from_pretrained know it.

Paper

Wan, Guoan, et al. "FRoD: Full-Rank Efficient Fine-Tuning with Rotational Degrees for Fast Convergence." [arXiv:2512.23485](https://arxiv.org/abs/2512.23485), 2025.

Overview

FRoD (Wan et al., 2025, arXiv:2512.23485 — Full-Rank Efficient Fine-Tuning with Rotational Degrees, Eq. 6-8) reaches a full-rank update with few parameters. A basis shared by the layers of one kind is built from the base weights, and a sparse trainable rotation matrix, with a fraction sparse_rate of its off-diagonal entries free, turns that basis into the weight update. The sparsity pattern is drawn from projection_prng_key.

Classes