                      Dimensionality Reduction on Complex Vector Spaces
                         for Euclidean Distance with Dynamic Weights


                               Simone Moretti 1 * Paolo Pellizzoni 2 1 * Francesco Silvestri 1


                          Abstract                                       The weighted Euclidean distance is a frequently used primi-
                                                                         tive in several learning tasks for improving output quality, as
       The weighted Euclidean norm ∥x∥w of a vec-                        weights can capture the estimated relevance of a feature on
       tor x ∈ Rd with weights w ∈ Rd is the Eu-                         the output (Niño-Adan et al., 2021). In the context of LLMs,
       clidean norm where the contribution of each                       attention scores are used to weight the relative importance of
       dimension is scaled by a given weight. Ap-                        each component in a sequence relative to the other elements
       proaches to dimensionality reduction that satisfy                 in that sequence (Vaswani et al., 2017), while weighted low-
       the Johnson–Lindenstrauss (JL) lemma can be                       rank approximation is used to compress models by taking
       easily adapted to the weighted Euclidean distance                 into account the importance of parameters (Hsu et al., 2022;
       if weights are known and fixed: it suffices to                    Woodruff & Yasuda, 2024). In recommendation systems,
       scale each dimension of the input vectors accord-                 weights can improve the accuracy of prediction since it can
       ing to the weights, and then apply any standard                   enhance the role of relevant products while reducing the
       approach. However, this is not the case when                      impacts of irrelevant products (Wang et al., 2015; Gu et al.,
       weights are unknown during the dimensionality                     2016; Yu et al., 2003). Text k-NN classifiers use weights
       reduction or might dynamically change. In this                    for taking into account the distribution of the terms across
       paper, we address this issue by providing a linear                classes estimated from training data (Moreo et al., 2020;
       function that maps vectors into a smaller complex                 Bhattacharya et al., 2017). Most algorithmic methods sup-
       vector space and allows to retrieve a JL-like es-                 porting these applications assume that weights are known
       timate for the weighted Euclidean distance once                   and fixed. However, weights might change over time or
       weights are revealed. Our results are based on                    be not known at preprocessing time, a setting that we here-
       the decomposition of the complex dimensional-                     inafter refer to as “dynamic weights”. Examples include
       ity reduction into several Rademacher chaos ran-                  nearest neighbor methods (Indyk & Motwani, 1998) for
       dom variables, which are studied using novel con-                 classification or recommender systems (Baumgärtner et al.,
       centration inequalities for sums of independent                   2022), where the relative importance of features might de-
       Rademacher chaoses.                                               pend on the type of query at hand. Weights might be esti-
                                                                         mated on highly dynamic datasets that require a frequent
                                                                         update of the parameters (e.g., (Banihashem et al., 2024)).
1. Introduction                                                          Moreover, weights might be user dependent and it might be
                                                                         too expensive to construct indexes for each possible set of
The weighted Euclidean distance between two vectors is a                 weights, as in the aforementioned case of recommendation
Euclidean distance where the contribution of each dimen-                 systems. For this reason, recent works have been addressing
sion is scaled by a given weight representing the relevance              dynamic settings, such as for weighted Euclidean distance
of the dimension. Specifically, given a vector x ∈ Rd and a              for the near neighbor search problem (Lei et al., 2019; Hu
weight vector w ∈ Rd (with wi ≥ 0 for all i ∈ {1, . . . d}),             & Li, 2021).
          qP norm of x with weights w is defined as
the weighted
                                                                         The goal of this paper is to investigate the impact of dy-
               d     2 2
∥x∥w =         i=1 wi xi . The weighted Euclidean distance               namically weighted distance in dimensionality reduction
between two vectors x, y is then defined as ∥x − y∥w .                   techniques. Dimensionality reduction methods map high-
   *                                                                     dimensional vectors into a space with lower dimensionality,
     Equal contribution 1 University of Padova, Italy 2 Max Planck
Institute of Biochemistry, Germany. Correspondence to: Francesco         while keeping some information on the original vectors; the
Silvestri <francesco.silvestri@unipd.it>.                                low-dimension vectors reduce communication and storage
                                                                         costs and mitigate the curse of dimensionality in the running
Proceedings of the 42 nd International Conference on Machine             time. A well-known result on dimensionality reduction is
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025              provided by the Johnson–Lindenstrauss (JL) lemma (John-
by the author(s).

                                                                     1
                             Dimensionality Reduction on Complex Spaces with Dynamic Weights

son & Lindenstrauss, 1984): given a set X of n vectors in             of least square regression (Yang et al., 2015) and low-rank
Rd , there exists a linear map g(·) that approximately main-          matrix approximation (Ghojogh et al., 2021; Cunningham
tains pairwise squared Euclidean distances; that is, for any          & Ghahramani, 2015).
                                     2                 2
x, y ∈ X , we have that | ∥x − y∥2 − ∥g(x) − g(y)∥2 | ≤
           2                                                          Dimensionality reduction under Euclidean distance with
ε ∥x − y∥2 .                                                          dynamic weights can be formalized by the following prob-
The JL lemma holds even with weighted Euclidean dis-                  lem: 1) each vector x ∈ X is mapped into a smaller vector
tance if weights are known beforehand. Consider one                   with a linear function g(·), obliviously of weights; 2) when
of the several linear maps g(x) satisfying the JL lemma,              weights w are provided, a function ρ(g(x), w) is applied to
for instance g(x) = Ax where A is the Achlioptas’ ma-                 a compressed vector g(x) to obtain an unbiased estimate of
                                                                          2
trix (Achlioptas, 2003) (i.e., each element is a random value         ∥x∥w . To solve the problem we have to provide function
in {−1, 1}). If all input vectors in X are scaled accord-             g(x) to map vectors into the smaller space, and function
ing to the given weights w as x′ = w ⊙ x, with ⊙ denot-               ρ(g(x), w) to recover the weighted norm. To the best of our
ing component-wise multiplication, the map g(x′ ) gives               knowledge, no previous works have addressed this problem.
          2                      2                2
| ∥x − y∥w − ∥g(x′ ) − g(y ′ )∥2 | ≤ ε ∥x − y∥w , where x′
is the scaled version of the input vector x ∈ X . However,            1.1. Our results
this method cannot be applied if weights are known only
                                                                      In this paper, we provide the first solution to dimensionality
after the dimensionality reduction step, or if weights could
                                                                      reduction with dynamic weights. We map vectors in X into
dynamically change. Note that naively storing the origi-
                                                                      a low dimensional complex vector space with a linear map
nal vectors and scaling them once weights are provided
                                                                      g(x) : Rd → Ck , for a suitable value k > 0. The map is
would defeat the purpose of using dimensionality reduc-
                                                                      done before the weights are revealed and it is hence indepen-
                                                                                                                                 √
tion. Therefore, one would need to find a dimensionality
                                                                      dent of weights. More specifically, we let g(x) = Ax/ k
reduction technique that can reduce vectors obliviously to
                                                                      where matrix A is a complex k × d random matrix, where
the weights, and then retrieve (an estimate of) the weighted
                                                                      each entry is an independently and identically distributed
norm once the weights are available based solely on the
                                                                      random variable over {+1, −1, +i, −i}, where i is the imag-
reduced vectors.
                                                                      inary unit (i.e., i2 = −1). Once the weight vector w is
In fact, we observe that there is a simple, but fundamentally         known, we apply a suitable function to the low-dimensional
flawed, solution to this problem. Indeed, it is enough to ob-         vectors in {g(x) : x ∈ X } that allows us to estimate the
serve that the weighted norm is the scalar product between            squared weighted Euclidean norms and the pairwise dis-
the vector (x⊙x) and (w⊙w). Then, applying the JL dimen-              tances for any pair of vectors in X . Let h(g(x), w) =
sionality reduction to the vector (x ⊙ x) yields the reduced          g(x) ⊙ g(x) ⊙ ((A ⊙ A)(w ⊙ w)) with ⊙ denoting the
vector g ′ (x) = A(x ⊙ x), where A is a n × k random matrix           element-wise multiplication. Then, our unbiased estimate
                                                                              2                                 Pk
with entries in {−1, 1}. Then recalling the results of JL for
                                                                                                                                   
                                                                      of ∥x∥w is given by ρ(g(x), w) = Re          i=1 h(g(x), w)i ,
scalar products, e.g. as shown in (Kaban, 2015), we have              where the subscript ·i denotes the i-th entry of a vector, and
                                             2
that g ′ (x) · g ′ (w) is an estimator of ∥x∥w that can be com-       Re (·) is the real part. Note that computing ρ(·, ·) does not
                                      ′
puted from the reduced vector g (x) once the weights are              require access to the original vector x.
revealed. In particular taking k = O(ε−2 ln(δ −1 )) yields,
with probability at least 1 − δ,                                      In the paper, we will show that the expected value of
                                                                                         2
                                                                      ρ(g(x), w) is ∥x∥w and provide upper bounds on the er-
                               2            2     2
         |g ′ (x) · g ′ (w) − ∥x∥w | < ε ∥x∥4 ∥w∥4 .       (1)        ror. The following theorem, which is the main result of our
                                                                      paper, states that ρ(g(x), w) provides a bounded additive
However, the function g ′ (·) is not linear and it cannot be          error to the weighted norm, akin to the ones obtained for dot
used for estimating pairwise weighted distances in a set of           products under random projections (Kaban, 2015). More-
vectors, severely limiting the applicability of the method.           over, when the vector and weights at hand are such that
                                                                                       2     2      2
                                                                      the quantity ∥x∥2 ∥w∥4 / ∥x∥w is bounded by some term ∆,
Indeed, the prime application of the linearity of JL maps
                                                                      one can obtain a multiplicative approximation guarantee as
is reducing the time complexity of pairwise distance com-
                                                                      in the JL lemma.
putations (Cunningham & Ghahramani, 2015), which has
applications in clustering (Makarychev et al., 2019) and                                n δ 2> 0. Let ∆ be a suitable
                                                                      Theorem 1.1. Let ε,                       o parameter
                                                                                                      ∆ ln(8/δ)2
nearest neighbor search (Indyk & Motwani, 1998; Ghalib                and k ≥ Ω max ∆ ln(8/δ) ε2    ,      ε       . Then there
et al., 2020), e.g. for recommender systems and classifica-           exists a linear function g(x) : Rd → Ck and an estimator
tion. Other examples include compressed sensing (Upad-                ρ(g(x), w) : Ck × Rd → R such that for any given x, w ∈
hyay, 2015), which relies on sparse linear measurements               Rd , with probability at least 1 − δ,
to recover an unknown signal. Finally, the linearity of JL
                                                                                                  2            2    2
has been exploited to reduce the computational complexity                      |ρ(g(x), w) − ∥x∥w | < ε ∥w∥4 ∥x∥2 /∆.

                                                                  2
                               Dimensionality Reduction on Complex Spaces with Dynamic Weights
                     2     2          2
In particular, if ∥x∥2 ∥w∥4 / ∥x∥w ≤ ∆, we get, with prob-            In (Har-Peled & Mahabadi, 2017), the authors have pro-
ability at least 1 − δ,                                               posed a variant of the nearest neighbor search problem al-
                                  2          2
                                                                      lowing for some coordinates of the dataset to be arbitrarily
             |ρ(g(x), w) − ∥x∥w | < ε ∥x∥w .                          corrupted or unknown. The goal is to preprocess the in-
                                                                      put set such that, given a query point q, it is possible to
We observe that the linearity of g(·) allows us to esti-              efficiently find a point x ∈ S such that the distance of the
mate pairwise weighted Euclidean distances using the com-             query q to the point x is minimized when removing the
pressed vectors, as ρ(g(x) − g(y), w) = ρ(g(x − y), w) is             noisiest k coordinates (i.e., coordinates are chosen so that
                               2
a unbiased estimator of ∥x − y∥w .                                    deleting them from both vectors minimizes their distance).
                                                                      The paper provides a (1 + ε)-approximation to the optimal
We then extend, in Section 4.4, the previous result by show-
                                                                      solution. We observe that in this work the coordinates to be
ing that when the vectors x and w are near-uniformly dis-
                                                                      removed are selected by the maximization procedure, and
              lower
tributed, we can       the dimensionality of the reduced vec-
                                                                     not specified in input.
                                         ∆ /3
                    ∆            1/2     2          4/3
tors to Θ max           ε  ln (8/δ)    , ε     ln (8/δ)      ,
                                                                      Complex numbers have been used for approximately com-
and still obtain the same guarantees. The approach uses
                                                                      puting the permanent of a matrix (Chien et al., 2003), and
a sparse block matrix consisting of L submatrices of size
                                                                      in data streams to approximately count the number of occur-
k × d/L, where each submatrix is generated as the afore-
                                                                      rences of a given subgraph in a graph (Kane et al., 2012). A
mentioned complex matrix A, for a suitable value of L.
                                                                      use of complex numbers similar to our case can be found
The analysis of the aforementioned results leverages the              in (Kane et al., 2011), where they estimate the p norm in a
decomposition of the complex dimensionality reduction into            streaming setting, with 0 < p < 2.
several Rademacher chaos random variables, i.e., sums of
                                                                      The JL lemma has been proved to provide tight bounds
products of Rademacher random variables (see Section 2.3
                                                                      (Larsen & Nelson, 2016; 2017), and has been used for sev-
for a formal definition). To do so, we develop a novel
                                                                      eral applications, including differential privacy (Blocki et al.,
upper bound to tail probabilities for sums of independent
                                                                      2012) and clustering (Makarychev et al., 2019).
Rademacher chaoses, which can be of independent interest.
                                                                      Finally, Kaski et al. (2025) very recently addressed the prob-
Specifically, we have the following concentration result,
                                                                      lem of developing a generalization of JL for multi-linear
which builds on a novel application of Bonami’s hyper-
                                                                      dot products, which encompasses weighted norms. Their
contractive inequality (Blei & Janson, 2004) to arbitrary
                                                                      approach relies on non-independent matrices rather than
Rademacher chaoses, and a recent concentration result for
                                                                      complex numbers to achieve unbiasedness and only consid-
sums of independent sub-Weibull random variables (Kuchib-
                                                                      ers the case of general vectors. On the other hand, since we
hotla & Chakrabortty, 2022).
                                                                      focus on the weighted norm, we develop an enhanced tech-
Theorem 1.2. Let S and {Si }i=1,...,k be k + 1 independent            nique for near-uniform vectors, which yields better results.
and identically distributed Rademacher chaoses of order γ ′ .
Let W (S) be the Euclidean norm of the coefficients in S.             1.3. Outline of the paper
Then ∀t > 0, ∀γ ≥ 3 such that γ ′ ≤ γ, there exist constants
c1 (γ), c2 (γ) depending only on γ such that                          In Section 2, we provide a formal background on the con-
   " k                                              #                 cepts we use throughout the paper. In Section 3, we derive
     X                       √ √                                    the first tail bounds on sums of independent Rademacher
                                                      ≤ 2e−t .
                                              γ/2
Pr         Si > W (S) c1 (γ) k t + c2 (γ)t                            chaoses. Our proof starts by generalizing the results of
     i=1
                                                                      Bonami’s hypercontractive inequality (Blei & Janson, 2004)
                                                                      to arbitrary Rademacher chaoses, which is then used to
1.2. Related work                                                     obtain an expression for the Orlicz norm of Rademacher
Recently, (Lei et al., 2019; Hu & Li, 2021) have studied the          chaoses. Using recent results based on such Orlicz norms
r-near neighbor search problem under weighted distance                (Kuchibhotla & Chakrabortty, 2022), we then prove the con-
with weights provided at query time: given a set S of n               centration result. In Section 4, we prove our main result
vectors, construct a data structure that, for any query vector        (Theorem 1.1) and an improvement (Theorem 4.6) under the
x and weight vector w, returns a vector y in S such that              hypothesis of near-uniform vectors. Our proof is achieved
∥x − y∥w ≤ r. The papers leverage an asymmetric Local-                by decomposing the estimator ρ(g(x), w) into Rademacher
ity Sensitive Hashing approach that uses a dimensionality             chaoses and applying our novel concentration bounds.
expansion (from Rd to R2d ) built with trigonometric func-            All the formal proofs of lemmas and theorems, if not present
tions. The result in (Lei et al., 2019) focuses on the weighted       in the main paper, are reported in the appendix.
Euclidean distance, while the one in (Hu & Li, 2021) on the
weighted Manhattan distance.

                                                                  3
                                Dimensionality Reduction on Complex Spaces with Dynamic Weights

2. Preliminaries                                                           cients a(i1 ,...iγ ) ∈ R, is defined as:
                                                                                                  X
We now provide an overview of the concepts and techniques                             S=                    a(i1 ,...iγ ) Xi1 . . . Xiγ .
used to prove our results.                                                                                 ′
                                                                                             (i1 ,...iγ )∈Iγ,n


2.1. Basic concepts                                                        The q-norm of the random variable S is defined as ∥S∥q =
                                                                                    1/q
                                                                           E [|S|q ] . We define a function W on the set of all
Given a value p > 0, the p-norm of a vector x ∈ Rd                                                        qP
                     P
                        d          p
                                     1/p                                  Rademacher chaoses as W (S) =     i∈I ′ a2(i1 ,...,iγ ) , i.e.
is defined as ∥x∥p =    i=1 |x i |        . Given a weight                                                                      γ,n

                                                                           the Euclidean norm of the coefficients.
vector w in Rd+ , the weighted p-norm of x is ∥x∥w,p =
P                1/p                                                     Bonami’s hypercontractive inequality (Blei & Janson, 2004)
    d    p      p
    i=1 wi |xi |       . When p = 2, we get the Euclidean                  provides a bound for ∥S∥q when the sum is taken over se-
norm and we simply denote the weighted norms of x as                       quences (i1 , . . . , iγ ) such that i1 < i2 < · · · < iγ , possibly
∥x∥w .                                                                     after a renaming of the indexes.
We state some commonly known inequalities that will be                     Theorem 2.4 ((Blei & Janson, 2004)). Let
used in the subsequent sections.                                           S
                                                                           P be a Rademacher chaos of the form S =
                                                                              1≤i1 <···<iγ ≤n a(i1 ,...iγ ) Xi1 . . . Xiγ . Then, ∥S∥q       ≤
Lemma 2.1 (Cauchy-Schwarz ineq.). For any x, y ∈ Rd ,
P
   d
             2 P
                  d
                          P
                             d
                                    
                                           2    2
                                                                           (q − 1)γ/2 ∥S∥2 = (q − 1)γ/2 W (S).
                       2          2
   i=1 xi yi   ≤  i=1 xi     i=1 yi   = ∥x∥2 ∥y∥2 .
                                                                           Note that in general, for Rademacher chaoses with sums
Lemma 2.2 (Monotonicity of p-norm). For any x ∈ Rd                                ′
                                                                           over Iγ,n , Bonami’s hypercontractive inequality does not
and any 0 < p < q < +∞, we have ∥x∥q ≤ ∥x∥p .                              hold. In Section 3.1 we show how to generalize the result to
Lemma
Pd      2.3. For any p, q ≥ 1 and any x, y ∈ Rd , we have                  arbitrary Rademacher chaoses.
           p     q     p    q
  i=1 |xi | |yi | ≤ ∥x∥2 ∥y∥2 .
                                                                           2.4. Orlicz norms and sub-Weibull random variables
2.2. Johnson-Lindenstrauss (JL) lemma
                                                                           We introduce some results on the concentration of sums of
Let X = {x1 , . . . xn } be a set of n vectors in d > 0                    independent heavy-tailed distributions. We recall the defini-
dimensions. For any ε > 0, the Johnson-Lindenstrauss                       tion of Orlicz norms for random variables (Kuchibhotla &
                                                                           Chakrabortty, 2022).
              & Lindenstrauss, 1984) claims that, if k =
lemma (Johnson
Ω ε−2 log n , there exists a linear function g : Rd → Rk                   Definition 2.5. Let g : [0, ∞) → [0, ∞) be a non-
that maintains pairwise distances up to a multiplicative error             decreasing function with g(0) = 0. The g-Orlicz
ε with high probability. That is, for any x, y ∈ X , we have               norm of a real-valued random variable X is ∥X∥g =
                   2                     2                       2         inf {η > 0 : E [g(|X|/η)] ≤ 1} .
(1 − ε) ∥x − y∥2 ≤ ∥g(x) − g(y)∥2 ≤ (1 + ε) ∥x − y∥2 .
                                                                           Note that, despite the name, if g is not convex, the function
Equivalently, the JL lemma claims the existence of a linear
                                                                           ∥·∥g is not a norm. However, the norm properties are not
map that approximately maintains Euclidean norms. There
                                                                           needed in the following derivations.
are several constructions for g(·), for instance, those in
                     g(x) = Ax for a suitable k·d matrix;
(Achlioptas, 2003). Let                                                    Two well-known spacial cases of g are ψ2 = exp(x2 ) − 1
if k = Θ ε−2 log n and each entry of A is an independent                   and ψ1 = exp(x) − 1. When a random variable has a finite
and even distributed Rademacher random variable {−1, 1},                   ψ2 -Orlicz norm it is called sub-Gaussian and when it has
then A satisfies the JL lemma with high probability. The                   a finite ψ1 -Orlicz norm it is called sub-exponential. The
property holds even if an entry of A is 0 with probability                 following definition (Kuchibhotla & Chakrabortty, 2022)
2/3 and in {−1, 1} otherwise.                                              generalizes such random variables.
                                                                           Definition 2.6. A random variable X is said to be sub-
2.3. Rademacher chaos                                                      Weibull of order α > 0 if ∥X∥ψα < ∞ where ψα (x) =
                                                                           exp(xα ) − 1.
We introduce here some results on Rademacher chaos. Let
                                   ′
Iγ,n ⊆ {1, . . . n}γ , and let Iγ,n     = {(i1 , . . . , iγ ) : ij ∈       The following theorem, proved in (Kuchibhotla &
{1, . . . n}, ij ̸= ik if j ̸= k} be a set of ordered sequences            Chakrabortty, 2022) (Theorem 3.1), states a concentration
of γ distinct values from {1, . . . , n}; when n is clear from             result for sums of independent sub-Weibull random vari-
the context, we drop the subscript n.                                      ables. We report a bound for heavy-tailed (α < 1) variables.
Let X1 , . . . Xn be n independent Rademacher random vari-                 Theorem 2.7 ((Kuchibhotla & Chakrabortty, 2022)). Let
ables. Then, a Rademacher chaos S of order γ, with coeffi-                 X1 , . . . , Xk be i.i.d. mean zero random variables with

                                                                       4
                                   Dimensionality Reduction on Complex Spaces with Dynamic Weights

∥Xi ∥ψα < ∞ for some α ∈ (0, 1). Then ∀t > 0                                       Finally, we can exploit the previous concentration result
   " k                                           #                                 to provide an upper bound on the ψα -Orlicz norm for a
    X                    √ √        2/α−1/2 1/α                                   Rademacher chaos.
Pr      Xi ≥ Cα ∥X1 ∥ψα k t + 2            t       ≤ 2e−t
     i=1                                                                           Lemma 3.3. Let S be a Rademacher chaos of order γ ≥ 2.
           √                                                                       Let α ≤ 2/γ and ψα = exp(xα ) − 1. Then
with Cα = 8 2e97/24 (2π)1/4 (e2/e /α)1/α .
                                                                                                                  p
                                                                                              ∥S∥ψα ≤ e(e2 + 1) /α γ!W (S).
                                                                                                               1


3. Concentration of sums of Rademacher
   chaoses                                                                         Proof. From the definition of Orlicz norm we have
                                                                                   ∥S∥ψα = inf {η > 0 : E [ψα (|S|/η)] ≤ 1} . Then, apply-
In this section, we provide the first concentration results for                    ing Lemma 3.2 with γ ′ = 2/α ≥ γ, we get
sums of independent Rademacher chaoses.
                                                                                                                Z ∞
                                                                                   E [ψα (|S|/η)] =                       Pr [ψα (|S|/η) > x] dx
3.1. Tail bounds and Orlicz norms of arbitrary                                                                  Z0 ∞
     Rademacher chaoses
                                                                                                                            h                      i
                                                                                                                          Pr |S| > η(ln(x + 1) /α ) dx
                                                                                                                                              1
                                                                                                            =
                                                                                                                 0
We generalize the bound given by Bonami’s inequality for                                                             Z ∞      p        −α α       
                                                                                                                 2
arbitrary Rademacher chaoses. Let Gγ be the set of per-                                                     ≤e          exp − e γ!W (S)    η ln(x+1) dx
                                                                                                                      0
mutations over γ elements, i.e. Gγ = Sym({1, . . . , γ}).                                                            Z ∞                                    α
                               σ                                                                                                         −  √ η
Then, ∀σ ∈ Gγ , let Iγ,n                = {(i1 , . . . , iγ ) : ij ∈                                        =e   2
                                                                                                                              (x + 1)      e       γ!W (S)
                                                                                                                                                                  dx
{1, . . . n}, iσ(j) < iσ(k) if j < k}. Then we can express                                                            0
                                                                                                                               e2
                 X                                                                                          =                      α         .
      S=                  a(i1 ,...iγ ) Xi1 . . . Xiγ                                                              √ η                   −1
                          ′
                                                                                                                  e γ!W (S)
            (i1 ,...iγ )∈Iγ,n

                                                                                                              √
             X X                                               X
        =                   a(i1 ,...iγ ) Xi1 . . . Xiγ =             Sσ
                    σ
                                                                                   Then, if η ≥ e(e2 + 1)1/α γ!W (S), we have that
            σ∈Gγ i∈Iγ,n                                       σ∈Gγ
                                                                                   E [ψ(|S|/η)] ≤ 1. Therefore, we have that ∥S∥ψα ≤
                                                                                               √
Intuitively, we can decompose the chaos S into a collection                        e(e2 + 1)1/α γ!W (S).
of chaoses S σ : in each S σ , tuples can be sorted using per-
mutation σ and then Bonami’s inequality can be applied.                            3.2. Proof of Theorem 1.2
Indeed, Bonami’s hypercontractive inequality (Blei & Jan-
son, 2004) implies that, ∀σ ∀q ≥ 2,                                                Having obtained a bound on the Orlicz norm for a
                                                                                   Rademacher chaos, we can now prove the first of our main
    ∥S σ ∥q ≤ (q − 1)γ/2 ∥S σ ∥2                                                   results, a concentration inequality for sums of independent
                                                                  1/2            Rademacher chaoses.
                                         X
              = (q − 1)γ/2                            a2(i1 ,...iγ )     .       Theorem 1.2. Let S and {Si }i=1,...,k be k + 1 independent
                                                 σ
                                   (i1 ,...iγ )∈Iγ,n                               and identically distributed Rademacher chaoses of order γ ′ .
                                                                                   Then ∀t > 0, ∀γ ≥ 3 such that γ ′ ≤ γ, there exist constants
Using this decomposition, we obtain a bound on the q-norm                          c1 (γ), c2 (γ) depending only on γ such that
of a general Rademacher chaos.                                                        " k                                              #
                                                                                                                 √ √
Lemma 3.1. Let S = σ∈Gγ S σ be a Rademacher chaos
                      P                                                                 X                                           
                                                                                                                                         ≤ 2e−t .
                                                                                                                                 γ/2
                                         √                                         Pr         Si > W (S) c1 (γ) k t + c2 (γ)t
of order γ ≥ 2. Then, ∥S∥q ≤ (q − 1)γ/2 γ!W (S)                                             i=1

We then have the following concentration result.                                   Proof. By setting α = 2/γ ≤ 2/γ     ′
                                                                                                            2     γ/2
                                                                                                                      √ ′in Lemma 3.3, 2we
Lemma 3.2. Let S be a Rademacher chaos of order γ ≥ 2.                             get that ∥S∥ψ2 ≤ e(e + 1)           γ !W (S) ≤ e(e +
Then for any γ ′ ≥ γ and t > 0, we have:                                                 √        /γ
                                                                                     γ/2
                                                                                   1) √γ!W (S). Then, by defining c1 (γ) √= e(e2 +
                                                                                   1)γ/2 γ!C2/γ and c2 (γ) = e(e2 + 1)γ/2 2γ−1/2 γ!C2/γ , we
                                                  
                                           2 ′ 2 ′
                               p
   Pr [|S| > t] ≤ e2 exp −(e γ!W (S))− /γ t /γ .
                                                                                   get:
Proof sketch. We obtain the bound by applying Markov’s                                  "   k
                                                                                            X                      √ √               
                                                                                                                                       #
                                                                                                                                  γ/2
inequality and Lemma 3.1 to obtain                                                 Pr             Si > W (S) c1 (γ) k t + c2 (γ)t
                                                                                            i=1
                                              q
            Pr [|S| > t] ≤ E [|S|q ] t−q = ∥S∥q t−q ,                                             "   k
                                                                                                      X                          √ √              
                                                                                                                                                    #
                                                                                                                                         γ−1/2 γ/2
                                                                                        ≤ Pr                Si > C2/γ ∥S∥ψ(2/γ )   k t+2      t       .
and set q appropriately.                                                                              i=1


                                                                               5
                                       Dimensionality Reduction on Complex Spaces with Dynamic Weights

Since E [Si ] = 0 for any Rademacher chaos and by applying                               Consider    now  the expectation of the term
                                                                                         E Ai,j1 Ai,j2 A2i,j3 for a given value i.
                                                                                           
Theorem 2.7 with α = 2/γ, we have that the right term of                                                                                         Since
                                                                                         E [Ai,j ] = E A2i,j = E A3i,j = 0 for any i, j
                                                                                                                          
the previous inequality can be upper bounded as:
     "   k                          √ √
                                                       #                                    the terms in A are independent, we have that
                                                                                         and
                                                                                         E Ai,j1 Ai,j2 A2i,j3 = 1 if j1 = j2 = j3 , and 0 otherwise.
         X                                            
Pr             Si > C2/γ ∥S∥ψ(2/γ )   k t+2 γ−1/2 γ/2
                                                 t       ≤ 2e−t .
         i=1                                                                             Then, we get:
                                                                                                                 X 
                                                                                         E [h(g(x), w)i ] = k −1       E Ai,j1 Ai,j2 A2i,j3 xj1 xj2 wj23
                                                                                                                                           
The theorem then follows.
                                                                                                                  j1 ,j2 ,j3 ∈I3,d
The above theorem provides the first tail bound for sums of                                                           d
                                                                                                                      X                         2
independent Rademacher chaoses. The following corollary                                                    = k −1           x2j wj2 = ∥x∥w /k.
rephrases the tail bound by splitting it into a sub-Gaussian                                                          j=1
tail for small deviations and a heavy tail for large deviations.                         The theorem then follows from the linearity of the sum and
Corollary 3.4. Let {Si }i=1,...,k be a sequence of k inde-                               of the Re (·) function.
pendent and identically distributed Rademacher chaoses
of order γ ′ . Then ∀γ ≥ 3 such that γ ′ ≤ γ, there exist                                4.2. Results in high probability
constants c1 (γ), c2 (γ) depending only on γ such that
                                                                                         We now prove, using as the main tool the newly developed
   " k           #           
                                        1      t2
                                                  
                                                                                         Theorem 1.2, that the estimator for the weighted norm is
                       2 exp −        2     2      if (†)
                                 4c (γ) W (S) k
     X
Pr      Si > t ≤               1          2/γ                                        concentrated around its mean with high probability. In
                       2exp −         t
         i=1                                        otherwise
                                                 2c2 (γ)W (S)                            particular, the concentration depends on k, the output space
                                                                                         dimension. The concentration bounds then allow to choose
                                                           1
                                                                                         k depending on the desired accuracy of the estimate.
                                                        γ−1
                                              c1 (γ)γ                    γ
with (†) the event: 0 < t < 2                  c2 (γ)           W (S)k 2γ−2
                                                                                         Since the results of Theorem 1.2 apply only to
                                                                                         pairwise distinct indices, we split ρ(g(x), w) =
4. Complex dimensionality reduction                                                      Pk                          2
                                                                                                                       
                                                                                            i=1 Re hi (g(x), w)          into 4 sums, each over a set of
In this section, we analyze the properties of the dimension-                             pairwise distinct indices, and bound each term individu-
                                                                                                                                                   ′
                                                                                         ally. Here we recall that Iγ,d = {1, . . . , d}γ and Iγ,d      =
ality reduction onto the complex vector space described
                                                                                         {(j1 , . . . , jγ ) ∈ Iγ,d : jp ̸= jq ∀p, q ∈ {1, . . . γ}, p ̸=
in the introduction. We recall that A ∈ Ck×d denotes a
                                                                                         q}.
random matrix where each entry in an independent and
                                                                                                           k
identically distributed random√variable in {1, −1, i, −i},                                                 X          X
                                                                                                                                 Re Ai,j1 Ai,j2 A2i,j3 xj1 xj2 wj23
                                                                                                                                                      
                                                                                         k ·ρ(g(x), w) =
and we define g(x) = Ax/ k for any x ∈ Rd . Let
                                                                                                           i=1 j1 ,j2 ,j3 ∈I3,d
h(g(x), w) = g(x)   P⊙ g(x) ⊙ ((A    ⊙ A)(w ⊙ w)) and
                                                                                                           k
                       k
ρ(g(x), w) = Re            h(g(x), w)
                                                                                                           X          X
                                      i be our estimate of                                                                       Re Ai,j1 Ai,j2 A2i,j3 xj1 xj2 wj23
                                                                                                                                                      
                       i=1                                                                            =
         2                                                                                                 i=1 j1 ,j2 ,j3 ∈I ′
∥x∥w , where ⊙ represents the element-wise multiplication.                                                                  3,d

Although ρ(g(x), w) is expressed as a function of x, it is                                                      k
                                                                                                                X         X
                                                                                                                                       Re Ai,j1 A3i,j2 xj1 xj2 wj22
                                                                                                                                                      
computed from the reduced vector g(x).                                                                     +2
                                                                                                                 i=1 j1 ,j2 ∈I ′
                                                                                                                                 2,d

4.1. Results in expectation                                                                                    k
                                                                                                               X       X
                                                                                                                                   Re A2i,j1 A2i,j2 x2j1 wj22
                                                                                                                                                   
                                                                                                           +
We first show that the expected value of our estimator                                                         i=1 j1 ,j2 ∈I ′
                                                                                                                             2,d
ρ(g(x), w) corresponds to the weighted norm.                                                                     d
                                                                                                               k X
                                                                                                               X
Theorem 4.1. For any x, w                          ∈ Rd , we have that                                     +             wj2 x2j
                   2
E[ρ(g(x), w)] = ∥x∥w .                                                                                         i=1 j=1

                                                                                                      = H1 + H2 + H3 + k ∥x∥2w .
Proof. By the definition of h(g(x), w), for any i ∈                                      Remark. It might be tempting to simply use a Khintchine-
{1, . . . k} we get:                                                                     like inequality (Haagerup & Musat, 2007), such as in Kane
                                2                                                    et al. (2011, Lemma 4), to directly estimate k ·ρ(g(x), w)
                       d              d
                       X             X                                                   using Aj1 Aj2 A2j3 as the random variables and xj1 xj2 wj23
h(g(x), w)i = k −1      Ai,j xj      A2i,j wj2                                       as their respective weights. This will however fail because
                               j=1                       j=1
                                  X                                                      the random variables are not independent. For this reason,
                   = k −1                        Ai,j1 Ai,j2 A2i,j3 xj1 xj2 wj23 .       we resort to Theorem 1.2 and Bonami’s hypercontractive
                            (j1 ,j2 ,j3 )∈I3,d                                           inequality to bound the tails of the Rademacher chaos.

                                                                                     6
                                       Dimensionality Reduction on Complex Spaces with Dynamic Weights

Note that each Ai,j can be written as s(1 − r + i(1 + r))/2,                        Instead, for the long tail part of the bound described by
with s and r independent Rademacher random variables.                                                               ln(8/δ)2
                                                                                    Lemma
                                                                                       h     4.3, we  take k =  c∆i     ε    . Both cases yield
                                                                                                           2
We then bound the tail probabilities of the individual                              Pr |ρ(g(x), w) − ∥x∥w | > t ≤ δ.
terms Hℓ , ℓ = 1, 2, 3 by expanding them into sums of
Rademacher chaoses and using Theorem 1.2.                                           As the failure
                                                                                            n       probability decreases oby k, taking
                                                                                                    2                        2
                                                                                               2 2 ∆ ln(8/δ)
                                                                                    k ≥ max c1 8      ε2     , c2 8 ∆ ln(8/δ)
                                                                                                                         ε     completes the
In particular, we decompose each Hℓ as a sum of k inde-
pendent terms Hℓ,i , and we show that W (Hℓ,i )2 , for any                          proof.
                                             2    2
i ∈ {1, . . . k}, can be upper bounded by ∥w∥4 ∥x∥2 .
                                                                                    Finally, we restate the above theorem to prove that the pro-
We report such bounds in the Appendix, and provide here                             posed reduction maintains pairwise distances in a set S of
a bound on H = H1 + H2 + H3 , which is obtained via                                 n vectors and for a set of weights W with a bounded rel-
a union bound over the three terms. In what follows, let                            ative error. We remark that, thanks to the linearity of g,
c1 and c2 be the constants
                       √ of√ Theorem 1.2 for γ = 4, and                             ρ(g(x − y), w) can be computed from the reduced vector
consequently F (t) = c1 k t + c2 t2 .                                               g(x) and g(y) as ρ(g(x − y), w) = ρ(g(x) − g(y), w).
                            h                       i
                                        2     2
Lemma 4.2. We have that Pr |H| > 4 ∥w∥4 ∥x∥2 F (t) ≤                                Corollary 4.4. Let X = {x1 , . . . , xn }, xi ∈ Rd be a
8e   −t
          ∀t > 0.                                                                   dataset of n vectors. Let W ⊂ Rd be the set of the weights
                                                                                    of interest, with n|W | = O (n). Foroany given ε > 0
                                                                                                                          2
We can now use the previous concentration result for H to                           and k > c max ∆2 ln(8n) ε2 ,
                                                                                                                  ∆ ln(8n)
                                                                                                                      ε     where c is a uni-
obtain a tail probability bound for the error |ρ(g(x), w) −                         versal constant, we have with high probability that, for any
    2
∥x∥w | incurred by the estimator.                                                   x, y ∈ S and w ∈ W :
Lemma 4.3. For any given x, w ∈ Rd , we have                                                                      2           2         2
                                                                                      ρ(g(x − y), w) − ∥x − y∥w < ε ∥w∥4 ∥x − y∥2 /∆.
          Pr |ρ(g(x), w) − ∥x∥2w | > t
                                       

                                                                                    Proof. It suffices to apply Theorem 1.1 with x′ = x − y and
                                                 
                                   1             2
               8 exp −k                       t                   if (†)
               
               
             ≤
                                    2
                        (c1 8∥w∥4 ∥x∥2 )
                                           2 2
                                                                                    δ = 1/(|W |n2 ). The claim follows by a union bound.
                          √                      √
                                                      
                                      1
               8 exp − k √                         t              otherwise
               
               
                                         2     2
                                      c2 8∥w∥4 ∥x∥2
                                                                                    4.3. Discussion of results
                                        4/3       −1/3         2       2            We briefly discuss our results. We note that obtaining a mul-
with (†) the event: 0 < t < c1 c2                        8 ∥w∥4 ∥x∥2 k −1/3 .
                                                                                    tiplicative error guarantee on the estimate of the weighted
                                                                                               2
We then prove our main result Theorem 1.1. In particular,                           norm ∥x∥w using the dimensionality reduction given in
we obtain an additive error bound akin to the ones obtained                         Equation 1, which does not maintain linearity and therefore
for dot products under random projections (Kaban, 2015),                            cannot be used to estimate weighted distances, requires the
                                                                                                   2     2       2
which can be then refined to a multiplicative error by rescal-                      quantity (∥x∥4 ∥w∥4 )/ ∥x∥w to be bounded. In particular,
                                                                                                                           2     2       2
ing the accuracy parameter ε.                                                       if k = Θ((∆/ε)2 ) and maxx,w (∥x∥4 ∥w∥4 )/ ∥x∥w ≤ ∆,
                                                                                    one obtains an ε multiplicative error guarantee. This bound-
                  n δ 2> 0. Let ∆ be a suitable
Theorem 1.1. Let ε,                      o parameter
                     ∆ ln(8/δ) ∆ ln(8/δ)2                                           edness requirement is intuitively required by the fact that
and k ≥ Ω max           ε2    ,     ε        . Then there                           the vectors x ⊙ x and w ⊙ w could be orthogonal, and
                                                                                         2
exists a linear function g(x) : Rd → Ck and an estimator                            ∥x∥w could therefore be 0. Similar results are obtained for
ρ(g(x), w) : Ck × Rd → R such that for any given x, w ∈                             estimating dot products under JL projections (Kaban, 2015).
Rd , with probability at least 1 − δ,
                                                                                    According to Theorem 1.1, our novel complex dimen-
                               2          2    2                                    sionality reduction technique, which instead guarantees
              |ρ(g(x), w) − ∥x∥w | < ε ∥w∥4 ∥x∥2 /∆.
                                                                                    linearity on x and can therefore be applied to compute
                           2      2               2                                 weighted distances (see Corollary 4.4), has a similar bound-
In particular, if ∥x∥2 ∥w∥4 / ∥x∥w ≤ ∆, we get, with prob-
                                                                                    edness requirement. Indeed, if k = Θ((∆/ε)2 ) and
ability at least 1 − δ,                                                                           2    2       2
                                                                                    maxx,w (∥x∥2 ∥w∥4 )/ ∥x∥w ≤ ∆, one obtains a ε multi-
                                              2
                   |ρ(g(x), w) − ∥x∥w | < ε ∥x∥w .
                                                               2                    plicative error guarantee. The dependence on the 2-norm
                                                                                    instead of the 4-norm of x slightly weakens the results.
                                                                                                             2       2
                                                                                    Indeed, we note that ∥x∥2 ≥ ∥x∥4 (Lemma 2.2), and there-
                                                  2       2
Proof sketch. We set t = ε ∥w∥4 ∥x∥2 /∆. For the Gaus-                              fore our multiplicative error guarantee is worse than the
sian tail case of the bound described by Lemma 4.3, we take                         non-linear method given by Equation 1. On one end of the
k = c∆2 ε−2 ln(8/δ).                                                                spectrum, w has a single non-zero entry, and k = Θ(∆2 )

                                                                                7
                                                 Dimensionality Reduction on Complex Spaces with Dynamic Weights
                                       4
has to be Θ(maxx {∥x∥2 / mini |xi |4 }) to guarantee an ε-                         We can then factorize H, which includes a sum over I3,d
approximation. At the other end of the spectrum, w is                              into three sums of Rademacher chaoses H1 , H2 and H3 , as
near-uniform (e.g., all the entries are within a factor ζ), and                    done in Section 4. Here, the main difference is that the sum
                                      4
k = Θ(∆2 ) has to be Θ(maxw ∥w∥4 ) = Θ(d) to guarantee                             that composes H1 is over k · L independent chaoses H1,ℓ,i .
an ε-approximation. Nonetheless, for sparse weights such                           These are not all identically distributed, but rather divided
that the weighted norm is nonzero, the method yields a valid                       into L blocks of k identically distributed chaoses each. The
dimensionality reduction technique.                                                same holds for H2 and H3 .
We observe that in the case where the weights w are close                          In particular, we obtain that for chaoses in the ℓ-th
                                                                                                                          2      2
to 1 (i.e., a small re-weighting of all the dimensions), the                       block, they satisfy W (H1,ℓ,i ) ≤ ∥xℓ ∥2 ∥wℓ ∥4 /k ≤
results of Theorem 1.1 yield no dimensionality reduction.                           3/2    2     2    3/2
                                                                                   ζ ∥w∥4 ∥x∥2 /(kL ).
We address this particular case in the following section.
                                                                                   Then, by following a derivation akin to the one in the previ-
                                                                                   ous section, which is reported in the appendix for the sake
4.4. Improved results for near-uniform vectors
                                                                                   of brevity, we obtain the following result.
We now deal with the case where the entries of both the x’s                        Lemma 4.5. For any given x, w ∈ Rd , we have ∀t > 0
and w’s are near-uniform.
                                                                                          Pr |ρ̄(ḡ(x), w) − ∥x∥2w | > t
                                                                                                                        
A uniform vector is a vector where all entries are the same.                                                                        
                                                                                                                           L3       2
We define a (block) near-uniform vector as a relaxation of                                            8 exp −kc1
                                                                                                      
                                                                                                                           2   2 2t
this condition, where splitting the vector into contiguous                                   ≤ max             √ (∥w∥4 ∥x∥3/4 2)
                                                                                                                                       √
                                                                                                      8 exp − kc2           L
                                                                                                                                        t
                                                                                                      
parts results in sub-vectors with roughly the same norm.                                                               (∥w∥2 ∥x∥2 )1/2
                                                                                                                           4       2

P formally, let 1 ≤(ℓ)
More                        L ≤ d, and let d1 , . . . , dL such that
                                                                                   with c1 and c2 appropriate constants.
   ℓ dl = d. Let then x       ∈ Rdℓ , ℓ = 1, . . . , L be such that
x = (x(1) || . . . ∥x(L) ), with ∥ denoting concatenation. The                     In turn, setting k and L carefully, we obtain a result akin to
                                                    2          2
same holds for w. We suppose that x(ℓ) 2 ≤ ζ ∥x∥2 /L                               Theorem 1.1.
                4                      4
and w(ℓ) 4 ≤ ζ ∥w∥4 /L, which holds, e.g., if all the                              Theorem 4.6. Let ε, δ > 0. Let c be a suitable universal
entries are one within a factor ζ from any other one.                                    n 2Let L and k be positive
                                                                                   constant.                    o     integers such that k ≥
                                                                                           ∆ ln(8/δ) ∆ ln(8/δ)2
We will apply the dimensionality reduction to each of the                          c max     L 2 ε2 , L3/2 ε      . Then there exists a linear
sliced vectors individually, and then combine the estimates                        function g(x) : Rd → Ck·L and an estimator ρ(g(x), w) :
to obtain the final estimate for the weighted norm. We then                        Ck·L × Rd → R such that for any given x, w ∈ Rd , with
have that our reduced vector is stored as ḡ(x) = (g (ℓ) (x(ℓ) ) :                 probability at least 1 − δ,
ℓ = 1, . . . , L), with each g (ℓ) a function g, as in Section                                                    2            2       2
4, defined with output dimension k and pairwise indepen-                                    ρ(g(x), w) − ∥x∥w < ε ∥x∥2 ∥w∥4 /∆.
dent matrices A(ℓ) . Each of such L matrices is a com-                                                    2   2       2
plex k × dℓ random matrix, where each entry is an inde-                            In particular, if ∥x∥2 ∥w∥4 / ∥x∥w ≤ ∆, we get, with prob-
pendently and identically distributed random variable over                         ability at least 1 − δ,
{+1, −1, +i, −i}. Therefore, we have that ḡ(x) can be                                                2
                                                                                          (1 − ε) ∥x∥w < ρ(g(x), w) < (1 + ε) ∥x∥w .
                                                                                                                                           2
stored with k · L complex numbers, i.e., ḡ(x) ∈ Ck·L . We
observe that ḡ(x) consists of a matrix-vector multiplication
                                                                                   We remark that, when the partition d1 , . . . , dL is fixed for
with a sparse block matrix A, made of ℓ submatrices of
                                                                                   all vectors x ∈ X , the function ḡ is still linear, the dimen-
size k × d/ℓ and where each submatrix is generated as the
                                                                                   sionality reduction maintains pairwise distances in a set of
complex matrix described in the previous sections.
                    PL                                                             vectors X .
Let ρ̄(ḡ(x), w) = ℓ=1 ρ(g (ℓ) (x(ℓ) ), w(ℓ) ), with ρ defined
as in Section 4. We can rewrite ρ̄ as follows:                                     4.5. Discussion of results for near-uniform vectors
                                                                                   In the case of near-uniform vectors, the results of Theo-
                    L
ρ̄(ḡ(x), w) =
                    X
                          ρ(g   (ℓ)
                                      (x   (ℓ)
                                                 ), w   (ℓ)
                                                              )                    rem 4.6 provide a significant improvement over the results
                    ℓ=1                                                            of Theorem 1.1. Indeed, the balanced distribution across the
     L X
     X k             X                                x(ℓ) x(ℓ) (w(ℓ) )2         entries of the vectors allows for more efficient dimensional-
                              (ℓ)   (ℓ)                  j1 j2      j3
 =                        Re Ai,j1 Ai,j2 (A(ℓ) )2i,j3                              ity reduction via independent projections on the partitioned
                                                                k
     ℓ=1   i=1 j ,j ,j ∈I
                1   2   3   3,dℓ                                                   components of the vectors.
             L
             X              2                                                      In particular, the output dimension k · L is decreasing in
  =H+               x(ℓ)         = H + ∥x∥2w .
             ℓ=1
                            w                                                      L. Therefore, if the vectors x and w are near-uniform for

                                                                               8
                             Dimensionality Reduction on Complex Spaces with Dynamic Weights

large values of L, it is beneficial to set k to be as small as       position into L sub-vectors almost closes the gap with the
possible, i.e., setting k = 1, and                                   non-linear method, as argued in Section 4.5.
                 n                                        o
                                 1/2      2/3         4/3
   L ≥ c max (∆/ε) ln (8/δ) , (∆/ε) ln (8/δ)                .        5. Discussion and Conclusions
                                                                     In this paper, we provided the first dimensionality reduction
In this case, the dependency of the output dimension on
                                                                     techniques that are able to cope with dynamically-weighted
∆ is lowered from up to Θ(∆2 ) of the original technique,
                                                                     Euclidean distances, as well as novel concentration inequal-
as discussed in Section 4.3, to only Θ(∆). In fact, we
                                                                     ities for sums of independent Rademacher chaoses.
suppose that there exists some
                            √ √  ζ > 1 such that all entries
of w lie in the interval [1/ ζ, ζ] (i.e. no two entries of           An interesting open question for future work is to provide
x can be weighted√ arbitrarily2 differently).2 Then, we have         a fast method for dimensionality reductions in the com-
          2
that ∥w∥4 ≤ ζ d and ∥x∥w ≥ 1/ζ ∥x∥2 . Thus, setting                  plex vector space similar to the Fast JL transform (Ailon &
         √                              2      2      2
∆ = ζ 2 d = Θ(d1/2 ) ensures that ∥x∥2 ∥w∥4 / ∥x∥w ≤ ∆.              Chazelle, 2009). We furthermore conjecture that the com-
This means that to obtain a multiplicative ε-approximation           plex map that we provide here admits a generalization to
       2                                                             the estimation      arbitrary (weighted) Lp norms. Indeed,
                                                                                      of Q
to ∥x∥w , the dimension k ·L = Θ(∆) of the reduced vectors                      P          p
has to be only Θ(d1/2 ).                                             let h = j1 ,...jp k=1 Ajk xjk . If A is a uniform on the
                                                                                                       Qp
                                                                     p-th roots of 1, we have that E[ k=1 Ajk ] = 1 if all the
However, the technique to partition the vectors into L
                                                                     jk ’s are the same, and 0 otherwise. Therefore, E[h] = ∥x∥pp .
smaller independent vectors guarantees a reduction in the
                                                                     However, the variance of the estimator grows with p, and
dimensionality of the reduced vector only if the input vec-
                                                                     novel approaches should be developed in order to reduce
tors are guaranteed to be near-uniform. This is indeed a
                                                                     this growth.
reasonable assumption on the weight vectors w, as one can
expect to rescale the importance of each dimension just by           We envision that an interesting research direction is the
a constant factor. On the other hand, to guarantee the near-         application of our techniques in downstream applications.
uniformity condition on the input vectors x’s, one must have         For example, in machine learning, the weighted distance,
some prior knowledge on the data-generating distribution.            phrased as the Mahalanobis distance with diagonal covari-
We observe that, by bounding the maximum entry of the                ance matrix, is used as a time-efficient alternative to dy-
input and weight vectors, a random permutation of the di-            namic time warping (Prekopcsák & Lemire, 2010), and
mension can provide a near-uniform distribution with high            as a substitute for the Euclidean distance in RBF-like ker-
probability. Each entry is, e.g., uniformly distributed, one         nels (Abe, 2005; Kamada & Abe, 2006). These methods
can get probabilistic guarantees via Bernstein’s inequality.         could then benefit from our techniques. We believe that
                                                                     our method might be of interest also in the weighted least
Finally, we observe that the sparse block structure of the
                                                                     squares problem (Golub & Van Loan, 2013, Chapter 5),
linear map allows the use of hardware accelerators for matrix
                                                                     which provides robust estimators in the presence of uneven
multiplication (e.g., Google TPU, Nvidia TC) for further
                                                                     reliability in the measurement (Fox, 2015). Here, given
speeding up the computation. We leave the development of
                                                                     a data matrix X ∈ Rn×d , an observation vector y ∈ Rn ,
improvements to the dimensionality of the reduced vectors
                                                                     and a weight vector w ∈ Rn (with wi ≥ 0 for all i), the
via partitioning strategies under weaker guarantees on the
                                                                     goal is to find θ ∈ RdP that minimizes the weighted residual
x’s to future work.                                                                            n
                                                                     norm ∥Xθ − y∥2w = i=1 wi2 (Xi⊤ θ − yi )2 . JL maps have
                                                                     been used to reduce the complexity of ordinary least squares
4.6. Experimental evaluation                                         (Yang et al., 2015), and we envision that our technique could
In Appendix B, we report the results of a proof-of-concept           be used in a similar fashion for weighted least squares under
experimental evaluation of our techniques. In particular,            dynamic weights. Finally, we believe that our constructions
the experiments highlight the significant reduction of the           can be of interest for privacy-preserving similarity search,
variance of the estimator when using the sparse block ma-            as it might allow the release of datasets that allow users to
trices. Moreover, the experimental results showcase the              detect if there are near points within the desired weighted
applicability of the method on sparse vectors, as discussed          norms without releasing the details of the vector, similar to
in Section 4.3, as well as the poor quality of the estimate          what done in Blocki et al. (2012) for JL.
for near-uniform vectors for the method described in The-
orem 1.2, suggesting that the probabilistic analysis of the          Acknowledgments
method is tight. Finally, from the experiments, we indeed
see a gap in the quality of the estimate between the lin-            This work was supported in part by MUR PRIN
ear and nonlinear method by Kaban (2015), as argued in               20174LF3T8 AHeAD project, by MUR PNRR
Section 4.3. Interestingly, the sparse map with the decom-           CN00000013 National Center for HPC, Big Data

                                                                 9
                            Dimensionality Reduction on Complex Spaces with Dynamic Weights

and Quantum Computing, by Uni-Impresa Big-Mobility                   Fox, J. Applied Regression Analysis and Generalized Linear
project, and by Marsden Fund (MFP-UOA2226).                            Models. SAGE Publications, 2015.
                                                                     Ghalib, A., Jessup, T. D., Johnson, J., and Monemian, S.
Impact Statement                                                       Clustering and classification to evaluate data reduction
This paper presents work whose goal is to advance the field           via johnson-lindenstrauss transform. In Advances in In-
of Machine Learning. There are many potential societal                 formation and Communication, pp. 190–209, 2020.
consequences of our work, none which we feel must be                 Ghojogh, B., Ghodsi, A., Karray, F., and Crowley, M.
specifically highlighted here.                                        Johnson-lindenstrauss lemma, linear and nonlinear ran-
                                                                       dom projections, random fourier features, and random
References                                                             kitchen sinks: Tutorial and survey, 2021.
Abe, S. Training of support vector machines with maha-               Golub, G. H. and Van Loan, C. F. Matrix Computations -
  lanobis kernels. In Lecture Notes in Computer Science,              4th Edition. Johns Hopkins University Press, 2013.
  pp. 750–750, 08 2005.
                                                                     Gu, Y., Zhao, B., Hardtke, D., and Sun, Y. Learning global
Achlioptas, D. Database-friendly random projections:                   term weights for content-based recommender systems. In
  Johnson-lindenstrauss with binary coins. Journal of Com-            Proc. 25th ACM International Conference on World Wide
  puter and System Sciences, 66(4):671–687, 2003.                     Web (WWW), pp. 391–400, 2016.
Ailon, N. and Chazelle, B. The fast johnson–lindenstrauss            Haagerup, U. and Musat, M. On the best constants in
  transform and approximate nearest neighbors. SIAM J.                 noncommutative khintchine-type inequalities. Journal of
  Comput., 39(1):302–322, 2009.                                       Functional Analysis, 250(2):588–624, 2007.
Banihashem, K., Hajiaghayi, M., Kowalski, D. R.,                     Har-Peled, S. and Mahabadi, S. Proximity in the age of
  Olkowski, J., and Springer, M. Dynamic metric em-                    distraction: Robust approximate nearest neighbor search.
  bedding into lp space. In ICML, 2024.                                In Proc. ACM-SIAM Symposium on Discrete Algorithms
                                                                      (SODA), pp. 1–15. Society for Industrial and Applied
Baumgärtner, T., Ribeiro, L. F. R., Reimers, N., and
                                                                       Mathematics, 2017.
  Gurevych, I. Incorporating relevance feedback for
  information-seeking retrieval using few-shot document              Hsu, Y.-C., Hua, T., Chang, S., Lou, Q., Shen, Y., and Jin,
  re-ranking. In Proceedings of the Conference on Em-                  H. Language model compression with weighted low-rank
  pirical Methods in Natural Language Processing, pp.                  factorization. In ICLR, 2022.
  8988–9005, 2022.
                                                                     Hu, H. and Li, J. Sublinear time nearest neighbor search
Bhattacharya, G., Ghosh, K., and Chowdhury, A. S. Granger              over generalized weighted manhattan distance. CoRR,
  causality driven AHP for feature weighted knn. Pattern               abs/2104.04902, 2021.
  Recognit., 66:425–436, 2017.
                                                                     Indyk, P. and Motwani, R. Approximate nearest neighbors:
Blei, R. and Janson, S. Rademacher chaos: tail estimates               towards removing the curse of dimensionality. In Pro-
  versus limit theorems. Arkiv för Matematik, 42(1):13 –              ceedings of the ACM Symposium on Theory of Computing
  29, 2004.                                                            (STOC), pp. 604–613, New York, NY, USA, 1998.
Blocki, J., Blum, A., Datta, A., and Sheffet, O. The johnson-        Johnson, W. and Lindenstrauss, J. Extensions of lipschitz
  lindenstrauss transform itself preserves differential pri-           maps into a hilbert space. Contemporary Mathematics,
  vacy. In 2012 IEEE 53rd Annual Symposium on Founda-                  26:189–206, 01 1984.
  tions of Computer Science, pp. 410–419, 2012.
                                                                     Kaban, A. Improved bounds on the dot product under ran-
Chien, S., Rasmussen, L., and Sinclair, A. Clifford algebras           dom projection and random sign projection. In Proceed-
  and approximating the permanent. Journal of Computer                 ings of the ACM International Conference on Knowledge
  and System Sciences, 67(2):263–290, 2003.                            Discovery and Data Mining (KDD), pp. 487–496, 2015.
Cunningham, J. P. and Ghahramani, Z. Linear dimensional-             Kamada, Y. and Abe, S. Support vector regression using ma-
  ity reduction: Survey, insights, and generalizations. Jour-          halanobis kernels. In Lecture Notes in Computer Science,
  nal of Machine Learning Research, 16(89):2859–2900,                  volume 4087, 08 2006.
  2015.



                                                                10
                           Dimensionality Reduction on Complex Spaces with Dynamic Weights

Kane, D. M., Nelson, J., Porat, E., and Woodruff, D. P.              ACM Symposium on Theory of Computing (STOC), pp.
  Fast moment estimation in data streams in optimal space.           1027–1038, 2019.
  In Proceedings of the ACM Symposium on Theory of
  Computing (STOC), pp. 745–754, 2011.                             Moreo, A., Esuli, A., and Sebastiani, F. Learning to weight
                                                                    for text classification. IEEE Trans. on Knowl. and Data
Kane, D. M., Mehlhorn, K., Sauerwald, T., and Sun, H.               Eng., 32(2):302–316, 2020.
  Counting arbitrary subgraphs in data streams. In Czumaj,
  A., Mehlhorn, K., Pitts, A., and Wattenhofer, R. (eds.),         Niño-Adan, I., Manjarres, D., Landa-Torres, I., and Portillo,
 Automata, Languages, and Programming, pp. 598–609,                  E. Feature weighting methods: A review. Expert Systems
  2012.                                                              with Applications, 184:115424, 2021.

Kaski, P., Mannila, H., and Matakos, A. A multilinear              Prekopcsák, Z. and Lemire, D. Time series classification by
  johnson-lindenstrauss transform. In Symposium on Sim-              class-based mahalanobis distances. Computing Research
  plicity in Algorithms (SOSA), pp. 108–118, 2025.                   Repository - CORR, 01 2010.

Kuchibhotla, A. K. and Chakrabortty, A. Moving beyond              Upadhyay, J.        Randomness efficient fast-johnson-
  sub-Gaussianity in high-dimensional statistics: applica-           lindenstrauss transform with applications in differential
  tions in covariance estimation and linear regression. In-          privacy and compressed sensing, 2015.
  formation and Inference, 11(4):1389–1456, 2022.                  Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones,
Larsen, K. G. and Nelson, J. The johnson-lindenstrauss               L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention
  lemma is optimal for linear dimensionality reduction. In           is all you need. In NeurIPS, pp. 6000–6010, 2017.
  International Colloquium on Automata, Languages, and             Wang, H., Wang, N., and Yeung, D. Collaborative deep
  Programming (ICALP), volume 55, pp. 82:1–82:11, 2016.             learning for recommender systems. In Proceedings of the
                                                                    ACM International Conference on Knowledge Discovery
Larsen, K. G. and Nelson, J. Optimality of the johnson-
                                                                    and Data Mining (KDD), pp. 1235–1244, 2015.
  lindenstrauss lemma. In Symposium on Foundations of
  Computer Science (FOCS), pp. 633–638, 2017.                      Woodruff, D. P. and Yasuda, T. Reweighted solutions for
                                                                    weighted low rank approximation. In ICML, 2024.
Lei, Y., Huang, Q., Kankanhalli, M. S., and Tung, A. K. H.
  Sublinear time nearest neighbor search over generalized          Yang, T., Zhang, L., Lin, Q., and Jin, R. Fast sparse least-
  weighted space. In ICML, volume 97, pp. 3773–3781,                 squares regression with non-asymptotic guarantees, 2015.
  2019.
                                                                   Yu, K., Xu, X., Ester, M., and Kriegel, H. Feature weight-
Makarychev, K., Makarychev, Y., and Razenshteyn, I.                  ing and instance selection for collaborative filtering: An
 Performance of johnson-lindenstrauss transform for k-               information-theoretic approach. Knowl. Inf. Syst., 5(2):
 means and k-medians clustering. In Proceedings of the               201–224, 2003.




                                                              11
                                Dimensionality Reduction on Complex Spaces with Dynamic Weights

Appendix
A. Missing proofs
A.1. Section 2
Lemma 2.2. For any x ∈ Rd and any 0 < p < q < +∞, we have ∥x∥q ≤ ∥x∥p .

Proof. If x = 0 the claim holds trivially. Else, let yi = |xi |/ ∥x∥q ≤ 1. Then we have
                               d
                               X                    d
                                                    X                          d
                                                                               X                                 d
                                                                                                                 X
                       p                   p                      p      p                q       p      p                          q       p
                    ∥x∥p =           |xi | =              |yi |       ∥x∥q ≥         |yi |     ∥x∥q = ∥x∥q             |xi |q / ∥x∥q = ∥x∥q .
                               i=1                  i=1                        i=1                               i=1


                                                                                  Pd                          p    q
Lemma 2.3. For any p, q ≥ 1 and any x, y ∈ Rd , we have                                           p     q
                                                                                         i=1 |xi | |yi | ≤ ∥x∥2 ∥y∥2 .


Proof. By applying Lemmas 2.1 and 2.2, we get:
                     d            d
                                             !1/2                          d
                                                                                              !1/2
                     X  p q
                                 X                                         X                                 p         q        p       q
                                          2p                                             2q
                       xi yi ≤       |xi |                                       |yi |               ≤ ∥x∥2p ∥y∥2q ≤ ∥x∥2 ∥y∥2 .
                         i=1                       i=1                     i=1




A.2. Section 3
                                       σ
                                                                                                        √
                                           be a Rademacher chaos of order γ ≥ 2. Then, ∥S∥q ≤ (q − 1)γ/2 γ!W (S).
                         P
Lemma 3.1. Let S =         σ∈Gγ S

              σ                                2                                                       σ
Proof. Let S = W (S σ )2 = ∥S σ ∥2 ∀σ and S = W (S)2 =
                                                                                      P
                                                                                              σ∈Gγ S       We have that:


        X X p σ p ρ 2   X X  σ   ρ
                                        p σ ρ     X σ   X X p σ ρ
   0≤         S − S     =      S + S − 2 S S = 2γ!  S −2      S S ≤
        σ∈Gγ ρ∈Gγ                                        σ∈Gγ ρ∈Gγ                                                     σ∈Gγ             σ∈Gγ ρ∈Gγ
                                                   2
             X       σ          X p σ
     ≤ 2γ!          S − 2         S  .
             σ∈Gγ              σ∈Gγ

                 p               p σ              √
This implies that γ!S ≥ σ∈Gγ S and thus γ!W (S) ≥ σ∈Gγ ∥S σ ∥2 . Then we can use the triangular inequality
                        P                                      P
and Bonami’s hypercontractive inequalities to prove the lemma:

                               X                          X                                      X                                  p
                  ∥S∥q =              Sσ            ≤             ∥S σ ∥q ≤ (q − 1)γ/2                     ∥S σ ∥2 ≤ (q − 1)γ/2         γ!W (S).
                               σ∈Gγ                      σ∈Gγ                                    σ∈Gγ
                                               q




Lemma 3.2. Let S be a Rademacher chaos of order γ ≥ 2. Then for any γ ′ ≥ γ and t > 0, we have:
                                                                               
                                                                        2 ′ 2 ′
                                                         p
                              Pr [|S| > t] ≤ e2 exp −(e γ!W (S))− /γ t /γ .

                    √            ′                                             √            ′   ′
Proof. When t ≤ e γ!W (S)2γ /2 , the lemma trivially follows since e2 exp −(e γ!W (S))−2/γ t2/γ ≥ 1. Assume now
          √            ′
that t > e γ!W (S)2γ /2 . We apply Markov’s inequality and lemma 3.1, obtaining
                                                     γ/2 √          q        ′ √
                                                                                           !q
                                  q −q     q −q       q     γ!W (S)         q γ /2 γ!W (S)
            Pr [|S| > t] ≤ E [|S| ] t = ∥S∥q t ≤                        ≤                     , ∀q ≥ 2.
                                                             t                     t

                                                                                     12
                                    Dimensionality Reduction on Complex Spaces with Dynamic Weights
                         ′  √             ′                                   √            ′    ′
Then, by setting q = t2/γ (e γ!W (S)))−2/γ ≥ 2, we have Pr [|S| > t] ≤ exp −(e γ!W (S))−2/γ t2/γ , from which the
Lemma follows.
Corollary 3.4. Let {Si }i=1,...,k be a sequence of k independent and identically distributed Rademacher chaoses of order γ ′ .
Then ∀γ ≥ 3 such that γ ′ ≤ γ, there exist constants c1 (γ), c2 (γ) depending only on γ such that
                                                                                            1
                                                               2                      c1 (γ)γ γ−1           γ
                                     2 exp − 4c (γ)21W (S)2 tk           0 < t < 2                W (S)k 2γ−2
                " k             # 
                  X                               1
                                                                       if              c 2 (γ)
             Pr       Si > t ≤                              2/γ 
                                     2 exp − 2c (γ)W   t
                  i=1
                                     
                                                     2    (S)          otherwise.

                                                                         1
                                                                   γ  γ−1
                                2      1                            c1                        γ
Proof. Let ∆ = (c1 /c2 ) γ−1 k γ−1 and let ∆′ = 2                   c2          W (S)k 2γ−2 . From Theorem 1.2 we have ∀u > 0
                                                "   k
                                                                                        #
                                                    X                √ √             
                                                                                          ≤ 2e−u .
                                                                                  γ/2
                                           Pr             Si > W (S) c1 k u + c2 u
                                                    i=1

                              √ √                 √ √
For 0 < u < ∆, we have that c1 k u + c2 uγ/2 ≤ 2c1 k u. Then,
                " k                        #      " k                               #
                  X                √ √             X             √ √             
                                                                                      ≤ 2e−u .
                                                                              γ/2
             Pr      Si > 2c1 W (S) k u ≤ Pr          Si > W (S) c1 k u + c2 u
                        i=1                                                 i=1

                          4c21 W (S)2 k , we have u < ∆ when t < ∆′ . Then the above inequality gives the first part of the
                    2
                                           
By setting u = t /
inequality.
                          √ √
For u ≥ ∆, we have that c1 k u + c2 uγ/2 ≤ 2c2 uγ/2 . Then,
                  " k                      #      " k                                  #
                    X                                X              √ √             
                                                                                         ≤ 2e−u .
                                       γ/2                                       γ/2
               Pr       Si > 2c2 W (S)u      ≤ Pr        Si > W (S) c1 k u + c2 u
                          i=1                                             i=1

                                       2/γ
By setting u = (t/(2c2 W (S)))                 , we have u ≥ ∆ when t ≥ ∆′ . Then the above inequality gives the second part of the
inequality.



A.3. Section 4.2
We bound the tail probabilities of the individual
                                              √ √ terms Hℓ by expanding them into sums of Rademacher chaoses and using
Theorem 1.2. In what follows, let F (t) = c1 k t + c2 t2 , with c1 and c2 the constants of Theorem 1.2 for γ = 4.
                               h                         i
                                             2     2
Lemma A.1. We have that Pr |H1 | > ∥w∥4 ∥x∥2 F (t) ≤ 4e−t . ∀t > 0

Proof. By setting τj1 ,j2 ,j3 = xj1 xj2 wj23 , we rewrite H1 as
                    k
                    X           X
                                               Re Ai,j1 Ai,j2 A2i,j3 τj1 ,j2 ,j3
                                                                    
           H1 =
                                       ′
                    i=1 (j1 ,j2 ,j3 )∈I3,d

                    k
                    X           X
                =                            (si,j1 si,j2 ri,j1 ri,j3 + si,j1 si,j2 ri,j2 ri,j3 )τj1 ,j2 ,j3 /2
                                       ′
                    i=1 (j1 ,j2 ,j3 )∈I3,d

                    k
                    X           X                                                         k
                                                                                          X          X
                =                              si,j1 si,j2 ri,j1 ri,j3 τj1 ,j2 ,j3 /2 +                            si,j1 si,j2 ri,j2 ri,j3 τj1 ,j2 ,j3 /2
                                       ′
                    i=1 (j1 ,j2 ,j3 )∈I3,d                                                                   ′
                                                                                          i=1 (j1 ,j2 ,j3 )∈I3,d

                    k
                    X                      k
                                           X
                =         H1,1,i /2 +             H1,2,i /2 = H1,1 /2 + H1,2 /2.
                    i=1                    i=1

                                                                                13
                              Dimensionality Reduction on Complex Spaces with Dynamic Weights

Since H1,1 and H1,2 have the same distribution, we focus on the first one. There are three indexes but four independent
random variables in each term of the sum in H1,1 , we perform an index transformation to get a chaos of order 4. Let
      ′
τ̂ : I4,2d → R be
                                          (
                                           τj1 ,j2 ,j3 −d if j1′ = j1 + d, j1 , j2 ≤ d, j3 > d, j3 ̸= j2 + d
                      τ̂j1 ,j2 ,j1′ ,j3 =
                                           0              otherwise.
Let also Xi,: = (si,1 , . . . , si,d , ri,1 , . . . , ri,d ). Note that the components of X are independent. Then, we can rewrite H1,1
as
                                                   X  k         X
                                      H1,1 =                               Xi,j1 Xi,j2 Xi,j1′ Xi,j3 τ̂j1 ,j2 ,j1′ ,j3 .
                                                                      ′
                                              i=1 (j1 ,j2 ,j1′ ,j3 )∈I4,2d

We now upper bound W (H1,1,i )2 for any i ∈ {1, . . . k}; standard arguments give
                                                           X                                              X                             2
                           W (H1,1,i )2 =                                    τ̂j21 ,j2 ,j1′ ,j3 =                        xj1 xj2 wj23
                                                                      ′
                                                  (j1 ,j2 ,j1′ ,j3 )∈I4,2d                                         ′
                                                                                                    (j1 ,j2 ,j3 )∈I3,d
                                                        X                                             4       4
                                            =                          x2j1 x2j2 wj43 ≤ ∥w∥4 ∥x∥2 .
                                                                 ′
                                                  (j1 ,j2 ,j3 )∈I3,d


The final inequality holds as:
                                   X                                          X
                                                  x2j1 x2j2 wj43 ≤                          |x2j1 x2j2 wj43 |
                                            ′
                             (j1 ,j2 ,j3 )∈I3,d                        (j1 ,j2 ,j3 )∈I3,d
                                                                                                                                  
                                                           X                            X                           X
                                                  ≤                |xj1 |2                       |xj2 |2                |wj3 |4 
                                                         j1 ∈I1,d                     j2 ∈I1,d                    j3 ∈I1,d
                                                       4    4
                                                  = ∥w∥4 ∥x∥2 .

We can then apply Theorem 1.2 with γ = 4, from which follows that
                         h                         i
                                       2     2
                       Pr |H1,1 | > ∥w∥4 ∥x∥2 F (t) ≤ Pr [|H1,1 | > W (H1,1,i )F (t)] ≤ 2e−t .

Since a similar bound holds for H2,2 , and since 2H1 = H1,1 + H1,2 , an union bound gives
                          h                         i     h                                i
                                         2     2                                  2     2
                        Pr |H1 | > ∥w∥4 ∥x∥2 F (t) = Pr |H1,1 + H1,2 | > 2 ∥w∥4 ∥x∥2 F (t)
                                                            h                         i
                                                                           2    2
                                                      ≤ 2Pr |H1,1 | > ∥w∥4 ∥x∥2 F (t) ≤ 4e−t .


                          h                         i
                                        2    2
Lemma A.2. We have that Pr |H2 | > 2 ∥w∥4 ∥x∥2 F (t) ≤ 2e−t . ∀t > 0

Proof. By setting τj1 ,j2 = xj1 xj2 wj22 , we rewrite H2 as

                                            k
                                            X             X
                                                                       Re Ai,j1 A3i,j2 τj1 ,j2
                                                                                      
                                 H2 = 2
                                                            ′
                                             i=1 (j1 ,j2 )∈I2,d

                                            k
                                            X             X
                                      =2                               sj1 sj2 (1 + rj1 rj2 )τj1 ,j2 /2
                                                            ′
                                             i=1 (j1 ,j2 )∈I2,d

                                          k
                                          X            X                                   k
                                                                                           X              X
                                      =                           sj1 sj2 τj1 ,j2 +                                s′j1 s′j2 τj1 ,j2
                                                         ′
                                          i=1 (j1 ,j2 )∈I2,d                                               ′
                                                                                            i=1 (j1 ,j2 )∈I2,d


                                                                                 14
                                Dimensionality Reduction on Complex Spaces with Dynamic Weights

where s′j = sj rj and has the same distribution of a Rademacher random variable.
          ′
Let τ̂ : I2,2d → R be
                                                             
                                                             τj1 ,j2
                                                                                      if j1 ≤ d, j2 ≤ d
                                                   τ̂j1 ,j2 = τj1 −d,j2 −d             if j1 > d, j2 > d
                                                             
                                                              0                        otherwise.
                                                             

Let also Xi,: = (si,1 , . . . , si,d , s′i,1 , . . . , s′i,d , ). Note that the components of X are independent.
Then, we can rewrite H2 as
                                                     k
                                                     X            X                                      k
                                                                                                         X
                                             H2 =                             Xi,j1 Xi,j2 τ̂j1 ,j2 =           H2,i .
                                                                     ′
                                                      i=1 (j1 ,j2 )∈I2,2d                                i=1


Then, we get that:
                               X                                X                           2               X                                4   4
          W (H2,i )2 =                      τ̂j21 ,j2 = 2                    xj1 xj2 wj22        =2                    x2j1 x2j2 wj42 ≤ 4 ∥w∥4 ∥x∥2 .
                                     ′
                          (j1 ,j2 )∈I2,2d                              ′
                                                            (j1 ,j2 )∈I2,d                                       ′
                                                                                                      (j1 ,j2 )∈I2,d


Since H2 is a sum of independent Rademacher chaoses of order 2 ≤ 4, from Theorem 1.2 we have that
                            h                         i
                                          2    2
                          Pr |H2 | > 2 ∥w∥4 ∥x∥2 F (t) ≤ Pr [|H2 | > W (H2,i )F (t)] ≤ 2e−t ,

and the claim follows.
                          h                       i
                                      2    2
Lemma A.3. We have that Pr |H3 | > ∥w∥4 ∥x∥2 F (t) ≤ 2e−t . ∀t > 0

Proof. By setting τj1 ,j2 = x2j1 wj22 , we rewrite H3 as
                             k
                             X         X                                      k
                                                                              X                   X                              k
                                                                                                                                 X
                                                   Re A2i,j1 A2i,j2 τj1 ,j2 =
                                                                   
                     H3 =                                                                                    rj1 rj2 τj1 ,j2 =         H3,i
                                            ′
                             i=1 (j1 ,j2 )∈I2,d                                                        ′
                                                                                        i=1 (j1 ,j2 )∈I2,d                       i=1


Then we get:
                                                                         X                               4       4
                                                W (H3,i )2 =                         x4j1 wj42 ≤ ∥w∥4 ∥x∥2 .
                                                                               ′
                                                                    (j1 ,j2 )∈I2,d


Since H3 is a sum of independent Rademacher chaoses of order 2 ≤ 4, from Theorem 1.2 we have that
                            h                       i
                                        2    2
                          Pr |H3 | > ∥w∥4 ∥x∥2 F (t) ≤ Pr [|H3 | > W (H3,i )F (t)] ≤ 2e−t ,

and the claim follows.

We then provide a bound on the quantity H = H1 + H2 + H3 .
                            h                      i
                                          2   2
Lemma 4.2. We have that Pr |H| > 4 ∥w∥4 ∥x∥2 F (t) ≤ 8e−t . ∀t > 0

Proof.
               h                       i    h                                   i
                           2    2                                     2   2
             Pr |H| > 4 ∥w∥4 ∥x∥2 F (t) = Pr |H1 + H2 + H3 | > 4 ∥w∥4 ∥x∥2 F (t) ≤
                  h                      i    h                         i    h                        i
                              2    2                        2    2                       2    2
             ≤ Pr |H1 | > ∥w∥4 ∥x∥2 F (t) + Pr |H2 | > 2 ∥w∥4 ∥x∥2 F (t) + Pr |H3 | > ∥w∥4 ∥x∥2 F (t)
              ≤ 4e−t + 2e−t + 2e−t = 8e−t .



                                                                                15
                             Dimensionality Reduction on Complex Spaces with Dynamic Weights

Lemma 4.3. For any given x, w ∈ Rd , we have
                                 h                          i
                                                   2
                               Pr |ρ(g(x), w) − ∥x∥w | > t
                                                                     
                                                       1             2
                                     8 exp −k                     t        if (†)
                                     
                                                                2
                                              (c1 8∥w∥4 ∥x∥2 )
                                                        2      2
                                  ≤            √                     √
                                                                          
                                     8 exp − k √         1
                                                                        t   otherwise
                                     
                                     
                                                             2     2
                                                                     c2 8∥w∥4 ∥x∥2

                              4/3   −1/3         2       2
with (†) the event: 0 < t < c1 c2          8 ∥w∥4 ∥x∥2 k −1/3 .

                                            2
Proof. We have kρ(g(x), w) − k ∥x∥w = H1 + H2 + H3 = H, which in turn implies that
                            h                        i
                                              2
                          Pr |ρ(g(x), w) − ∥x∥w | > t = Pr [|H| > kt] = Pr [|H| > u] .


From Lemma 4.2, we have that
                                          h                   √ √          i
                                                      2    2
                                        Pr |H| > 4 ∥w∥4 ∥x∥2 c1 k v + c2 v 2 ≤ 8e−v .

                                                   √ √            √ √                           h
                                                                                                          2   2
                                                                                                                √ √ i
Then, for v < (c1 /c2 )2/3 k 1/3 , we have that 2c1 k v ≥ c1 k v+c2 v 2 and therefore Pr |H| > 8 ∥w∥4 ∥x∥2 c1 k v ≤
                                                                h                         i
                                                                               2     2
8e−v . Similarly, for v ≥ (c1 /c2 )2/3 k 1/3 , we have that Pr |H| > 8 ∥w∥4 ∥x∥2 c2 v 2 ≤ 8e−v .
                           2       2   √ √                                         2    2
Then, setting u = 8 ∥w∥4 ∥x∥2 c1 k v for the first bound and u = 8 ∥w∥4 ∥x∥2 c2 v 2 for the second one yields
                                                                       
                                                                                       4/3 −1/3
                                                          1           u2                          2   2
                                      8 exp −                             if 0 < u < c1 c2 8 ∥w∥4 ∥x∥2 k 2/3
                                      
                                                                   2 k
                                                   (c1 8∥w∥4 ∥x∥2 )
                                                            2    2
                  Pr [|H| > u] ≤               
                                                                     √
                                                                         
                                      8 exp − √          1
                                                                       u   otherwise.
                                      
                                      
                                                              2    2
                                                         c2 8∥w∥4 ∥x∥2


Finally, making the substitution u = kt, we obtain the claim.
                                                                     n 2                     o
                                                                                   ∆ ln(8/δ)2
Theorem 1.1. Let ε, δ > 0. Let ∆ be a suitable parameter and k ≥ Ω max ∆ ln(8/δ)
                                                                          ε 2    ,      ε        . Then there exists
a linear function g(x) : Rd → Ck and an estimator ρ(g(x), w) : Ck × Rd → R such that for any given x, w ∈ Rd , with
probability at least 1 − δ,
                                                       2          2    2
                                      |ρ(g(x), w) − ∥x∥w | < ε ∥x∥2 ∥w∥4 /∆.
                   2     2          2
In particular, if ∥x∥2 ∥w∥4 / ∥x∥w ≤ ∆, we get, with probability at least 1 − δ,
                                                                               2              2
                                                     |ρ(g(x), w) − ∥x∥w | < ε ∥x∥w .

Proof. Assume that ε ln(8/δ)/∆ < c21 c−1                2 2 2 −2
                                      2 8, and set k = c1 8 ∆ ε  ln(8/δ), and we get:
                                                     2       2           4/3   −1/3          2    2
                                                                                       8 ∥w∥4 ∥x∥2 k − /3 ,
                                                                                                       1
                                        t = ε ∥w∥4 ∥x∥2 /∆ < c1 c2

We are thus in the Gaussian tail case of the bound described by Lemma 4.3. Then we have
                                                                      !
                                                            kt2
                                                                                            2 
          h
                              2
                                      i
                                                                                   2 2 −2   8  ε
       Pr |ρ(g(x), w) − ∥x∥w | > t ≤ 8 exp −                  2   2 2   ≤ 8 exp −c1 8 ε ln     2    = δ.
                                                    (c1 8 ∥w∥4 ∥x∥2 )                       δ c1 82

                                                                                   2
                                                         ln(8/δ)
Let now assume ε ln(8/δ)/∆ ≥ c21 c−1
                                  2 8, and fix k = c2 8∆     ε   . In this case,
                                                     2       2           4/3   −1/3          2    2
                                                                                       8 ∥w∥4 ∥x∥2 k − /3 ,
                                                                                                       1
                                        t = ε ∥x∥2 ∥w∥4 /∆ ≥ c1 c2

                                                                         16
                              Dimensionality Reduction on Complex Spaces with Dynamic Weights

and we are in the long tail part of the bound described by Lemma 4.3. Then,
                                                            √         
                                                                                                2 
          h
                                2
                                       i                       kt       ≤ 8 exp −c21 82 ε−2 ln 8  ε
       Pr |ρ(g(x), w) − ∥x∥w | > t ≤ 8 exp − q                                                    2    = δ.
                                                                 2   2                          δ c1 82
                                                        c2 8 ∥w∥4 ∥x∥2
                                                         n        2
                                                                                             o
                                                                                  ∆ ln(8/δ)2
As the failure probability decreases by k, taking k ≥ max c21 82 ∆ ln(8/δ)
                                                                    ε 2    , c2 8      ε       completes the proof.

A.4. Section 4.4
                              PL          (ℓ)
We have that ρ̄(ḡ(x), w) =     ℓ=1 ρ(g         (x(ℓ) ), w(ℓ) ) decomposes as
                                          L
                                          X
                        ρ̄(ḡ(x), w) =           ρ(g (ℓ) (x(ℓ) ), w(ℓ) )
                                          ℓ=1
                                          L X
                                            k                                                x(ℓ) x(ℓ) (w(ℓ) )2
                                                                        (ℓ)   (ℓ)    (ℓ)        j1 j2      j3
                                          X               X
                                      =                             Re Ai,j1 Ai,j2 (Ai,j3 )2
                                                                                                       k
                                          ℓ=1 i=1 j1 ,j2 ,j3 ∈I3,dℓ
                                            k
                                          L X                                              
                                                                        (ℓ)   (ℓ)    (ℓ)      (ℓ) (ℓ)  (ℓ)
                                          X               X
                                      =                             Re Ai,j1 Ai,j2 (Ai,j3 )2 xj1 xj2 (wj3 )2 /k
                                                               ′
                                          ℓ=1 i=1 j1 ,j2 ,j3 ∈I3,d

                                                   k
                                                 L X                                       
                                                                              (ℓ)    (ℓ)      (ℓ) (ℓ)  (ℓ)
                                                 X              X
                                          +2                              Re Ai,j1 (Ai,j2 )3 xj1 xj2 (wj2 )2 /k
                                                                  ′
                                                 ℓ=1 i=1 j1 ,j2 ∈I2,d

                                                k
                                              L X                                          
                                                                           (ℓ)       (ℓ)       (ℓ)     (ℓ)
                                              X             X
                                          +                           Re (Ai,j1 )2 (Ai,j2 )2 (xj1 )2 (wj2 )2 /k
                                                               ′
                                              ℓ=1 i=1 j1 ,j2 ∈I2,d

                                                k X
                                              L X
                                              X   d
                                          +                     wj2 x2j
                                              ℓ=1 i=1 j=1
                                            k
                                          L X
                                          X                          k
                                                                   L X
                                                                   X                         k
                                                                                           L X
                                                                                           X                           2
                                      =               H1,ℓ,i +                  H2,ℓ,i +             H3,ℓ,i + ∥x∥w
                                          ℓ=1 i=1    ℓ=1 i=1                               ℓ=1 i=1
                                                          2
                                      = H1 + H2 + H3 + ∥x∥w .

For ease of exposition, we only deal with the decomposition of H3 , as the discussion for H1 and H2 is similar. We first
bound some quantities related to the Orliz norms of the Rademacher chaoses H3,ℓ,i .
Lemma A.4. Let b = (∥H3,ℓ,i ∥ψα : ℓ = 1, . . . , L; i = 1, . . . , k). We have that, for some constant c,

                                                                  2    2
                                                                           √
                                                      ∥b∥2 ≤ c ∥w∥4 ∥x∥2 /( kL)

and that
                                                                           2         2
                                                     ∥b∥∞ ≤ c ∥w∥4 ∥x∥2 /(kL /2 ).
                                                                                               3




Proof. We have that
                                       k
                                     L X
                                     X                                                           k
                                                                                               L X
                                                                                               X
                               2                            2
                           ∥b∥2 =                 ∥H3,ℓ,j ∥ψα ≤ 24e2 (e + 1)2/α                          W (H3,ℓ,j )2
                                     ℓ=1 i=1                                                   ℓ=1 i=1
                                                               k
                                                             L X                                             4     4
                                                             X                   4         4             ∥w∥4 ∥x∥2
                                   ≤ 24e2 (e + 1)2/α ζ                     ∥xℓ ∥2 ∥wℓ ∥4 k −2 ≤ c                  kL
                                                                                                           k 2 L3
                                                             ℓ=1 i=1

Where we used Lemma 3.3 with the fact that x and w are near-uniform.

                                                                           17
                                 Dimensionality Reduction on Complex Spaces with Dynamic Weights

Similarly,
                                                                                                            4    4
                         2                               2                            4    4            ∥w∥4 ∥x∥2
                       ∥b∥∞ = max        max ∥H3,ℓ,j ∥ψα ≤ c max           max ∥xℓ ∥2 ∥wℓ ∥4 k −2 ≤ c             .
                              ℓ=1,...,L i=1,...,k               ℓ=1,...,L i=1,...,k                       k 2 L3



We then have the following result.
                          h
                                   2  2
                                              i                                  √
Lemma A.5. We have Pr |H3 | ≥ ∥w∥4 ∥x∥2 F̄ (t) ≤ 2e−t ∀t > 0, with F̄ (t) = √ckL
                                                                              1
                                                                                   t + kLc23/2 t2 and c1 and c2
appropriate constants.
                        PL Pk
Proof. Recall that H1 = ℓ=1 i=1 H3,ℓ,i , with each summand a mean-zero Rademacher chaos of order at most 4. We
then have (Kuchibhotla & Chakrabortty, 2022) for suitable constants c1 and c2 that
                                      h                √                 i
                                   Pr |H3 | ≥ c1 ∥b∥2 t + c2 ∥b∥∞ t2 ≤ 2e−t .

Plugging in the result of the previous lemma, we have:
                                                              "                                              #
                                           √                                   2    2               2    2
                  −t
                           h
                                                         2
                                                           i              c ∥w∥4 ∥x∥2 √        c ∥w∥4 ∥x∥2 2
             2e        ≥ Pr |H3 | ≥ c1 ∥b∥2 t + c2 ∥b∥∞ t ≥ Pr |H3 | ≥ c1    √          t + c2             t
                                                                               kL                 kL3/2

Choosing c1 = c1 c and c2 = c2 c gets the claim.

Similar results hold for H1 and H2 . We then have the following.
                              h                         i
                                            2    2
Lemma A.6. We have that Pr |H| ≥ 4 ∥w∥4 ∥x∥2 F̄ (t) ≤ 8e−t .

Proof. We use union bound over H1 , H2 , and H3 , similarly to what is done in Lemma 4.2.

We can then prove the lemma stated in the main paper.
Lemma 4.5. For any given x, w ∈ Rd , we have
                                                                                              
                                                                                   2
                                                                                 L            2
                                                                   8 exp −kc1               t
                               h                          i      
                                                                 
                                                                                       2 2
                                                                         √ (∥w∥4 ∥x∥3/42 )
                                                   2                             2
                             Pr |ρ̄(ḡ(x), w) − ∥x∥w | > t ≤ max                                √
                                                                 8 exp − kc2      L
                                                                                                  t
                                                                 
                                                                              (∥w∥2 ∥x∥2 )1/2
                                                                                           4     2


with c1 and c2 appropriate constants (different from the ones in Lemma A.5).

Proof. We have                                    h                          i
                                                                      2
                                            P = Pr |ρ̄(ḡ(x), w) − ∥x∥w | > t = Pr [|H| > t] .

From Lemma A.6, we have that
                                        "                                         #
                                                     2    2              2     2
                                                  ∥w∥4 ∥x∥2 √         ∥w∥4 ∥x∥2 2
                                     Pr |H| > 4c1    √        v + 4c2            v ≤ 8e−v .
                                                    L k                 L3/2 k
                                                                                  "         #
                                                                                  2    2
                                            √                                  ∥w∥4 ∥x∥2 √
Then, for v such that the term with v dominates, we have that P ≤ Pr |H| > 8c1    √        v ≤ 8e−v .
                                                                                 L k
                             "                      #
                                          2     2
                                       ∥w∥4 ∥x∥2 2
Otherwise, we have P ≤ Pr |H| > 8c2               v ≤ 8e−v .
                                         L3/2 k
Then, setting v accordingly yields the claim.

                                                                   18
                                           Dimensionality Reduction on Complex Spaces with Dynamic Weights

Lemman 4.6.  Let ε, δ > 0. oLet c be a suitable universal constant. Let L and k be positive integers such that k ≥
        2                   2
c max ∆ Lln(8/δ)
          2 ε2   , ∆ ln(8/δ)
                       3/2
                     L ε
                              . Then there exists a linear function g(x) : Rd → Ck·L and an estimator ρ(g(x), w) :
Ck·L × Rd → R such that for any given x, w ∈ Rd , with probability at least 1 − δ,
                                                                                                                    2                              2         2
                                                                                      ρ(g(x), w) − ∥x∥w < ε ∥x∥2 ∥w∥4 /∆.
                           2         2                  2
In particular, if ∥x∥2 ∥w∥4 / ∥x∥w ≤ ∆, we get, with probability at least 1 − δ,
                                                                                                        2                                                             2
                                                                               (1 − ε) ∥x∥w < ρ(g(x), w) < (1 + ε) ∥x∥w .

                               2           2
Proof. Let t = ε ∥w∥4 ∥x∥2 /∆.
Suppose we are in the Gaussian tail case of the bound. Then we have, taking k = c−1   2 −2
                                                                                  1 ∆ ε    ln(8/δ)L−2 ,
                                                                                       !
                            h
                                                 2
                                                       i                    t2 · L2
                         Pr |ρ(g(x), w) − ∥x∥w | > t ≤ 8 exp −kc1             2     2    = δ.
                                                                         (∥w∥4 ∥x∥2 )2

Let now assume we are in the long tail part of the bound. Then, taking k = c−2
                                                                            2 ∆ε
                                                                                  −1
                                                                                     ln(8/δ)2 L−3/2 ,
                                                                             √ 3/4        !
                          h
                                                2
                                                      i               √         tL
                       Pr |ρ(g(x), w) − ∥x∥w | > t ≤ 8 exp −c2 k               2    2       = δ.
                                                                          (∥w∥4 ∥x∥2 )1/2

                                                                                                                                       n                                           o
                                                                                                                                             ∆2 ln(8/δ) ∆ ln(8/δ)2
As the failure probability decreases by k, by taking k ≥ c max                                                                                 L2 ε2   , L3/2 ε                     , with an appropriate constant c,
completes the proof.

B. Experiments
We perform here a proof-of-concept experimental evaluation of our techniques. We generate a random vector x ∈ Rd by
selecting uniformly at random each entry in [−1, 1] and then normalizing the resulting vector such that ∥x∥2 = 1. The
random weight vector w ∈ Rd is also created by selecting uniformly at random each entry in [0.1, 1.2]. We set d = 2 · 104 .
Finally, we generate 1000 random matrices A and plot the empirical distribution of the estimator ρ(g(x), w).
From the experiments, we see a gap in the quality of the estimate between the linear (Figure 2) and nonlinear (Figure 1)
method by Kaban (2015), as argued in Section 4.3. Moreover, the experimental results in Figure 5 showcase the applicability
of the method on sparse vectors, as discussed in Section 4.3, as well as the poor quality of the estimate for near-uniform
vectors for the method described in Theorem 1.2, suggesting that the probabilistic analysis of the method is tight. Finally,
the experiments in Figures 4 and 3 highlight the significant reduction of the variance of the estimator when using the sparse
block matrices. Interestingly, the sparse map with the decomposition into L sub-vectors almost closes the gap with the
non-linear method, as argued in Section 4.5.
Our code is publicly available at https://github.com/aidaLabDEI/complex-dimensionality-reduction.
                                                       k = 102                                                             k = 103                                                          k = 104
                                                                                              kxk2w                                                          kxk2w                                                               kxk2w
                    0.25


                    0.20


                    0.15


                    0.10


                    0.05


                    0.00
                               0.6   0.8       1.0        1.2            1.4    1.6     1.8       2.0   1.0   1.1       1.2                  1.3       1.4           1.14   1.16   1.18   1.20              1.22   1.24   1.26       1.28
                                                     g 0 (x) · g 0 (w)                                                   g 0 (x) · g 0 (w)                                                g 0 (x) · g 0 (w)




Figure 1. Empirical distribution of the nonlinear estimator g ′ (x) · g ′ (w) based on JL described in Equation 1, over N = 103 random
matrices A. The vectors x and w are fixed throughout the experiment, and drawn from a uniform distribution on [−1, 1]d and on
[1.0, 1.2]d , respectively. The dimensionality of the vectors is d = 2 · 104 . We report the results for k ∈ {102 , 103 , 104 }. We remark that,
due to its nonlinearity, this method does not allow to compute pairwise distances.



                                                                                                                    19
                                                 Dimensionality Reduction on Complex Spaces with Dynamic Weights


                                                             k = 102                                                                                                        k = 103                                                                                          k = 104
                                                                                                                  kxk2w                                                                                                        kxk2w                                                                                            kxk2w
                    0.25


                    0.20


                    0.15


                    0.10


                    0.05


                    0.00
                           −60        −40         −20                 0             20               40                            −15             −10          −5               0            5            10            15                      −4            −2              0                 2                  4
                                                             ρ(g(x), w)                                                                                                     ρ(g(x), w)                                                                                      ρ(g(x), w)




Figure 2. Empirical distribution of the linear estimator ρ(x, w) described in Theorem 1.1, over N = 103 complex random matrices
A. The vectors x and w are fixed throughout the experiment, and drawn from a uniform distribution on [−1, 1]d and on [1.0, 1.2]d ,
respectively. The dimensionality of the vectors is d = 2 · 104 . We report the results for k ∈ {102 , 103 , 104 }. We note that the choice of x
and w is the worst-case scenario discussed in Section 4.3, providing experimental evidence for the tightness of the analysis.




                                                            k · L = 102                                                                                                    k · L = 103                                                                                     k · L = 104
                    0.30
                                                                                                                  kxk2w                                                                                                        kxk2w                                                                                            kxk2w

                    0.25

                    0.20

                    0.15

                    0.10

                    0.05

                    0.00
                                 −4         −2          0                   2            4            6                   0.6            0.8             1.0         1.2               1.4           1.6           1.8         2.0            1.14      1.16    1.18       1.20          1.22         1.24   1.26             1.28
                                                             ρ̄(ḡ(x), w)                                                                                                   ρ̄(ḡ(x), w)                                                                                    ρ̄(ḡ(x), w)




Figure 3. Empirical distribution of the linear estimator ρ̄(x, w) described in Theorem 4.6, over N = 103 complex random matrices
A. The vectors x and w are fixed throughout the experiment, and drawn from a uniform distribution on [−1, 1]d and on [1.0, 1.2]d ,
respectively. The dimensionality of the vectors is d = 2 · 104 . We report the results for L ∈ {102 , 103 , 104 } and k = 1, which is the
optimal parameter choice given the almost-uniformity of the vectors x and w. The results showcase the reduction of the estimator variance
when using the vector partitioning technique, thereby closing the gap with the nonlinear method.




                                                            k · L = 102                                                                                                    k · L = 103                                                                                     k · L = 104
                    0.25                                                                                          kxk2w                                                                                                        kxk2w                                                                                            kxk2w


                    0.20


                    0.15


                    0.10


                    0.05


                    0.00
                                 −4         −2              0                   2                4            6                 −0.5             0.0           0.5              1.0          1.5           2.0           2.5            0.6           0.8           1.0          1.2            1.4          1.6                 1.8
                                                             ρ̄(ḡ(x), w)                                                                                                   ρ̄(ḡ(x), w)                                                                                    ρ̄(ḡ(x), w)




Figure 4. Empirical distribution of the linear estimator ρ̄(x, w) described in Theorem 4.6, over N = 103 complex random matrices
A. The vectors x and w are fixed throughout the experiment, and drawn from a uniform distribution on [−1, 1]d and on [1.0, 1.2]d ,
respectively. The dimensionality of the vectors is d = 2 · 104 . We report the results for L = 100 and k · L ∈ {102 , 103 , 104 }, which
ensures the almost-uniformity condition for a wider range of vectors x and w.




                                                             k = 102                                                                                                        k = 103                                                                                          k = 104
                    0.25                                                                                          kxk2w                                                                                                        kxk2w                                                                                            kxk2w

                    0.20


                    0.15


                    0.10


                    0.05


                    0.00
                            −4         −2           0                       2                4            6                 −0.5           0.0           0.5         1.0            1.5            2.0       2.5         3.0           0.6            0.8            1.0           1.2                 1.4              1.6
                                                             ρ(g(x), w)                                                                                                     ρ(g(x), w)                                                                                      ρ(g(x), w)




Figure 5. Empirical distribution of the linear estimator ρ(x, w) described in Theorem 1.1, over N = 103 complex random matrices A.
The vector x is sparse, with m = 102 entries drawn from a uniform distribution on [−1, 1]d and the rest set to 0. Similarly, w is sparse,
with the same entries drawn from a uniform distribution on [1.0, 1.2]d . The dimensionality is d = 2 · 104 . We report the results for
k ∈ {102 , 103 , 104 }. We note that the concentration depends on m, rather than on d, as argued in Section 4.3.



                                                                                                                                                                20
