The invention relates to a model stealing
attack method and
system for a recommendation
system in a real scene, and the method comprises the following steps: S1, data collection: obtaining the interaction historical data of a part of real users in a target recommendation
system platform, and carrying out the composition; s2, training a
Diffusion diffusion model by using the collected data, and constructing a data generation model required by enhancement; s3, carrying out
noise addition on part of real data and inputting the data into the trained
diffusion model to carry out data generation; s4, inputting the generated data into a target model for query to obtain a training
data set, and dividing all the data to obtain a meta-training task set and a meta-test task set required in the next step; s5, building a meta-learning framework, and meanwhile, building a
reference map recommendation model as an agent model; in the meta-training stage, a support set and a query set are divided and model training is carried out. In the meta-testing stage, parameter
fine tuning is carried out. According to the method, the
diffusion model, the
graph model and the meta-learning framework are utilized to
train the proxy model, so that the fitting capability of the proxy model is greatly improved.