Boceto y Escala: tSNE y UMAP distribuidos geográficamente
Sketch and Scale: Geo-distributed tSNE and UMAP
Sketch and Scale: Geo-distributed tSNE and UMAP
@misc{wei2020sketch,
title = {Sketch and Scale: Geo-distributed tSNE and UMAP},
author = {Viska Wei and Nikita Ivkin and Vladimir Braverman and Alexander Szalay},
year = {2020},
eprint = {2011.06103},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/2011.06103}
}
Wei, V., Ivkin, N., Braverman, V., & Szalay, A. (2020). Sketch and Scale: Geo-distributed tSNE and UMAP [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.06103
WEI V, IVKIN N, BRAVERMAN V, et al. Sketch and Scale: Geo-distributed tSNE and UMAP[EB/OL]. (2020-11-11)[2026-11-29]. https://arxiv.org/abs/2011.06103.
Resumen
Ejecutar análisis de aprendizaje automático sobre conjuntos de datos distribuidos geográficamente es un problema emergente rápidamente en el ámbito de las políticas de gestión de datos que garantizan la privacidad y la seguridad de los datos. La visualización de datos de alta dimensión utilizando herramientas como t-distributed Stochastic Neighbor Embedding (tSNE) y Uniform Manifold Approximation and Projection (UMAP) se ha convertido en una práctica común para los científicos de datos. Ambas herramientas escalan pobremente en tiempo y memoria. Aunque las optimizaciones recientes han demostrado un manejo exitoso de 10,000 puntos de datos, escalar más allá de millones de puntos sigue siendo un desafío. Introducimos un marco novedoso: Sketch and Scale (SnS). Este marco aprovecha una estructura de datos Count Sketch para comprimir los datos en los nodos de borde, agrega los sketches de tamaño reducido en el nodo maestro y ejecuta tSNE o UMAP estándar sobre el resumen, que representa las áreas más densas extraídas del sketch agregado. Demostramos que esta técnica es completamente paralela, escala linealmente en tiempo, logarítmicamente en memoria y en comunicación, lo que permite analizar conjuntos de datos con muchos millones, potencialmente miles de millones de puntos de datos, distribuidos en varios centros de datos alrededor del mundo. Demostramos la potencia de nuestro método en dos conjuntos de datos de tamaño medio: datos de cáncer con 52 millones de píxeles de 35 bandas provenientes de múltiples imágenes de biopsias tumorales; y datos de astrofísica de 100 millones de estrellas con fotometría multicolor del Sloan Digital Sky Survey (SDSS).
Running machine learning analytics over geographically distributed datasets is a rapidly arising problem in the world of data management policies ensuring privacy and data security. Visualizing high dimensional data using tools such as t-distributed Stochastic Neighbor Embedding (tSNE) and Uniform Manifold Approximation and Projection (UMAP) became common practice for data scientists. Both tools scale poorly in time and memory. While recent optimizations showed successful handling of 10,000 data points, scaling beyond million points is still challenging. We introduce a novel framework: Sketch and Scale (SnS). It leverages a Count Sketch data structure to compress the data on the edge nodes, aggregates the reduced size sketches on the master node, and runs vanilla tSNE or UMAP on the summary, representing the densest areas, extracted from the aggregated sketch. We show this technique to be fully parallel, scale linearly in time, logarithmically in memory, and communication, making it possible to analyze datasets with many millions, potentially billions of data points, spread across several data centers around the globe. We demonstrate the power of our method on two mid-size datasets: cancer data with 52 million 35-band pixels from multiple images of tumor biopsies; and astrophysics data of 100 million stars with multi-color photometry from the Sloan Digital Sky Survey (SDSS).