NLA-lib Explorer

The Johnson–Lindenstrauss property

Library · Source module

The Johnson–Lindenstrauss property

A random sketch \mathbf{S} with values in \Bbbk^{k \times n} has the distributional Johnson–Lindenstrauss property with distortion \varepsilon and failure probability \delta when, for every unit vector \mathbf{x}, \mathbb{P}[\varepsilon \le \lvert \|\mathbf{S}\mathbf{x}\|^2 - 1 \rvert] \le \delta; it has the JL moment property with exponent p when \mathbb{E}\lvert \|\mathbf{S}\mathbf{x}\|^2 - 1 \rvert^p \le \varepsilon^p \delta for unit \mathbf{x}. The moment property implies the tail property (Markov); conversely a sub-exponential JL tail at every distortion gives the moment property at every exponent, through the named bound NLAlib.subexponentialMomentBound (<!-- value subexponentialMomentBound v b p --> p(2\mathbf{v})^{p/2}\Gamma(p/2) + 2p(2\mathbf{b})^{p}\Gamma(p)); the moment property at p = \log(1/\delta) is Kane and Nelson's [KaneNelson2014]. Both scale to every nonzero vector; the tail property gives the Johnson–Lindenstrauss lemma for finitely many points by a union bound over pairs. The moment property also gives approximate matrix multiplication (NLAlib.Sketching.Properties.MatrixMultiplication).

Both are stated with the non-strict threshold event \{\varepsilon \le X\}.

From the JL property to subspace embeddings. A distributional JL tail at \varepsilon makes any sketch \mathbf{S} a subspace embedding with constants 1 \mp (5/4)\varepsilon of a fixed \mathbf{U} with orthonormal columns, failing with probability at most 21^{D} \delta, D = \lvert p \rvert \dim_{\mathbb{R}} \Bbbk the real dimension of \Bbbk^p: on a 1/10-net of the unit sphere of \Bbbk^p (NLAlib.exists_finset_specNorm_le_div_of_isHermitian, at most 21^{D} points), the Hermitian error \mathbf{E} = (\mathbf{S}\mathbf{U})^{\mathsf{H}} (\mathbf{S}\mathbf{U}) - \mathbf{I} has \lvert \operatorname{Re} \mathbf{x}^{\mathsf{H}} \mathbf{E} \mathbf{x} \rvert = \lvert \|\mathbf{S}\mathbf{U}\mathbf{x}\|^2 - 1 \rvert < \varepsilon off the union of the JL events, hence \|\mathbf{E}\|_2 < (5/4)\varepsilon. The real dimension is \lvert p \rvert over \mathbb{R} and 2 \lvert p \rvert over \mathbb{C}, so the factor is 21^{\lvert p \rvert} and 441^{\lvert p \rvert}. Any family with a JL tail and no Gram-level tail gets its OSE here. Conversely an OSE for dimension 1 with constants strictly inside 1 \mp \varepsilon has the JL property at \varepsilon (NLAlib.IsObliviousSubspaceEmbedding.hasJLProperty), the route of the SRHT. Degenerate cases: for empty p every sketch is an embedding; for \varepsilon \le 0 and nonempty p the JL hypothesis bounds the whole space. No hypothesis on \varepsilon; \delta \ge 0 is needed for the union bound over an empty net and for mono.

Main definitions

* NLAlib.HasJLProperty S ε δ μ, NLAlib.HasJLMoment S ε δ p μ.

Main results

* NLAlib.HasJLProperty.measureReal_exists_abs_norm_mulVec_sq_sub_ge_le: the JL lemma. * NLAlib.HasJLMoment.hasJLProperty: moments give tails. * NLAlib.hasJLMoment_of_forall_hasJLProperty: sub-exponential tails at every distortion give moments at every exponent. * NLAlib.HasJLMoment.integral_abs_norm_mulVec_sq_sub_rpow_le: the moment bound for every \mathbf{x}. * NLAlib.HasJLMoment.integrable_abs_frobNorm_mul_sq_sub_rpow, NLAlib.HasJLMoment.integral_abs_frobNorm_mul_sq_sub_rpow_le, NLAlib.HasJLMoment.measureReal_abs_frobNorm_mul_sq_sub_ge_le: Frobenius-norm preservation, the moment bound summed over the columns of a matrix, any field. * NLAlib.HasJLProperty.hasSubspaceEmbedding: JL plus a net, for a fixed \mathbf{U}. * NLAlib.HasJLProperty.isObliviousSubspaceEmbedding: the oblivious form. * NLAlib.IsObliviousSubspaceEmbedding.hasJLProperty: an OSE for dimension one has the JL property.

Declarations