Exploiting duality in summarization with deterministic guarantees

Panagiotis Karras, Dimitris Sacharidis, Nikos Mamoulis

Abstract

This paper presents a novel "dual" approach to data summarization that significantly accelerates the construction of histograms and hierarchical synopses. By reframing the traditional space-bounded optimization problem into an error-bounded dual problem—finding the minimum space for a fixed error bound—the authors achieve dramatic reductions in computational complexity. This methodology enables practical deterministic data guarantees for massive datasets, with runtimes that are largely independent of the space budget.

Introduction

In data mining and database systems, compact summaries (synopses) are essential for fast, approximate query answering. A critical requirement for many applications is a deterministic quality guarantee, often expressed as a maximum-error metric ($L^\infty$). Traditionally, researchers have used Dynamic Programming (DP) to solve the "space-bounded" problem: given a space budget $B$, find the summary that minimizes the maximum error.

However, these "Direct" DP algorithms are computationally expensive, with complexities that scale heavily with the space budget $B$. As datasets and budgets grow, these methods become too slow and memory-intensive for practical use. This work addresses this bottleneck by exploiting the duality between space and error.

Methods: The Indirect Approach

The authors propose an Indirect methodology based on Duality. Instead of solving the space-bounded problem directly, they solve the "error-bounded" dual problem: Given a maximum allowed error $\epsilon$, find the minimum-space synopsis that achieves it.

1. Indirect Histograms

For histograms, the authors introduce MinHistSpace, a greedy, linear-time $O(n)$ algorithm. It scans the data once, starting a new bucket only when the current bucket can no longer stay within the error bound $\epsilon$. To solve the original fixed-space problem, they perform a binary search over possible error values, calling the fast MinHistSpace at each step.

2. Indirect Hierarchical Synopses

For hierarchical models like Haar wavelets, the Direct DP approach requires a two-dimensional table to track both incoming values and space allocations. By switching to the error-bounded dual, the authors eliminate the "space allocation" dimension. This reduces complexity from being dependent on $B^2$ or $B \log B$ to being independent of the space budget $B$ entirely.

The MinHaarSpace algorithm demonstrates the recursive structure of the dual approach for hierarchical models.

Key Insights

  • Monotonicity: The error of an optimal synopsis is monotonically non-increasing with the space budget $B$. This property ensures that binary search over the error space is a viable strategy for finding the optimal space-bounded solution.
  • Dimension Reduction: In hierarchical synopses, fixing the error removes the need to decide how to "split" a space budget between subtrees. One simply calculates the minimum space needed for each and sums them, removing a multiplicative factor of $B$ from the complexity.

Key Results

The authors evaluated their algorithms using real-world datasets from the UCI KDD Archive, including Sea Surface Temperature (TM) and Forest Cover Type (FC).

  • Efficiency Gains: The IndirectHist algorithm reduced time complexity from $O(nB \log^2 n)$ to $O(n \log \epsilon^*)$. Runtimes remained nearly constant regardless of the space budget $B$, as they only depend on the number of binary search iterations (typically 10-15).
  • Hierarchical Performance: For Haar+ trees, the Indirect method outperformed Direct methods in both time and memory, even outpacing theoretical "OracleDirect" versions.
Comparison of time and space complexity for various hierarchical synopsis models, showing the significant improvements achieved by this work.

Limitations and Future Work

While powerful, the algorithm relies on a resolution step ($\delta$) to quantize possible data values for hierarchical synopses. Additionally, the dual approach is currently optimized for maximum-error metrics ($L^\infty$); extending this efficiency to other metrics like Sum-of-Squared-Errors ($L^2$) remains a challenge. Future research will explore applying these techniques to multi-dimensional data summarization.

Summary updated

BibTeX
@inproceedings{karras2007exploiting,
  author = {Panagiotis Karras and Dimitris Sacharidis and Nikos Mamoulis},
  title = {{Exploiting duality in summarization with deterministic guarantees}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2007},
  doi = {10.1145/1281192.1281235},
}
Figure