SEVEN: Deep Semi-supervised Verification Networks

Vahid Noroozi, Lei Zheng, Sara Bahaadini, Sihong Xie, Philip S. Yu

Abstract

Verification tasks, such as face or signature matching, often suffer from extreme label scarcity across a vast number of categories. We present SEVEN (SEmi-supervised VEri-fication Network), a deep learning framework that addresses this by jointly training a generative reconstruction task alongside a discriminative verification task. By leveraging large-scale unlabeled data, SEVEN learns robust, category-agnostic features that significantly outperform traditional semi-supervised approaches in low-label regimes.

Introduction

Traditional deep classification models typically require massive labeled datasets. However, verification tasks—determining if two samples belong to the same category—often involve millions of categories with only a handful of examples per identity. Standard semi-supervised learning (SSL) methods, such as two-phase pre-training and fine-tuning, often fail in this context due to "category scarcity" (insufficient data per category for effective fine-tuning) and "feature bias" (general features from pre-training may miss identity-specific nuances).

SEVEN overcomes these hurdles by integrating generative and discriminative learning into a single, end-to-end architecture, allowing unlabeled data to regularize the feature space directly for the verification task.

Methodology

The SEVEN architecture consists of two primary, intertwined components optimized through a unified loss function.

The SEVEN architecture jointly optimizes discriminative and generative objectives through shared encoders and a unified loss function.

1. Discriminative Component

A Siamese-style network ($F_1$ and $F_2$) with shared parameters maps input pairs into a non-linear embedding space. The goal is to minimize a discriminative loss ($l_d$), typically cross-entropy, ensuring that similar pairs are clustered together while dissimilar pairs are separated.

2. Generative Component

A pair of decoders ($G_1$ and $G_2$) attempts to reconstruct the original input images from the learned embeddings. This generative task introduces a reconstruction loss ($l_g$) calculated over all available data, both labeled and unlabeled.

Joint Optimization

The total loss $\mathcal{L}$ is defined as a weighted sum of the discriminative and generative losses, where a trade-off parameter $\alpha$ balances the two. This joint optimization allows the generative task to act as a powerful regularizer, forcing the encoders to retain salient structural information from the entire data distribution and preventing overfitting to the small labeled subset.

Experimental Setup

The model was evaluated on four diverse datasets:

  • MNIST & USPS: Standard handwritten digits.
  • Labeled Faces in the Wild (LFW): Real-world face verification.
  • BiosecurID-SONOF (SONOF): Handwritten signatures.

For LFW and SONOF, the training and test sets were disjoint, requiring the model to generalize to entirely unseen identities—a rigorous test for any verification system.

Results and Discussion

SEVEN consistently outperformed state-of-the-art SSL techniques, including Pseudo-Labeling and pre-trained Siamese networks, particularly when labeled data was extremely scarce. For instance, on the LFW dataset with only 440 labels, SEVEN achieved 64.1% accuracy, compared to 54.2% for a discriminative-only baseline.

Hyperparameter Sensitivity

A critical aspect of SEVEN is the trade-off parameter $\alpha$. As shown in the experimental results across all four datasets, performance is sensitive to the choice of $\alpha$.

Accuracy across different datasets (MNIST, LFW, USPS, SONOF) as a function of the trade-off parameter α and labeled sample size L.

The optimal $\alpha$ varies depending on the dataset and the amount of labeled data ($L$). Generally, a moderate $\alpha$ provides the best balance, while values that are too high or too low lead to performance degradation. This sensitivity highlights the importance of careful tuning to balance the generative regularization with the discriminative objective.

Conclusion

SEVEN demonstrates that joint generative-discriminative training is a highly effective strategy for semi-supervised verification. By crossing the category barrier with unlabeled data, the model learns a robust manifold that generalizes well to unseen identities. Future research could explore more advanced generative components, such as Variational Autoencoders (VAEs) or GANs, to capture even more complex data distributions.

Summary updated

BibTeX
@inproceedings{noroozi2017seven,
  author = {Vahid Noroozi and Lei Zheng and Sara Bahaadini and Sihong Xie and Philip S. Yu},
  title = {{SEVEN: Deep Semi-supervised Verification Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/358},
}
Figure