The invention relates to the technical field of
federated learning, and discloses a
federated learning method and
system based on multiple agents and knowledge
distillation, and a medium, and the method comprises the steps: S1, training a local model; s2, knowledge
distillation based on decoupling; s3, decentralized
knowledge sharing based on a block chain: packaging the standardized
distillation knowledge fragments extracted in S2 and
metadata thereof into block chain transactions, submitting the block chain transactions to a block
chain network, verifying the legality of the transactions, and writing the transactions into a block chain account book to realize decentralized distribution; s4, performing multi-agent
collaborative knowledge management based on a large
language model, and updating a student model; and S5, repeatedly executing the steps S1 to S4 until a training termination condition is met. According to the method, personalized selection, adaptive filtering and efficient sharing of knowledge in the
federated learning process are realized, the
client drift phenomenon caused by data non-independent identical distribution characteristics is effectively relieved, the convergence speed, the overall performance and the personalized level of the model in a heterogeneous data environment are remarkably improved, and the communication overhead between clients is optimized.