Improving matrix-vector multiplication via lossless grammar-compressed matrices

Author:

Ferragina Paolo1,Manzini Giovanni1,Gagie Travis2,Köppl Dominik3,Navarro Gonzalo4,Striani Manuel5,Tosoni Francesco1

Affiliation:

1. University of Pisa

2. Dalhousie University

3. Tokyo Medical and Dental University

4. University of Chile

5. University of Eastern Piedmont

Abstract

As nowadays Machine Learning (ML) techniques are generating huge data collections, the problem of how to efficiently engineer their storage and operations is becoming of paramount importance. In this article we propose a new lossless compression scheme for real-valued matrices which achieves efficient performance in terms of compression ratio and time for linear-algebra operations. Experiments show that, as a compressor, our tool is clearly superior to gzip and it is usually within 20% of xz in terms of compression ratio. In addition, our compressed format supports matrix-vector multiplications in time and space proportional to the size of the compressed representation, unlike gzip and xz that require the full decompression of the compressed matrix. To our knowledge our lossless compressor is the first one achieving time and space complexities which match the theoretical limit expressed by the k -th order statistical entropy of the input. To achieve further time/space reductions, we propose column-reordering algorithms hinging on a novel column-similarity score. Our experiments on various data sets of ML matrices show that our column reordering can yield a further reduction of up to 16% in the peak memory usage during matrix-vector multiplication. Finally, we compare our proposal against the state-of-the-art Compressed Linear Algebra (CLA) approach showing that ours runs always at least twice faster (in a multi-thread setting), and achieves better compressed space occupancy and peak memory usage. This experimentally confirms the provably effective theoretical bounds we show for our compressed-matrix approach.

Publisher

Association for Computing Machinery (ACM)

Subject

General Earth and Planetary Sciences,Water Science and Technology,Geography, Planning and Development

Reference35 articles.

1. Table Compression by Record Intersections

2. ASA , Statistical Computing & Graphics Sections 2009 . Data Expo 2009 - Airline on-time performance. https://community.amstat.org/jointscsg-section/dataexpo/dataexpo2009 . [Online; accessed 21-Sep-2021]. ASA, Statistical Computing & Graphics Sections 2009. Data Expo 2009 - Airline on-time performance. https://community.amstat.org/jointscsg-section/dataexpo/dataexpo2009. [Online; accessed 21-Sep-2021].

3. Leon Bottou . 2007. The infinite MNIST dataset. https://leon.bottou.org/projects/infimnist. https://leon.bottou.org/projects/infimnist [Online ; accessed 21- Sep- 2021 ]. Leon Bottou. 2007. The infinite MNIST dataset. https://leon.bottou.org/projects/infimnist. https://leon.bottou.org/projects/infimnist [Online; accessed 21-Sep-2021].

4. Improving table compression with combinatorial optimization

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Enabling Efficient NVM-Based Text Analytics without Decompression;2024 IEEE 40th International Conference on Data Engineering (ICDE);2024-05-13

2. Collapsing the Hierarchy of Compressed Data Structures: Suffix Arrays in Optimal Compressed Space;2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS);2023-11-06

3. Efficient and Compact Representations of Deep Neural Networks via Entropy Coding;IEEE Access;2023

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3