Source-linked AI summary

Zero-Shot Visual Recognition using Semantics-Preserving Adversarial Embedding Networks

Long Chen, Hanwang Zhang, Jun Xiao, Wei Liu, Shih-Fu Chang

arXiv:1712.01928v2cs.CV

TL;DR

Embedding-based zero-shot recognition can lose semantics that are non-discriminative for seen classes but critical for unseen-class recognition. SP-AEN separates classification and reconstruction embeddings, then uses adversarial learning to transfer preserved semantics, outperforming prior methods across four benchmarks and supporting photo-realistic reconstruction.

  • Problem

    Embedding-based ZSL can discard low-variance attributes useful for unseen classes, creating a lossy semantic space that harms unseen-class recognition.

  • Method

    SP-AEN introduces an independent visual-to-semantic mapping for reconstruction and adversarial learning between independent semantic embeddings to preserve and transfer semantics.

  • Results

    SP-AEN significantly outperforms state-of-the-art methods across CUB, AWA, SUN, and aPY, with harmonic-mean gains of 12.2%, 9.3%, 4.0%, and 3.6%, respectively.

  • Takeaways & Limitations

    The framework preserves semantics through reconstruction, transfers them across classes, and enables photo-realistic image reconstruction alongside improved zero-shot recognition.

  • Takeaways & Limitations

    Extending SP-AEN to semisupervised settings with a prior semantic space remains future work.

Abstract

from arXiv · show

We propose a novel framework called Semantics-Preserving Adversarial Embedding Network (SP-AEN) for zero-shot visual recognition (ZSL), where test images and their classes are both unseen during training. SP-AEN aims to tackle the inherent problem --- semantic loss --- in the prevailing family of embedding-based ZSL, where some semantics would be discarded during training if they are non-discriminative for training classes, but could become critical for recognizing test classes. Specifically, SP-AEN prevents the semantic loss by introducing an independent visual-to-semantic space embedder which disentangles the semantic space into two subspaces for the two arguably conflicting objectives: classification and reconstruction. Through adversarial learning of the two subspaces, SP-AEN can transfer the semantics from the reconstructive subspace to the discriminative one, accomplishing the improved zero-shot recognition of unseen classes. Comparing with prior works, SP-AEN can not only improve classification but also generate photo-realistic images, demonstrating the effectiveness of semantic preservation. On four popular benchmarks: CUB, AWA, SUN and aPY, SP-AEN considerably outperforms other state-of-the-art methods by an absolute performance difference of 12.2\%, 9.3\%, 4.0\%, and 3.6\% in terms of harmonic mean values

1. Introduction

Embedding-based ZSL transfers class semantics by mapping images into a shared semantic space, but training can discard attributes that later distinguish unseen classes. SP-AEN addresses this conflict by separating classification and reconstruction embeddings, using adversarial learning for semantic transfer, and improves benchmark performance while enabling photo-realistic image generation.

  • Embedding-based ZSL maps images into semantic space and predicts labels through nearest-neighbor search among class embeddings.
  • Semantic loss discards low-variance attributes useful for training-class discrimination but potentially critical for recognizing unseen classes.
  • Classification suppresses irrelevant visual details, whereas reconstruction preserves image details, making their objectives fundamentally conflicting.
  • SP-AEN introduces an independent visual-to-semantic mapping F and discriminator D so reconstruction affects F while E remains focused on classification.
  • Adversarial learning transfers preserved semantics from F(x) to E(x) by making their embeddings indistinguishable across the two subspaces.
  • SP-AEN is reported to improve classification and generate photo-realistic images, with flexible plug-and-play network structures and end-to-end fine-tuning.

2. Related Work

Related work frames SP-AEN within embedding-based ZSL, domain-shift and hubness research, adversarial learning, and image generation. Its distinction is reconstructing images directly from semantic embeddings while preserving the zero-shot setting.

  • Embedding-based ZSL methods learn mappings from images to semantic vectors, while attribute-based methods use attributes as an intermediate space for transferring semantics across classes.
  • SP-AEN is presented as the first ZSL method that can reconstruct images from semantic embeddings while exposing no test-class images during training.
  • Semantic loss is related to domain shift and hubness, and the paper reports that jointly training reconstruction and classification does not effectively preserve semantics.
  • SP-AEN applies adversarial learning at the feature level, distinguishing it from generative ZSL methods that augment unseen-class data but violate the ZSL assumption.
  • Unlike image-to-image generation methods, SP-AEN reconstructs images from semantic embeddings rather than transforming one image directly into another.

3. Formulation

SP-AEN formulates zero-shot recognition as semantic embedding with separate classification and reconstruction pathways, coupled by adversarial learning to preserve semantics. Its training combines classification, reconstruction, adversarial, and trade-off objectives while addressing adversarial mode collapse.

  • 3.1. Preliminaries: Zero-shot learning maps images into a semantic space and predicts labels by nearest-neighbor similarity, including unseen-only or generalized label settings.The generalized setting permits predictions over both seen and unseen classes.
  • 3.2. Classification Objective: The classification objective increases similarity between each image embedding and its correct class embedding while separating wrongly labeled pairs by a margin.At each stochastic-training iteration, one unpaired label is randomly selected as the negative example.
  • 3.2. Classification Objective: Classification can cause semantic loss by forcing images from the same class toward one label embedding, discarding semantics useful for unseen-class recognition.The formulation introduces additional objectives to address this loss.
  • 3.3. Reconstruction Objective: Reconstruction learns G: S → V to recover raw images from embeddings, while an independent F: V → S preserves reconstructive semantics without reusing classification embedder E.The method reconstructs from raw 256 × 256 × 3 RGB space rather than higher-level CNN features.
  • 3.3. Reconstruction Objective: The reconstruction loss combines feature-level and pixel-level terms so F(x) retains perceptual details and supports image recovery.Feature-level loss uses AlexNet conv5, while pixel loss stabilizes reconstruction.
  • 3.4. Adversarial Objective: Adversarial learning makes E(x) resemble the semantics-preserving manifold of F(x), enabling semantic transfer between the discriminative and reconstructive embeddings.E minimizes the adversarial loss while discriminator D maximizes it.
  • 3.4. Adversarial Objective: Mode collapse can occur when similar same-class images dominate adversarial training, so the formulation adopts a WGAN strategy for better gradients and stability.The authors report this strategy empirically improves training stability.
  • 3.5. Full Objective: SP-AEN combines the three objectives with trade-off parameters α and β; its F–G pathway forms a supervised adversarial autoencoder with future semisupervised extensions left open.The F embedding acts as a bottleneck regularized to match the supervised distribution E(x).

4. Implementation

The implementation is an end-to-end network that processes raw images through separate ResNet-101 and AlexNet-based pathways. Training uses fixed pretrained components, standard cropping and normalization, scratch initialization for remaining modules, and tuned learning rates and trade-off parameters.

  • 4. Implementation: SP-AEN takes raw images and ground-truth class embeddings, with ResNet-101 embedder E producing classification embeddings from cropped 224 × 224 × 3 inputs.F uses AlexNet plus two fully connected blocks to produce embeddings for reconstruction network G.
  • 4. Implementation: Training resizes images to a 256-pixel shorter side, applies ten 224 × 224 crops with per-pixel mean subtraction, and initializes E, F, and G from pretrained components.ResNet-101 is fixed; remaining modules use MSRA initialization and learning-rate decay when error plateaus.

5. Experiments

Experiments evaluate SP-AEN on four benchmarks using conventional and generalized ZSL settings, compare it with prior methods, and test reconstruction, architectural choices, and adversarial components. SP-AEN improves generalized recognition, preserves reconstruction quality, and benefits from its full objective.

  • 5.2. Settings and Evaluation Metrics: The evaluation uses CUB, AWA, SUN, and aPY with a split designed to keep ImageNet-pretrained test classes strictly unseen during training.Class label embeddings are L2-normalized for fair comparison and reproducibility.
  • 5.2. Settings and Evaluation Metrics: U→U restricts predictions to unseen classes, whereas S→T and U→T allow predictions over both seen and unseen classes.U→U and U→T correspond to conventional and generalized ZSL, respectively.
  • 5.2. Settings and Evaluation Metrics: The generalized-ZSL harmonic mean H combines seen-class and unseen-class accuracies, reflecting the requirement for high accuracy on both class sets.Per-class top-1 accuracy is also used, and H is computed from AccS→T and AccU→T.
  • 5.4.1 Conflict between Classification & Reconstruction: Reconstruction quality varies with semantic loss: DirectMap is strongest on CUB and SUN but degrades on AWA and aPY, while jointly training E and G in SAE fails across examples.SplitBranch improves reconstruction but nearly eliminates the classification branch’s contribution, motivating adversarial semantic transfer.
  • 5.4.2 Effectiveness of D and G: Adversarial training improves H by over 10% on all datasets, and the full objective consistently exceeds the classification-only model across datasets.Reducing G’s trade-off weight relative to D reduces reconstruction quality.

6. Conclusions

SP-AEN addresses semantic loss in zero-shot learning through independent reconstruction and classification pathways, with adversarial learning transferring semantics between them. The framework was validated on four zero-shot learning benchmarks, while future work targets generative extensions and semisupervised variants.

  • 6. Conclusions: SP-AEN addresses semantic loss using a visual reconstruction paradigm that separates classification and reconstruction objectives.An independent visual-to-semantic mapping supports reconstruction without affecting classification, while their contradiction is validated experimentally.
  • 6. Conclusions: Adversarial learning between independent semantic embeddings enables semantic transfer across classes.Reconstruction preserves semantics, and adversarial learning transfers them between the two embeddings.
  • 6. Conclusions: SP-AEN’s effectiveness was validated through comparative and ablative experiments on four zero-shot learning benchmarks.
  • 6. Conclusions: Future work includes incorporating generative models for photo-realistic images of unseen or synthesized classes and developing semisupervised SP-AEN with a prior semantic space.
Loading 1712.01928v2…