The SRHT as a Johnson–Lindenstrauss and multiplication sketch
Library · Source module
The SRHT as a Johnson–Lindenstrauss and multiplication sketch
The subsampled randomized trigonometric transform of NLAlib.Sketching.Structured.SRHT, for a bounded orthonormal \mathbf{F} with constant \beta, in both sampling models.
* Distributional JL. An oblivious subspace embedding for dimension 1 with constants strictly inside 1 \mp \varepsilon has the JL property (NLAlib.IsObliviousSubspaceEmbedding.hasJLProperty), so the SRHT OSE at d = 1, by continuity in the distortion, gives the JL tail 2\exp\Bigl(-\frac{\varepsilon^2\lvert k\rvert}{3\beta(1 + 2\sqrt{t} + 2t)}\Bigr) + \lvert n\rvert e^{-t} and its size form at O(\beta\log(\lvert n\rvert/\delta)\log(1/\delta)/\varepsilon^2) rows; any field. The JL lemma for N points follows by NLAlib.HasJLProperty.measureReal_exists_abs_norm_mulVec_sq_sub_ge_le. * The JL moment at p = 2, directly: with \mathbf{z} = \mathbf{F}\mathbf{D}\mathbf{x} the squared sketch norm is the mean of \lvert k\rvert draws of \lvert n\rvert\lvert z_i\rvert^2, whose variance without replacement is at most the one with replacement, and the fourth moment of a Rademacher sum bounds \mathbb{E}\lvert z_i\rvert^4 by 3\beta^2/\lvert n\rvert^2, so \mathbb{E}(\|\mathbf{S}\mathbf{x}\|^2 - 1)^2 \le (3\beta^2 - 1)/\lvert k\rvert, with no \log\lvert n\rvert. The JL moment does not follow usefully from the tail, whose flattening floor \lvert n\rvert e^{-t} costs a \log^2(1/\delta). Real \mathbf{F}. * Projection-cost preservation through NLAlib.IsObliviousSubspaceEmbedding.hasProjectionCostPreserving_of_hasJLMoment, at the size of the SRHT OSE plus <!-- value projectionCostTailDim {(3\beta^2 - 1)} d \varepsilon \delta --> 384 \cdot (3\beta^2 - 1) (d + 1)/(\varepsilon^2 \delta) rows; real. * Spectral approximate multiplication: condition on the signs, flatten the rows of \mathbf{F}\mathbf{D}\mathbf{A} and \mathbf{F}\mathbf{D}\mathbf{B} (NLAlib.measureReal_exists_norm_mul_diagonal_mul_apply_sq_gt_le_of_hasLaw_rademacherVector), then sample (NLAlib.Sketching.Sampling.MatrixMultiplication); any field.
The relative-error sketch-and-solve, randomized SVD and early truncation through the JL moment are in NLAlib.Regression.SRHT and NLAlib.LowRank.Oblivious.SRHT.
Main results
* NLAlib.hasJLProperty_of_hasLaw_srht, NLAlib.hasJLProperty_of_hasLaw_srht_of_samplingEmbeddingDim_le, NLAlib.exists_forall_hasJLProperty_of_hasLaw_srht and their with-replacement forms. * NLAlib.hasJLMoment_of_hasLaw_srht, NLAlib.hasJLMoment_of_hasLaw_srhtWithReplacement. * NLAlib.hasProjectionCostPreserving_of_hasLaw_srht_of_le_card and its asymptotic form NLAlib.exists_forall_hasProjectionCostPreserving_of_hasLaw_srht. * NLAlib.measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_srht and its with-replacement form.
Declarations
- NLAlib.exists_forall_hasJLProperty_of_hasLaw_srht
- NLAlib.exists_forall_hasJLProperty_of_hasLaw_srhtWithReplacement
- NLAlib.exists_forall_hasProjectionCostPreserving_of_hasLaw_srht
- NLAlib.hasJLMoment_of_hasLaw_srht
- NLAlib.hasJLMoment_of_hasLaw_srhtWithReplacement
- NLAlib.hasJLProperty_of_hasLaw_srht
- NLAlib.hasJLProperty_of_hasLaw_srhtWithReplacement
- NLAlib.hasJLProperty_of_hasLaw_srhtWithReplacement_of_samplingEmbeddingDim_le
- NLAlib.hasJLProperty_of_hasLaw_srht_of_samplingEmbeddingDim_le
- NLAlib.hasProjectionCostPreserving_of_hasLaw_srht_of_le_card
- NLAlib.measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_srht
- NLAlib.measureReal_specNorm_conjTranspose_mul_sub_ge_le_of_hasLaw_srhtWithReplacement