Computing Low-Entropy Couplings for Large-Support Distributions

Samuel Sokota, Dylan Sam, Christian Schröder de Witt, Spencer Compton, Jakob N. Foerster, J. Zico Kolter · DOI

Introduction

In probability theory, a coupling is a method of joining two separate distributions into a single joint distribution while preserving their original marginals. A minimum-entropy coupling (MEC) represents the most efficient version of this join, minimizing joint entropy to ensure the variables are as predictable as possible given one another. MEC is a critical component in fields such as steganography—hiding secret messages within innocuous carriers—and causal inference.

Despite its utility, finding an exact MEC is NP-hard. Existing approximations typically scale with the size of the distribution's support. For modern Large Language Models (LLMs), where the support size is astronomically large, standard MEC algorithms become computationally infeasible. Previous attempts at "Iterative MEC" (IMEC) were often limited to simple distributions or were highly sensitive to hyperparameter tuning. This paper introduces ARIMEC (Autoregressive IMEC), a novel algorithm that unifies iterative approaches and scales to massive distributions.

Methodology: The ARIMEC Framework

The authors' primary contribution is a unified framework that views iterative MEC algorithms through the lens of partitioning. By breaking a large sample space into smaller "blocks" or partitions, complex couplings can be performed efficiently in a step-by-step manner.

Decomposition of the sample space using a prefix tree to facilitate efficient partitioning.

ARIMEC is specifically designed for distributions with tree-like structures, such as token sequences in natural language. It utilizes a prefix tree to dynamically search for optimal partitions at each step. The algorithm employs a greedy strategy, selecting partitions with the highest entropy to maximize the potential for joint entropy reduction in the final coupling. To ensure efficiency, ARIMEC incorporates lazy updates and pruning, allowing it to navigate search trees with up to $10^{200}$ nodes by only visiting a fraction of the total nodes.

Robustness via Merging

To address the "brittleness" of earlier iterative methods, the authors introduce a merging technique. If a coupling step fails to align distributions perfectly, the algorithm groups similar outcomes together for an additional coupling phase. This makes the process significantly more robust to suboptimal hyperparameter settings and prevents performance collapse as the number of components grows.

The Generative Process

The ARIMEC generative process iteratively refines the coupling by maximizing partition entropy and sampling outcomes sequentially.

The ARIMEC generative process, illustrating iterative partitioning, MEC computation, and sampling.

Because ARIMEC can move both up and down the prefix tree, it possesses a "backtracking" capability. This allows the model to recover if it initially follows an unlikely path, providing a level of robustness not found in standard one-way autoregressive models.

Experimental Evaluation

The authors evaluated ARIMEC across several complex domains:

  • Steganography with GPT-2: Using GPT-2 as a base for both covertext and plaintext, ARIMEC achieved higher information density than baseline methods by leveraging the prior information of the secret message.
  • Markov Coding Games: In environments like CodeCart and CodePong, ARIMEC demonstrated significantly lower communication error rates than the previous state-of-the-art (FIMEC), particularly as message sizes increased.
  • Computational Efficiency: Benchmarks on random bytestrings confirmed that the search procedure remains fast in practice, often requiring only a few node visits to find an optimal partition.

Conclusion

ARIMEC represents a significant advancement in computing low-entropy couplings for large-scale data. By formalizing iterative coupling as a partition optimization problem and introducing robust merging techniques, the authors have made MEC viable for modern machine learning applications. Future work remains in establishing formal worst-case runtime proofs and exploring applications in entropic causal inference and dimensionality reduction.

Summary updated

BibTeX
@inproceedings{sokota2024computing,
  author = {Samuel Sokota and Dylan Sam and Christian Schröder de Witt and Spencer Compton and Jakob N. Foerster and J. Zico Kolter},
  title = {{Computing Low-Entropy Couplings for Large-Support Distributions}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=4IfjcKoU15},
}
Figure