Introduction
Adaptive sampling is a cornerstone of modern data summarization. By iteratively selecting data points based on their distance from previously chosen ones, it allows for the construction of highly representative coresets. However, this sequential nature poses a fundamental challenge for streaming data, particularly in the turnstile model. In this model, a matrix $A$ is updated incrementally through a sequence of coordinate additions and subtractions. Traditional adaptive sampling requires multiple passes over the data—one for each selection round—which is impossible in a single-pass stream where memory is strictly limited.
This paper presents a breakthrough: the first one-pass algorithm for adaptive sampling on turnstile streams. By leveraging parallel linear sketches, the authors demonstrate how to "non-adaptively" simulate a sequential process, enabling sublinear-space, relative-error solutions for a suite of classic matrix problems.
The Challenge: Sequential Bottlenecks in Turnstile Streams
In a turnstile stream, the algorithm observes a sequence of updates $(i, j, \Delta)$ such that $A_{i,j} \leftarrow A_{i,j} + \Delta$. The goal is to find a small set of $k$ rows that represent $A$ well, using space that is sublinear in the number of rows $n$.
Adaptive sampling is ideally suited for this, as it reduces the residual error more effectively than uniform or leverage-score sampling. However, the standard algorithm is inherently sequential: to pick the $(i+1)$-th row, one must know the first $i$ rows to calculate the residual distances. In a single-pass stream, if a critical update to a row occurs late in the stream, an adaptive sampler would miss it unless it had already "decided" to track that row—a decision it couldn't make without knowing the previous rounds' results.
Methodology: Parallelizing the Sequential
The authors bypass this paradox using a framework of parallel linear sketches. Instead of waiting for one round to conclude before starting the next, the algorithm initializes $k$ independent instances of a specialized $L_{p,2}$ sampler at the start of the stream.
1. Linear Sketching and Projections
The core innovation lies in the linearity of the data structures used (Generalized CountSketch and AMS). Because these sketches are linear operators, they satisfy the property $S(A) \cdot P = S(AP)$ for any projection matrix $P$. During the stream, the algorithm maintains $k$ sketches of the matrix $A$. Once the stream ends:
- A row $r_1$ is extracted from the first sketch.
- This row defines a projection matrix $P_1$ that "projects away" the component of $A$ captured by $r_1$.
- The algorithm then applies $P_1$ to the second sketch to extract $r_2$, effectively simulating the second round of adaptive sampling as if it were performed on the residual matrix $A(I - P_1)$.
- This process repeats $k$ times.
2. Handling Noisy Rows
A significant constraint of the turnstile model is that returning exact rows of $A$ in sublinear space is mathematically impossible. If a random coordinate receives a massive update at the very end, the sampler cannot recover the full row without having stored the entire matrix. Consequently, the algorithm returns "noisy rows"—the true row plus a small error vector.
Robustness to Noise
A key theoretical contribution of this work is proving that adaptive sampling is robust to these perturbations. One might expect that using a noisy row to define a projection would lead to cascading errors in subsequent rounds. However, the authors show that if the noise is bounded, the distortion in sampling probabilities remains manageable.
As shown in the figure above, while noise (represented by the green vectors) does shift the resulting sampling vector (red) away from the ideal (blue), the "actual" distortion in the algorithm's implementation is small enough to maintain the relative-error guarantees across all $k$ rounds.
Key Results
By integrating this non-adaptive sampler into existing frameworks, the authors achieve several "firsts" for turnstile streams, all within space polynomial in $d, k, \log n$, and $1/\epsilon$:
- Column Subset Selection (CSS): The first one-pass algorithm with relative-error guarantees.
- Subspace Approximation: The first relative-error algorithm returning $k$ noisy rows.
- Projective Clustering: The first algorithm for this problem using space sublinear in the number of points $n$.
- Volume Maximization: The first sublinear-space algorithm, with space complexity proven to be nearly optimal through new lower bounds.
Limitations and Future Directions
While groundbreaking, the approach has limitations. The output consists of noisy rows, which may not be suitable for applications requiring exact original data points. Furthermore, the space complexity, while sublinear in $n$, has a high polynomial dependence on other parameters (e.g., $O(k^6)$), which may limit practical deployment for large $k$. Future work involves refining these dependencies and exploring whether similar "non-adaptive" techniques can be applied to other sequential streaming problems.
Summary updated