Universal Compression of a Mixture of Parametric Sources with Side Information

Ahmad Beirami, Liling Huang, Mohsen Sardari, Faramarz FekriarXiv 2014

Introduction

Universal lossless compression algorithms, such as Gzip or Context-Tree Weighting, are designed to compress data without prior knowledge of its exact statistical distribution. While highly effective for large files, these algorithms face a significant "learning penalty" or redundancy when applied to short data sequences, such as network packets (typically around 1.5 KB). In these cases, the overhead required to learn the data's patterns before efficient compression can begin often outweighs the benefits.

This challenge is compounded by the fact that network traffic is a mixture of diverse parametric sources, including different users, applications, and file types. This paper addresses how an encoder (e.g., a router) and a decoder (e.g., a receiver) can utilize a shared memory of past packets—referred to as side information—to optimally compress new, short packets originating from an unknown mixture of sources.

Theoretical Framework

The authors analyze the problem through the lens of average minimax redundancy, which represents the worst-case overhead above the theoretical entropy limit. They compare three primary scenarios:

  1. Ucomp: Standard universal compression without side information.
  2. UcompM: Compression using a shared memory of past packets, but without knowing which specific source generated which packet.
  3. UcompMS: Compression using shared memory where an "oracle" provides perfect labels for the source of each packet.
System model for a mixture of K parametric sources communicating from encoder E to decoder D.

A key theoretical contribution of the paper is proving that $UcompM$ performs asymptotically as well as $UcompMS$. This suggests that with sufficient memory, clustering unlabeled side information is mathematically equivalent to having perfect source labels. The study demonstrates that grouping memory into distinct source clusters is essential; attempting to use a single, massive context model for a mixed-source environment leads to excessive complexity and poor learning rates.

The UcompMc Algorithm

To bridge theory and practice, the authors propose UcompMc, a practical clustering-based compression scheme. The system first filters out incompressible packets, such as encrypted data or already-compressed video. For the remaining packets, it extracts a simple feature vector based on the empirical frequency of each byte.

Flowchart of the practical UcompMc compression scheme.

Because network packets are short, complex modeling can lead to overfitting. Instead, the algorithm uses the Hellinger distance metric to cluster packets. The authors evaluated both standard k-means and a non-parametric k-nearest neighbors (k-NN) approach. Once a new packet arrives, it is matched to the closest historical cluster, and that cluster's statistics are used as a primer for compression.

Key Results and Insights

The proposed methods were tested on both synthetic mixture models and real-world network traces from mobile users.

  • Empirical Performance: On real network traces, the clustered UcompMc approach using the Lite PAQ compressor achieved a compression rate of 2.43 bits/byte, representing a ~70% reduction in traffic. In contrast, standard compression without memory required 4.66 bits/byte, and memory-based compression without clustering required 3.25 bits/byte.
  • Algorithm Efficiency: The non-parametric k-NN algorithm significantly outperformed k-means, running 9x faster and providing 8% better compression. Its success stems from its ability to dynamically create sub-clusters without requiring a predefined number of sources ($K$).
  • Feature Selection: The use of simple byte frequencies (memoryless assumption) for clustering proved highly effective. It avoided the "curse of dimensionality" and overfitting that typically plague more complex feature extraction on short sequences.

Conclusion and Future Work

The research highlights a fundamental trade-off between speed and compression efficiency. While statistical compressors like Lite PAQ offer superior reduction (~70%), dictionary-based methods like Gzip are significantly faster (~60% reduction but 10x faster). Consequently, statistical compression is best suited for bandwidth-constrained environments like wireless networks, while dictionary methods remain preferable for high-speed wired infrastructure.

Future work may explore more advanced, length-aware feature extraction techniques that could exploit higher-order structural similarities between packets without succumbing to overfitting.

Summary updated

BibTeX
@misc{beirami2014universal,
  author = {Ahmad Beirami and Liling Huang and Mohsen Sardari and Faramarz Fekri},
  title = {{Universal Compression of a Mixture of Parametric Sources with Side Information}},
  year = {2014},
  eprint = {1411.7607},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.7607},
}
Figure