NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unsupervised Representation Learning by Predicting Random Distances

Hu Wang, Guansong Pang, Chunhua Shen, Congbo Ma

Abstract

Unsupervised representation learning is critical for domains where labeled data is scarce. While self-supervised methods have seen great success in computer vision, high-dimensional tabular data lacks the inherent spatial or temporal structures typically exploited by these techniques. We introduce Random Distance Prediction (RDP), a framework that utilizes random mapping as a source of pseudo-labels. By training a neural network to predict distances between data points in a randomly projected space, the model learns to capture the underlying class structure of the data. Experimental results across 19 datasets demonstrate that RDP significantly outperforms existing state-of-the-art methods in both anomaly detection and clustering tasks.

Introduction

Deep learning's reliance on massive labeled datasets is a significant hurdle in fields like fintech and healthcare. This necessitates effective unsupervised representation learning to extract meaningful features from raw data. Traditional approaches for tabular data, such as autoencoders, often prioritize global reconstruction at the expense of local class structures. Conversely, manifold learning techniques frequently suffer from high computational complexity. RDP addresses these challenges by providing an efficient and semantically rich "surrogate" supervisory signal based on the theoretical guarantees of random projections.

Methodology

The core of the RDP framework is the use of Random Mapping to generate pseudo-labels for training. The architecture employs a Siamese neural network configuration to learn embeddings that approximate distances in a randomly projected space.

Overview of the RDP framework and Siamese architecture, showing the use of shared weights and random distance targets.

The RDP Framework

  1. Siamese Architecture: The model consists of a two-branch neural network ($\phi$) with shared weights. It maps pairs of data points ($x_i, x_j$) into a learned embedding space.
  2. Supervisory Signal: A fixed, non-trainable random projection function ($\eta$) serves as the target. According to the Johnson-Lindenstrauss lemma, such projections preserve pairwise distances with high probability.
  3. Loss Function ($L_{rdp}$): The network minimizes the discrepancy between the inner product of embeddings in the learned space and the inner product in the randomly projected space.
  4. Auxiliary Tasks: RDP is flexible; it can incorporate reconstruction losses for clustering or novelty losses for anomaly detection to further refine the learned representations.

Experimental Evaluation

The authors evaluated RDP on 14 anomaly detection datasets (e.g., DDoS, Creditcard, Lung) and 5 high-dimensional clustering datasets (e.g., R8, 20news, Olivetti).

Results and Discussion

RDP consistently outperformed five state-of-the-art baselines, including iForest and RND. In anomaly detection, RDP achieved superior AUC-ROC scores on 12 out of 14 datasets, often by substantial margins.

Anomaly detection performance (AUC-ROC) across various datasets compared to state-of-the-art baselines. RDP shows superior performance in most cases.

Key insights from the experiments include:

  • Noise Rectification: While individual random projections are noisy, training a network across an entire dataset allows it to "rectify" this noise and discover globally consistent structures.
  • Proximity Preservation: Using inner products proved highly effective for preserving proximity in both linear and non-linear settings.
  • Dimensionality Robustness: Performance remained stable across various embedding dimensions (from 50 to 1000), simplifying hyperparameter selection.

Conclusion

RDP offers a simple yet powerful approach to unsupervised learning for tabular data. By leveraging random distances as a supervisory signal, it bypasses the need for manual labels while capturing essential data structures. Future work includes exploring deeper architectures and extending the framework to raw image and text data.

Summary updated

BibTeX
@inproceedings{wang2020unsupervised,
  author = {Hu Wang and Guansong Pang and Chunhua Shen and Congbo Ma},
  title = {{Unsupervised Representation Learning by Predicting Random Distances}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/408},
}
Figure