Skip to content
module

BEFT

4 members
lucid.peft.tuners.beft

lucid.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.

Paper

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.

Overview

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: y=Wx+b+βy = W x + b + \beta with one learned vector β\beta of the layer's output width, zero at the start. It adds the fewest parameters of any method here.

Classes