Relation-Guided Representation Learning

Zhao Kang, Xiao Lu, Jian Liang, Kun Bai, Zenglin Xu

In the world of unsupervised learning, deep autoencoders (DAEs) are the workhorses of representation learning. They excel at compressing data into a latent space and then reconstructing it. However, most DAEs have a "lonely" perspective: they focus entirely on reconstructing individual data points in isolation, often ignoring the rich structural relationships—the "social map"—between samples.

A recent paper titled "Relation-Guided Representation Learning" (RGRL) proposes a shift in this paradigm. Instead of just looking at points, the authors argue we should look at the spaces between them.

TL;DR

RGRL is a novel deep learning framework that explicitly models and learns the relationships between data samples to guide the representation learning process. By enforcing "subspace consistency" and "locality preservation," it creates embeddings that are significantly better for tasks like clustering, even on large-scale datasets.

What Problem Does This Paper Address?

Standard autoencoders minimize a reconstruction loss: they want the output to look like the input. While effective, this approach often misses the underlying manifold structure of the data.

Existing attempts to fix this usually involve pre-defining relationships using heuristic functions (like Cosine similarity or Gaussian kernels). But these "fixed" relationships are often too rigid to capture the complexity of real-world data. Other methods, like Deep Subspace Clustering (DSC), only look at relationships in the latent space, ignoring the valuable structural information present in the raw input.

The challenge is: How can we learn both the data representations and the relationships between samples simultaneously in an end-to-end, flexible way?

Methods

The authors introduce RGRL, which adds two critical modules to the standard encoder-decoder architecture:

  1. Locality Preserving Module: Instead of a simple self-reconstruction ($X_i \approx \hat{X}_i$), RGRL uses a weighted reconstruction. It reconstructs a sample $X_i$ using a weighted combination of its neighbors. This ensures that the local neighborhood structure is baked into the learned representations.
  2. Subspace Consistency Module: This is the "secret sauce." The model assumes the "self-expression property"—that any sample in a subspace can be represented as a linear combination of other samples in that same subspace. RGRL enforces that this relationship (represented by a coefficient matrix $C$) must remain consistent across both the high-dimensional input space and the low-dimensional latent space.

Technically, they implement a self-expression layer (a fully connected layer without bias) between the encoder and decoder. The weights of this layer represent the pairwise relations, which are optimized alongside the network parameters using backpropagation.

Datasets

The researchers evaluated RGRL across a diverse set of benchmarks:

  • Face Recognition: EYaleB, ORL, and Umist.
  • Object/Digit Recognition: MNIST (both a 1,000-sample subset and the full 70,000-sample set), COIL20, COIL40, and USPS.
  • Text Classification: RCV1 (a subset of 10,000 documents).

Notably, they used the full MNIST and RCV1 datasets to demonstrate how their method handles large-scale and "out-of-sample" problems, which are traditionally difficult for subspace-based methods.

Key Insights and Ideas

  • Relations as Supervision: In an unsupervised setting, the data's own internal structure can serve as a form of "pseudo-supervision." By forcing the network to respect sample relations, the learned features become much more discriminative.
  • Adaptive Similarity Learning: Unlike methods that rely on a fixed $k$-nearest neighbor graph, RGRL learns the similarity matrix $S$ directly from the data. This allows the model to adapt to the specific manifold of the dataset.
  • The Power of Consistency: The "aha moment" here is that subspace structures shouldn't just exist in the latent space; they should be a bridge connecting the raw data to the embedding. Enforcing this consistency prevents the network from "forgetting" the original data's structure during compression.

Key Results

RGRL consistently outperformed state-of-the-art shallow and deep clustering methods (like DEC, DKM, and DSC).

  • Clustering Accuracy: On the Umist dataset, RGRL achieved an accuracy of 81.04%, a massive jump over the 73.12% achieved by DSC-L2.
  • Visual Clarity: Visualization of the learned affinity matrices (see Figure 3 in the paper) shows near-perfect block-diagonal structures, meaning the model successfully grouped similar items together with very little noise.
  • Scalability: By using an out-of-sample strategy (training on a batch and then projecting the rest), RGRL handled the 70,000 samples of MNIST with high accuracy, proving it isn't just limited to small "toy" datasets.

Limitations and Future Work

While powerful, the paper notes a few areas for growth:

  • Parameter Sensitivity: On certain datasets like MNIST, the model's performance was sensitive to the $\beta$ parameter (which balances subspace consistency). Finding the "sweet spot" requires careful grid searching.
  • Computational Overhead: Although they address large-scale data via out-of-sample projection, the core self-expression layer still involves an $N \times N$ matrix, which can be memory-intensive for very large training batches.
  • Future Directions: The authors suggest that more complex modules, such as adversarial learning or label supervision, could be integrated on top of this "simple and neat" framework to further boost performance.

Source Code: The authors have made their code available at https://github.com/nbShawnLu/RGRL.

Summary updated

BibTeX
@inproceedings{kang2020relation,
  author = {Zhao Kang and Xiao Lu and Jian Liang and Kun Bai and Zenglin Xu},
  title = {{Relation-Guided Representation Learning}},
  booktitle = {Neural Networks},
  year = {2020},
  url = {https://openreview.net/forum?id=lPMlFVmHgj},
}
Figure