A Generic Self-Supervised Framework of Learning Invariant Discriminative Features

Foivos Ntelemis, Yaochu Jin, Spencer Angus Thomas · DOI

Introduction

Self-supervised learning (SSL) has revolutionized representation learning by enabling models to learn from unlabeled data. However, most state-of-the-art SSL methods rely heavily on "pretext tasks" or domain-specific data augmentations. For instance, in computer vision, transformations like rotation, cropping, or color jittering are used to define semantic invariance. Defining such transformations for non-visual modalities—such as raw sensor logs, audio spectrograms, or chemical spectra—is challenging and often requires significant expert domain knowledge.

To bridge this gap, this research proposes a generic SSL framework that learns invariant features across diverse data types without manual "augmentation engineering."

Methodology: Universal Augmentation and Stable Self-Labeling

The core of the proposed framework is an architecture that replaces manual data transformations with an internal, automated mechanism. It consists of an encoder $f_\psi$ to generate embeddings and a classifier $g_\varphi$ to map these embeddings to a probability distribution.

Figure 1: The proposed self-supervised framework architecture utilizing Virtual Adversarial Training (VAT) and Sinkhorn-Knopp for generic feature learning.

Virtual Adversarial Training (VAT)

Instead of modality-specific augmentations, the model employs Virtual Adversarial Training (VAT). VAT generates "adversarial" perturbations by calculating small changes to the input data that would most significantly alter the model's current prediction. This serves as a data-agnostic method to create "augmented" versions of any input, effectively teaching the model to be invariant to local perturbations in the input space.

Constrained Self-Labeling via Sinkhorn-Knopp

To avoid "model collapse"—a common failure mode where the model assigns all data points to a single category—the framework incorporates the Sinkhorn-Knopp algorithm. This algorithm enforces a constraint that pseudo-labels must be distributed equally across a batch. By solving an optimal transport problem, it forces the model to utilize its full representational capacity and find discriminative features.

Dynamic $\lambda$ Adaptation

The smoothness of the target distribution is controlled by a hyper-parameter $\lambda$ within the Sinkhorn-Knopp algorithm. The authors introduce a dynamic policy to tune $\lambda$, preventing the model from prematurely clustering data into rigid groups. As shown in Figure 3, lower values of $\lambda$ result in "peakier" distributions, while higher values lead to smoother, more uniform targets.

Figure 3: Impact of the hyper-parameter $\lambda$ on the probability mass of the target distribution $q_i^{(s)}$. Lower $\lambda$ values produce more discriminative, peaky distributions.

Experimental Results

The framework was validated across a diverse set of benchmarks, demonstrating its robustness across modalities:

  • Visual: On E-MNIST, the model achieved 98.6% accuracy in linear evaluation, outperforming standard Autoencoders (97.3%).
  • Audio: On the Free Spoken Digit Dataset (FSDD), it reached 86.9% accuracy, surpassing the next best generic method (CPC) by over 8%.
  • Text & Science: The model showed strong performance on text datasets (Reuters, 20news) and scientific Mass Spectrometry Imaging (MSI) data, where it captured underlying biological structures more effectively than traditional dimensionality reduction techniques like PCA or LLE.

Conclusion and Future Work

This generic SSL framework demonstrates that adversarial noise can serve as a universal augmentor, and that learning invariance is a more powerful signal for discriminative features than simple input reconstruction. While the method shows high modality robustness, it remains sensitive to the scaling of adversarial perturbations ($\epsilon$). Future research will explore automated ways to infer latent representations and remove the need for manual weighting scalars entirely.

Summary updated

BibTeX
@article{ntelemis2022generic,
  author = {Foivos Ntelemis and Yaochu Jin and Spencer Angus Thomas},
  title = {{A Generic Self-Supervised Framework of Learning Invariant Discriminative Features}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  doi = {10.1109/tnnls.2023.3265607},
}
Figure