NLA-lib Explorer

Sketch-and-project

Library · Source module

Sketch-and-project

NLAlib.sketchAndProject A S b x is the point nearest \mathbf{x} among the least-squares solutions of the sketched system \mathbf{S}\mathbf{A}\mathbf{y} = \mathbf{S}\mathbf{b}, \mathbf{x} + (\mathbf{S}\mathbf{A})^{+}\mathbf{S}(\mathbf{b} - \mathbf{A}\mathbf{x}), and NLAlib.sketchAndProjectIterate A S b x₀ q iterates it with a sequence of sketches \mathbf{S}_0, \mathbf{S}_1, \ldots. The correction (\mathbf{S}\mathbf{A})^{+}\mathbf{S}(\mathbf{b} - \mathbf{A}\mathbf{x}) is the vector sketch-and-solve correction for the current residual. Randomized Kaczmarz is the instance with single-row selection sketches (NLAlib.kaczmarzIterate); block Kaczmarz, Gaussian sketch-and-project and coordinate methods are others.

Every step moves the iterate within the row space of \mathbf{A} and, for a consistent system, never increases the error. With independent sketches drawn from a law \nu, written as the i.i.d.-sequence hypothesis HasLaw S (iidSequence ν) μ, the expected squared error contracts by the expected projector \mathbb{E}_{\nu}[(\mathbf{S}\mathbf{A})^{+}\mathbf{S}\mathbf{A}] (Gower and Richtárik's \mathbb{E}[\mathbf{Z}] in the Euclidean metric), and its least eigenvalue on the row space of \mathbf{A} is the rate. No rank assumption is needed. Matrix-valued integrals are taken under open scoped Matrix.Norms.L2Operator. [GowerRichtarik2015].

Main definitions

* NLAlib.sketchAndProject: one sketch-and-project step. * NLAlib.sketchAndProjectIterate: the iterate for a sequence of sketches.

Main results

* NLAlib.isLeastSquaresSolution_sketchAndProject, NLAlib.norm_sub_sketchAndProject_le_of_isLeastSquaresSolution: the step is the nearest sketched least-squares solution. * NLAlib.norm_sub_sketchAndProject_sq: Pythagoras for one step. * NLAlib.sketchAndProjectIterate_sub_mem_range, NLAlib.norm_sub_sketchAndProjectIterate_le: row-space invariance and monotonicity. * NLAlib.integral_sub_sketchAndProjectIterate_of_hasLaw_iidSequence: the mean error. * NLAlib.integral_norm_sub_sketchAndProjectIterate_sq_le_of_hasLaw_iidSequence: linear convergence in expectation. * NLAlib.integral_norm_sub_sketchAndProjectIterate_sq_le_mul_of_hasLaw_iidSequence_of_log_div_le: the iteration count, with its asymptotic form.

Declarations