Skip to content

Clarification needed: 'Simplify' Transfer Learning vs. 'DP-Gen Run' Finetuning for potential model updates #1868

Closed

Description

@aersilang

Summary

Hello,

I have recently encountered a challenge regarding potential function development. I currently possess a potential model that accurately simulates the Phase A and Phase B of a specific alloy. I now intend to incorporate data for Phase C into this potential. Please note that no new elements are being introduced, but my current dataset for Phase C is quite limited. Consequently, I am looking to utilize transfer learning.

During my research, I identified two possible workflows, but I am confused about their practical differences:

The "Simplify" Method ((https://docs.deepmodeling.com/projects/dpgen/en/latest/simplify/simplify.html)): Upon testing, it appears this method is primarily designed for database screening or selection rather than direct model updating.

The "DP-Gen Run" Method (deepmodeling/deepmd-kit#4580): This seems to behave more like a standard model refitting process.

I have consulted technical support, but they were unable to provide a definitive explanation of the distinctions between these two paths. I would appreciate your guidance on the following:

Which method is the most efficient and "convenient" path for adding a small amount of new phase data to an existing model?

Which JSON configuration template should be used for the most up-to-date workflow?

I would be extremely grateful for any insights or documentation you could provide to help resolve this.

DeePMD-kit Version

DPGEN

Backend and its version

all time

Python Version, CUDA Version, GCC Version, LAMMPS Version, etc

No response

Details

that‘s all

Activity

  1. added
    wontfix
    on Mar 2, 2026
  2. dosubot commented on Mar 2, 2026

    @dosubot

    Hi @aersilang! I'm Dosu and I’m helping the deepmd-kit team.

    Your understanding is correct! Let me clarify the key differences:

    Simplify ≠ Transfer Learning: The DPGEN Simplify workflow is designed for data screening and selection, not model updating. It filters representative frames from large datasets based on model deviation—useful for dataset curation, but not for adding new phase data to an existing model.

    For your use case (adding Phase C to existing Phase A+B model), use the DP-Gen Run workflow with transfer learning parameters:

    {
      "training_finetune_model": [
        "phaseAB_model_0.pb",
        "phaseAB_model_1.pb",
        "phaseAB_model_2.pb",
        "phaseAB_model_3.pb"
      ],
      "training_reuse_old_ratio": "auto:5",
      "training_reuse_start_lr": 0.0001,
      "training_reuse_start_pref_e": 0.1,
      "training_reuse_start_pref_f": 100,
      "init_data_sys": [
        "path/to/phaseA_data",
        "path/to/phaseB_data", 
        "path/to/phaseC_data"
      ]
    }

    Key parameters:

    • training_finetune_model: Points to your existing Phase A+B frozen models (.pb files)
    • training_reuse_old_ratio: Balances old vs new data to prevent catastrophic forgetting (default practice uses ~0.9, meaning 90% weight on original data)

    Regarding --finetune vs --init-model: These are functionally equivalent for model retraining—the only difference is file format (frozen .pb vs checkpoint .ckpt). For DPGEN workflows, training_finetune_model uses the --finetune flag internally.

    Best practices for small Phase C datasets:

    1. Start with a lower learning rate (e.g., 1e-4)
    2. Include Phase A+B data in init_data_sys alongside Phase C
    3. Use training_reuse_old_ratio to maintain performance on original phases

    To reply, just mention @dosu.


    How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

    Open in Cursor Join Discord Share on X

  3. aersilang commented on Mar 2, 2026

    @aersilang
    Author

    However, the documentation(https://tutorials.deepmodeling.com/en/latest/CaseStudies/Transfer-learning/Transfer-learning.html) at describes it as follows: "This tutorial will introduce how to implement potential energy surface (PES) transfer-learning by using the DP-GEN software. In DP-GEN (version > 0.8.0), the “simplify” module is designed for this purpose. Suppose that we have completed a typical DP-GEN flow, and obtained the DFT dataset and four DP models. The workflow of “simplify” is similar to a typical DP-GEN process: iteratively training the DP models with the (re-) labeled data (00.train), picking data according to prediction deviations between different models (01.model_devi), and (re-) labeling the picked data (02.fp). Repeat the iterations until convergence is achieved. Then, the relabeled new dataset that is sufficient to refine the DP model is successfully collected." So, which one is actually the correct approach?

  4. wanghan-iapcm commented on Mar 4, 2026

    @wanghan-iapcm
    Contributor

    "Simplify" : active learning to reduce the size of an existing training data set.
    "DP-Gen Run": concurrent learning to generate a training dataset from scratch. the issue you mentioned (deepmodeling/deepmd-kit#4580) seems to be not very relevant.

    Reference for dpgen concurrent learning: https://doi.org/10.1016/j.cpc.2020.107206

  5. aersilang commented on Mar 4, 2026

    @aersilang
    Author

    Regarding the DP-Gen run example, I noticed a supplement on the (https://docs.deepmodeling.com/projects/dpgen/en/latest/run/param.html) with the following description:

    'type: list[str], optional
    argument path: run_jdata[mlp_engine=dp]/training_finetune_model
    At interation 0, finetune the model parameters from the given frozen models. Number of element should be equal to numb_models'

    Based on this, I have two specific questions:

    Can the simplify method still be used for transfer learning? If so, could you please point me to the latest JSON configuration files and documentation? Or is it now strictly for database simplification (implying the functionality described in https://tutorials.deepmodeling.com/en/latest/CaseStudies/Transfer-learning/Transfer-learning.html has been deprecated)?

    If DP-Gen run is the only way to achieve my goal, is there a recommended procedure to perform finetuning using an existing potential function (frozen model) or a checkpoint file?

    I would be extremely grateful for your guidance on these matters.

  6. njzjz-bot commented on Aug 23, 2026

    @njzjz-bot
    Collaborator

    The maintainer's clarification resolves the distinction: simplify selects a smaller subset from an existing labeled dataset, while dpgen run performs concurrent learning. Initializing iteration 0 from existing models is supported by training_finetune_model; the training data and exploration configuration still need to be supplied for the intended Phase C workflow.

    This issue is already labeled wontfix and does not identify a code defect, so I suggest closing it. A documentation correction for the external tutorial, if needed, should be tracked separately with the exact outdated passage and proposed replacement.

    Coding agent: Codex
    Codex version: codex-cli 0.149.0
    Model: gpt-5.6-sol
    Reasoning effort: xhigh

  7. locked and limited conversation to collaborators on Aug 24, 2026
  8. converted this issue into a discussion #1964 on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions