Multi-label classifiers typically assign each class its own token or query that attends over image patches, a design meant to let each class look at its own evidence. We show that in semi-supervised training scenario, typical in hierarchical multi-label classification this does not happen: without spatial supervision, the class tokens of a vision transformer collapse onto one attention map. This collapse is not caused by the classifier head, attention sinks or token initialisation. To address this deficiency we propose to ground the tokens. A training-free open-vocabulary segmenter marks, offline and without annotation, roughly where each class appears in every training image, labeled or not, and each class token's attention is trained to follow that map. The prior is used only during training, so inference costs nothing extra, and a constraint layer keeps predictions consistent with the label hierarchy. With 10% of images labeled and on representative data sets covering both remote sensing and general-purpose imagery (UC Merced, Potsdam, FLAIR #1 and COCO-Stuff), grounding raises AUPRC over the same model without it by 1.8 to 11.2 points, recovers 67-93% of the gain of grounding on true masks, outperforms state-of-the-art approaches on every dataset and generalises to methods relying on label queries. Our ablation study shows that the gain clearly comes from the models attending to where the prior points.
翻译:暂无翻译