Abstract
Zero-shot learning (ZSL) tackles the novel class recognition problem by transferring semantic knowledge from seen classes to unseen ones. Semantic knowledge is typically represented by attribute descriptions shared between different classes, which act as strong priors for localizing object attributes that represent discriminative region features, enabling significant and sufficient visual-semantic interaction for advancing ZSL. Existing attention-based models have struggled to learn inferior region features in a single image by solely using unidirectional attention, which ignore the transferable and discriminative attribute localization of visual features for representing the key semantic knowledge for effective knowledge transfer in ZSL. In this paper, we propose a cross attribute-guided Transformer network, termed TransZero++, to refine visual features and learn accurate attribute localization for key semantic knowledge representations in ZSL. Specifically, TransZero++ employs an attribute $\rightarrow$ visual Transformer sub-net (AVT) and a visual $\rightarrow$ attribute Transformer sub-net (VAT) to learn attribute-based visual features and visual-based attribute features, respectively. By further introducing feature-level and prediction-level semantical collaborative losses, the two attribute-guided transformers teach each other to learn semantic-augmented visual embeddings for key semantic knowledge representations via semantical collaborative learning. Finally, the semantic-augmented visual embeddings learned by AVT and VAT are fused to conduct desirable visual-semantic interaction cooperated with class semantic vectors for ZSL classification. Extensive experiments show that TransZero++ achieves the new state-of-the-art results on three golden ZSL benchmarks and on the large-scale ImageNet dataset.
Introduction
Zero-Shot Learning (ZSL) is the challenge of recognizing objects from classes the model has never seen during training. To do this, models rely on "semantic attributes"—shared characteristics like "yellow beak" or "striped wings"—to transfer knowledge from seen to unseen classes.
The authors identify two major hurdles in current ZSL methods:
- Entangled Features: Standard CNN features often "entangle" the geometry of an object with its appearance. This makes it hard for a model to transfer a "yellow beak" feature from a duck to a hawk if the spatial context is too different.
- Poor Localization: Many existing attention-based models focus on the "whole" object (e.g., the entire bird) rather than the specific, discriminative parts (e.g., the wing pattern or bill shape) that define a species.
Methods
The core of the framework is the Attribute-Guided Transformer (AGT), which refines visual features to learn accurate attribute localization. The architecture consists of several key components designed to improve visual-semantic interaction:
- Feature Augmentation Encoder (FAE): This module aims to alleviate "cross-dataset bias"—the gap between general ImageNet pre-training and specific ZSL tasks. It calculates the relative geometry between different image regions and subtracts this information from the visual features. This "disentangles" the appearance from the specific pose or geometry, making the features more transferable across different species.
- Visual-Semantic Decoder (VSD): Instead of using standard self-attention, this decoder uses semantic attribute vectors (learned from language models) as "queries" to search the image. This forces the model to explicitly localize where in the image a specific attribute (like "red tail") is located. In the TransZero++ extension, this is further refined into cross-attribute guided sub-nets (AVT and VAT) that teach each other via semantical collaborative learning.
- Visual-Semantic Embedding Network (VSEN): The model uses a VSEN to map these refined visual features into a semantic space for classification. To prevent the model from becoming too biased toward classes seen during training, a Self-Calibration Loss is employed, which explicitly shifts probability mass toward unseen classes.
Key Results
TransZero++ achieved the new state-of-the-art (SOTA) on the CUB and SUN datasets:
- CUB: Achieved 76.8% accuracy in conventional ZSL, a significant jump over previous attention-based methods like APN (72.0%).
- SUN: Achieved 65.6% accuracy, outperforming the previous best by 4%.
- Generalized ZSL (GZSL): TransZero improved the "Harmonic Mean" score by 1.6% to 3.2% across all three datasets.
Qualitative analysis of attention maps (as seen in Figure 1) confirms that TransZero accurately pinpoints tiny, distinctive features like "eye rings" or "breast patterns," whereas previous methods often highlighted the entire object.
Conclusion
TransZero++ demonstrates that disentangling spatial geometry and using attributes as guidance for visual attention significantly advances the state-of-the-art in Zero-Shot Learning. While particularly effective for fine-grained recognition (e.g., bird species), future work may explore extending these visual-semantic interactions to broader animal categories and more complex natural language-based reasoning tasks.
Summary updated