The invention provides a mathematical
test question generation and solution collaborative enhancement method and
system based on a
large model, and relates to the technical field of large language models.The method comprises the steps that multiple sets of
annotation data are obtained and input into a basic large
language model for
fine tuning training, and a first large
language model is obtained; generating a plurality of
test question request instructions, inputting the
test question request instructions into the first large
language model, correspondingly outputting mathematical questions and solving processes, obtaining a plurality of groups of combined data, and screening the combined data to obtain a supervision
fine tuning data set and a preference optimization
data set; performing optimization training on the first large language model by utilizing the preference optimization
data set to obtain a second large language model; inputting the supervision
fine tuning data set into a second large language model for next round of iterative training; continuously repeating to obtain a target large language model; and inputting a current test question request instruction into the trained target large language model, and outputting a mathematical test question comprising a mathematical question and a solving process. According to the method, the problems of low big language model training efficiency and poor optimization effect are solved.