The Twelvefold Way of Non-Sequential Lossless Compression

Taha Ameen ur Rahman, Alton S. Barbehenn, Xinan Chen, Hassan Dbouk, James A. Douglas, Yuncong Geng, Ian George, John B. Harvill, Sung Woo Jeon, Kartik K. Kansal, Kiwook Lee, Kelly A. Levick, Bochao Li, Ziyue Li, Yashaswini Murthy, Adarsh Muthuveeru-Subramaniam, S. Yagiz Olmez, Matthew J. Tomei, Tanya Veeravalli, Xuechao Wang, Eric A. Wayman, Fan Wu, Peng Xu, Shen Yan, Heling Zhang, Yibo Zhang, Yifan Zhang, Yibo Zhao, Sourya Basu, Lav R. Varshney · DOI

Introduction

Standard information theory typically treats data as a sequence of distinguishable symbols where order matters. However, many modern data sources—ranging from scientific records and biological sequences to social graphs and neural network architectures—exhibit "non-sequential" properties. For instance, in a collection of scientific measurements, the specific order in which records are stored might be irrelevant; only the frequency of each value (the histogram) matters.

This paper bridges the gap between enumerative combinatorics and information theory by establishing the fundamental lossless compression limits for data with these non-sequential invariances. By applying Gian-Carlo Rota’s "Twelvefold Way," the authors provide a systematic framework to calculate the entropy of data sources where the order of elements or the specific labeling of symbols may be irrelevant.

The Twelvefold Way Framework

The authors utilize the Twelvefold Way, a classic combinatorial classification of functions between two finite sets ($N$ "bins" and $X$ "colors"). This framework considers three functional restrictions crossed with four equivalence relations, creating twelve distinct scenarios for data representation.

Functional Restrictions

  1. No restrictions: Any bin can take any color.
  2. Injective: Each bin must receive a unique color (no repetitions).
  3. Surjective: Every available color must be used at least once.

Equivalence Relations (Symmetries)

  1. Equality: Standard sequential data where order and labels are fixed.
  2. Equality up to a permutation of $N$: Order doesn't matter (e.g., multisets).
  3. Equality up to a permutation of $X$: Labels don't matter (e.g., partitions).
  4. Equality up to permutations of both $N$ and $X$: Neither order nor labels matter.

While combinatorics has long classified these types of counting problems, information theory lacked a unified characterization of how these symmetries affect compression limits. The challenge lies in determining how probability distributions "collapse" when multiple distinct sequences are treated as a single equivalence class.

Methodology

To find the entropy bounds, the authors developed a five-step algorithm to transform standard i.i.d. source entropy into the entropy of symmetric equivalence classes:

  1. Generation: Generate i.i.d. sequences from a probability mass function (e.g., Uniform or Bernoulli).
  2. Filtering: Remove sequences that violate the functional restrictions (injective/surjective).
  3. Renormalization: Adjust the remaining probability distribution to sum to one.
  4. Grouping: Aggregate sequences into equivalence classes based on the chosen symmetry.
  5. Computation: Calculate the entropy of these grouped probabilities.

Key Insights and Results

The core contribution is characterizing how the probability of an equivalence class is the sum of the probabilities of all sequences within that class. This is the "information-theoretic" step beyond simple combinatorial counting. Each invariance (permutation of $N$ or $X$) represents a form of redundancy. By recognizing that a source is non-sequential, we can significantly lower the theoretical limit of how many bits are needed to represent it.

Figure 4: Entropy rates across various parameters and symmetries. (a) and (c) show entropy rate vs. $n$ for different restrictions; (b) shows entropy rate vs. alphabet size $x$; (d) shows entropy rate vs. Bernoulli parameter $p$.

Quantitative Comparisons

As shown in the figures above, the authors observed several critical trends:

  • Domain vs. Codomain: Equivalence in the domain $N$ (ignoring order) generally leads to a more significant reduction in entropy than equivalence in the codomain $X$ (ignoring labels), particularly as the number of bins $n$ grows. This is visible in the divergence between the orange and green dashed lines in panels (a) and (b).
  • Injective Limits: For injective functions, if permutations of $X$ are allowed, the entropy eventually drops to zero because all valid sequences fall into a single equivalence class as the constraints tighten.
  • Surjective Floors: For surjective functions, the requirement that every color must appear at least once creates a significant "floor" for entropy. However, allowing permutations of $N$ still drastically reduces the bits required compared to standard sequential storage.
  • Bernoulli Symmetry: In binary alphabets (panel d), the entropy rate follows the familiar parabolic shape of the binary entropy function, but the "Up to permutations" cases significantly flatten the curve, indicating that much of the information in a binary sequence is contained in the specific ordering of bits rather than just the count of ones and zeros.

Limitations and Future Work

While this work provides a comprehensive "lookup table" for researchers to determine maximum possible compression, it has limitations. The current model focuses on independent and identically distributed (i.i.d.) sources, whereas real-world non-sequential data often has complex internal dependencies. Furthermore, while the paper defines the theoretical limits, it does not provide the specific algorithms or data structures (like specialized sorting or ranking schemes) to perform the encoding and decoding efficiently in practice.

Future directions include extending this framework to broader group-theoretic invariances and developing practical compression tools that leverage these twelvefold-way symmetries for real-world scientific and biological data systems.

Summary updated

BibTeX
@inproceedings{rahman2020twelvefold,
  author = {Taha Ameen ur Rahman and Alton S. Barbehenn and Xinan Chen and Hassan Dbouk and James A. Douglas and Yuncong Geng and Ian George and John B. Harvill and Sung Woo Jeon and Kartik K. Kansal and Kiwook Lee and Kelly A. Levick and Bochao Li and Ziyue Li and Yashaswini Murthy and Adarsh Muthuveeru-Subramaniam and S. Yagiz Olmez and Matthew J. Tomei and Tanya Veeravalli and Xuechao Wang and Eric A. Wayman and Fan Wu and Peng Xu and Shen Yan and Heling Zhang and Yibo Zhang and Yifan Zhang and Yibo Zhao and Sourya Basu and Lav R. Varshney},
  title = {{The Twelvefold Way of Non-Sequential Lossless Compression}},
  booktitle = {DCC},
  year = {2020},
  doi = {10.1109/dcc50243.2021.00061},
}
Figure