LARA: small, composable behaviours for frozen LLMs [P]
![LARA: small, composable behaviours for frozen LLMs [P]](/_next/image?url=https%3A%2F%2Fpreview.redd.it%2Fxrngwyo6wvph1.png%3Fwidth%3D640%26crop%3Dsmart%26auto%3Dwebp%26s%3D6b381a70e2eb96716a869d648540184c93afd259&w=3840&q=75)
| GitHub: https://github.com/pfekin/LARA I've been working on LARA (Lightweight Additive Residual Adaptation), a research project on making post-training modular for frozen language models. I've also developed a small PyTorch library that implements it. The main idea is to train a low-rank residual adapter at selected layers rather than modifying the model's weights. The resulting behaviors are small enough to keep separately and can be loaded, removed, blended or routed at inference time. The Mixture of Behaviors (MoBs) demo is maybe the easiest way to see what this means in practice. Several independently trained behaviors can share the same frozen model, with a soft router selecting or combining them on a token by token basis. For example, a single model can have separate coding, maths, medical and summmarization behaviors rather than keeping four separately adapted models. The repository also includes a comparison with LoRA and some writing style behaviors trained on Hemingway, Fitzgerald and Gertrude Stein (second demo). It's an on-going research project, but the library is usable now and includes the training code, examples and reproduction instructions (for the paper). [link] [comments] |
Want to read more?
Check out the full article on the original site