The present application relates to the field of
language model pruning, and specifically discloses a task-adaptive visual language
large model collaborative
pruning method, comprising: S1, task
perception, obtaining a training
data set containing image text pairs, shielding the corresponding
data set of a single mode, calculating the loss value and the mode dependency, and adaptively biasing the visual and
language module share; S2, calculating the importance
score, dividing the model weight, calculating the gradient norm approximation in
layers, multiplying the mode share to obtain the
score of each layer; S3, allocating sparsity, normalizing the
score, calculating the sparsity of each layer combined with the total parameter
retention ratio and setting a threshold; S4, structured sparsity, combining
pruning strategy and token screening, calculating the fusion score of mode correlation, calculating the channel score by retaining effective tokens, and retaining key channels according to groups. The technical scheme provided by the present application solves the problems of poor
adaptation of traditional pruning, not considering task mode dependency, and easy mis-pruning of key parameters, improves compression and
inference efficiency, avoids cross-
modal information loss, and reduces performance loss.