Visual language model adaptation method, device, computer equipment and storage medium
Патент · CN B
Полный текст
The invention relates to the technical field of artificial intelligence, and is suitable for financial and medical scenes and the like, and discloses a visual language model adaptation method, a device, computer equipment and a storage medium, wherein the method comprises the steps of acquiring task data of a plurality of scenes, pre-training the visual language model by utilizing the task data, and extracting initial joint semantic features from the task data of the scenes by the visual language model; injecting scene related parameters into each scene by adopting a light-weight adapter, combining initial joint semantic feature fusion to obtain scene features, predicting scene weights by adopting a dynamic routing mechanism, fusing the scene features and the scene weights to obtain fusion features, mapping the fusion features by utilizing cross-modal semantics, and decoding and outputting the fusion features by a task decoder. The invention realizes a lightweight adaptation structure based on task-scene decoupling, and the migration capability of the visual language model in the multi-scene task can be effectively improved through the adaptation structure.