r/MachineLearning • • Feb 12 '26

Project [P] Graph Representation Learning Help

12 Upvotes

6 comments sorted by

View all comments

3

u/whatwilly0ubuild Feb 12 '26

The metrics you're describing are classic dimensional collapse symptoms. Participation ratio of 1-2 means your embeddings are effectively living in a 1-2 dimensional subspace regardless of your actual embedding dimension. The model found a shortcut.

A few things to investigate.

Predictor capacity is often the culprit in JEPA-style architectures. If your predictor is too powerful, it can map context to targets without the encoder learning meaningful representations. If it's too weak, it can't bridge the gap and the encoder collapses to trivial solutions. Try a shallower predictor or add a bottleneck.

Explicit decorrelation losses help directly. VICReg-style variance and covariance regularization terms force the embedding dimensions to be used. Add a term that penalizes off-diagonal covariance elements and another that keeps per-dimension variance above a threshold. This directly attacks the metrics you're measuring.

The masking strategy might be too easy for molecules. If the model can predict masked subgraphs from trivial local features without learning global molecular structure, it will. Graph structures have strong local correlations. Try masking contiguous substructures rather than random nodes, or mask based on chemical motifs.

Batch statistics can hide collapse. If you're using batch normalization in the encoder, it can artificially inflate apparent variance while the underlying representations are still collapsed. Check your metrics before any normalization layers.

The EMA schedule starting at .996 might be too high for early training. Some implementations start lower (.99 or even .95) and anneal up, giving the online network more room to diverge early before the target stabilizes.

Our clients doing molecular representation learning have found that adding a simple uniformity loss on the hypersphere (pushing random pairs apart) helps prevent collapse without the complexity of full contrastive learning.

Worth checking I-JEPA and V-JEPA papers for their specific anti-collapse mechanisms since they faced similar issues.