BEFT
4 memberslucid.peft.tuners.beftlucid.peft.tuners.beft — BEFT: a trained bias added to chosen projections, and nothing else.
BEFT (Huang et al., 2025, arXiv:2509.15974) trains nothing but a bias added to chosen linear layers, the value projections by default, starting at zero. The bias folds into the layer's own bias when it has one, so a merged model costs what the base does. Pick it for a very small adapter when there is little training data: one vector of the output width per layer, a few thousand numbers for a language model.
Where the reference library keeps them, so isinstance(m, BeftLayer) and from lucid.peft.tuners.beft import BeftConfig, Linear read as they do there. One layer type for the one
module the method adapts, nn.Linear. BeftConfig and BeftModel are here and exported from
lucid.peft. Importing the package registers the method (its config under PeftType.BEFT, its
tuner and layer), which is what makes get_peft_model and PeftModel.from_pretrained know it.
Huang, Baichuan, et al. "BEFT: Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimes." [arXiv:2509.15974](https://arxiv.org/abs/2509.15974), 2025.
BEFT (Huang et al., 2025, arXiv:2509.15974 — Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimes) trains nothing but a bias added to chosen linear layers, the value projections by default: with one learned vector of the layer's output width, zero at the start. It adds the fewest parameters of any method here.
Classes
BeftConfig9 methodsHow lucid.peft.get_peft_model adapts a model with BEFT.
BeftLayer21 methodsAdapter bookkeeping and the added bias shared by the BEFT layers.
LinearAn nn.Linear with a BEFT bias: .
BeftModel15 methodsA model whose chosen linear layers carry a trained bias, and the tools to take them out again.