Cross-Modal Few-Shot Learning: a Generative Transfer Learning Framework

Zhengwei Yang, Yuke Li, Qiang Sun, Basura Fernando, Heng Huang, Zheng Wang · Submission to ICLR 2025 · Withdrawn

TL;DR

Standard few-shot learning trains and tests on the same visual modality, but real-world deployment often requires models to recognize new classes across entirely different data types (e.g., recognizing sketches from RGB photos). This paper introduces Cross-modal Few-Shot Learning (CFSL) along with Generative Transfer Learning (GTL), a framework that disentangles shared semantic concepts from modality-specific noise. By freezing its generative decoder during few-shot adaptation, GTL prevents catastrophic overfitting and achieves state-of-the-art cross-modal recognition across diverse benchmarks.

What Problem Does This Paper Address?

Traditional Few-Shot Learning (FSL) assumes that the base training data and novel test data belong to the exact same modality (typically RGB images). Meanwhile, multi-modal FSL methods typically pair images with auxiliary non-visual cues like text or audio descriptions.

However, in many real-world scenarios—such as surveillance, biometric verification, or robotics—models are trained on abundant standard imagery (e.g., RGB photos) but must generalize to new classes evaluated in alternative visual modalities (e.g., hand-drawn sketches, infrared, or depth maps) where labeled samples are scarce. The authors define this setting as Cross-modal Few-Shot Learning (CFSL). The central challenge lies in the massive domain shift and structural differences between visual modalities, which makes standard feature extractors fail to align shared category semantics across styles.

Methods

The authors propose the Generative Transfer Learning (GTL) framework, built on a Variational Autoencoder (VAE) architecture initialized on top of a frozen CLIP ViT-B/16 visual backbone:

  1. Latent Representation Disentanglement: Any visual observation $x$ is assumed to arise from two latent variables:
  2. Intrinsic concept ($z_c$): Captures class-specific, modality-invariant core semantics conditioned purely on the label $y$.
  3. In-modality disturbance ($z_m$): Captures modality-specific styles or artifacts, estimated without explicit supervision via a latent domain-gating mechanism ($u$) across $D$ learnable latent domains.
  4. Reconstruction Decoder: A generator reconstructs the feature representation from the concatenated latents $(z_c, z'_m)$.
  5. Two-Stage Training & Generator Invariance:
  6. Stage 1 (Base Training): The encoder, disturbance estimator, and generator are jointly trained on abundant, unimodal base data using an Evidence Lower Bound (ELBO) objective. A linear classifier is then trained on $z_c$.
  7. Stage 2 (Novel Adaptation): When exposed to a few-shot novel multi-modal support set, the generator is completely frozen. The authors hypothesize that the nonlinear mapping between latent concepts and visual contents remains universal. Freezing the generator acts as an inductive anchor, while only the encoder, disturbance estimator, and novel linear classifier are updated.
       ┌──────────────┐
  x ──►│ Encoder (qα) ├─► zc (Concept) ────► Frozen Generator ──► x̂
       └──────┬───────┘
              │ 
              ▼ 
         zm + Gate(u) ─► z'm (Modality) ──┘

Datasets

The authors evaluate CFSL across four benchmarks spanning object categorization and fine-grained biometric identification:

  • Object Multi-Modal Datasets:
  • SKETCHY: 75,471 sketches and 73,002 images across 125 categories (64 base / 61 novel classes).
  • TU-BERLIN: 20,000 sketches and 204,489 images across 250 categories (125 base / 125 novel classes).
  • Fine-Grained Biometric Datasets:
  • MASK1K: Over 4,700 sketches across 6 styles and 20,480 Market-1501 photos (996 identities; base model trained on MSMT17).
  • SKSF-A: 938 face-sketch pairs over 134 identities (base model trained on CelebA-HQ).

Key Insights and Ideas

  • Concept Evocation: Humans easily identify an abstract doodle of a bull because our minds evoke core geometric and semantic concepts learned from prior real-world visual experience. GTL computationally formalizes this by isolating the invariant concept ($z_c$) from stylistic rendering ($z_m$).
  • Freezing the Decoder Prevents Overfitting: Fine-tuning an entire generative model on 1-shot or 5-shot data typically results in severe representational collapse. Keeping the decoder frozen forces the encoder to project new modalities into the established latent structure rather than distorting it.
  • Unsupervised Modality Separation: Without requiring explicit domain annotations, the learnable domain gates spontaneously learn to cluster sketches and RGB images into distinct clusters in the latent disturbance space.

Key Results

GTL consistently outperforms competitive few-shot learning methods (such as C2-Net and ICML23) as well as fine-grained retrieval/re-identification backbones (AGW, TransReID, and CLIP-ReID):

  • SKETCHY: Achieves 63.8% top-1 accuracy in all-way-1-shot (a +3.1% gain over CLIP-ReID at 60.7%) and 82.9% in all-way-5-shot.
  • TU-BERLIN: Delivers 92.2% accuracy in 5-way-1-shot and 98.0% in 5-way-5-shot, producing up to a 5.4% improvement in sketch-specific accuracy.
  • Biometrics: On MASK1K, GTL boosts accuracy over the best baseline by 2.2% (1-shot) and 5.4% (2-shot). On SKSF-A, it achieves an 11.5% absolute gain in 1-shot sketch recognition.
  • Ablation Findings: Completely removing the latent concept modeling drop performance from 63.8% to 48.7% on SKETCHY (1-shot), and unfreezing/fine-tuning the generator drops performance by 2.3%, highlighting the importance of the frozen decoder strategy.

Limitations and Future Work

  • Modality Diversity: The empirical evaluation focuses predominantly on RGB photos and sketches. Future work will need to validate whether the same concept invariance holds across sensors with non-geometric domain gaps, such as thermal infrared, depth, or multispectral imaging.
  • Benchmark Availability: The authors note that the computer vision community currently lacks diverse, standardized multi-modal few-shot benchmarks outside of sketch-based datasets.
  • Hyperparameter Sensitivity: The number of latent domain gates ($d$) requires careful tuning; when the shot count $k$ is very small, allocating too many latent domains can underperform due to insufficient sample support.

Summary updated

BibTeX
@misc{yang2024cross,
  author = {Zhengwei Yang and Yuke Li and Qiang Sun and Basura Fernando and Heng Huang and Zheng Wang},
  title = {{Cross-Modal Few-Shot Learning: a Generative Transfer Learning Framework}},
  year = {2024},
  eprint = {2410.10663},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.10663},
}
Figure