Neural Eigenfunctions Are Structured Representation Learners

Zhijie Deng, Jiaxin Shi, Hao Zhang, Peng Cui, Cewu Lu, Jun Zhu · DOI · OpenReview

Abstract

In this paper, we introduce a scalable method for learning structured, adaptive-length deep representations. Our approach is to train neural networks such that they approximate the principal eigenfunctions of a kernel. We show that, when the kernel is derived from positive relations in a contrastive learning setup, our method outperforms a number of competitive baselines in visual representation learning and transfer learning benchmarks, and importantly, produces structured representations where the order of features indicates degrees of importance. We demonstrate using such representations as adaptive-length codes in image retrieval systems. By truncation according to feature importance, our method requires up to 16$\times$ shorter representation length than leading self-supervised learning methods to achieve similar retrieval performance. We further apply our method to graph data and report strong results on a node representation learning benchmark with more than one million nodes.

Introduction

In representation learning, the goal is to map complex data—such as high-resolution images or nodes in a massive graph—into vectors where geometric distance reflects semantic similarity. Historically, spectral methods like Laplacian Eigenmaps provided a mathematically elegant solution by finding eigenfunctions that capture the fundamental structure of data. However, these methods lack scalability, often requiring the computation of massive matrices that become intractable with millions of data points.

Modern Self-Supervised Learning (SSL) frameworks, such as SimCLR or Barlow Twins, scale effectively to massive datasets but produce "unstructured" representations. In a standard SSL vector, dimensions are unordered and carry equal weight; one cannot simply truncate a 2048-dimensional vector to its first 10 dimensions and expect it to remain functional. This research bridges the gap between the mathematical structure of spectral methods and the scalability of deep learning through a method called Neural Eigenmap.

Methodology

The core of the approach is the NeuralEF algorithm, which enables a neural network to parametrically approximate the eigenfunctions of a kernel. The primary innovation is a symmetry-breaking objective function. Unlike typical SSL loss functions that treat all dimensions of an output vector identically, the authors introduce a surrogate loss that forces the network to learn features in a specific hierarchical order. The first dimension is constrained to capture the most significant "eigen-information," with subsequent dimensions capturing progressively less critical structural details.

This framework is applied in two primary domains:

  1. Computer Vision: A similarity kernel is derived from data augmentations (different views of the same image). The resulting objective serves as a more principled, structured version of popular SSL methods.
  2. Graph Learning: The theory is extended to "indefinite kernels," allowing the learning of node representations for massive graphs without the expensive matrix decompositions required by traditional spectral clustering.

Experimental Evaluation

The researchers evaluated Neural Eigenmap across several high-profile benchmarks, including ImageNet (1.2 million images) for pre-training and OGBN-Products (2.4 million nodes) for graph learning.

Image Retrieval and Adaptive-Length Coding

A standout feature of these ordered representations is the ability to perform adaptive-length coding. Because features are ordered by importance, the representation can be truncated based on available bandwidth or memory. In image retrieval tasks on datasets like NUS-WIDE, Neural Eigenmap achieved precision comparable to leading SSL methods while using 16× shorter code lengths.

Image retrieval results using Neural Eigenmap with varying representation lengths. As the length increases from 4 to 64, the semantic relevance of the retrieved images significantly improves, demonstrating the structured nature of the learned features.

Performance Benchmarks

  • ImageNet Accuracy: On ImageNet linear probing, the method achieved 68.4% top-1 accuracy, outperforming Barlow Twins (66.2%) and SimCLR (66.5%) under identical training budgets.
  • Graph Scalability: On the OGBN-Products benchmark, the method outperformed Graph Convolutional Networks (GCNs), achieving 78.33% accuracy compared to 75.72%.
  • Inference Speed: At test time, Neural Eigenmap proved to be approximately 300× faster than a GCN because it functions inductively, generating representations in a single forward pass without needing to aggregate information from neighboring nodes.

Discussion and Future Work

Neural Eigenmap effectively brings the "PCA" philosophy to deep representations. By breaking symmetry during training, the method naturally minimizes feature redundancy, as each new dimension is forced to be orthogonal to the preceding ones in function space.

While the method shows great promise, the authors noted challenges in accurately recovering eigenfunctions associated with very small eigenvalues (the "tail" of the representation), which can sometimes contain noise. Future research will explore adding perturbations to the kernel to improve the recovery of these components and extending the framework to multi-modal data, such as image-text pairs and video.

Summary updated

BibTeX
@article{deng2022neural,
  author = {Zhijie Deng and Jiaxin Shi and Hao Zhang and Peng Cui and Cewu Lu and Jun Zhu},
  title = {{Neural Eigenfunctions Are Structured Representation Learners}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2022},
  doi = {10.1109/tpami.2025.3625728},
}
Figure