Faster optimal univariate microgaggregation

Felix I. Stamm, Michael T. SchaubarXiv 2024 · DOI

Introduction

Microaggregation is a fundamental technique for ensuring $k$-anonymity in datasets released for public use. The goal is to balance data utility with individual privacy by grouping data points into clusters of at least $k$ members and replacing individual values with a cluster representative, such as the mean. While multivariate microaggregation is NP-hard, the univariate case—dealing with single-variable scalars—can be solved optimally in polynomial time.

Univariate microaggregation groups individual data points into clusters of size at least k to protect privacy.

However, traditional optimal algorithms for univariate microaggregation (UM) typically scale at $O(kn)$, where $n$ is the number of data points and $k$ is the minimum group size. As datasets grow or privacy requirements become more stringent, these algorithms become significant computational bottlenecks. Furthermore, many existing implementations are tied to the Sum of Squared Errors (SSE) metric, limiting their flexibility for other distance measures like $\ell_1$ or $\ell_\infty$ norms.

Methodology

The authors propose a significant leap in efficiency by rephrasing the UM problem as a "concave least weight subsequence problem." They categorize cost functions based on three mathematical properties that unlock faster complexity classes:

  1. Ordered Minimizable: Functions where an optimal partition can be found simply by sorting the data first.
  2. Splitting is Beneficial: Functions where it is never optimal to have a cluster larger than $2k-1$, as splitting it would reduce total cost.
  3. Concave Costs: Functions satisfying the "quadrangle inequality," which allows for highly optimized searching.
The complexity hierarchy for univariate microaggregation showing how specific cost function properties enable faster algorithms.

Based on these properties, the paper introduces two primary algorithms:

  • Simple+: An improved $O(kn)$ algorithm that leverages the fact that row minima in the cost matrix are non-decreasing.
  • The Staggered Algorithm: A novel $O(n)$ algorithm that utilizes the SMAWK algorithm for finding row minima in Monge matrices. By applying SMAWK along diagonals, the Staggered algorithm effectively ignores "forbidden" cluster sizes (those smaller than $k$ or larger than $2k-1$), leading to superior empirical performance.

Key Results and Insights

The proposed algorithms achieve linear $O(n)$ time complexity on sorted data, making them highly scalable. Empirical evaluations show that the Staggered algorithm is approximately 20% faster than existing generic $O(n)$ algorithms. Research identifies a clear threshold for algorithm selection: for small values of $k$ (under 250), the Simple+ algorithm is faster due to lower overhead, while the $O(n)$ Staggered algorithm dominates for larger $k$.

Beyond speed, the methods are robust across various metrics, including Sum of Absolute Errors (SAE) and Maximum Distance ($\ell_\infty$). The authors also address numerical stability by proposing "partial cumulative sums" to prevent floating-point errors during large-scale summations on real hardware.

Conclusion

This work provides a clear roadmap for optimizing univariate microaggregation. While the $O(n)$ speedup is specific to 1D data and assumes pre-sorted input, it offers a powerful tool for large-scale privacy-preserving data analysis. Future work may extend these efficient techniques to ordered multivariate microaggregation, where high-dimensional data possesses a pre-defined extrinsic order.

Summary updated

BibTeX
@misc{stamm2024faster,
  author = {Felix I. Stamm and Michael T. Schaub},
  title = {{Faster optimal univariate microgaggregation}},
  year = {2024},
  eprint = {2401.02381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.02381},
}
Figure