The invention discloses a supply chain fraud behavior early warning method and device based on a large
language model, and relates to the field of
data analysis, and the method comprises the steps: obtaining supply chain multi-
source data, and carrying out the
processing of the supply chain multi-
source data according to the
data type; in the
fine tuning process, a LoRA module is injected into a
linear layer of a pre-trained large
language model base, and the rank value of the LoRA module is dynamically adjusted according to the gradient; according to the text word segmentation data, the
entity type, the aligned historical order data, the aligned historical logistics data and the dynamic space-time diagram, constructing a multi-
modal prefix guide vector; the multi-
modal prefix guide vector and an original input sequence of a
linear layer of a pre-trained large
language model base are spliced and then input into the
linear layer of the pre-trained large language model base, a supply chain fraud behavior
early warning model subjected to fine adjustment is obtained through fine adjustment, and early warning is conducted on supply chain fraud behaviors of related suppliers. According to the method, the problems of low supply chain fraud behavior identification accuracy, large training parameters and the like in the prior art are solved.