Rank Is Not Capacity: Spectral Occupancy for Latent Graph Models

Nikolaos Nakis, Panagiotis Promponas, Konstantinos Tsirkas, Katerina Mamali, Eftychia Makri, Leandros Tassiulas, Nicholas A. ChristakisNeurIPS 2026

TL;DR

When training graph embeddings, we usually pick a fixed latent dimension—say, 64 or 128—before training and hope for the best. SPECTRA flips this paradigm on its head: instead of treating dimensionality as a rigid architectural guess, it turns capacity into a continuous dial you can smoothly measure and steer during training. By looking at how a model distributes its "spectral mass," we discover how many dimensions a real-world network actually needs—and unlock nested, multi-resolution views of the graph from a single fit.

What Problem Does This Paper Address?

Imagine packing for a trip. Choosing a massive suitcase doesn't mean you'll fill it; you might just toss a toothbrush inside and leave the rest empty. Graph representation learning has a suitcase problem. Whether we are predicting friendships in social networks or interactions between proteins, we compress nodes into $r$-dimensional vectors.

Traditionally, that integer $r$ (the nominal rank) is treated as a brittle hyperparameter chosen beforehand via trial-and-error. Worse, learned embeddings can be arbitrarily rotated or rescaled without changing their predictions, meaning the declared vector size $r$ rarely reflects how many independent patterns the model is actually using. Existing work tries to guess the best single $r$ before or after fitting, leaving us blind to the realized representational capacity inside the model itself.

Methods

The authors introduce SPECTRA (Spectral Prefix Extraction and Capacity-Targeted Representation Analysis). Instead of analyzing raw node vectors $L \in \mathbb{R}^{N \times r}$, SPECTRA looks at the positive semidefinite affinity kernel $K(L) \propto LL^\top$ that drives link probabilities (combined with node-specific degree offsets and a global sensitivity slope).

Figure 1: Overview of SPECTRA. A rank-capped factor L induces a trace-normalized PSD kernel K(L) used in the edge model. The normalized spectrum of K(L) defines spectral occupancy.

Here is what separates SPECTRA from standard factorization:

  1. Trace Normalization: They force $\text{tr}(K) = N$ (where $N$ is the number of nodes). Fixing the total spectral budget removes arbitrary scaling symmetries and turns the normalized eigenvalues $p_i = \lambda_i / N$ into a clean probability distribution on the simplex—the spectral occupancy distribution.
  2. Effective Spectral Dimension ($d_{\text{spec}}$): Rather than counting non-zero eigenvalues, they take the exponential of the Shannon entropy of $p_i$. If all mass sits in one mode, $d_{\text{spec}} = 1$; if spread evenly across $s$ modes, $d_{\text{spec}} = s$. Meanwhile, $r$ becomes merely a parameterization ceiling (a "rank cap").
  3. Training-Time Capacity Control: While spectral entropy is usually just a post-hoc diagnostic, SPECTRA puts $-\eta \log d_{\text{spec}}(K)$ directly into the loss function. Positive $\eta$ spreads spectral mass (raising dimension); negative $\eta$ concentrates it. Backed by a theoretical proof of local monotonicity, a fast 1D bisection search on $\eta$ lets you dial in any desired target $d_{\text{spec}}^\star$ within tolerance.
  4. SVD Parametrization & Elastic Prefixes: By parameterizing $L = Q\operatorname{diag}(\sigma)$ directly in SVD form, eigenvalues are read straight off the parameters without expensive eigensolves, keeping per-step complexity linear in $N$ and $r$. Truncating to the top $k$ modes gives provably optimal low-rank summaries without retraining.

Datasets

No new benchmarks are introduced; the authors evaluate on 11 established, featureless undirected graphs from SNAP and the Network Repository:

  • Link Prediction (8 graphs): Collaboration (ca-GrQc, ca-HepTh), social (socfb-American75, socfb-Amherst41), biological PPI (bio-grid-human, bio-grid-worm), and infrastructure (inf-power, inf-openflights).
  • Community Detection (3 graphs): Cora, Citeseer, and LastFM.

Key Insights and Ideas

  • Performance follows realized capacity, not parameter count: When sweeping $\eta$ across different rank caps ($r \in \{64, 128, 256\}$), test AUC curves from different $r$ values collapse onto the exact same trajectory when plotted against achieved $d_{\text{spec}}$.
  • Networks fall into two distinct structural regimes: Capacity frontiers expose whether a dataset is saturated (infrastructure and social graphs peak at a low $d_{\text{spec}}$—like $\sim 10$ for inf-power—well below the cap, and actually degrade if forced to use more modes) or rank-cap-binding (citation and biological graphs keep absorbing capacity and improving right up to $r = 256$).
Capacity frontiers across rank caps, illustrating how AUC aligns by achieved effective spectral dimension and separates saturated networks from rank-cap-binding networks.
  • Free "Matryoshka" representations: Usually, getting nested multi-resolution embeddings requires complex multi-scale losses during training. Because of the Eckart–Young–Mirsky theorem, truncating a single fitted SPECTRA kernel to its top $k$ eigenmodes automatically yields nested, aligned views that resolve coarse macro-communities at $k=4$ and fine sub-clusters at $k=64$.
  • Overparameterize first, compress spectrally: Training a wide model ($r > d_{\text{spec}}^\star$) and steering it down with $\eta$ finds better-calibrated solutions than simply capping the rank at $r = d_{\text{spec}}^\star$. The wider parameterization opens up a friendlier optimization landscape without overfitting, provided spectral entropy is controlled.

Key Results

  • Link Prediction: Against six baselines (including Node2Vec, GraRep, MNMF, and HM-LDM) at matched dimensions $d \in \{16, 32, 64, 128\}$, uncontrolled SPECTRA ($\eta=0$) ranks 1st or 2nd in AUC-ROC on 7 out of 8 datasets across every dimension.
  • Extreme Compression: When targeting the minimum baseline effective rank, SPECTRA matches full-rank baselines using $5\text{--}10\times$ smaller realized dimensions (e.g., achieving 0.949 AUC on socfb-American75 at $d_{\text{spec}} \approx 21$ vs. nominal $d=128$).
  • Better Generalization: Across 180 paired runs at matched effective capacity, $\eta$-targeted overparameterized models significantly beat rank-capped baselines in both test log-likelihood ($p \approx 10^{-12}$) and train–test generalization gap ($p \approx 10^{-11}$).
  • Community Detection: Tuning spectral capacity downward from $r=64$ boosts $k$-means Adjusted Rand Index (ARI) from 0.237 to 0.362 on Cora, 0.031 to 0.157 on Citeseer, and 0.252 to 0.372 on LastFM.

Limitations and Future Work

SPECTRA is currently rooted in Euclidean latent spaces, relying on an orthogonal-invariant Gram matrix. Extending this framework to non-Euclidean models—such as simplex-constrained memberships or hyperbolic graph embeddings—will require deriving geometry-native invariant kernels (like log-ratio Grams under Aitchison geometry). Finally, the authors envision using $d_{\text{spec}}$ as a scientific yardstick to compare structural complexity across ensembles of real-world networks (e.g., village social networks or biological interactomes), though doing so rigorously will require standardized controls for graph size and edge density.

Summary updated

Abstract

Graph representation learning has become a standard approach for analyzing networked data, with latent embeddings widely used for link prediction, community detection, and related tasks. Yet a basic design choice, the latent dimension, is still treated as a brittle hyperparameter, fixed before training and tuned by held-out performance. Learned factors are also identifiable only up to rotation and rescaling, so the nominal rank rarely coincides with the quantity that governs model behavior. We propose Spectral Prefix Extraction and Capacity-Targeted Representation Analysis (Spectra), which replaces rank as the unit of analysis with the spectrum of a learned positive semidefinite kernel, trace-normalized so that spectra are comparable across fits. The normalized eigenvalues form a distribution on the simplex, and their Shannon effective rank acts both as a summary of learned capacity and as a controllable training-time coordinate: a single scalar shapes this realized dimension during training, and bisection targets any desired value within the rank cap. To theoretically support that, we show local regularity and monotonicity of the realized-dimension profile. Across collaboration, social, biological, and infrastructure networks, Spectra traces performance--capacity frontiers that make the trade-off between predictive accuracy and realized dimension visible. It performs competitively with strong link-prediction baselines, yields aligned lower-capacity views of the same fitted model through spectral prefixes, and provides a principled handle on capacity in the overparameterized regime. Capacity thus becomes a property of the fitted model rather than a hyperparameter of the training.
BibTeX
@inproceedings{nakis2026rank,
  author = {Nikolaos Nakis and Panagiotis Promponas and Konstantinos Tsirkas and Katerina Mamali and Eftychia Makri and Leandros Tassiulas and Nicholas A. Christakis},
  title = {{Rank Is Not Capacity: Spectral Occupancy for Latent Graph Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=MdpohqZVhG},
}

Loading related content...

Figure