The invention discloses a
large model training method, medium and
system based on a
differential privacy mechanism, and the method comprises the steps: S101, obtaining historical data, carrying out the preprocessing, and carrying out the grouping and marking of the preprocessed historical data, so as to form a training
data set; s102, initializing parameters of the large
language model; s103, performing training based on the training
data set, and calculating a gradient; s104, performing
gradient noise addition to obtain a
noise addition gradient, and calculating a corresponding comprehensive unfairness index value based on the
noise addition gradient; s105, judging whether the comprehensive unfairness index value is within a preset value range or not; s106, if the comprehensive unfair index value is within a preset value range, judging whether the current large
language model meets a training requirement or not; if yes, taking the current large
language model as a final model; and if not, returning to the step S103. According to the invention, the privacy of the user can be effectively protected, and meanwhile, the unfair phenomenon caused by the use of a
differential privacy mechanism is avoided.