Multi-Task Fine-Tuning Enables Robust Out-of-Distribution Generalization in Atomistic Models
Chengqian Zhang, Duo Zhang, Anyang Peng, Mingyu Guo, Yuzhi Zhang, Lei Wang, Guolin Ke, Linfeng Zhang, Tiejun Li, Han Wang
TL;DR
This work tackles the problem of unreliable out-of-distribution generalization in pretrained atomistic models when adapting to downstream properties. It reveals that standard fine-tuning induces representation collapse, erasing pretrained chemical priors and harming OOD performance. The authors propose multi-task fine-tuning (MFT), which jointly optimizes the downstream property objective with a force-field objective inherited from pretraining, preserving priors while enabling task-specific updates. Across molecular and materials benchmarks, MFT closes the ID–OOD gap, achieves state-of-the-art OOD performance without sacrificing ID accuracy, and demonstrates strong data efficiency, making it a practical approach for robust molecular and materials discovery. The results offer mechanistic insight into the balance between plasticity and stability during adaptation and suggest MFT as a general strategy for safe, data-efficient fine-tuning of atomistic foundation models.
Abstract
Accurate de novo molecular and materials design requires structure-property models that generalize beyond known regimes. Although pretrained atomistic models achieve strong in-distribution accuracy after fine-tuning, their reliability under out-of-distribution (OOD) conditions remains unclear. We identify a critical failure mode in downstream adaptation: standard fine-tuning induces representation collapse, erasing pretrained chemical and structural priors and severely degrading OOD performance. To address this limitation, we propose multi-task fine-tuning (MFT), which jointly optimizes downstream property prediction with a physically grounded force-field objective inherited from pretraining. This approach preserves essential chemical priors while enabling task-specific adaptation. Across molecular and materials benchmarks, MFT consistently improves OOD generalization, approaching the theoretical limit set by in-distribution accuracy, while outperforming standard fine-tuning, training from scratch, and state-of-the-art task-specific models. These results establish safe adaptation as a central requirement for large atomistic models and position MFT as a practical and data-efficient pathway toward robust molecular and materials discovery.
