X-LoRA: Mixture of Low-Rank Adapter Experts, a Flexible Framework for Large Language Models with Applications in Protein Mechanics and Molecular Design
Eric L. Buehler, Markus J. Buehler

TL;DR
X-LoRA introduces a flexible, biologically inspired mixture of expert strategy for fine-tuning large language models, enabling advanced scientific analysis in protein mechanics and molecular design without modifying the base model structure.
Contribution
The paper presents a novel mixture of low-rank adapters with dynamic gating, allowing LLMs to adaptively combine capabilities for scientific tasks without structural changes.
Findings
Effective in protein mechanics and molecular property prediction
Capable of reasoning and mechanism prediction in molecular behaviors
Supports diverse scientific applications with domain knowledge integration
Abstract
We report a mixture of expert strategy to create fine-tuned large language models using a deep layer-wise token-level approach based on low-rank adaptation (LoRA). Starting with a set of pre-trained LoRA adapters, our gating strategy uses the hidden states to dynamically mix adapted layers, allowing the resulting X-LoRA model to draw upon different capabilities and create never-before-used deep layer-wise combinations to solve tasks. The design is inspired by the biological principles of universality and diversity, where neural network building blocks are reused in different hierarchical manifestations. Hence, the X-LoRA model can be easily implemented for any existing large language model (LLM) without a need for modifications of the underlying structure. We develop a tailored X-LoRA model that offers scientific capabilities including forward/inverse analysis tasks and enhanced…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗lamm-mit/x-loramodel· ♡ 16♡ 16
- 🤗lamm-mit/Zephyr_CoTmodel
- 🤗lamm-mit/Zephyr_Bioinspiredmodel
- 🤗lamm-mit/Zephyr_Chemistrymodel
- 🤗lamm-mit/Zephyr_Mathmodel
- 🤗lamm-mit/Zephyr_Physicsmodel
- 🤗lamm-mit/Zephyr_Biologymodel
- 🤗lamm-mit/Zephyr_Mechanics-and-Materialsmodel
- 🤗lamm-mit/Zephyr_Playtupus-Logicalmodel
- 🤗lamm-mit/Zephyr_Protein-Mechanicsmodel
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling
MethodsSparse Evolutionary Training
