{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T19:07:55Z","timestamp":1779131275750,"version":"3.51.4"},"reference-count":63,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T00:00:00Z","timestamp":1779062400000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["III-2312991"],"award-info":[{"award-number":["III-2312991"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2026,5,18]]},"abstract":"<jats:p>Matrix multiplication is commonly used in many data-intensive applications, such as in analytics, machine learning, and scientific computing. While the data inputs and data outputs of matrix multiplication often originate from and are stored in relational databases, the matrix multiplication process itself is typically performed outside of the database in order to use existing libraries and tools that are not part of the database. This introduces the overhead of data export and import in the data processing pipeline, while raising data privacy concerns.<\/jats:p>\n                  <jats:p>We propose SPALM (Sparsity-Pattern-Adaptive Library for Matrices), a library that performs sparsity-sensitive matrix multiplication. SPALM utilizes a novel matrix multiplication algorithm that applies different matrix multiplication techniques depending on the sparsity of fine-grained regions of the matrices, and does not require the user to have any prior knowledge of the sparsity patterns to get good performance. We show through experiments that SPALM achieves up to 34\u00d7 speedup on tasks involving both real-world and synthetic matrices with varying sparsity patterns compared to popular matrix multiplication libraries on CPUs. We also integrate SPALM as an operator in DuckDB, which allows users to declaratively specify tasks involving matrix multiplication in the context of a database.<\/jats:p>","DOI":"10.1145\/3802113","type":"journal-article","created":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T18:19:16Z","timestamp":1779128356000},"page":"1-27","source":"Crossref","is-referenced-by-count":0,"title":["SPALM: A Sparsity-Pattern-Adaptive Library for Matrices"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-5789-2026","authenticated-orcid":false,"given":"Junyoung","family":"Kim","sequence":"first","affiliation":[{"name":"Computer Science, Columbia University, New York, New York, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9397-6990","authenticated-orcid":false,"given":"Kenneth A.","family":"Ross","sequence":"additional","affiliation":[{"name":"Computer Science, Columbia University, New York, New York, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2026,5,18]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Personal Data Protection Act. Retrieved","year":"2025","unstructured":"2025. Personal Data Protection Act. Retrieved October 6, 2025 from https:\/\/www.pdpc.gov.sg\/overview-of-pdpa\/thelegislation\/ personal-data-protection-act"},{"key":"e_1_2_1_2_1","volume-title":"How can we be so dense? The benefits of using highly sparse representations. arXiv preprint arXiv:1903.11257","author":"Ahmad Subutai","year":"2019","unstructured":"Subutai Ahmad and Luiz Scheinkman. 2019. How can we be so dense? The benefits of using highly sparse representations. arXiv preprint arXiv:1903.11257 (2019)."},{"key":"e_1_2_1_3_1","volume-title":"2014 IEEE 28th International Parallel and Distributed Processing Symposium. IEEE, 1213-1222","author":"Aktulga Hasan Metin","year":"2014","unstructured":"Hasan Metin Aktulga, Aydin Bulu\u00e7, Samuel Williams, and Chao Yang. 2014. Optimizing sparse matrix-multiple vectors multiplication for nuclear configuration interaction calculations. In 2014 IEEE 28th International Parallel and Distributed Processing Symposium. IEEE, 1213-1222."},{"key":"e_1_2_1_4_1","volume-title":"Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150","author":"Beltagy Iz","year":"2020","unstructured":"Iz Beltagy, Matthew E Peters, and Arman Cohan. 2020. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150 (2020)."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/3589266"},{"key":"e_1_2_1_6_1","volume-title":"International Conference on Machine Learning. PMLR, 992-1004","author":"Blalock Davis","year":"2021","unstructured":"Davis Blalock and John Guttag. 2021. Multiplying matrices without multiplying. In International Conference on Machine Learning. PMLR, 992-1004."},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2767386.2767414"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1250790.1250877"},{"key":"e_1_2_1_9_1","volume-title":"Towards linear algebra over normalized data. arXiv preprint arXiv:1612.07448","author":"Chen Lingjiao","year":"2016","unstructured":"Lingjiao Chen, Arun Kumar, Jeffrey Naughton, and Jignesh M Patel. 2016. Towards linear algebra over normalized data. arXiv preprint arXiv:1612.07448 (2016)."},{"key":"e_1_2_1_10_1","volume-title":"Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509","author":"Child Rewon","year":"2019","unstructured":"Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. 2019. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509 (2019)."},{"key":"e_1_2_1_11_1","unstructured":"Krzysztof Choromanski Valerii Likhosherstov David Dohan Xingyou Song Andreea Gane Tamas Sarlos Peter Hawkins Jared Davis Afroz Mohiuddin Lukasz Kaiser et al. 2020. Rethinking attention with performers. arXiv preprint arXiv:2009.14794 (2020)."},{"key":"e_1_2_1_12_1","volume-title":"Weight block sparsity: Training, compilation, and ai engine accelerators. arXiv preprint arXiv:2407.09453","author":"D'Alberto Paolo","year":"2024","unstructured":"Paolo D'Alberto, Taehee Jeong, Akshai Jain, Shreyas Manjunath, Mrinal Sarmah, Samuel Hsu, Yaswanth Raparti, and Nitesh Pipralia. 2024. Weight block sparsity: Training, compilation, and ai engine accelerators. arXiv preprint arXiv:2407.09453 (2024)."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/2049662.2049663"},{"key":"e_1_2_1_14_1","volume-title":"Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data. 1213-1223","author":"Deep Shaleen","year":"2020","unstructured":"Shaleen Deep, Xiao Hu, and Paraschos Koutris. 2020. Fast join project query evaluation using matrix multiplication. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data. 1213-1223."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.parco.2018.06.009"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1007\/s00778-017-0476-3"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.14778\/3476249.3476288"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/3571157"},{"key":"e_1_2_1_19_1","volume-title":"llama.cpp: LLM inference in C\/C. https:\/\/github.com\/ggmlorg\/ llama.cpp. GitHub repository","author":"Gerganov Georgi","year":"2023","unstructured":"Georgi Gerganov and the ggml-org contributors. 2023. llama.cpp: LLM inference in C\/C. https:\/\/github.com\/ggmlorg\/ llama.cpp. GitHub repository; Initial release: March 10, 2023; Accessed: October 17, 2025."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1356052.1356053"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1038\/s41586-020-2649-2"},{"key":"e_1_2_1_22_1","first-page":"1","article-title":"Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks","volume":"22","author":"Hoefler Torsten","year":"2021","unstructured":"Torsten Hoefler, Dan Alistarh, Tal Ben-Nun, Nikoli Dryden, and Alexandra Peste. 2021. Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research 22, 241 (2021), 1-124.","journal-title":"Journal of Machine Learning Research"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3517869"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.14778\/3547305.3547326"},{"key":"e_1_2_1_25_1","volume-title":"2023 IEEE International Symposium on High-Performance Computer Architecture (HPCA). IEEE, 42-55","author":"Hwang Ranggi","year":"2023","unstructured":"Ranggi Hwang, Minhoo Kang, Jiwon Lee, Dongyun Kam, Youngjoo Lee, and Minsoo Rhu. 2023. GROW: A rowstationary sparse-dense GEMM accelerator for memory-efficient graph convolutional neural networks. In 2023 IEEE International Symposium on High-Performance Computer Architecture (HPCA). IEEE, 42-55."},{"key":"e_1_2_1_26_1","volume-title":"Accessed","author":"Intel Corporation","year":"2020","unstructured":"Intel Corporation. 2020-present. Intel\u00ae oneAPI Toolkits. https:\/\/software.intel.com\/content\/www\/us\/en\/develop\/ tools\/oneapi.html. Version: 2024.2.1, Accessed: March 16, 2026."},{"key":"e_1_2_1_27_1","volume-title":"2016 IEEE 32nd International Conference on Data Engineering (ICDE). IEEE, 823-834","author":"Kernert David","year":"2016","unstructured":"David Kernert, Wolfgang Lehner, and Frank K\u00f6hler. 2016. Topology-aware optimization of big sparse matrices and matrix multiplications on main-memory systems. In 2016 IEEE 32nd International Conference on Data Engineering (ICDE). IEEE, 823-834."},{"key":"e_1_2_1_28_1","volume-title":"FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inference. arXiv preprint arXiv:2101.05615","author":"Khudia Daya","year":"2021","unstructured":"Daya Khudia, Jianyu Huang, Protonu Basu, Summer Deng, Haixin Liu, Jongsoo Park, and Mikhail Smelyanskiy. 2021. FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inference. arXiv preprint arXiv:2101.05615 (2021)."},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.21105\/joss.01244"},{"key":"e_1_2_1_30_1","unstructured":"Eldar Kurtic Denis Kuznedelev Elias Frantar Michael Goin and Dan Alistarh. 2023. Sparse Fine-tuning for Inference Acceleration of Large Language Models. arXiv:2310.06927 [cs.CL] https:\/\/arxiv.org\/abs\/2310.06927"},{"key":"e_1_2_1_31_1","unstructured":"Vihan Lakshman Anshumali Shrivastava and Tharun Medini. 2024. Accelerating Large-Scale Neural Network Training on CPUs with ThirdAI and AWS Graviton. AWS Machine Learning Blog. https:\/\/aws.amazon.com\/blogs\/machinelearning\/ accelerating-large-scale-neural-network-training-on-cpus-with-thirdai-and-aws-graviton\/ Published on February 29 2024."},{"key":"e_1_2_1_32_1","volume-title":"Are sixteen heads really better than one? Advances in neural information processing systems 32","author":"Michel Paul","year":"2019","unstructured":"Paul Michel, Omer Levy, and Graham Neubig. 2019. Are sixteen heads really better than one? Advances in neural information processing systems 32 (2019)."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.14778\/3402707.3402723"},{"key":"e_1_2_1_34_1","volume-title":"2024 IEEE International Symposium on Workload Characterization (IISWC). IEEE, 169-180","author":"Na Seonjin","year":"2024","unstructured":"Seonjin Na, Geonhwa Jeong, Byung Hoon Ahn, Jeffrey Young, Tushar Krishna, and Hyesoon Kim. 2024. Understanding performance implications of llm inference on cpus. In 2024 IEEE International Symposium on Workload Characterization (IISWC). IEEE, 169-180."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/3229710.3229720"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3503221.3508431"},{"key":"e_1_2_1_37_1","volume-title":"The relational data borg is learning. arXiv preprint arXiv:2008.07864","author":"Olteanu Dan","year":"2020","unstructured":"Dan Olteanu. 2020. The relational data borg is learning. arXiv preprint arXiv:2008.07864 (2020)."},{"key":"e_1_2_1_38_1","volume-title":"Accessed","author":"Project BLAS","year":"2011","unstructured":"OpenBLAS Project. 2011-present. OpenBLAS. http:\/\/www.openblas.net\/. Version: 0.3.27, Accessed: March 16, 2026."},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3514221.3526141"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3320212"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1654059.1654069"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1162\/tacl_a_00353"},{"key":"e_1_2_1_43_1","volume-title":"2021 29th Euromicro International Conference on Parallel, Distributed and Network-Based Processing (PDP). IEEE, 122-125","author":"Juan Pau San","year":"2021","unstructured":"Pau San Juan, Pedro Alonso-Jord\u00e1, and Enrique S Quintana-Ort\u00ed. 2021. High performance and energy efficient integer matrix multiplication for deep learning. In 2021 29th Euromicro International Conference on Parallel, Distributed and Network-Based Processing (PDP). IEEE, 122-125."},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/3299869.3324961"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2882903.2882939"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/3588717"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2025.3550414"},{"key":"e_1_2_1_48_1","volume-title":"Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15, 1","author":"Srivastava Nitish","year":"2014","unstructured":"Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research 15, 1 (2014), 1929-1958."},{"key":"e_1_2_1_49_1","unstructured":"Wenbo Sun Qiming Guo Wenlu Wang and Rihan Hai. 2025. Accessible and Portable LLM Inference by Compiling Computational Graphs into SQL. arXiv:2502.02818 [cs.DB] https:\/\/arxiv.org\/abs\/2502.02818"},{"key":"e_1_2_1_50_1","volume-title":"Proceedings of the 35th International Conference on Scientific and Statistical Database Management. 1-12","author":"Sun Wenbo","year":"2023","unstructured":"Wenbo Sun, Asterios Katsifodimos, and Rihan Hai. 2023. Accelerating machine learning queries with linear algebra query processing. In Proceedings of the 35th International Conference on Scientific and Statistical Database Management. 1-12."},{"key":"e_1_2_1_51_1","volume-title":"Juliette Love, et al.","author":"Team Gemma","year":"2024","unstructured":"Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivi\u00e8re, Mihir Sanjay Kale, Juliette Love, et al. 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295 (2024)."},{"key":"e_1_2_1_52_1","unstructured":"Daniel ten Wolde Tavneet Singh G\u00e1bor Sz\u00e1rnyas and Peter A Boncz. 2023. DuckPGQ: Efficient Property Graph Queries in an analytical RDBMS.. In CIDR."},{"key":"e_1_2_1_53_1","unstructured":"The University of Florida\/Texas A&M Sparse Matrix Collection. 2025-10-11. GHS_indef\/exdata_1 Matrix Description. http:\/\/sparse.tamu.edu\/GHS_indef\/exdata_1"},{"key":"e_1_2_1_54_1","unstructured":"The University of Florida\/Texas A&M Sparse Matrix Collection. 2025-10-11. Gupta\/gupta3 Matrix Description. http:\/\/sparse.tamu.edu\/Gupta\/gupta3"},{"key":"e_1_2_1_55_1","unstructured":"The University of Florida\/Texas A&M Sparse Matrix Collection. 2025-10-11. Newman\/power Matrix Description. http:\/\/sparse.tamu.edu\/Newman\/power"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/1798596.1798597"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1038\/s41592-019-0686-2"},{"key":"e_1_2_1_58_1","volume-title":"International conference on machine learning. PMLR, 1058-1066","author":"Wan Li","year":"2013","unstructured":"Li Wan, Matthew Zeiler, Sixin Zhang, Yann Le Cun, and Rob Fergus. 2013. Regularization of neural networks using dropconnect. In International conference on machine learning. PMLR, 1058-1066."},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1145\/3591302"},{"key":"e_1_2_1_60_1","first-page":"345","volume-title":"Proceedings of the 21th International Conference on Very Large Data Bases (VLDB '95)","author":"Weipeng","unstructured":"Weipeng P. Yan and Per-\u00c5ke Larson. 1995. Eager Aggregation and Lazy Aggregation. In Proceedings of the 21th International Conference on Very Large Data Bases (VLDB '95). Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 345-357."},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.1007\/s11227-022-04336-3"},{"key":"e_1_2_1_62_1","volume-title":"Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al.","author":"Zaheer Manzil","year":"2020","unstructured":"Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. 2020. Big bird: Transformers for longer sequences. Advances in neural information processing systems 33 (2020), 17283-17297."},{"key":"e_1_2_1_63_1","volume-title":"Proceedings of the 1st ACM SIGMOD Joint International Workshop on Graph Data Management Experiences & Systems (GRADES) and Network Data Analytics (NDA). 1-8.","author":"Zhang Jianting","year":"2018","unstructured":"Jianting Zhang and Le Gruenwald. 2018. Regularizing irregularity: bitmap-based and portable sparse matrix multiplication for graph data on GPUs. In Proceedings of the 1st ACM SIGMOD Joint International Workshop on Graph Data Management Experiences & Systems (GRADES) and Network Data Analytics (NDA). 1-8."}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3802113","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3802113","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T18:35:14Z","timestamp":1779129314000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3802113"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,18]]},"references-count":63,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2026,5,18]]}},"alternative-id":["10.1145\/3802113"],"URL":"https:\/\/doi.org\/10.1145\/3802113","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,18]]}}}