A Scalable Shannon Entropy Estimator
Priyanka Golia, Brendan Juba, Kuldeep S. Meel
Abstract
We revisit the well-studied problem of estimating the Shannon entropy of a probability distribution, now given access to a probability-revealing conditional sampling oracle. In this model, the oracle takes as input the representation of a set S, and returns a sample from the distribution obtained by conditioning on S, together with the probability of that sample in the distribution. Our work is motivated by applications of such algorithms in Quantitative Information Flow analysis (QIF) in programming-language-based security. Here, informationtheoretic quantities capture the effort required on the part of an adversary to obtain access to confidential information. These applications demand accurate measurements when the entropy is small. Existing algorithms that do not use conditional samples require a number of queries that scale inversely with the entropy, which is unacceptable in this regime, and indeed, a lower bound by Batu et al. (STOC 2002) established that no algorithm using only sampling and evaluation oracles can obtain acceptable performance. On the other hand, prior work in the conditional sampling model by Chakraborty et al. (SICOMP 2016) only obtained a high-order polynomial query complexity, O( m 7 8 log 1 δ ) queries, to obtain additive -approximations on a domain of size O(2 m ); note furthermore that additive approximations are also unacceptable for such applications. No prior work could obtain polynomial-query multiplicative approximations to the entropy in the low-entropy regime.
We obtain multiplicative (1+ )-approximations using only O( m 2 log 1 δ ) queries to the probabilityrevealing conditional sampling oracle. Indeed, moreover, we obtain small, explicit constants, and demonstrate that our algorithm obtains a substantial improvement in practice over the previous state-of-the-art methods used for entropy estimation in QIF.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext bd5b633d-a64b-4bbd-b119-414f72672d05Cited by top-tier papers2
- Massively Parallel Continuous Local Search for Hybrid SAT Solving on GPUsYunuo Cen, Zhiwei Zhang, Xuanyao FongAAAI 2025 · 8 citations
- Tight Lower Bound on Equivalence Testing in Conditional Sampling ModelDiptarka Chakraborty, Sourav Chakraborty, Gunjan KumarSODA 2024 · 1 citation
Builds on4
- Tinted, Detached, and Lazy CNF-XOR Solving and Its Applications to Counting and SamplingMate Soos, Stephan Gocht, Kuldeep S. MeelCAV 2020 · 102 citations
- Profit: Detecting and Quantifying Side Channels in Networked ApplicationsNicolás Rosner, Ismet Burak Kadron, Lucas Bang, Tevfik BultanNDSS 2019 · 24 citations
- Static Evaluation of Noninterference Using Approximate Model CountingZiqiao Zhou, Zhiyun Qian, Michael K. Reiter, Yinqian ZhangS&P 2018 · 17 citations
- Feedback-driven side-channel analysis for networked applicationsIsmet Burak Kadron, Nicolás Rosner, Tevfik BultanISSTA 2020 · 9 citations
Related papers
- Obtaining Information Leakage Bounds via Approximate Model CountingSeemanta Saha, Surendra Ghentiyala, Shihua Lu, Lucas Bang et al.PLDI 2023 · 11 citations
- Accounting for Missing Events in Statistical Information Leakage AnalysisSeongmin Lee, Shreyas Minocha, Marcel BöhmeICSE 2025 · 2 citations
- Estimation of Entropy in Constant Space with Improved Sample ComplexityMaryam Aliakbarpour, Andrew McGregor, Jelani Nelson, Erik WaingartenNeurIPS 2022 · 7 citations
- REMEDI: Corrective Transformations for Improved Neural Entropy EstimationViktor Nilsson, Anirban Samaddar, Sandeep Madireddy, Pierre NyquistICML 2024 · 3 citations
- Estimating normalizing constants for log-concave distributions: algorithms and lower boundsRong Ge, Holden Lee, Jianfeng LuSTOC 2020 · 6 citations
