This invention discloses a method for generating tabular data based on local context retrieval and fine-tuning, comprising: obtaining raw tabular data samples for
machine learning training from a public
benchmark database, performing preprocessing and
data partitioning to obtain feature columns and
label columns, and constructing a
training set; fine-tuning the local calibration parameters of a TabPFN model based on the
training set to obtain a parameter-fine-tuned TabPFN model; obtaining pseudo-data samples based on the
training set by manually setting the target number of samples and target category labels; and iteratively updating the pseudo-data samples and the parameter-fine-tuned TabPFN model using an iterative sampling method based on dynamic local context to finally obtain a tabular dataset. This invention, through local calibration parameter fine-tuning and dynamic local context iterative sampling, can generate high-quality, diverse tabular datasets, effectively improving the realism and
usability of the generated data.