Is the umap projection of embeddings the same each time it is run? Or is there some…
- User
Is the umap projection of embeddings the same each time it is run? Or is there some randomness to how things are clustered and displayed?
- Assistant
UMAP (Uniform Manifold Approximation and Projection) is a popular dimensionality reduction technique that, like t-SNE, incorporates randomness in its computations.This inherent randomness means that each time UMAP is run, the resulting projections can differ slightly, leading to variations in how data points are clustered and displayed.Factors such as random initialization and stochastic optimization contribute to these differences.Umap Learn+2Reddit+2docs.voxel51.com+2
To enhance the reproducibility of UMAP projections, you can set a specific random seed using therandom_stateparameter.By providing a fixed integer value to this parameter, you ensure that UMAP produces consistent results across multiple runs with the same data and parameters.However, even with a fixed random state, slight variations might still occur due to other sources of randomness in the algorithm.
It's also important to note that UMAP's performance and the stability of its projections are influenced by its hyperparameters, such asn_neighborsandmin_dist.Adjusting these parameters can lead to different visualizations and clustering outcomes, so careful tuning is essential for obtaining meaningful results.docs.voxel51.com+4Umap Learn+4biostars.org+4docs.voxel51.com
- User
Hrmph, so say i wanted to compare a umap projection to embedding vectors before and them after adding more data, this wouldn’t be easy to visualize? My thoughts were doing a “sliding window” of a data stream, like the text an LLM is trained on, with snapshots taken every so many tokens, and then watching the projection morph as the training goes, and how it changes at different stages.
- Assistant
- User
How exactly does aligned umap work? How would i go about initializing umap with embedding positions from the previous step? Are there any dimensionality reduction methods that aren’t as random?
- Assistant
- User
So by setting the initial parameter to the prior coordinates, after dropping the data outside the window, have the remaining points from the previous projection in relatively the same place, and add in the new data around it? Would assume some adjustments of the existing points for optimization.
- Assistant