Robust Algorithms on Adaptive Inputs from Bounded Adversaries

Yeshwanth Cherapanamjeri, Sandeep Silwal, David Woodruff, Fred Zhang, Qiuyi Zhang, Samson Zhou

Introduction: The Adaptive Input Problem

Most randomized algorithms are designed under a "static" assumption: the input is fixed or chosen independently of the algorithm’s internal random choices. However, real-world systems are inherently interactive. A user—or a malicious adversary—might observe the output of a query and use that information to craft a "poisoned" subsequent input designed to exploit the algorithm's specific random state.

This vulnerability is known as the adaptive input problem. If an algorithm is not robust to adaptivity, its theoretical error guarantees can rapidly vanish. The naive solution is to use a fresh set of random coins for every single interaction, but this "restart-from-scratch" strategy is computationally expensive and memory-intensive. This paper bridges the gap between efficiency and adversarial robustness, focusing specifically on "bounded" adversaries—those limited by the number of updates they can make (sparsity) or the number of times they can interact with the system.

Core Methodology: Privacy as Robustness

The central breakthrough of this work is the application of Differential Privacy (DP) as a tool for algorithmic robustness, rather than strictly for data privacy.

By processing outputs through a "private median" mechanism, the algorithm ensures that an adversary learns very little about the specific random coins used internally. If the adversary cannot deduce the internal randomness, they cannot easily engineer the "bad" inputs required to break the algorithm.

Building on this insight, the authors introduce a unified framework that maintains $O(\sqrt{Q})$ independent copies of a standard (non-robust) data structure to answer $Q$ adaptive queries. This provides a quadratic improvement in space efficiency over the $O(Q)$ copies required by a naive implementation, while only incurring a logarithmic overhead in query time.

Key Algorithmic Innovations

The paper extends this unified framework to achieve significant improvements across several fundamental data science tasks:

1. Dynamic Least-Squares Regression

For dynamic regression, the authors utilize leverage score sampling and Johnson-Lindenstrauss (JL) sketches to compress the problem. They maintain this compressed state under sparse updates, where an adversary can only change $K$ entries of a target vector at a time. This sparsity acts as a shield, allowing for extremely fast updates. The algorithm achieves an amortized update time of roughly $O(\sqrt{K \cdot \text{nnz}(A)})$, where $\text{nnz}(A)$ is the number of non-zero entries in the design matrix. This is significantly faster than the standard approach of re-solving the regression from scratch.

2. Adaptive Distance Estimation

The framework significantly reduces the pre-processing time and space complexity for adaptive distance estimation. The authors achieve a space complexity of $O(\epsilon^{-2} \sqrt{Q} n)$, representing a major efficiency gain for high-dimensional applications.

3. Kernel Density Estimation (KDE)

While most adaptive frameworks are strictly limited by the number of queries $Q$, the authors demonstrate that this bound can be broken for specific geometric problems. For KDE, they show that if the kernel function is "smooth" (Lipschitz continuous), the algorithm can handle an unlimited number of adaptive queries by ensuring accuracy over a fine "net" of all possible query points.

Empirical Evaluation and Results

While the paper is primarily theoretical, the authors validate their claims through empirical evaluations using synthetic adaptive queries. In a benchmark environment, 5,000 queries were generated in a biased, adversarial fashion to force a standard JL transform to fail.

The proposed approach was compared against standard Gaussian JL maps and two recent state-of-the-art robust algorithms. Key results include:

  • Maintained Accuracy: Despite the noise introduced by the DP mechanism, the private median approach maintained high accuracy. It stayed close to the true value, whereas the non-robust JL map's error exploded under adversarial pressure.
  • Empirical Speedup: In head-to-head tests, the proposed algorithm was the fastest among the robust baselines. This speedup is largely attributed to the fact that it requires fewer complex transformations (such as Hadamard transforms) than previous state-of-the-art methods.

Limitations and Future Directions

Despite these advances, the framework has notable limitations that present opportunities for future work:

  • Query Dependence: The general framework still incurs a space overhead that grows with $\sqrt{Q}$. Finding ways to achieve $O(\text{polylog } Q)$ or $O(1)$ overhead for broader classes of problems remains an open challenge.
  • Cost vs. Solution: In the dynamic regression setting, the algorithm maintains the value of the least-squares objective (the cost) rather than the actual solution vector $x$. For many machine learning applications, recovering the solution vector itself is necessary.
  • Bounded Adversaries: The theoretical guarantees rely on specific bounds, such as sparsity or interaction limits. Extending these high-performance guarantees to "unbounded" or computationally omnipotent adversaries is the next frontier in algorithmic robustness.

Summary updated

BibTeX
@inproceedings{cherapanamjeri2023robust,
  author = {Yeshwanth Cherapanamjeri and Sandeep Silwal and David Woodruff and Fred Zhang and Qiuyi Zhang and Samson Zhou},
  title = {{Robust Algorithms on Adaptive Inputs from Bounded Adversaries}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=I29Kt0RwChs},
}
Figure