Skip to content
module

MiSS

4 members
lucid.peft.tuners.miss

lucid.peft.tuners.miss — MiSS: one small matrix shared across the shards of a weight.

MiSS (Kang et al., 2024, arXiv:2409.15371 — Matrix Shard Sharing, the successor of Bone) learns one (r, d_out) matrix per layer and adds it to the weight in shards: the input axis is cut into runs of r columns and every run receives the same update. A layer costs r * d_out parameters whatever its input width. The mini variant shrinks the matrix further; bat is Bone's rule, applied to the weight itself. Pick it for a cheap structured update; new work should use MiSS rather than Bone.

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

Paper

Kang, Jiale, et al. [arXiv:2409.15371](https://arxiv.org/abs/2409.15371), 2024 (the paper that introduced Bone, revised as MiSS).

Overview

MiSS (Kang et al., 2024, arXiv:2409.15371 — Matrix Shard Sharing, the successor of Bone) learns a single (r, d_out) matrix SS per layer and adds it to the weight in shards: the input axis is cut into runs of rr columns, and every run of every output row receives the same rr-vector,

Classes