{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,18]],"date-time":"2026-08-18T01:45:05Z","timestamp":1787017505093,"version":"build-2736575974"},"reference-count":62,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2023,11,13]],"date-time":"2023-11-13T00:00:00Z","timestamp":1699833600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2023,11,13]]},"abstract":"<jats:p>We introduce TeraHAC, a (1+\u03b5)-approximate hierarchical agglomerative clustering (HAC) algorithm which scales to trillion-edge graphs. Our algorithm is based on a new approach to computing (1+\u03b5)-approximate HAC, which is a novel combination of the nearest-neighbor chain algorithm and the notion of (1+\u03b5)-approximate HAC. Our approach allows us to partition the graph among multiple machines and make significant progress in computing the clustering within each partition before any communication with other partitions is needed.<\/jats:p>\n                  <jats:p>We evaluate TeraHAC on a number of real-world and synthetic graphs of up to 8 trillion edges. We show that TeraHAC requires over 100x fewer rounds compared to previously known approaches for computing HAC. It is up to 8.3x faster than SCC, the state-of-the-art distributed algorithm for hierarchical clustering, while achieving 1.16x higher quality. In fact, TeraHAC essentially retains the quality of the celebrated HAC algorithm while significantly improving the running time.<\/jats:p>","DOI":"10.1145\/3617341","type":"journal-article","created":{"date-parts":[[2023,11,13]],"date-time":"2023-11-13T17:28:39Z","timestamp":1699896519000},"page":"1-27","source":"Crossref","is-referenced-by-count":11,"title":["TeraHAC: Hierarchical Agglomerative Clustering of Trillion-Edge Graphs"],"prefix":"10.1145","volume":"1","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0685-064X","authenticated-orcid":false,"given":"Laxman","family":"Dhulipala","sequence":"first","affiliation":[{"name":"UMD &amp; Google Research, Bethesda, MD, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9347-0041","authenticated-orcid":false,"given":"Jakub","family":"\u0141\u0105cki","sequence":"additional","affiliation":[{"name":"Google Research, New York, NY, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-9636-0622","authenticated-orcid":false,"given":"Jason","family":"Lee","sequence":"additional","affiliation":[{"name":"Google Research, New York, NY, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6705-5629","authenticated-orcid":false,"given":"Vahab","family":"Mirrokni","sequence":"additional","affiliation":[{"name":"Google Research, New York, NY, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2023,11,13]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Advances in Neural Information Processing Systems (NeurIPS)","volume":"32","author":"Abboud Amir","year":"2019","unstructured":"Amir Abboud, Vincent Cohen-Addad, and Hussein Houdrouge. Subquadratic high-dimensional hierarchical clustering. In Advances in Neural Information Processing Systems (NeurIPS), volume 32, 2019."},{"key":"e_1_2_1_2_1","volume-title":"Streaming systems: the what, where, when, and how of large-scale data processing","author":"Akidau Tyler","year":"2018","unstructured":"Tyler Akidau, Slava Chernyak, and Reuven Lax. Streaming systems: the what, where, when, and how of large-scale data processing. 2018."},{"key":"e_1_2_1_3_1","unstructured":"Apache Software Foundation. Apache Beam."},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.14778\/3324301.3324307"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2835776.2835829"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1023\/B:MACH.0000033116.57574.95"},{"key":"e_1_2_1_7_1","volume-title":"Advances in Neural Information Processing Systems (NeurIPS)","volume":"30","author":"Bateni Mohammadhossein","year":"2017","unstructured":"Mohammadhossein Bateni, Soheil Behnezhad, Mahsa Derakhshan, MohammadTaghi Hajiaghayi, Raimondas Kiveris, Silvio Lattanzi, and Vahab Mirrokni. Affinity clustering: Hierarchical clustering at scale. In Advances in Neural Information Processing Systems (NeurIPS), volume 30, 2017."},{"key":"e_1_2_1_8_1","volume-title":"Construction d'une classification ascendante hi\u00e9rarchique par la recherche en cha\u00eene des voisins r\u00e9ciproques. Cahiers de l'analyse des donn\u00e9es, 7(2):209--218","author":"Benz\u00e9cri J-P","year":"1982","unstructured":"J-P Benz\u00e9cri. Construction d'une classification ascendante hi\u00e9rarchique par la recherche en cha\u00eene des voisins r\u00e9ciproques. Cahiers de l'analyse des donn\u00e9es, 7(2):209--218, 1982."},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1002\/9781118601181"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3350755.3400254"},{"key":"e_1_2_1_11_1","volume-title":"Advances in Neural Information Processing Systems (NeurIPS)","volume":"26","author":"Blundell Charles","year":"2013","unstructured":"Charles Blundell and Yee Whye Teh. Bayesian hierarchical community discovery. In Advances in Neural Information Processing Systems (NeurIPS), volume 26, 2013."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/988672.988752"},{"key":"e_1_2_1_13_1","volume-title":"Recent advances in graph partitioning","author":"Bulu\u00e7 Aydin","year":"2016","unstructured":"Aydin Bulu\u00e7, Henning Meyerhenke, Ilya Safro, Peter Sanders, and Christian Schulz. Recent advances in graph partitioning. Springer, 2016."},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611972740.43"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1806596.1806638"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2623330.2623743"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/3321386"},{"key":"e_1_2_1_18_1","first-page":"2069","volume-title":"Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research","author":"Cohen-Addad Vincent","year":"2021","unstructured":"Vincent Cohen-Addad, Silvio Lattanzi, Slobodan Mitrovic, Ashkan Norouzi-Fard, Nikos Parotsidis, and Jakub Tarnawski. Correlation clustering in constant many parallel rounds. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 2069--2078, 2021."},{"key":"e_1_2_1_19_1","volume-title":"Sixth International Workshop on Information Integration on the Web (IIWeb-07)","author":"Culotta Aron","year":"2007","unstructured":"Aron Culotta, Pallika Kanani, Robert Hall, Michael Wick, and Andrew McCallum. Author disambiguation using error-driven machine learning with a ranking loss function. In Sixth International Workshop on Information Integration on the Web (IIWeb-07), Vancouver, Canada, 2007."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/2897518.2897527"},{"key":"e_1_2_1_21_1","first-page":"137","volume-title":"OSDI'04: Sixth Symposium on Operating System Design and Implementation","author":"Dean Jeffrey","year":"2004","unstructured":"Jeffrey Dean and Sanjay Ghemawat. MapReduce: Simplified data processing on large clusters. In OSDI'04: Sixth Symposium on Operating System Design and Implementation, pages 137--150, San Francisco, CA, 2004."},{"key":"e_1_2_1_22_1","volume-title":"Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies","volume":"1","author":"Devlin Jacob","year":"2018","unstructured":"Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 4171--4186, 2018."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1014052.1014118"},{"key":"e_1_2_1_24_1","volume-title":"ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI)","author":"Dhulipala Laxman","year":"2022","unstructured":"Laxman Dhulipala, Guy E Blelloch, Yan Gu, and Yihan Sun. Pac-trees: Supporting parallel and compressed purely- functional collections. In ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI), 2022."},{"key":"e_1_2_1_25_1","volume-title":"2022 Conference on Neural Information Processing Systems (NeurIPS).","author":"Dhulipala Laxman","unstructured":"Laxman Dhulipala, David Eisenstat, Jakub Lacki, Vahab Mirrokni, and Jessica Shi. Hierarchical agglomerative graph clustering in poly-logarithmic depth. In 2022 Conference on Neural Information Processing Systems (NeurIPS)."},{"key":"e_1_2_1_26_1","first-page":"2676","volume-title":"International Conference on Machine Learning (ICML)","author":"Dhulipala Laxman","year":"2021","unstructured":"Laxman Dhulipala, David Eisenstat, Jakub \u0141\u0105cki, Vahab Mirrokni, and Jessica Shi. Hierarchical agglomerative graph clustering in nearly-linear time. In International Conference on Machine Learning (ICML), pages 2676--2686, 2021."},{"key":"e_1_2_1_27_1","volume-title":"TeraHAC: Hierarchical agglomerative clustering of trillion-edge graphs. arXiv preprint arXiv:2308.03578","author":"Dhulipala Laxman","year":"2023","unstructured":"Laxman Dhulipala, Jakub Lacki, Jason Lee, and Vahab Mirrokni. TeraHAC: Hierarchical agglomerative clustering of trillion-edge graphs. arXiv preprint arXiv:2308.03578, 2023."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3447548.3467180"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2007.07.002"},{"key":"e_1_2_1_30_1","first-page":"297","volume-title":"International Conference on Machine Learning (ICML)","author":"Katherine","year":"2005","unstructured":"Katherine A. Heller and Zoubin Ghahramani. Bayesian hierarchical clustering. In International Conference on Machine Learning (ICML), pages 297--304, 2005."},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1177\/1176934317734220"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1109\/BigDataService.2015.67"},{"key":"e_1_2_1_33_1","first-page":"27","article-title":"A distributed single-linkage hierarchical clustering algorithm using MapReduce","volume":"23","author":"Jin Chen","year":"2013","unstructured":"Chen Jin, Md Mostofa Ali Patwary, Ankit Agrawal, William Hendrix, Wei-keng Liao, and Alok Choudhary. DiSC: A distributed single-linkage hierarchical clustering algorithm using MapReduce. IEEE Transactions on Big Data, 23:27, 2013.","journal-title":"IEEE Transactions on Big Data"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.5555\/1873601.1873677"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3097983.3098079"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1772690.1772751"},{"key":"e_1_2_1_37_1","volume-title":"Connected components at scale via local contractions. arXiv preprint arXiv:1807.10727","author":"\u0141\u0105cki Jakub","year":"2018","unstructured":"Jakub \u0141\u0105cki, Vahab Mirrokni, and Michal Wlodarczyk. Connected components at scale via local contractions. arXiv preprint arXiv:1807.10727, 2018."},{"key":"e_1_2_1_38_1","volume-title":"SNAP Datasets: Stanford large network dataset collection","author":"Leskovec Jure","year":"2014","unstructured":"Jure Leskovec and Andrej Krevl. SNAP Datasets: Stanford large network dataset collection, 2014."},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/1807167.1807184"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1561\/106.00000003"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/3447548.3467404"},{"key":"e_1_2_1_42_1","volume-title":"Machine Learning and Knowledge Discovery in Databases: European Conference (ECML PKDD)","author":"Moseley Benjamin","year":"2019","unstructured":"Benjamin Moseley, Kefu Lu, Silvio Lattanzi, and Thomas Lavastida. A framework for parallelizing hierarchical clustering methods. In Machine Learning and Knowledge Discovery in Databases: European Conference (ECML PKDD), 2019."},{"key":"e_1_2_1_43_1","first-page":"2440","volume-title":"Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research","author":"Moseley Benjamin","year":"2021","unstructured":"Benjamin Moseley, Sergei Vassilvtiskii, and Yuyan Wang. Hierarchical clustering in general metric spaces using approximate nearest neighbors. In Proceedings of The 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research, pages 2440--2448, 2021."},{"key":"e_1_2_1_44_1","first-page":"3094","volume-title":"Advances in Neural Information Processing Systems (NeurIPS)","author":"Moseley Benjamin","year":"2017","unstructured":"Benjamin Moseley and Joshua R. Wang. Approximation bounds for hierarchical clustering: Average linkage, bisecting k-means, and local search. In Advances in Neural Information Processing Systems (NeurIPS), pages 3094--3103, 2017."},{"key":"e_1_2_1_45_1","volume-title":"Modern hierarchical, agglomerative clustering algorithms. arXiv preprint arXiv:1109.2378","author":"M\u00fcllner Daniel","year":"2011","unstructured":"Daniel M\u00fcllner. Modern hierarchical, agglomerative clustering algorithms. arXiv preprint arXiv:1109.2378, 2011."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.18637\/jss.v053.i09"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1002\/widm.53"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1002\/widm.1219"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1073\/pnas.0601602103"},{"key":"e_1_2_1_50_1","volume-title":"Advances in Neural Information Processing Systems (NeurIPS)","volume":"14","author":"Ng Andrew","year":"2001","unstructured":"Andrew Ng, Michael Jordan, and Yair Weiss. On spectral clustering: Analysis and an algorithm. In Advances in Neural Information Processing Systems (NeurIPS), volume 14, 2001."},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3544216.3544265"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-47431-1"},{"key":"e_1_2_1_53_1","volume-title":"Hans Peter Kriegel, and Xiaowei Xu. Dbscan revisited, revisited: why and how you should (still) use dbscan. ACM Transactions on Database Systems (TODS), 42(3):1--21","author":"Schubert Erich","year":"2017","unstructured":"Erich Schubert, J\u00f6rg Sander, Martin Ester, Hans Peter Kriegel, and Xiaowei Xu. Dbscan revisited, revisited: why and how you should (still) use dbscan. ACM Transactions on Database Systems (TODS), 42(3):1--21, 2017."},{"key":"e_1_2_1_54_1","unstructured":"Sklearn Authors. scipy.cluster.DBSCAN. https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.cluster.DBSCAN.html."},{"key":"e_1_2_1_55_1","unstructured":"Sklearn Authors. sklearn.cluster.AgglomerativeClustering. https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.cluster.AgglomerativeClustering.html."},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1093\/oxfordjournals.molbev.a025590"},{"key":"e_1_2_1_57_1","volume-title":"Scaling hierarchical agglomerative clustering to billion-sized datasets. arXiv preprint arXiv:2105.11653","author":"Sumengen Baris","year":"2021","unstructured":"Baris Sumengen, Anand Rajagopalan, Gui Citovsky, David Simcha, Olivier Bachem, Pradipta Mitra, Sam Blasiak, Mason Liang, and Sanjiv Kumar. Scaling hierarchical agglomerative clustering to billion-sized datasets. arXiv preprint arXiv:2105.11653, 2021."},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1145\/3342195.3387517"},{"key":"e_1_2_1_59_1","volume-title":"Bias reduction via cooperative bargaining in synthetic graph dataset generation. arXiv preprint arXiv:2205.13901","author":"Wassington Axel","year":"2022","unstructured":"Axel Wassington and Sergi Abadal. Bias reduction via cooperative bargaining in synthetic graph dataset generation. arXiv preprint arXiv:2205.13901, 2022."},{"key":"e_1_2_1_60_1","volume-title":"International Conference on Machine Learning (ICML)","volume":"80","author":"Yaroslavtsev Grigory","year":"2018","unstructured":"Grigory Yaroslavtsev and Adithya Vadapalli. Massively parallel algorithms and hardness for single-linkage clustering under lp distances. In International Conference on Machine Learning (ICML), volume 80 of Proceedings of Machine Learning Research, pages 5596--5605, 2018."},{"key":"e_1_2_1_61_1","volume-title":"Proc. VLDB Endow., 15(2)","author":"Yu Shangdi","year":"2021","unstructured":"Shangdi Yu, Yiqiu Wang, Yan Gu, Laxman Dhulipala, and Julian Shun. Parchain: A framework for parallel hierarchical agglomerative clustering using nearest-neighbor chain. Proc. VLDB Endow., 15(2), 2021."},{"key":"e_1_2_1_62_1","doi-asserted-by":"publisher","DOI":"10.1145\/584792.584877"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3617341","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3617341","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T12:45:53Z","timestamp":1750164353000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3617341"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,11,13]]},"references-count":62,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2023,11,13]]}},"alternative-id":["10.1145\/3617341"],"URL":"https:\/\/doi.org\/10.1145\/3617341","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,11,13]]}}}