스케치와 스케일: 지리 분산 tSNE 및 UMAP
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.
초록
지리적으로 분산된 데이터셋에 대한 머신러닝 분석은 데이터 관리 정책에서 프라이버시와 데이터 보안을 보장하는 분야에서 빠르게 부상하는 문제이다. t-분산 확률적 이웃 임베딩 (tSNE) 과 균일 다양체 근사 및 투영 (UMAP) 과 같은 도구를 사용하여 고차원 데이터를 시각화하는 것은 데이터 과학자들의 일반적인 관행이 되었다. 두 도구는 시간과 메모리 측면에서 확장성이 매우 낮다. 최근 최적화들은 10,000 개의 데이터 포인트를 성공적으로 처리하는 것을 보여주었으나, 수백만 개의 포인트를 넘어서는 확장성은 여전히 도전 과제이다. 우리는 새로운 프레임워크인 Sketch and Scale (SnS) 을 소개한다. SnS 는 엣지 노드에서 데이터를 압축하기 위해 Count Sketch 데이터 구조를 활용하고, 마스터 노드에서 축소된 스케치들을 집계하며, 집계된 스케치에서 추출한 가장 밀집된 영역을 요약으로 사용하여 원본 tSNE 또는 UMAP 을 실행한다. 우리는 이 기법이 완전히 병렬이며 시간이 선형적으로, 메모리와 통신이 로그적으로 확장됨을 보여준다. 이는 전 세계 여러 데이터 센터에 분산된 수백만 개, 잠재적으로 수십억 개의 데이터 포인트를 분석할 수 있게 한다. 우리는 두 개의 중간 규모 데이터셋에서 본 방법의 능력을 입증한다: 다수의 종양 생검 이미지에서 5,200 만 개의 35 밴드 픽셀을 가진 암 데이터; 그리고 Sloan Digital Sky Survey (SDSS) 의 다색 광도 측정 데이터를 가진 1 억 개의 별을 가진 천체물리 데이터이다.
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).