The invention discloses a
social media harmful information identification method and device based on large-small model collaborative optimization, and the method comprises the steps: firstly, carrying out the feature analysis of
social media information through an LLM, and automatically matching an optimal professional small model; secondly, an automatic deployment engine is utilized, model deployment codes are generated through LLM, and localized deployment is completed; then, constructing a dynamic
code generation unit, automatically generating a code and a
fine tuning code for calling a professional small model to identify
social media harmful information according to the model ID and deployment parameters, and performing grammar
verification, performance evaluation and safety detection on the generated code by adopting LLM; further, a social media information pipeline is designed, and functions of
data slice input, recognition result classification, challenging sample screening and
fine tuning data set construction are included; and finally, implementing a model persistent
evolution strategy, and completing model version upgrading by iteratively executing a recognition-screening-
fine tuning process. Through a collaborative decision-making mechanism of the LLM and the professional small model, end-to-end
automation of a harmful information identification process is realized, the manual intervention cost is remarkably reduced and the identification efficiency is improved on the premise of ensuring the identification quality, and the method is particularly suitable for a large-scale harmful information identification scene of multi-field heterogeneous data.