Abstract
In this work, we provide fast dynamic algorithms for repeatedly sampling from distributions characterized by Determinantal Point Processes (DPPs) and Nonsymmetric Determinantal Point Processes (NDPPs). DPPs are a very well-studied class of distributions on subsets of items drawn from a ground set of cardinality $n$ characterized by a symmetric $n \times n$ kernel matrix $L$ such that the probability of any subset is proportional to the determinant of its corresponding principal submatrix. Recent work has shown that the kernel symmetry constraint can be relaxed, leading to NDPPs, which can better model data in several machine learning applications. Given a low-rank kernel matrix ${\cal L}=L+L^\top\in \mathbb{R}^{n\times n}$ and its corresponding eigendecomposition specified by $\{\lambda_i, u_i \}_{i=1}^d$ where $d\leq n$ is the rank, we design a data structure that uses $O(nd)$ space and preprocesses data in $O(nd^{\omega-1})$ time where $\omega\approx 2.37$ is the exponent of matrix multiplication. The data structure can generate a sample according to DPP distribution in time $O(|E|^3\log n+|E|^{\omega-1}d^2)$ or according to NDPP distribution in time $O((|E|^3 \log n+ |E|^{\omega-1}d^2)(1+w)^d)$ for $E$ being the sampled indices and $w$ is a data-dependent parameter. This improves upon the space and preprocessing time over prior works, and achieves a state-of-the-art sampling time when the sampling set is relatively dense. At the heart of our data structure is an efficient sampling tree that can leverage batch initialization and fast inner product query simultaneously.
Introduction
Determinantal Point Processes (DPPs) have emerged as a vital tool in machine learning for modeling "diversity" or "repulsion" within a subset of items. By assigning probabilities to subsets based on the determinant of a kernel matrix, DPPs naturally favor sets of items that are dissimilar. This property is essential for tasks such as text summarization, image collection diversification, and active learning.
However, standard DPPs are limited by a symmetry constraint, which restricts them to modeling only negative correlations. Nonsymmetric DPPs (NDPPs) were recently introduced to overcome this, allowing for the modeling of positive correlations—such as the likelihood that a consumer who buys a printer will also purchase ink. Despite their utility, both DPPs and NDPPs suffer from significant computational bottlenecks, particularly in dynamic settings where repeated sampling is required. This paper introduces a novel data structure, EfficientPrepDPP, designed to break existing complexity barriers in both preprocessing and sampling.
Methodology
The authors focus on the low-rank setting, where the kernel matrix $L$ has rank $d \leq n$. The proposed approach optimizes the sampling pipeline through several key algorithmic innovations:
1. Batched Probability Computation
Traditional sampling trees are often built leaf-by-leaf, a process that scales poorly. The authors introduce a "batching" technique that partitions data into blocks of size $d$. By grouping these operations, the algorithm can utilize Fast Matrix Multiplication (with exponent $\omega \approx 2.37$). This shift from vector-vector operations to matrix-matrix operations reduces the initialization time of the sampling tree to $O(nd^{\omega-1})$.
2. Sampling Tree with Inner Product Queries
The data structure reduces the task of calculating the conditional probability of selecting the next item in a sample to an inner product query. This query occurs between a "query matrix," representing the items already selected, and the preprocessed data stored in the tree. This allows for rapid iterative selection without re-scanning the entire ground set.
3. Low-Rank Maintenance
To maintain efficiency during the iterative sampling process, the algorithm employs the Woodbury Matrix Identity and the Sherman-Morrison formula. These mathematical tools allow the data structure to update projection matrices in $O(k^2)$ time, where $k$ is the number of items already sampled, rather than recomputing the entire projection from scratch.
4. Rejection Sampling for NDPPs
To extend these efficiencies to the nonsymmetric case, the authors utilize a symmetric DPP as a "proposal distribution." By applying rejection sampling, they ensure the final sample follows the target NDPP distribution while benefiting from the speed of the underlying symmetric sampler.
Key Results and Complexity Analysis
The work establishes a new state-of-the-art for sampling efficiency, particularly in the "dense sample regime" where the number of items to be sampled ($k$) is relatively large compared to the rank ($d$).
- Preprocessing Speedup: The reduction from $O(nd^2)$ to $O(nd^{\omega-1})$ represents a substantial improvement for high-dimensional data.
- Space Efficiency: The data structure requires $O(nd)$ space, a significant improvement over several prior methods that required $O(nd^2)$.
- Sampling Performance:
- DPP: $O(k^3 \log n + k^{\omega-1}d^2)$
- NDPP: $O((k^3 \log n + k^{\omega-1}d^2)(1+w)^d)$, where $w$ is a data-dependent parameter.
The authors demonstrate that their query procedure outperforms the previous benchmark (Gillenwater et al., 2019) whenever the sample set size $k = \Omega(d^{0.75})$.
Discussion and Future Work
While the algorithm provides a significant leap in sampling speed, the authors note certain limitations. The current framework is strictly optimized for sampling from a known kernel and does not yet extend to learning kernel parameters from raw data. Additionally, the NDPP sampler retains an exponential dependence on the rank $d$ via the $(1+w)^d$ factor. While this factor is often small in practical applications, it remains a theoretical bottleneck for specific nonsymmetric kernels.
Future research may involve generalizing this data structure to handle multiple quadratic forms simultaneously, which could further streamline the DPP sampling process and potentially reduce the overhead for nonsymmetric distributions.
Summary updated