English

Scalable Precise Computation of Shannon Entropy

Artificial Intelligence 2026-02-19 v3 Information Theory math.IT

Abstract

Quantitative information flow analyses (QIF) are a class of techniques for measuring the amount of confidential information leaked by a program to its public outputs. Shannon entropy is an important method to quantify the amount of leakage in QIF. This paper focuses on the programs modeled in Boolean constraints and optimizes the two stages of the Shannon entropy computation to implement a scalable precise tool PSE. In the first stage, we design a knowledge compilation language called \ADDAND that combines Algebraic Decision Diagrams and conjunctive decomposition. \ADDAND avoids enumerating possible outputs of a program and supports tractable entropy computation. In the second stage, we optimize the model counting queries that are used to compute the probabilities of outputs. We compare PSE with the state-of-the-art probabilistic approximately correct tool EntropyEstimation, which was shown to significantly outperform the previous precise tools. The experimental results demonstrate that PSE solved 56 more benchmarks compared to EntropyEstimation in a total of 459. For 98\% of the benchmarks that both PSE and EntropyEstimation solved, PSE is at least 10×10\times as efficient as EntropyEstimation.

Keywords

Cite

@article{arxiv.2502.01160,
  title  = {Scalable Precise Computation of Shannon Entropy},
  author = {Yong Lai and Haolong Tong and Zhenghang Xu and Minghao Yin},
  journal= {arXiv preprint arXiv:2502.01160},
  year   = {2026}
}

Comments

19 pages, 5 figures

R2 v1 2026-06-28T21:30:09.530Z