xnn.common.finetune.replay#
Replay data for multi-head fine-tuning: selection and pseudolabels.
Multi-head replay trains a second head on structures from the pretraining distribution so the shared trunk keeps the foundation model’s breadth (Tompa et al., arXiv:2606.12704, Sec. 2.5). The replay set is usually a subsample of the pretraining data, element-matched to the fine-tuning set, with its original labels; with pseudolabels (the pretrained model’s own predictions) any structurally diverse set serves, and the replay head is asked to reproduce the pretrained model rather than its reference data.
Module Attributes
Element filters of |
Functions
|
Keep the structures whose elements relate to |
|
Label structures with a model's own energies, forces (and stress). |
|
Assemble a replay set: element filter, then a random subsample. |