TensorCodec: Compact Lossy Compression of Tensors without Strong Data Assumptions

Taehyung Kwon, Jihoon Ko, Jinhong Jung, Kijung Shin
9/19/2023
cs.LG

Official code: kbrother/TensorCodec (12 stars, last commit 2024-06-27).

Abstract

Many real-world datasets are represented as tensors, i.e., multi-dimensional arrays of numerical values. Storing them without compression often requires substantial space, which grows exponentially with the order. While many tensor compression algorithms are available, many of them rely on strong data assumptions regarding its order, sparsity, rank, and smoothness. In this work, we propose TENSORCODEC, a lossy compression algorithm for general tensors that do not necessarily adhere to strong input data assumptions. TENSORCODEC incorporates three key ideas. The first idea is Neural Tensor-Train Decomposition (NTTD) where we integrate a recurrent neural network into Tensor-Train Decomposition to enhance its expressive power and alleviate the limitations imposed by the low-rank assumption. Another idea is to fold the input tensor into a higher-order tensor to reduce the space required by NTTD. Finally, the mode indices of the input tensor are reordered to reveal patterns that can be exploited by NTTD for improved approximation. Our analysis and experiments on 8 real-world datasets demonstrate that TENSORCODEC is (a) Concise: it gives up to 7.38x more compact compression than the best competitor with similar reconstruction error, (b) Accurate: given the same budget for compressed size, it yields up to 3.33x more accurate reconstruction than the best competitor, (c) Scalable: its empirical compression time is linear in the number of tensor entries, and it reconstructs each entry in logarithmic time. Our code and datasets are available at https://github.com/kbrother/TensorCodec.

View on arXivView PDF

Code Implementations(1)

TensorCodec: Compact Lossy Compression of Tensors without Strong Data Assumptions (ICDM 23)

120PythonJul 22, 20222 years ago

Similar Papers

Cite this paper

@article{kwon2023tensorcodec,
  title  = {TensorCodec: Compact Lossy Compression of Tensors without Strong Data Assumptions},
  author = {Taehyung Kwon and Jihoon Ko and Jinhong Jung and Kijung Shin},
  year   = {2023},
  eprint = {2309.10310},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.10310v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.10310.svg)](https://codeofpaper.com/paper/2309.10310)

Discussion