LambdaLens: Auditing a Representation-Changing Hyperparameter in Graph Neighbor Embedding
Organizations: Harvard University Cambridge, USA · Duke Kunshan University Kunshan, China · Westlake University Hangzhou, China
Abstract
Changing a graph embedding parameter can change what the layout represents. In SG-t-SNE-, the rescaling parameter changes the probability assigned to each neighbor before optimization begins. We introduce LambdaLens to trace that change from individual edges to the resulting layout. For nodes with at least two neighbors, we derive a normalized power path. When the original weights are unequal, the number of neighbors determines where the weights become uniform and where their ordering reverses. Near , the rate of change in each edge probability depends on its surprisal relative to the neighborhood entropy. To measure the geometric effect, we vary while holding the input graph, initialization, random seed, and optimizer settings fixed. Across six graphs, some layouts continue to move as increases, others stabilize early, and others barely move. PubMed has the widest relative spread in node degree, yet its layout changes little. On four datasets with class labels, four probes recover 98.48-100% of the best label-fidelity score on a 16-value grid, using 75% fewer evaluations. In a six-dataset comparison, SG-t-SNE- attains the highest observed primary score on four datasets and ranks among the top three on all six. On Citeseer, four probes come close to the dense-grid optimum, yet PHATE better preserves class structure, making a change of embedding pipeline worth considering on that graph. ```
Figures & tables
| Dataset | Graph to SG-t-SNE- | Feature space for metrics/baselines | Label provenance | Primary metric | |
|---|---|---|---|---|---|
| Cora | 2,708 | citation adjacency Jaccard stochastic | bag-of-words | 7 document classes | |
| Citeseer | 3,327 | citation adjacency Jaccard stochastic | bag-of-words | 6 document classes | |
| PubMed | 19,717 | citation adjacency Jaccard stochastic | TF/IDF-like attributes | 3 document classes | |
| MNIST-kNN | 70,000 | Euclidean 15-NN Jaccard stochastic | 784 pixels | digit label | |
| PBMC-8k | 8,381 | supplied stochastic 30-NN graph | adjacency rows (graph-only) | Ward, , Laplacian embedding | |
| ca-AstroPh | 18,772 | coauthorship adjacency Jaccard stochastic | adjacency rows (graph-only) | none |
| 0.922 | 0.951 | 0.966 | 0.949 |
| 0.983 | 0.987 | 0.986 | 0.986 |
| 0.986 | 0.985 | 0.987 | 0.984 |
| Dataset | Loss | |||
|---|---|---|---|---|
| Cora | 20 | 7 | ||
| Citeseer | 1 | 3 | ||
| PubMed | 5 | 5 | ||
| MNIST-kNN | 1 | 30 |
| Cora | Citeseer | PubMed | MNIST-kNN | PBMC-8k | ca-AstroPh | |||||||
| Method | ||||||||||||
| UMAP ( McInnes et al., 2018a ) | 1.000 | |||||||||||
| openTSNE ( Poličar et al., 2024 ) | ||||||||||||
| node2vec+UMAP ( Grover and Leskovec, 2016 ) | – | – | † | |||||||||
| PHATE ( Moon et al., 2019 ) | 0.855 | – | ‡ | ‡ | ||||||||
| SG-t-SNE- ( : see caption) | 0.932 | 0.905 | 0.989 | 0.622 | ||||||||
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Core settings | Input handling |
|---|---|---|
| UMAP | , , 1,000 epochs | Feature matrix when available; precomputed on graph-only inputs; adjacency-SVD initialization where accepted. |
| openTSNE | perplexity 30, 1,000 iterations | Feature matrix when available; PrecomputedAffinities(adj) on graph-only inputs; adjacency-SVD initialization. |
| PHATE | Feature matrix when available; precomputed-affinity path on graph-only inputs; 10,000-node MNIST and 3,000-node ca-AstroPh subsamples. | |
| node2vec+UMAP | 64 dimensions, walk length 30, 200 walks, ; UMAP head as above | Graph input. On ca-AstroPh, five seeds for quality and one pinned-thread run for timing. No completed MNIST run. |
| SG-t-SNE- | Default optimizer, Jaccard conversion for unweighted edges, adjacency-SVD initialization | Four-probe on Cora, Citeseer, and PubMed. Fixed on MNIST-kNN and on PBMC-8k and ca-AstroPh. PBMC-8k supplies its stochastic weights. |
| Variant | Cora | PBMC-8k |
|---|---|---|
| SG-t-SNE- full | ||
| no adjacency-SVD init | ||
| no Jaccard weighting | – | |
| (identity) | ||
| Graph | uniform | |||||
|---|---|---|---|---|---|---|
| Cora | 20 | 0 | 485 | 2,223 | 793 | 2,199 |
| Citeseer | 1 | 48 | 1,331 | 1,948 | 985 | 0 |
| PubMed | 5 | 0 | 9,094 | 10,623 | 5,836 | 5,855 |
| MNIST-kNN | 20 | 0 | 0 | 70,000 | 0 | 30,472 |
| PBMC-8k | 10 | 0 | 0 | 8,381 | 0 | 0 |
| ca-AstroPh | 10 | 1 | 1,282 | 17,489 | 538 | 8,158 |
| Comparison | SG-t-SNE- higher | Mean diff. [95% ] | HL [95% exact] | Holm | ||
|---|---|---|---|---|---|---|
| E1 | Citeseer vs PHATE | 0/10 | [ , ] | [ , ] | ||
| E2 | MNIST-kNN vs UMAP | 0/10 | [ , ] | [ , ] | ||
| P1 | PBMC-8k pseudo-label vs UMAP | 9/10 | [ , ] | [ , ] | ||
| P2 | PBMC-8k graph vs UMAP | 10/10 | [ , ] | [ , ] |
Graph Embedding
Graph embedding maps nodes, edges, or whole graphs into vectors that capture structure for prediction, clustering, retrieval, and analysis.
See all 56 papers