Mine Your Own vieW: Self-Supervised Learning Through Across-Sample Prediction

Mehdi Azabou, Mohammad Gheshlaghi Azar, Ran Liu, Chi-Heng Lin, Erik C. Johnson, Kiran Bhaskaran-Nair, Max Dabagia, Keith B. Hengen, William R. Gray Roncal, Michal Valko, Eva L. Dyer

Abstract

State-of-the-art methods for self-supervised learning (SSL) build representations by maximizing the similarity between different transformed "views" of a sample. Without sufficient diversity in the transformations used to create views, however, it can be difficult to overcome nuisance variables in the data and build rich representations. This motivates the use of the dataset itself to find similar, yet distinct, samples to serve as views for one another. In this paper, we introduce Mine Your Own vieW (MYOW), a new approach for self-supervised learning that looks within the dataset to define diverse targets for prediction. The idea behind our approach is to actively mine views, finding samples that are neighbors in the representation space of the network, and then predict, from one sample's latent representation, the representation of a nearby sample. After showing the promise of MYOW on benchmarks used in computer vision, we highlight the power of this idea in a novel application in neuroscience where SSL has yet to be applied. When tested on multi-unit neural recordings, we find that MYOW outperforms other self-supervised approaches in all examples (in some cases by more than 10%), and often surpasses the supervised baseline. With MYOW, we show that it is possible to harness the diversity of the data to build rich views and leverage self-supervision in new domains where augmentations are limited or unknown.

Introduction

Modern self-supervised learning (SSL) frameworks, such as SimCLR and BYOL, have revolutionized representation learning by training models to be invariant to hand-crafted data augmentations. By creating multiple "views" of the same instance (e.g., through cropping, flipping, or color jittering), these models learn to extract core semantic features. However, this reliance on manual augmentations is a double-edged sword. In domains like neuroscience or signal processing, defining a "valid" augmentation is non-trivial and often requires deep domain expertise. Furthermore, simple augmentations may fail to capture the full semantic diversity of a dataset.

Mine Your Own vieW (MYOW) addresses this by treating the dataset itself as a source of augmentation. Instead of only predicting a transformed version of the same sample, MYOW "mines" the latent space to find semantically similar neighbors, forcing the network to learn higher-level features that generalize across different instances of the same underlying concept.

The MYOW Framework

MYOW extends the Bootstrap Your Own Latent (BYOL) architecture by introducing an across-sample prediction task. The framework utilizes a cascaded architecture consisting of an online network and a target network.

The MYOW framework: (Top) Comparison of standard augmented views vs. mined views from a sample pool. (Bottom) The cascaded architecture and latent space partitioning.

As illustrated in the figure above, the process involves two parallel paths. First, standard augmentations are applied to an anchor sample to create traditional views. Second, the algorithm searches a pool of samples to identify $k$-nearest neighbors in the current latent space. A neighbor is randomly selected as a "mined view." The model then employs a dual-projector setup: one branch learns to predict the representation of the augmented version of the anchor, while the "cascaded" branch learns to predict the representation of the mined neighbor. This dual objective ensures the model maintains local invariance while capturing broader manifold structure.

Applications and Results

Computer Vision

On standard vision benchmarks like CIFAR-10, CIFAR-100, and Tiny ImageNet, MYOW consistently matches or exceeds the performance of state-of-the-art SSL methods. For instance, using a ResNet-50 backbone, MYOW achieved 93.18% accuracy on CIFAR-10, outperforming the BYOL baseline. The mining process acts as a source of "hard positives," pushing the network to find deeper commonalities between distinct but related images.

Neuroscience Breakthrough

A primary contribution of MYOW is its application to multi-unit neural recordings, a domain where SSL has seen limited use due to the difficulty of defining augmentations for spiking data. The authors tested MYOW on motor cortex recordings from non-human primates performing reaching tasks.

Neuroscience application: A monkey performing a reaching task (left) and the resulting latent representation of reach trajectories (right).

MYOW proved exceptionally effective at recovering the underlying geometry of neural activity. As shown in the reaching task visualization, the model successfully captured the circular structure of reach directions. In these tasks, MYOW outperformed other SSL methods by over 10% and, in several instances, surpassed the performance of supervised baselines in decoding behavioral intent from neural signals. This suggests that across-sample mining is particularly potent for discovering the latent manifolds inherent in biological data.

Discussion and Conclusion

MYOW demonstrates that the dataset itself can serve as a powerful engine for augmentation. By mining neighbors, the framework overcomes the limitations of hand-crafted transformations and enables effective self-supervised learning in "augmentation-poor" domains. While the $k$-NN mining step introduces a modest computational overhead (approximately 1.5x), the gains in accuracy and the ability to generalize to complex datasets like neural recordings justify the cost. Future work may explore more sophisticated mining strategies and apply MYOW to other high-dimensional time-series data, such as genomics or finance, where the underlying structure is rich but augmentations remain elusive.

Summary updated

BibTeX
@misc{azabou2021mine,
  author = {Mehdi Azabou and Mohammad Gheshlaghi Azar and Ran Liu and Chi-Heng Lin and Erik C. Johnson and Kiran Bhaskaran-Nair and Max Dabagia and Keith B. Hengen and William R. Gray Roncal and Michal Valko and Eva L. Dyer},
  title = {{Mine Your Own vieW: Self-Supervised Learning Through Across-Sample Prediction}},
  year = {2021},
  eprint = {2102.10106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.10106},
}
Figure