Single-Shot Compression for Hypothesis Testing

Fabrizio Carpi, Siddharth Garg, Elza Erkip

TL;DR

This paper moves away from traditional "reconstruction-based" compression to propose a task-aware approach for edge computing. By focusing on maximizing the distinguishability between two data distributions (Kullback-Leibler divergence) rather than minimizing signal distortion, the authors develop a "KL-greedy" algorithm that allows resource-constrained devices to compress data efficiently for remote hypothesis testing.

What Problem Does This Paper Address?

In the era of edge computing, low-power devices like sensors or mobile phones often offload complex analytics to powerful remote servers. Traditionally, these devices use standard compression (like JPEG or MP3) designed to minimize "distortion"—essentially trying to make the received data look or sound as close to the original as possible.

However, if the server’s only job is to perform a specific task—such as deciding whether a sensor reading indicates a "normal" or "anomaly" state (binary hypothesis testing)—reconstructing the original signal perfectly is a waste of precious bandwidth and battery. The real challenge is: How do we compress data such that we preserve only the information necessary for the server to make the right decision?

System model for remote hypothesis testing with single-shot compression.

The authors specifically look at "single-shot" compression, where the device is so resource-constrained it can only process one data sample at a time, rather than waiting to collect a large block of data.

Methods

The authors frame the problem as finding a compression mapping that maximizes the Type-II error exponent. In plain English, they want the probability of the server making a wrong decision to drop to zero as quickly as possible as more samples arrive.

Key components of their approach include:

  • KL Divergence as a Metric: They prove that the optimal compressor is one that maximizes the Kullback-Leibler (KL) divergence between the two possible compressed distributions.
  • The KL-Greedy Algorithm: Finding the absolute "best" way to group data points into a smaller number of "bins" (compression) is an NP-Hard problem. To solve this, the authors propose a greedy iterative algorithm. It starts with every data point in its own bin and repeatedly merges the two bins that result in the smallest loss of "distinguishability" until the target bit-rate is reached.
  • Comparison Baseline: They compare their task-aware scheme against "Universal" lossy compression, which is designed to work well across many distributions but isn't optimized for a specific decision-making task.

Datasets

The paper evaluates the algorithm using synthetic datasets consisting of shifted binomial distributions.

  • Small Alphabet: A source with 13 possible values ($|X| = 13$), allowing for comparison against the mathematically "optimal" (but computationally expensive) solution.
  • Large Alphabet: A source with 256 possible values ($|X| = 256$), representing a scenario where finding the true optimal solution is no longer feasible, demonstrating the scalability of their greedy approach.

Key Insights and Ideas

  • Distortion is a Proxy, Not the Goal: Traditional metrics like Mean Squared Error (MSE) are often just "proxies" for the actual task. By tailoring the compression to the exact analytics task (hypothesis testing), you can achieve much better performance with fewer bits.
  • Grouping by Posteriors: The math reveals that a good task-aware compressor should group source letters that have similar "likelihood ratios." If two different data values point toward Hypothesis A with similar strength, they can be safely compressed into the same bin.
  • Efficiency of Greedy Search: While the optimal partitioning problem is NP-Hard, the proposed polynomial-time greedy algorithm performs remarkably close to the theoretical optimum in simulations.

Key Results

  • Near-Optimal Performance: In the small alphabet tests, the KL-greedy compressor's performance was virtually indistinguishable from the computationally exhaustive optimal compressor.
  • Outperforming Universal Schemes: The proposed method significantly outperformed the "Universal" baseline. For example, in the 256-value scenario, the KL-greedy scheme achieved near-zero compression penalty at much lower bit-rates than the universal scheme.
Type-II error rate comparison for a large alphabet ($|X|=256$). The proposed compressor approaches uncompressed performance much faster than the universal alternative.
  • Rapid Convergence: The error rates for the KL-greedy scheme dropped to levels comparable to uncompressed data very quickly as the allowed bit-rate increased, whereas universal schemes lagged behind, requiring more bandwidth to reach the same accuracy.

Limitations and Future Work

  • Single-Shot Constraint: The paper focuses on "single-shot" (scalar) compression. While this is great for low-memory devices, "vector" compression generally offers better theoretical limits.
  • Binary Focus: The current work focuses on choosing between two hypotheses. Real-world scenarios often involve multiple classes.
  • Synthetic Data: The results are based on binomial distributions. Testing on real-world sensor data or image features would be a logical next step.

Summary updated

BibTeX
@inproceedings{carpi2021single,
  author = {Fabrizio Carpi and Siddharth Garg and Elza Erkip},
  title = {{Single-Shot Compression for Hypothesis Testing}},
  booktitle = {SPAWC},
  year = {2021},
  doi = {10.1109/spawc51858.2021.9593264},
}
Figure