FRoD
4 memberslucid.peft.tuners.frodlucid.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 over a basis they share (the query projections of all blocks, say), and trains plus a sparse matrix of a few off-diagonal entries: . 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.
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.
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
FrodConfig9 methodsHow lucid.peft.get_peft_model adapts a model with FRoD.
FrodLayer23 methodsAdapter bookkeeping and the sparse-rotation update shared by the FRoD layers.
LinearAn nn.Linear whose weight is re-expressed as : .
FrodModel15 methodsA network whose linear layers are re-expressed over a basis they share, and the tools to undo that.