Papers
Topics
Authors
Recent
Search
2000 character limit reached

Fast Greedy Evidence Maximization Algorithm

Updated 16 November 2025
  • The paper presents a fast greedy algorithm that maximizes the determinant of a Gram matrix by iteratively selecting vectors based on residual norms.
  • It achieves a composable coreset approximation guarantee through rigorous local swap-optimality bounds, significantly improving previous theoretical limits.
  • Optimizations such as incremental QR updates and lazy residual computations enable scalable performance in distributed and large-scale data settings.

The Fast Greedy Evidence Maximization Algorithm addresses the determinant maximization problem, fundamental to MAP inference for determinantal point processes (DPPs). Given a ground set of nn vectors in Rd\mathbb{R}^d, the task is to select kk vectors whose span maximizes the volume, equivalent to maximizing the determinant of the k×kk \times k Gram matrix of the selected vectors. Determinant maximization has practical importance in diversity modeling and large-scale data applications, making scalable and composable algorithms crucial. The Fast Greedy Evidence Maximization Algorithm, referred to hereafter as "Greedy", provides a scalable approach with strong theoretical and empirical guarantees in the composable coreset setting, where data is partitioned across multiple machines or shards.

1. Algorithmic Structure: Greedy Determinant Maximization

The Greedy procedure constructs a coreset CPC \subseteq P of size kk by iteratively selecting vectors that maximize the incremental volume. The key selection criterion is the squared distance from the candidate vector pp to the span of CC, computed as r(p)2=(IQQT)p22r(p)^2 = \|(I - QQ^T)p\|_2^2, where QQ is the orthonormal basis for the current coreset. The volume increment when adding pp is given by vol2(C{p})=detGCr(p)2\text{vol}^2(C \cup \{p\}) = \det G_C \cdot r(p)^2, with GCG_C as the Gram matrix of CC. Each iteration orthonormalizes the chosen vector against QQ (e.g., via Gram–Schmidt) and updates CC.

Pseudocode:

1
2
3
4
5
6
7
8
9
10
11
12
13
C = []
Q = []  # Orthonormal basis for C
for i in range(k):
    max_r2 = -inf
    best_p = None
    for p in P:
        if p not in C:
            r2 = norm((I - Q @ Q.T) @ p) ** 2
            if r2 > max_r2:
                max_r2 = r2
                best_p = p
    Q = gram_schmidt(Q, best_p)
    C.append(best_p)
Tracking and updating residuals rp=(IQQT)pr_p = (I - QQ^T)p and their squared norms enables computational efficiency.

2. Composable Coreset Guarantee: Approximation Bounds

In distributed or partitioned contexts, each subset PiP_i (e.g., data on one machine or shard) independently runs Greedy to produce a coreset CiC_i of size kk. The union iCi\cup_i C_i (of size mkmk, with mm subdivisions) serves as the candidate pool for a final Greedy round selecting kk vectors for the global coreset.

The algorithm achieves a composable-coreset approximation guarantee: $\maxdet_k\left(\bigcup_i C_i\right) \geq \frac{1}{(2k(1+\sqrt{k}))^{2k}} \cdot \text{OPT}$ where OPT is the maximum determinant achievable by any kk-vector subset of iPi\cup_i P_i. In big-OO notation, this is O(k)3kO(k)^{3k}—a significant improvement over previous guarantees of Ck2C^{k^2}, aligning closely with local-search bounds O(k)2kO(k)^{2k} from earlier work.

This result follows directly by demonstrating (1+k)(1+\sqrt{k})-local optimality for Greedy, allowing application of general coreset approximation theorems for locally optimal sets.

3. Local-Optimality via Single-Swap Lemma

Central to the improved analysis is a swap (local optimality) lemma which asserts that exchanging any chosen point viv_i in the Greedy solution V={v1,...,vk}V=\{v_1,...,v_k\} with any non-selected vk+1PVv_{k+1} \in P \setminus V yields an increase in volume by at most (1+k)(1+\sqrt{k}): vol(Vvi+vk+1)(1+k)vol(V)\text{vol}(V - v_i + v_{k+1}) \leq (1+\sqrt{k}) \cdot \text{vol}(V) with volume defined as det(Gram)\sqrt{\det(\text{Gram})}. The proof leverages orthogonalization (Gram–Schmidt), matrix determinant lemmas, and bounds on rank-one perturbations. This upper bound is tight up to the additive "+1"—exemplified by choices such as v1=(1,,1)v_1 = (1,\dots,1) and vi=kei1v_i = \sqrt{k} \cdot e_{i-1} for i=2,,k+1i=2,\dots,k+1, where swapping produces a volume increase by k\sqrt{k}.

4. Computational Complexity and Scalability

The naïve implementation incurs O(ndk)O(ndk) cost per round for recomputing all candidate residuals. Practical optimizations include:

  • Maintaining per-vector residuals rpr_p and their squared norms.
  • Upon adding a new orthonormal direction qq, each residual is updated by one dot-product and subtraction:

rprp(qTrp)q,rp2rp2(qTrp)2r_p \leftarrow r_p - (q^T r_p)q, \quad \|r_p\|^2 \leftarrow \|r_p\|^2 - (q^T r_p)^2

  • Initialization requires O(nd)O(nd); subsequent updates per round are O(nk)O(nk); maintaining QQ is O(dk3)O(dk^3) via modified Gram–Schmidt or Cholesky updates.
  • For ndn \gg d, kernel or low-rank optimizations yield per-iteration complexity O(nd)O(nd).
  • In very large-scale settings, sub-sampling or "lazy Greedy" prioritization heuristics (priority-week by residual norms) avoid full scans, reducing dot-products by factors of 10–50×.

Empirical runs process hundreds of thousands of points and kk in the hundreds within seconds on a single machine.

5. Empirical Evidence and Performance Assessment

Mahabadi et al. tested Greedy’s empirical swap-optimality on MNIST (60,000 images  R784)(60{,}000~\mathrm{images}~\in~\mathbb{R}^{784}) and GENES (8,000 gene expression vectors)(\approx 8{,}000~\mathrm{gene}~\mathrm{expression}~\mathrm{vectors}), sampling workstreams of size 3,0003{,}0004,0004{,}000 and varying kk from 1 up to 300. The observed swap-factor 1+ϵ1+\epsilon was consistently below 1.5 even at k=300k=300; for k20k \leq 20, it remained under 1.4 on benchmarked data and ~1.2 on random sphere points. Variation in nn across orders of magnitude produced negligible impact on the worst-case swap factor. This suggests that, in practical applications, Greedy is not just provably (1+k)(1+\sqrt{k})-locally-optimal but regularly outperforms theoretical bounds.

6. Implementation Recommendations and Optimization Strategies

Effective deployment of Greedy entails:

  • Regularly updating the orthonormal basis QQ via incremental QR (e.g., modified Gram–Schmidt).
  • Storing and iteratively updating residuals rpr_p and norms; after initial O(nd)O(nd) computation, next-point selection proceeds in O(n)O(n) per round.
  • For very large nn, implement lazy updating via priority queues on candidate residual norms, recalculating only when necessary.
  • In cases where dnd \gg n or the feature space is approximately low-rank, use kernel DPP approaches: maintain n×nn \times n Gram matrices with rank-one Cholesky updates.
  • In composable or streaming-data settings, run Greedy independently on all shards/servers, then assemble the kk-sized coresets by a final Greedy pass.

These techniques yield a highly scalable and near-optimal Greedy solver for DPP MAP inference; the composable-coreset quality approaches the O(k)3kO(k)^{3k} theoretical bound, performing substantially better in empirical evaluations. A plausible implication is that, for practical deployment in distributed or streaming environments, Greedy offers an efficient balance of solution quality and computational tractability.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Fast Greedy Evidence Maximization Algorithm.