arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.12704physics.chem-phcond-mat.mtrl-sci
收藏

微调MLIP基础模型:准确性与可迁移性的策略

Fine-tuning MLIP foundation models: strategies for accuracy and transferability

University of Cambridge(剑桥大学);Science and Technology Facilities Council–Daresbury Laboratory(科学和技术设施委员会-达尔斯伯里实验室);U.S. Naval Research Laboratory(美国海军研究实验室)

Tamás Lajos Tompa, Eszter Varga-Umbrich, Ilyes Batatia, Alin M. Elena, Noam Bernstein, Gábor Csányi

AI总结:

评估七种微调策略在化学多样性基准上的表现,发现基础模型质量、E0初始化和超参数选择比策略本身更重要,多头部回放能保持分布外鲁棒性。

摘要:

通过微调将机器学习原子间势(MLIP)基础模型适应于专门任务是一种日益重要的实践,但目前关于何时以及如何微调的系统性指导有限。我们评估了七种微调策略——朴素全参数更新、两种冻结层变体、低秩适应(LoRA)、多头部回放、伪标签回放以及回放与LoRA的组合——跨越五个化学多样性基准(含水NaCl、冰多晶型、S$_{\mathrm{N}}$2反应、SPICE生物分子和锂电解质)、三代基础模型以及跨越五个数量级的训练集。为支持这一评估,我们在MACE代码库中实现了三种能力:适用于等变消息传递架构的LoRA,包括标量和等变线性层;伪标签回放,它将回放数据源与原始预训练语料库解耦;以及用于微调工作流的模型感知原子参考能量(E0)重新估计。我们发现,基础模型质量、正确的E0初始化和精心选择的超参数是先决条件,其影响通常超过微调策略本身。一旦满足这些先决条件,大多数策略都能实现强大的目标任务准确性,始终优于从头训练的模型。实际区别取决于部署范围:朴素微调为单系统应用提供最佳收敛性,而多头部回放——使用原始或伪标签数据——是唯一经过测试的、能一致保持分布外鲁棒性的方法,既保留了更广泛部署的预训练分布准确性,也保留了多体短程排斥。

英文摘要:

Adapting machine-learned interatomic potential (MLIP) foundation models to specialised tasks through fine-tuning is an increasingly important practice, yet systematic guidance on when and how to fine-tune is currently limited. We evaluate seven fine-tuning strategies -- naive full-parameter updates, two layer-freezing variants, Low-Rank Adaptation (LoRA), multihead replay, pseudolabelled replay, and replay combined with LoRA -- across five chemically diverse benchmarks (aqueous NaCl, ice polymorphs, S$_\mathrm{N}$2 reactions, SPICE biomolecules, and lithium electrolytes), three generations of foundation models, and training sets spanning five orders of magnitude. To support this evaluation we implement three capabilities in the MACE codebase: LoRA adapted for equivariant message-passing architectures, including both scalar and equivariant linear layers; pseudolabelled replay, which decouples the replay data source from the original pretraining corpus; and model-aware atomic reference energy (E0) reestimation for fine-tuning workflows. We find that foundation model quality, correct E0 initialisation, and well-chosen hyperparameters are prerequisites whose impact routinely exceeds that of the fine-tuning strategy itself. Once these prerequisites are met, most strategies achieve strong target-task accuracy, consistently surpassing models trained from scratch. The practical distinction depends on deployment scope: naive fine-tuning offers the best convergence for single-system applications, while multihead replay -- with either original or pseudolabelled data -- is the only approach tested that consistently preserves out-of-distribution robustness, maintaining both pretraining-distribution accuracy for broader deployment and many-body short-range repulsion.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑