Paper 2025/1733

Differentially Private Compression and the Sensitivity of LZ77

Jeremiah Blocki, Purdue University West Lafayette
Seunghoon Lee, University of Waterloo
Brayan Sebastian Yepes-Garcia
Abstract

We initiate the study of differentially private data-compression schemes motivated by the insecurity of the popular "Compress-Then-Encrypt" framework. Data compression is a useful tool which exploits redundancy in data to reduce storage/bandwidth when files are stored or transmitted. However, if the contents of a file are confidential then the length of a compressed file might leak confidential information about the content of the file itself. Encrypting a compressed file does not eliminate this leakage as data encryption schemes are only designed to hide the content of confidential message instead of the length of the message. In our proposed Differentially Private Compress-Then-Encrypt framework, we add a random positive amount of padding to the compressed file to ensure that any leakage satisfies the rigorous privacy guarantee of $(\epsilon,\delta)$-differential privacy. The amount of padding that needs to be added depends on the sensitivity of the compression scheme to small changes in the input, i.e., to what degree can changing a single character of the input message impact the length of the compressed file. While some popular compression schemes are highly sensitive to small changes in the input, we argue that effective data compression schemes do not necessarily have high sensitivity. Our primary technical contribution is analyzing the fine-grained sensitivity of the LZ77 compression scheme (IEEE Trans. Inf. Theory 1977) which is one of the most common compression schemes used in practice. We show that the global sensitivity of the LZ77 compression scheme has the upper bound $\mathcal{O}(W^{2/3}\log n)$ where $W\leq n$ denotes the size of the sliding window. When $W=n$, we show the lower bound $\Omega(n^{2/3}\log^{1/3}n)$ for the global sensitivity of the LZ77 compression scheme which is tight up to a sublogarithmic factor.

Metadata
Available format(s)
PDF
Category
Foundations
Publication info
A major revision of an IACR publication in TCC 2025
Keywords
Differential PrivacyData CompressionLZ77Global Sensitivity
Contact author(s)
jblocki @ purdue edu
seunghoon lee @ uwaterloo ca
byepesg @ unal edu co
History
2025-09-23: revised
2025-09-22: received
See all versions
Short URL
https://ia.cr/2025/1733
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/1733,
      author = {Jeremiah Blocki and Seunghoon Lee and Brayan Sebastian Yepes-Garcia},
      title = {Differentially Private Compression and the Sensitivity of {LZ77}},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1733},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1733}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.