The invention discloses a multi-
label classification method and device for collaborative attention and prototype alignment, and belongs to the technical field of
natural language processing. The method comprises the following steps: firstly, obtaining lexical element level context representation by utilizing a pre-training semantic
encoder, calculating a maximum correlation
score of lexical elements and a
label space based on
label embedding, and generating a filtering
mask to sparise a sequence and suppress redundant
noise; then constructing a label attention
branch and a
sentence-level hierarchical self-attention
branch in parallel, realizing cross-
branch fine-grained
semantic alignment through bidirectional collaborative attention, and completing
feature fusion by adopting
adaptive weighting; on the basis of fusion representation, a label prototype gating fusion and
momentum type online updating mechanism is introduced, a learnable label prototype is used as a semantic center to continuously guide
document representation to gather towards related labels, and long-
tail distribution and semantic drift are relieved. According to the method, the robustness of low-frequency label prediction can be enhanced while the classification precision and the sorting quality are improved, and the unnecessary attention calculation overhead is reduced.