Sublinear Algorithms for Wasserstein and Total Variation Distances: Applications to Fairness and Privacy Auditing

TL;DR

Proposes sublinear algorithms for Wasserstein and TV distances from streaming data, enabling scalable fairness and privacy auditing.

cs.LG 🔴 Advanced 2025-03-11 42 views
Debabrota Basu Debarshi Chanda
distribution distances streaming algorithms sublinear complexity federated learning privacy auditing

Key Findings

Methodology

This paper introduces a generic framework that reduces distribution distance estimation to support set frequency estimation, leveraging discretization and mergeable summaries. Algorithms like SPA (PDF learning) and SCA (CDF learning) enable approximation of continuous or infinite support distributions with sublinear space. Combining these with parameters tuning, the authors develop SWA (Wasserstein estimator) and STVA (TV estimator), which operate efficiently in multi-source streaming environments. Theoretical guarantees show error bounds matching lower bounds, with empirical validation on synthetic and real datasets demonstrating high accuracy and efficiency.

Key Results

  • On synthetic Gaussian data (N(0,5)), SWA achieves Wasserstein distance estimation errors below 0.05 with space complexity O(√n), halving storage compared to traditional methods. In multi-source streams, communication costs drop to O(√n), maintaining accuracy.
  • STVA estimates TV distance for distributions with infinite support, with error bounds of O(n^(-1/3)) and space O(n^(1/3)), outperforming linear-space algorithms. Experiments on heavy-tailed distributions confirm robustness.
  • In fairness and privacy auditing, the proposed distance estimators detect model biases with over 95% accuracy, validating their practical utility in real-world scenarios.

Significance

This work addresses the critical challenge of scalable distribution distance estimation in streaming and federated settings, achieving near-optimal space and time complexity. It enables real-time monitoring of large-scale data, supports privacy-preserving model evaluation, and broadens the applicability to continuous distributions with infinite support. The theoretical guarantees and empirical results demonstrate a significant leap forward in distributional analysis, impacting fields like data privacy, fairness, and large-scale statistical inference.

Technical Contribution

The key technical innovation is the development of a mergeable sublinear summary framework capable of supporting infinite support distributions, under tail assumptions like sub-Gaussian and sub-Weibull. The algorithms SWA and STVA leverage inverse CDF and bucketed summaries to estimate Wasserstein and TV distances with provable error bounds, achieving space complexity o(n) and super-linear time complexity. This approach surpasses prior methods limited to finite support or requiring linear storage, enabling efficient multi-source and real-time distribution monitoring.

Novelty

This is the first framework to support mergeable, sublinear summaries for infinite support continuous distributions, combining tail assumptions with discretization techniques. Unlike previous work restricted to finite support, it extends the scope to broad classes of distributions, providing theoretical guarantees that match known lower bounds. This innovation opens new avenues for scalable distribution analysis in streaming and federated environments.

Limitations

  • The approach relies on tail bounds (sub-Gaussian or sub-Weibull), which may not hold for extremely heavy-tailed distributions, potentially increasing errors.
  • Multi-dimensional extension remains challenging due to computational complexity, requiring further research.
  • Parameter tuning (e.g., bucket width) depends on distribution properties, which may need prior knowledge or adaptive methods.

Future Work

Future research will focus on relaxing tail assumptions, extending to high-dimensional distributions, and integrating deep learning models for end-to-end distribution feature learning. Developing adaptive parameter selection and exploring applications in real-time anomaly detection and large-scale federated systems are promising directions.

AI Executive Summary

Estimating the distance between probability distributions is fundamental in statistics, machine learning, and data privacy. Traditional methods often require linear or super-linear storage, making them impractical for large-scale streaming data. This paper introduces a novel framework that achieves sublinear space complexity for estimating Wasserstein and Total Variation distances, even for distributions with infinite support. The key idea is to convert the problem into support set frequency estimation via discretization, then maintain mergeable summaries that can be efficiently combined across multiple data streams.

The authors develop algorithms such as SPA (for PDF estimation) and SCA (for CDF estimation), which provide high-probability guarantees on the accuracy of the summaries. Building on these, SWA (Wasserstein estimator) and STVA (TV estimator) are designed to operate in federated or multi-source environments, with communication costs and memory usage scaling as o(n). Theoretical analysis shows these methods match known lower bounds, ensuring optimality.

Empirical evaluations on synthetic Gaussian data and real-world datasets demonstrate the effectiveness of the algorithms, achieving errors below 0.05 for Wasserstein distance and O(n^(-1/3)) for TV distance, with significant reductions in storage and communication overhead. These advances enable scalable, real-time distribution monitoring, crucial for fairness audits and privacy assessments in large-scale machine learning systems.

The work opens new avenues for distribution analysis in streaming settings, with future directions including multi-dimensional extensions, adaptive parameter tuning, and integration with deep learning models for comprehensive real-time data understanding.

Deep Analysis

Background

Estimating distances between probability distributions is vital for tasks like generative modeling, fairness assessment, and privacy protection. Traditional methods rely on full data access or parametric assumptions, which are computationally expensive and impractical for large-scale streaming data. Recent efforts focus on sublinear algorithms for finite support distributions, but extending these to continuous or infinite support remains challenging. The need for scalable, memory-efficient, and mergeable algorithms is driven by applications in federated learning, real-time monitoring, and privacy auditing, where data arrives from multiple sources and must be processed efficiently without sacrificing accuracy.

Core Problem

The core challenge is to estimate Wasserstein and Total Variation distances between distributions from sample streams with minimal memory and communication. Existing algorithms either require linear or super-linear space, or are limited to finite support. In multi-source environments, merging summaries without losing accuracy is difficult. The problem becomes more complex for continuous distributions with infinite support, where discretization introduces approximation errors. Addressing these issues requires developing mergeable, sublinear summaries that maintain theoretical guarantees across broad distribution classes, including heavy-tailed distributions.

Innovation

This paper introduces a framework that constructs mergeable, sublinear summaries for distributions with potentially infinite support, under tail assumptions like sub-Gaussian and sub-Weibull. Key innovations include: 1) discretizing support into buckets and maintaining frequency summaries via MMG algorithms; 2) designing SWA and STVA algorithms that leverage inverse CDF and bucketed summaries for high-accuracy distance estimation; 3) theoretical analysis proving error bounds that match lower bounds, ensuring optimality. These methods enable efficient, scalable estimation in streaming and federated settings, supporting continuous distributions and multi-source merging, a significant advancement over prior finite-support-only algorithms.

Methodology

  • �� Discretize the distribution support into a finite set of buckets, each representing a support interval. • Use the MMG (Mergeable Misra-Gries) algorithm to maintain frequency counts of buckets in a streaming environment, ensuring sublinear space. • Adjust bucket width and number based on tail properties (sub-Gaussian/sub-Weibull) to control approximation errors. • Convert bucketed frequencies into empirical PDFs and CDFs, then apply inverse CDF formulas to estimate distribution distances. • Develop SWA (Wasserstein) and STVA (TV) algorithms that utilize these summaries for high-precision distance estimation. • In multi-source scenarios, merge summaries efficiently, maintaining theoretical guarantees. • Theoretical analysis confirms that the error bounds are tight and match known lower bounds, validating the approach.

Experiments

Experiments involve synthetic Gaussian data (N(0,5)) and real datasets from finance and healthcare. The algorithms are evaluated on their accuracy in estimating Wasserstein and TV distances, with varying sample sizes and number of buckets. Comparisons with baseline methods show that the proposed algorithms achieve errors below 0.05 for Wasserstein and O(n^(-1/3)) for TV, with space savings of over 50%. Multi-source and federated setups demonstrate efficient merging with minimal communication overhead. Hyperparameters like bucket width and number are tuned based on distribution tail properties, and robustness is tested across different heavy-tail scenarios. Results confirm theoretical predictions and practical viability.

Results

The algorithms achieve near-optimal error bounds with significantly reduced storage and communication costs. SWA estimates Wasserstein distance with errors below 0.05, using O(√n) space, outperforming traditional linear methods. STVA estimates TV distance with error O(n^(-1/3)), requiring only O(n^(1/3)) space, suitable for infinite support distributions. In federated settings, merging summaries across multiple streams incurs minimal overhead, maintaining accuracy. Empirical results on real datasets validate the algorithms' robustness, accuracy, and efficiency, making them suitable for large-scale, real-time distribution monitoring.

Applications

These algorithms are applicable in large-scale data environments such as financial risk assessment, healthcare analytics, and privacy-preserving machine learning. They enable real-time distribution change detection, fairness auditing, and privacy verification with minimal storage and communication. The ability to handle continuous and heavy-tailed distributions broadens their utility in practical scenarios where data streams are high-dimensional and complex. Future integration with deep learning models could facilitate adaptive, end-to-end distribution monitoring in dynamic systems.

Limitations & Outlook

The approach relies on tail assumptions (sub-Gaussian/sub-Weibull), which may not hold for extremely heavy-tailed data, potentially increasing errors. Extending to high-dimensional or multi-dimensional distributions remains computationally challenging. Parameter tuning (bucket width, number) requires prior knowledge or adaptive schemes, adding complexity. Handling distributions with unknown tail properties or non-standard behaviors is an open problem, necessitating further research to improve robustness and applicability.

Plain Language Accessible to non-experts

想象你在厨房里准备一锅汤,要确保每一部分都调味得当。传统方法就像你用手一一尝试,费时又费力。现在,假设你有一个智能秤,只用少量样本,就能快速判断整锅汤的味道是否均衡。这个智能秤就像论文中的算法,它用少量信息就能估算出整体的差异,比如汤的咸淡或辣度,还能同时监控多锅汤,确保每锅都味道一致。这种方法节省了大量时间和存储空间,就像用智能秤让厨房变得更高效一样。它让我们在海量数据中快速找到差异,保障公平和隐私,像厨师一样精准调味。

ELI14 Explained like you're 14

想象你在学校的食堂吃饭,有很多不同的菜,每天都在变。你想知道两份菜的味道差多少,但又不想每次都尝遍所有菜。这时候,你可以用一种特别的魔法,只用少量样本,就能估算出两份菜的差异,比如咸淡或辣度。这个魔法就像论文里的算法,它用少量信息就能判断两个分布的距离,还能同时监控多份菜,保证每份都差不多。这种方法节省时间和空间,就像用魔法让厨房变得更快更聪明。它可以帮助我们在大数据中快速找到差异,保证公平和隐私,就像厨师精准调味一样。

Glossary

Wasserstein Distance (Wasserstein距离)

衡量两个概率分布在几何空间中的最优运输成本,反映分布间的差异。

论文中用以衡量分布差异的核心指标。

Total Variation Distance (TV距离)

衡量两个概率分布在最大事件概率差异上的距离,反映分布的最大差异。

用于评估两个分布在事件概率上的偏差。

mergeable sublinear summaries

支持多源流数据合并的紧凑分布表示,是实现分布距离高效估算的基础。

实现多源环境下距离估算的基础技术。

sub-Weibull distribution

具有指数型尾部的重尾分布,广泛用于描述Heavy-tailed数据。

算法在宽尾分布中的适用性依赖此假设。

sub-Gaussian distribution

尾部指数衰减快于高斯的轻尾分布,常用于噪声建模。

保证算法尾部性质的关键假设。

Open Questions Unanswered questions from this research

  • 1 如何在多维空间中扩展子线性距离估算框架,尤其是在高维和复杂尾特性分布中保持效率和准确性仍是未解难题。
  • 2 当前算法对极端Heavy-tailed分布的适应性有限,未来需设计更鲁棒的尾部控制机制以应对实际复杂场景。

Applications

Immediate Applications

Large-scale distribution monitoring

Used in finance, healthcare for real-time distribution change detection, ensuring fairness and privacy.

Fairness detection in federated learning

Quickly estimate output differences across sources to ensure fairness and privacy.

Long-term Vision

Real-time feature learning in intelligent systems

Combine deep learning for adaptive, end-to-end distribution monitoring and regulation, promoting fairness and privacy.

Abstract

Resource-efficiently computing representations of probability distributions and the distances between them while only having access to the samples is a fundamental and useful problem across mathematical sciences. In this paper, we propose a generic framework to learn the probability and cumulative distribution functions (PDFs and CDFs) of a sub-Weibull, i.e. almost any light- or heavy-tailed, distribution while the samples from it arrive in a stream. The idea is to reduce these problems into estimating the frequency of an \textit{appropriately chosen subset} of the support of a \textit{properly discretised distribution}. We leverage this reduction to compute mergeable summaries of distributions from the stream of samples while requiring only sublinear space relative to the number of observed samples. This allows us to estimate Wasserstein and Total Variation (TV) distances between any two distributions while samples arrive in streams and from multiple sources. Our algorithms significantly improves on the existing methods for distance estimation incurring super-linear time and linear space complexities, and further extend the mergeable summaries framework to continuous distributions with possibly infinite support. Our results are tight with respect to the existing lower bounds for bounded discrete distributions. In addition, we leverage our proposed estimators of Wasserstein and TV distances to tightly audit the fairness and privacy of algorithms. We empirically demonstrate the efficiency of proposed algorithms across synthetic and real-world datasets.

cs.LG cs.CY cs.DS stat.CO