Supervised Transfer Sparse Coding

Maruan Al-Shedivat, Jim Jing-Yan Wang, Majed Alzahrani, Jianhua Z. Huang, Xin Gao

Abstract

Traditional transfer learning often assumes that the target domain is entirely unlabeled, creating an artificial constraint in many real-world scenarios. This paper introduces Supervised Transfer Sparse Coding (STSC), a framework that leverages a small fraction of labeled target samples to improve cross-domain classification. By integrating a multi-class support vector machine (SVM) term directly into the sparse coding optimization process, STSC corrects domain alignment to prioritize class separability. Experimental results on handwritten digit and object recognition benchmarks demonstrate that labeling as little as 5% of target data leads to significant performance gains over unsupervised methods.

Introduction

In standard machine learning, the fundamental assumption is that training (source) and testing (target) data are drawn from the same distribution. However, in practice, differences in stroke thickness, lighting, or resolution often lead to domain disparity. While Transfer Learning (TL) aims to bridge this gap by finding a shared latent space, most existing methods treat the target domain as a "black box" with zero labels.

STSC challenges this paradigm by arguing that manually labeling a handful of target samples is often feasible and highly beneficial. The core research question is how to mathematically incorporate these sparse labels into the complex process of learning a shared dictionary for sparse coding.

Methodology

The STSC framework optimizes three primary components simultaneously to ensure the learned representation is both representative and discriminative:

  1. Sparse Coding: Learns a dictionary of basis vectors to reconstruct data points via sparse combinations.
  2. Domain Transfer & Geometry: Employs Maximum Mean Discrepancy (MMD) to minimize the distance between source and target means in the latent space, while Graph-Laplacian Regularization preserves local data geometry.
  3. Supervised Transfer Correction: This is the framework's primary innovation. A multi-class SVM term is integrated into the objective function, using the few labeled target samples to "nudge" the domain alignment. This ensures the learned dictionary is specifically tuned for classification rather than just data reconstruction.
Conceptual comparison of unsupervised (a) and supervised (b) transfer learning.

The optimization follows a three-step iterative algorithm that updates sparse codes, the dictionary, and SVM parameters sequentially.

Experimental Setup

The researchers evaluated STSC across several well-known benchmarks to test its robustness against distribution shifts:

  • Handwritten Digits: Cross-domain tests between USPS, MNIST, and MADBase (Hindi digits).
  • Object Recognition: The "Office+Caltech" dataset, focusing on cross-domain classification between Amazon and Caltech-256 images.
Sample digits from USPS, MNIST, and MADBase datasets illustrating domain disparity.

Key Results and Insights

The experimental results consistently show that STSC outperforms both standard sparse coding and unsupervised Transfer Sparse Coding (TSC).

  • The Power of the Few: Labeling just 5% of target samples yielded massive gains. For instance, in the USPS to MNIST task, STSC achieved 53.1% accuracy, compared to 45.8% for the unsupervised baseline.
  • Low-Label Efficiency: At a very low 2% labeling ratio, using the source domain to assist in a supervised fashion jumped accuracy from 28% (target only) to 46% with the full STSC correction.
  • Discriminative Correction: Mathematically, the SVM term introduces a correction matrix that prioritizes class separability over simple distribution matching. This allows the model to find subtle features that distinguish classes even across disparate domains.

Conclusion and Future Work

STSC demonstrates that a small amount of supervision can significantly stabilize and improve transfer learning. However, the model faces challenges regarding hyperparameter sensitivity—specifically the SVM weighting parameter—and higher computational costs due to its iterative unified optimization. Future research may explore replacing the linear SVM with other classifiers like logistic regression or linear discriminant analysis (LDA) to improve stability and efficiency.

Summary updated

BibTeX
@inproceedings{alshedivat2014supervised,
  author = {Maruan Al-Shedivat and Jim Jing-Yan Wang and Majed Alzahrani and Jianhua Z. Huang and Xin Gao},
  title = {{Supervised Transfer Sparse Coding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8981},
}
Figure