Determinantal Subset Diversity
Use determinants to make similar items compete for inclusion in a random set.
By Riano · Published · Updated · Report a correction
Determinantal Subset Diversity
Use determinants to make similar items compete for inclusion in a random set.
Worked Example
Let's consider a three-item L-ensemble with items A, B, and C, where the L-matrix is defined asL = a * [[1, rho, 0], [rho, 1, 0], [0, 0, 1]].
We set the intensity a = 1 and similarity rho = 0.5.
The L matrix evaluates to:
L = [[1.0, 0.5, 0.0], [0.5, 1.0, 0.0], [0.0, 0.0, 1.0]]
The normalizer for the probability distribution is the determinant of I + L, or analytically evaluated as:
det(I + L) = ((1 + a)^2 - a^2 * rho^2) * (1 + a)- For
a = 1,rho = 0.5:Normalizer = ((2)^2 - 1^2 * 0.5^2) * 2 = (4 - 0.25) * 2 = 7.5
Let's compute the probability of subset AB being selected:
- The submatrix
L_ABis formed by taking rows and columns corresponding to items A and B. L_AB = [[1.0, 0.5], [0.5, 1.0]]det(L_AB) = 1.0 * 1.0 - 0.5 * 0.5 = 0.75P(AB) = det(L_AB) / Normalizer = 0.75 / 7.5 = 0.1
This confirms our calculation: the probability of selecting exactly subset AB is 0.1, the expected set size is approximately 1.4333, and the inclusion covariance between A and B is negative (-0.0177), demonstrating repulsion.
Experiment
You can reproduce this behavior in the module interactively.
- Set Intensity to
1. - Set Similarity to
0.5. - Set Subset to
AB. - Observe that the selected set probability is
0.1and the expected size is1.433.
Limitations
The chosen L-matrix assumes specific structural relations where items A and B have adjustable similarity, while item C is always completely independent (similarity 0) from both. A more general DPP would allow arbitrary Gram matrices. Also note that if we set similarity to 1, items A and B are perfectly similar and compete so strongly that the probability of selecting both becomes exactly 0.
References
For more details on determinantal point processes, see:
Kulesza, A., & Taskar, B. (2012). Determinantal Point Processes for Machine Learning.
Experience it interactively
Adjust parameters, observe in real time, and build deep intuition with Riano’s interactive Determinantal Subset Diversity module.
Try Determinantal Subset Diversity on Riano →