Manuscript Offprint
arXiv:2610.11976Efficient quadratic entropy with distance sketches
Abstract
We detail scalable methods for approximating the quadratic entropy for arbitrary distributions p and common distances d of negative type. We focus on the Euclidean and spherical geodesic cases, which both use random feature embeddings and projections to dramatically improve computational complexity within a simple framework. Amortization of a single large matrix multiplication and control variates further enable computation at large scale with low memory and runtime in situations where d is held constant while p varies. We demonstrate this with a comparison against direct pair sampling and bibliometric/scientometric examples on Open Graph Benchmark datasets, revealing papers, fields, and institutions with both particularly narrow and broad interdisciplinary reach from their citations and text features alone.
1 INTRODUCTION
We give scalable unbiased Monte Carlo estimators for the quadratic entropy [34]
for common distances d of negative type. We target the regime of millions of arbitrary distributions p on the same n points represented in (hence the same d) for m in the hundreds or more and n in the hundreds of thousands or more. This regime makes explicitly forming d prohibitive, but it also encourages amortization of calculations.
1.2 Related work
The quadratic entropy (1) is a self-interaction functional that is related to two-sample maximum mean discrepancy and energy distance comparison functionals of the form [15, 40, 38, 25]. Quadratic entropy is also a particularly important case of more general notions of diversity [24, 27, 23, 21]; this framing motivates our constructions, but the relevant literature is largely unconcerned with computation at scale. The simplest approach to approximating (1) is accumulating entries of sampled from . The resulting variance converges at the same rate, but with a much worse constant when is spread out, because it does not aggregate information across entries of within a sample (see the right panel of Figure 3). While it can give better results for sufficiently concentrated data (as in the left panel of Figure 3), it cannot amortize across different distributions , and does not express through a functional linear in , so it cannot be effectively deployed at scale such as in §5.
Random Fourier features [33, 45] require a shift-invariant positive definite kernel to compute quantities like (1), which precludes applications to Euclidean distance by Bochner's theorem and non-integrability (cf. [17]). On the other hand, slicing does apply: our treat-
Multiple distributions on the same distance geometry also arise in (e.g.) ecological contexts without necessarily packaging distributions into a Markov chain.
ment of the Euclidean case in §3.3 is included mainly for the sake of a joint framework with the spherical geodesic case in §3.4, but the Euclidean capability per se is largely covered by the slicing and fast summation literature [3, 22, 16, 17, 18], including use of an unweighted form in [18] of the classical Gini identity Proposition 3.2. This gives one-dimensional negative distance kernel sums in , and slicing extends to any radial kernel with an analytic basis function [16], albeit via fast Fourier summation instead of sorting. Meanwhile, quasi-Monte Carlo directions can improve slicing performance but not in our regime, due to nonsmoothness [17] and high dimension.
The work closest to §3.3 is [5], which establishes a sliced identity for the negative Euclidean distance kernel with a Bernstein-type error bound, and which yields our estimator straightforwardly. Our treatment of the Euclidean case is nevertheless distinguished from existing work by a relative error bound on Q (Theorem 3.3), and by a squared-Euclidean control variate with mean computable in (§4.2).
By comparison, §3.4 reduces the spherical geodesic quadratic entropy to a single scalar per random direction, while remaining connected with the Euclidean case. The natural kernel is the zeroth-order arccosine kernel of [9]: i.e., the affine transformation of the geodesic distance . This kernel's random features are the signs of random projections rather than Fourier features of the sort in [33]: these signs realize the affine transformation [14] familiar from locality-sensitive hashing [8]. Positive definiteness is not an obstruction here: the kernel of [9] is positive definite on by Schoenberg's characterization [36], as well as by the Gram matrix representation in §3.4. The obstructions are instead the unavailability of a spectral measure that is easy to sample from, and that the spherical harmonics involved are infeasible to work with in high dimension. A deterministic alternative uses Corollary 3.6 to compute Q using an entrywise expansion in powers of the Gram matrix, but the resulting matrix rank grows prohibitively [37]. Instead, the applicable tool is the Goemans-Williamson representation (13) of spherical geodesic distance, which through a sketch given by the product of IID random variables in U and data points in X, enables the amortized calculation of that underlies our development. Slicing on the sphere has been used for optimal transport [2, 32], but those constructions project onto great circles to compare measures, rather than linearizing the geodesic distance.
A single cached sketch is the key to computing (1) for both Euclidean and spherical geodesic cases while amortizing over instances of p. Structured accelerations of the arc-cosine family use a similar matrix product [44, 10, 26, 28] but do not bear on our results: [26, 28] tie the feature budget N to the ambient dimension m and supply no finite-sample guarantee for , and the orthogonal random feature constructions of [44, 10] confer limited to no advantage at our scale, where near-orthogonality is practically free. A benefit of our estimators is error bounds on quadratic entropy that are independent of ambient dimension m. These improve on direction counts that scale linearly in m in [28, 5]. Part of this gap is attributable to normalization, since directions drawn uniformly from the sphere carry a factor absent for Gaussian u; the qualitative independence from m is nonetheless not shared by any bound we compare against. Meanwhile, Nyström methods [42, 43] apply to Euclidean and spherical geodesic distances, but these methods are biased and have unreliable spectral norm error [11, 13].
Finally, the methods here can be used to scale the optimization of quadratic entropy, which is useful in its own right [21]. This will be reported elsewhere.
1.3 Paper organization
The remainder of this paper is as follows. In §2 we discuss negative type distances and feature embeddings; §3 discusses efficient estimators for quadratic entropy; §4 details scaling techniques, and §5 describes experiments on real data. Appendix A contains proofs. The LaTeX comments of the source file on arXiv contain code necessary for exact reproduction of our results.
2 NEGATIVE TYPE DISTANCES AND FEATURE EMBEDDINGS
Let the columns of represent points in for , i.e., . Recall that a symmetric nonnegative matrix with zero diagonal is called negative type if for all with ; is called strict negative type if the strict inequality holds for . As indicated above, the distances we shall consider are all of the form , and they are all negative type, although squared Euclidean distance and cosine distance (the latter a special case of the former) are not metrics per se; meanwhile, Euclidean distance matrices are always strict negative type, and spherical geodesic distance matrices are strict negative type as long as no two points are antipodal [19].
In the finite setting, a classical result of Schoenberg [35] is that is negative type iff there exist “feature” vectors such that identically. This works as follows: let and set . When is negative type (respectively, strict negative type) is positive semidefinite (respectively, positive definite), since with automatically satisfying for all , so that (respectively, for ). A line or two of algebra gives
and the Cholesky factorization is such that the columns of are the desired feature vectors, so . Inserting this into (2) yields (with here and throughout the rest of the paper)
The right side of (3) is cheaper to compute than the left side's form suggests. For the other direction, start from : then if , it follows that , so that is in fact negative type.
3 EFFICIENT QUADRATIC ENTROPY COMPUTATIONS FOR COMMON DISTANCES OF NEGATIVE TYPE
Squared Euclidean ( ) and cosine ( ) distances yield trivially efficient computations of quadratic entropy. For ordinary Euclidean ( ) and spherical geodesic ( ) metrics, more finesse is required, but we can still do better than a naive evaluation of (1).
3.1 Squared Euclidean distance
This is trivial, with : if ,
3.2 Cosine distance on
This is actually a special case of squared Euclidean distance, since :
3.3 Euclidean distance
Proposition 3.1. For and ,
and for ,
The representation (6) underlies slicing [3], but our application differs. We produce an unbiased estimator of the exact quadratic entropy instead of a proxy distance between distributions.
A simple trick allows us to evaluate the mean absolute difference on the right side of (7) more efficiently:
Proposition 3.2 (Gini). If and , then equals
Since sorting has computational complexity , the right hand side of (8) inherits this computational complexity instead of the naive . With Proposition 3.1, this yields a very efficient algorithm for estimating : sample N IID vectors and compute the corresponding sample mean estimating the right hand side of (7).
Writing here
the question now is how the estimator
behaves relative to . The following theorem provides an answer.
Theorem 3.3. With IID inputs, is an unbiased estimator of , and
By Theorem 3.3, a relative error can be achieved with probability if
For example, and gives ; while and gives . Figure 1 and the variance bound (11) both suggest that the exponential tail bound is quite loose in practice, and that small N suffices for meaningful estimates.
Meanwhile, the bound (11) is tight, saturating for points with p uniform.

Figure 1: From left to right: for , relative errors over 100 trials for estimates of Euclidean quadratic entropies with dense, given by normalizing IID random variables, and given by taking 10000 IID uniform points on for and forcing coordinates (chosen uniformly without replacement) to be positive. Error for is shown in red, while error using the Euclidean control variate described in §4.2 is shown in blue. Note that relative errors are virtually independent of the concentration parameter .
3.4 Geodesic distance on
Instead of projecting and transporting, the spherical geodesic distance is linearized through random sign features that yield (15) below. Write . The key technical element we need is Lemma 3.2 of [14] (also Lemma 1.4.1 of [12]; cf. [8]), restated here:
Lemma 3.4 (Goemans-Williamson). If (e.g., ), then
Taking expectations of now gives that
Let for .
Proposition 3.5.
Corollary 3.6 (Grothendieck ).
Now define .
Theorem 3.7. For a geodesic distance matrix on and ,
Note that this result expresses the geodesic quadratic entropy very succinctly, through the scalar s evaluated over random directions. This scalar can be efficiently amortized as discussed in §4.1 when d is reused. Meanwhile, as in §3.3, we obtain a very efficient algorithm for estimating : sample N IID vectors and compute the corresponding sample mean estimating the right hand side of (15). Figure 2 shows an example using the algorithm.
Also as in §3.3, if we write here
the question now is how the estimator
behaves relative to . The following theorem provides an answer.
Theorem 3.8. For a geodesic distance matrix on and with IID inputs, is an unbiased estimator of with
and
By Theorem 3.8, an absolute error can be achieved with probability if
For example, and gives ; while and gives . As before, Figure 2 and the variance bound (18) both suggest that the exponential tail bound is quite loose in practice, and that taking N small suffices for meaningful estimates.
3.4.1 A relative bound
We can also get a relative bound on Q in the geodesic case, starting with a tightened variance bound. We first collect building blocks.
See, e.g., §2 of [6].

Figure 2: As in Figure 1, but for spherical geodesic (versus Euclidean) distance d. Note that as concentration increases (because the number of fixed signs on the sphere increases) from left ( ) to right ( ), the relative errors rapidly increase.
Proposition 3.9. Under the same assumptions as Theorem 3.8,
The bound (20) is tight. To see this, take points at geodesic distance with uniform: then , so is Bernoulli with by Lemma 3.4. Since here, , and the inequalities in the proof become equalities. For , the bound (20) is also much sharper than (18).
Theorem 3.10 (Bernstein; adapted from Theorem 2.10 of [4]). Let be IID real random variables with , and suppose satisfy
and
for every integer , where . Then for all ,
Lemma 3.11. Let be IID real random variables with and , and let satisfy . Then for every ,
We are now ready to use Proposition 3.9 and Lemma 3.11 for a relative bound.
Theorem 3.12. Under the assumptions of Theorem 3.8 with ,
By Theorem 3.12, a relative error is achieved with probability once
3.4.2 Comparison with a pair-sampling baseline
Figure 3 compares against pair sampling along two axes: the geometry concentration, as in Figure 2; and the support size of a uniform p. As the concentration increases, the ratio falls quickly: the sketch variance increases towards the bound in Proposition 3.9, while the pair variance, which measures the spread of individual distances, is agnostic to concentration. As increases, the ratio rises quickly but is always above 1 here. In short, concentrating the geometry or (the support of) p erodes the advantage of sketching, but only the former reverses it at a useful scale.
4 SCALING
The runtimes of the squared Euclidean, cosine distance, Euclidean, and spherical geodesic cases above are respectively , , , and , each of which improves over the naive when as intended . However, further speedups are achievable: amortization and a (Euclidean) control variate provide real advantage.
4.1 Amortization
Both Euclidean and geodesic distance estimators can (and should) reuse a single product across different p, provided only that X and d are preserved. Similarly, the sort required for the Euclidean distance estimator can be done once and cached.
A naive approach requires a single effort to form d, followed by effort for each Q, whereas


Figure 3: Both panels show the same ratio, of the per-pair variance (where we use the Hadamard product notation ) of the pair-sampling estimator of §1.2 to the measured per-direction variance , for points on for . Left: dense and random, with the geometry concentrated by forcing coordinates positive as in Figure 2. Right: taking geometry and uniform on points. The panels do not agree at their common corner ( versus ) because is dense random on the left and exactly uniform on the right.
our approach requires a single effort to form followed by for each .
In the amortized setting, we can obtain uniform bounds on Q.
Lemma 4.1. Let be the Euclidean metric on distinct fixed points and for and . For
we have for all with probability at least ; consequently, with probability at least , independently of .
A similar result for spherical geodesic distance is easier, but weaker:
Lemma 4.2. Let be the spherical geodesic metric on distinct fixed points in , satisfying for . For
with probability .
4.2 Control variates
Recall the idea of a control variate [1]. Here, this means a random variable W that is strongly correlated with (here is a placeholder indicating the Euclidean or spherical geodesic cases) and has a known mean . In this context, consider the estimator , where is the sample mean of W. This estimator is also an unbiased estimator of Q, and its variance is . This variance is minimized for , with minimum
The optimal is estimated by sample (co)variances; leave-one-out cross-validation avoids a bias that could be otherwise inherited from dependence on and manifests in analogues of Figures 1 and 2 for large (not shown).
A useful control variate for the Euclidean distance quadratic entropy is
To see this, note that
and
so that is given by the squared Euclidean quadratic entropy (4), which is computable in versus . Figure 1 shows its application in blue.
Sparsity in p can further help our approach, though not uniquely, so we do not focus on this. In particular, sparsity makes the analysis of §5 lightweight, even for multiple random walk steps.
A control variate for the geodesic distance case is , which has
. However, this is less effective for concentrated data than in the Euclidean case, because in that regime working with signs alone throws away too much information. Figure 2 shows its application in blue.
5 EXAMPLES AT SCALE
As a demonstration/experiment of the sort familiar at smaller scales in the bibliometric and scientometric literature [39, 30, 7, 29], we compute quadratic entropies for a Markov chain corresponding to a uniform random walk of citations on ogbn-arxiv, a citation digraph of arXiv papers with 1166243 arcs, skip-gram title/abstract features per node, and a label for the arXiv subject class [20]. We write for the one-step distribution of the th paper, treated as a column vector; we place unit mass on for any papers without citations. We also consider the spherical geodesic metric on (normalized) features. If papers cite uniformly across subject classes, then the corresponding Shannon entropy is , whereas , where is the average distance between distinct citing papers: this measures dispersion, and not just cardinality. This also suggests a normalization that controls for citation counts and focuses on geometry.
Figure 5 is the result of applying this normalization to the data in Figure 4. In both figures, we stratify the citation count into the bands , [20, 50), [50, 100), and [100, 500), so that the Shannon entropy H is approximately constant within each band while we allow the quadratic entropy to vary. Meanwhile, we consider other proxies for the dispersion of papers' readership: the number of distinct arXiv subject areas represented among citing papers (the left panels of Figures 4 and 5) and the Shannon entropy of the citing papers (the right panels of the same figures). We discard cells with fewer than 30 papers. The figures show that the feature-based quadratic entropy does capture a ground-truth (defined by arXiv subject area) semantic dispersion of citing papers, while controlling for the citation count . Finally, Table 1 shows some specific papers with particularly wide or narrow reach.
Storing the distance matrix for requires roughly 57 GB even in half precision, so the dense evaluation of Q is impractical at this scale. By comparison, a bit-packed sign sketch requires roughly a thousand times less storage for . Using the approach of §3.4 with random directions took just 3.76 seconds for the one-time sketch construction on a MacBook Pro (M3 Max), while all n entropies were computed in 18.6 seconds (this was fast because of sparsity). By comparison, just load-

distinct arXiv subject areas among citing papers
citer-category Shannon entropy of the citing set [nats]
Figure 4: Top: (estimated) quadratic entropies of the (one-step) distribution of citing papers for various bands of citation count and as a function of distinct subject areas of citing papers. Bottom: the same quadratic entropies, but as functions of Shannon entropy for the arXiv class distribution. Note that d is agnostic to the arXiv class data and only depends on the skip-gram feature vectors for titles and abstracts.

distinct arXiv subject areas among citing papers
citer-category Shannon entropy of the citing set [nats]
Figure 5: As in Figure 4, but normalized.
Table 1: Narrow- and broad-reach exemplars at three target degrees. For each of two papers in the three target bands [18, 22), [38, 42), and [75, 85), we show the paper's degree , the number of distinct arXiv categories of citing papers, the cross-field fraction , the quadratic entropy , the primary class, arXiv identifier, and the beginning of the title. The broad-reach papers are respectively a survey, a tutorial, and a design document for the popular scikit-learn library.
| # | class | arXiv ID | title start | |||
|---|---|---|---|---|---|---|
| 20 | 1 | 0.00 | 0.40 | cs.IT | 1705.06350 | Wireless Information and Power Transfer over an AWGN channel... |
| 21 | 11 | 0.86 | 0.65 | cs.LG | cs/0011033 | Web Mining Research: A Survey |
| 41 | 1 | 0.00 | 0.45 | cs.IT | 0905.3109 | Interference Channels with Source Cooperation |
| 38 | 14 | 0.76 | 0.65 | cs.LG | 1404.1100 | A Tutorial on Principal Component Analysis |
| 78 | 1 | 0.00 | 0.56 | cs.CV | 1803.09786 | Transferable Joint Attribute-Identity Deep Learning for Unsupervised... |
| 78 | 18 | 0.55 | 0.72 | cs.LG | 1309.0238 | API design for machine learning software: experiences from the scikit-... |
ing the dataset took 1.82 seconds. (Virtually identical results were obtained even faster for .)
5.1 A larger-scale example
A second example on the ogbn-mag dataset of papers [20] exhibits dispersion across multiple levels in Figure 6 and extremely concentrated and dispersed fields and institutions in Figure 7. Dispersion across multiple levels of aggregation (e.g., papers, authors, coauthors, fields, and institutions) in Figure 6 is computed very economically from a single sketch by placing uniform distributions on the relevant supports. The single large matrix multiplication involved took under two seconds.

Figure 6: Quadratic entropy/dispersion increases with the level of aggregation.
AI use statement
In this work, I used generative AI tools (specifically, Claude Opus 5) to help develop conceptual frameworks, formulate mathematical claims, provide critical ingredients for proving mathematical claims, assist in the writing of proofs, propose or refine hypotheses, design or provide feedback on research methodology or experiments, implement methods, support qualitative and thematic data analysis, and interpret results.

Figure 7: Extremes of concentration (red) and dispersion (blue) among (top) fields at MAG concept hierarchy level 2 and (bottom) institutions, both with 5000 or more papers, with labels provided by OpenAlex [31]. Concentration appears to be correlated with specialization (at least at extremes).
I have not used generative AI tools to generate synthetic data sets, assist with translation, or clean and reformat datasets.
Additionally, I used generative AI tools to create or modify scientific figures or images, suggest experimental parameters, create or edit software code, draft parts of a research paper, summarize or analyse existing literature, discover research topics or identify gaps, brainstorming, sourcing/searching for information, identify relevant literature, and format references.
I have reviewed all AI-assisted work, by rewriting proofs from scratch, introspecting and plotting Python code outputs in MATLAB, verifying other feedback and products at time of production, and performing independent analyses of data and results.
In particular, all of the writing and responsibility is mine.
References
[1] Søren Asmussen and Peter W Glynn. Stochastic Simulation: Algorithms and Analysis. Springer, 2007.
[2] Clément Bonet, Paul Berg, Nicolas Courty, François Septier, Lucas Drumetz, and Minh Tan Pham. Spherical sliced-Wasserstein. In International Conference on Learning Representations, 2023.
[3] Nicolas Bonneel, Julien Rabin, Gabriel Peyré, and Hanspeter Pfister. Sliced and Radon-Wasserstein barycenters of measures. Journal of Mathematical Imaging and Vision, 51(1):22–45, 2015.
[4] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford, 2013.
[5] Siwan Boufadene, François-Xavier Vialard, and Jean Feydy. Fast large deformation matching with the energy distance kernel. arXiv preprint arXiv:2505.03342, 2025.
[6] Jop Briët, Fernando Mário de Oliveira Filho, and Frank Vallentin. Grothendieck inequalities for semidefinite programs with rank constraint. arXiv preprint arXiv:1011.1754, 2010.
[7] Lorenzo Cassi, River Champeimont, Wilfriedo Mescheba, and Elisabeth De Turckheim. Analysing institutions interdisciplinarity by extensive use of Rao-Stirling diversity index. PLoS One, 12(1):e0170296, 2017.
[8] Moses S Charikar. Similarity estimation techniques from rounding algorithms. In ACM Symposium on Theory of Computing, 2002.
[9] Youngmin Cho and Lawrence Saul. Kernel methods for deep learning. In Advances in Neural Information Processing Systems, 2009.
[10] Krzysztof M Choromanski, Mark Rowland, and Adrian Weller. The unreasonable effectiveness of structured random orthogonal embeddings. In Advances in Neural Information Processing Systems, 2017.
[11] Petros Drineas, Michael W Mahoney, and Nello Cristianini. On the Nyström method for approximating a Gram matrix for improved kernel-based learning. Journal of Machine Learning Research, 6(12), 2005.
[12] Bernd Gärtner and Jiri Matousek. Approximation Algorithms and Semidefinite Programming. Springer, 2012.
[13] Alex Gittens and Michael Mahoney. Revisiting the Nyström method for improved large-scale machine learning. In International Conference on Machine Learning, 2013.
[14] Michel X Goemans and David P Williamson. Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming. Journal of the ACM (JACM), 42(6):1115–1145, 1995.
[15] Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 13(1):723–773, 2012.
[16] Johannes Hertrich. Fast kernel summation in high dimensions via slicing and Fourier transforms. SIAM Journal on Mathematics of Data Science, 6(4):1109–1137, 2024.
[17] Johannes Hertrich, Tim Jahn, and Michael Quellmalz. Fast summation of radial kernels via QMC slicing. In International Conference on Learning Representations, 2025.
[18] Johannes Hertrich, Christian Wald, Fabian Altekrüger, and Paul Hagemann. Generative sliced MMD flows with Riesz kernels. In International Conference on Learning Representations, 2024.
[19] Poul Hjorth, Petr Lisoněk, Steen Markvorsen, and Carsten Thomassen. Finite metric spaces of strictly negative type. Linear Algebra and its Applications, 270(1-3):255–273, 1998.
[20] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: datasets for machine learning on graphs. In Advances in Neural Information Processing Systems, 2020.
[21] Steve Huntsman. Peeling metric spaces of strict negative type. In Topology, Algebra, and Geometry in Data Science, 2025.
[22] Soheil Kolouri, Kimia Nadjahi, Umut Simsekli, and Shahin Shahrampour. Generalized sliced distances for probability distributions. arXiv preprint arXiv:2002.12537, 2020.
[23] Tom Leinster. Entropy and Diversity. Cambridge, 2021.
[24] Tom Leinster and Christina A Cobbold. Measuring diversity: the importance of species similarity. Ecology, 93(3):477–489, 2012.
[25] Russell Lyons. Distance covariance in metric spaces. The Annals of Probability, pages 3284–3305, 2013.
[26] Yueming Lyu. Spherical structured feature maps for kernel approximation. In International Conference on Machine Learning, 2017.
[27] Mark W Meckes. Positive definite metric spaces. Positivity, 17(3):733–757, 2013.
[28] Marina Munkhoeva, Yermek Kapushev, Evgeny Burnaev, and Ivan Oseledets. Quadrature-based features for kernel approximation. In Advances in Neural Information Processing Systems, 2018.
[29] Minsu Park, Suman Kalyan Maity, Stefan Wuchty, and Dashun Wang. Interdisciplinary papers supported by disciplinary grants garner deep and broad scientific impact. PNAS Nexus, 5(3):pgag057, 2026.
[30] Alan L Porter and Ismael Rafols. Is science becoming more interdisciplinary? measuring and mapping six research fields over time. Scientometrics, 81(3):719–745, 2009.
[31] Jason Priem, Heather Piwowar, and Richard Orr. Openalex: A fully-open index of scholarly works, authors, venues, institutions, and concepts. arXiv preprint arXiv:2205.01833, 2022.
[32] Michael Quellmalz, Robert Beinert, and Gabriele Steidl. Sliced optimal transport on the sphere. Inverse Problems, 39(10):105005, 2023.
[33] Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems, 2007.
[34] C Radhakrishna Rao. Convexity properties of entropy functions and analysis of diversity. In Inequalities in Statistics and Probability, volume 5, pages 68–78. Institute of Mathematical Statistics, 1984.
[35] Isaac J Schoenberg. Metric spaces and positive definite functions. Transactions of the American Mathematical Society, 44(3):522–536, 1938.
[36] Isaac J Schoenberg. Positive definite functions on spheres. Duke Mathematical Journal, 9:96–108, 1942.
[37] Bernhard Schölkopf and Alexander J Smola. Learning With Kernels: Support Vector Machines, Regularization, Optimization, and Beyond. MIT, 2002.
[38] Dino Sejdinovic, Bharath Sriperumbudur, Arthur Gretton, and Kenji Fukumizu. Equivalence of distance-based and RKHS-based statistics in hypothesis testing. The Annals of Statistics, 41(5):2263–2291, 2013.
[39] Andy Stirling. A general framework for analysing diversity in science, technology and society. Journal of the Royal Society Interface, 4(15):707, 2007.
[40] Gábor J Székely and Maria L Rizzo. Energy statistics: A class of statistics based on distances. Journal of Statistical Planning and Inference, 143(8):1249–1272, 2013.
[41] Larry Wasserman. All of Statistics: A Concise Course in Statistical Inference. Springer, 2004.
[42] Christopher Williams and Matthias Seeger. Using the Nyström method to speed up kernel machines. In Advances in Neural Information Processing Systems, 2000.
[43] Tianbao Yang, Yu-Feng Li, Mehrdad Mahdavi, Rong Jin, and Zhi-Hua Zhou. Nyström method vs random Fourier features: A theoretical and empirical comparison. In Advances in Neural Information Processing Systems, 2012.
[44] Felix Xinnan X Yu, Ananda Theertha Suresh, Krzysztof M Choromanski, Daniel N Holtmann-Rice, and Sanjiv Kumar. Orthogonal random features. In Advances in Neural Information Processing Systems, 2016.
[45] Ji Zhao and Deyu Meng. FastMMD: ensemble of circular discrepancy for efficient two-sample test. Neural Computation, 27(6):1345–1372, 2015.
CHECKLIST
- For all models and algorithms presented, check if you include:
(a) A clear description of the mathematical setting, assumptions, algorithm, and/or model. [Yes; this is the backbone of the paper]
(b) An analysis of the properties and complexity (time, space, sample size) of any algorithm. [Yes; ibid.]
(c) (Optional) Anonymized source code, with specification of all dependencies, including external libraries. [Yes: Python and MATLAB, the latter just for checking and plotting results]
- For any theoretical claim, check if you include:
(a) Statements of the full set of assumptions of all theoretical results. [Yes]
(b) Complete proofs of all theoretical results. [Yes]
(c) Clear explanations of any assumptions. [Yes]
- For all figures and tables that present empirical results, check if you include:
(a) The code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL). [Yes, the actual code to produce the figure, even if redundant]
(b) All the training details (e.g., data splits, hyperparameters, how they were chosen). [Not Applicable]
(c) A clear definition of the specific measure or statistics and error bars (e.g., with respect to the random seed after running experiments multiple times). [Yes]
(d) A description of the computing infrastructure used. (e.g., type of GPUs, internal cluster, or cloud provider). [Yes, a MacBook Pro (M3 Max), mentioned in the text]
- If you are using existing assets (e.g., code, data, models) or curating/releasing new assets, check if you include:
(a) Citations of the creator If your work uses existing assets. [Yes, for OGBN]
(b) The license information of the assets, if applicable. [Not Applicable]
(c) New assets either in the supplemental material or as a URL, if applicable. [Not Applicable]
(d) Information about consent from data providers/curators. [Not Applicable]
(e) Discussion of sensible content if applicable, e.g., personally identifiable information or offensive content. [Not Applicable: arXiv paper information does not plausibly fall under this]
- If you used crowdsourcing or conducted research with human subjects, check if you include:
(a) The full text of instructions given to participants and screenshots. [Not Applicable]
(b) Descriptions of potential participant risks, with links to Institutional Review Board (IRB) approvals if applicable. [Not Applicable]
(c) The estimated hourly wage paid to participants and the total amount spent on participant compensation. [Not Applicable]
Efficient quadratic entropy with distance sketches: Supplementary Materials
A PROOFS
A.1 Proof of Proposition 3.1
Proof. By standard algebra of Gaussian random variables (see, e.g., §14.3 of [41]), . Using the substitution , we have
which establishes (6). It follows that
which is precisely (7).
A.2 Proof of Proposition 3.2
Proof. Because the are sorted,
where the last equality follows from .
A.3 Proof of Theorem 3.3
Proof. To start, write : now
where the second inequality is from the reverse triangle inequality and the third is Cauchy-Schwarz. So is Lipschitz with constant .
The Lipschitz property lifts to :
where the last inequality is Cauchy-Schwarz. We abbreviate this as
where we can regard . Since , the Gaussian concentration inequality (Theorem 5.6 of [4]) now yields
Substituting yields (10).
Meanwhile, for and we have , so by (6) while . This gives . Since by Minkowski's inequality,
and
☐
A.4 Proof of Proposition 3.5
Proof. , and , so , where the last equality is (14).
A.5 Proof of Theorem 3.7
Proof.
□
A.6 Proof of Theorem 3.8
Proof. , so Hoeffding's inequality (Theorem 2.8 of [4]) immediately gives (17) and also . Meanwhile,
Combining this with yields (18).
A.7 Proof of Proposition 3.9
Proof. Since , the convex combination , so and therefore . It follows that
Meanwhile, by Theorem 3.7, so
Since , we have
The second inequality in the proposition follows because for . (Alternatively, note that is maximized over at , where it equals .)
A.8 Proof of Lemma 3.11
Proof. The overarching idea is to apply Theorem 3.10 with and . Now (21) is satisfied. To see that (22) is satisfied, fix an integer . Now since and . Taking expectations and applying (21) gives that , so (22) follows once . Equivalently, (22) follows once . This inequality holds for , with equality at (which is where the constant term in comes from).
It now remains to pick a good value of and produce a two-sided bound. Towards the first of these goals, Theorem 3.10 controls at the -dependent level . To control it at the prescribed level , set
Alternatively, use (3) on and .
so that , and hence and . Completing the square,
Thus , so (23) applies at . The result follows by a union bound and sign symmetry of the hypothesis .
A.9 Proof of Theorem 3.12
Proof. Set , so the are IID and centered with . We supply the two inputs and that Lemma 3.11 requires. Since , the convex combination is in , so and . Similarly, , so . Meanwhile, Proposition 3.9 gives .
Now with ,
Meanwhile, is the same as . These yield (25).
A.10 Proof of Lemma 4.1
Proof. Write , so that are IID. Since by Proposition 3.1, for , we have
Further writing here , we have that
where the second inequality is from Cauchy-Schwarz. The Gaussian concentration inequality (Theorem 5.6 of [4]) now yields . Setting and using , we get in turn
Now a union bound over the unordered pairs gives that
which also implies that
so
The result follows by solving for .
口
A.11 Proof of Lemma 4.2
Proof. The random variable takes values in with mean . Using notation along the lines of the preceding proof, Hoeffding's inequality yields . A union bound gives in turn
which is bounded above by . Finally, , so if , then .