Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: AI-adaptedPipeline-generatedprecheck pending
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Finite-budget Levenberg-Marquardt with a trust-ratio safeguard

Definition

This algorithm performs one finite-budget LM trial update. Inputs are x∈U, a C1 residual function r:U→Rm on open U with m,n≥1 and J=Dr, the exact values r(x) and J(x), a fixed nonsingular D∈Rn×n, an arithmetic mode (exact or computed), a floor λmin⁡>0, current damping λ≥λmin⁡, factors γ>1, 0<η1<η2<1, a trust radius Δ>0, and an attempt cap N≥1. In computed mode the input values are finite stored numbers treated as the exact data for this update; only arithmetic performed below is rounded. A computed run may include a certificate that the exact scalar product J(x)Tr(x) is zero. Put ϕ(x)=∥r(x)∥22/2 and m0(p)=∥r(x)+J(x)p∥22/2. In exact mode the step is the unique minimizer of 12∥r(x)+J(x)p∥22+λ2∥Dp∥22, which is equivalent to solving (J(x)TJ(x)+λDTD)p=−J(x)Tr(x). In computed mode the returned vector is only a candidate for this same subproblem; no exact minimizer claim is made.

In computed mode use Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add. Evaluate every dot product by initializing s=0 and, for indices in increasing order, computing u=fl⁡(aibi) followed by s=fl⁡(s+u). Matrix-vector products and squared norms use this schedule row by row and coordinate by coordinate. Each other scalar arithmetic operation uses fl⁡, with copies and sign changes exact; the first failed operation returns the status assigned to its stage. Function evaluation returns either a finite stored residual vector or failure.

For attempts j=1,…,N, do the following with the current damping. After a damping change, construct a new augmented matrix and obtain a report for that actual matrix; do not reuse an earlier damping value's factorization or report.

  1. In exact arithmetic, if J(x)Tr(x)=0, return stationary before calling the linear solver. In a computed run, evaluate J(x)Tr(x) by the stated dot schedule and return stationary before the solve only with the supplied certificate that this exact gradient is zero; if evaluating the product fails, return gradient-evaluation-failure; if the computed product is a rounded zero without that certificate, return gradient-unverified and do not form a ratio. Otherwise perform the augmented construction and linear solve afresh inside this attempt at its current damping: Form Aλ=[J(x);λD] and bλ=[r(x);0], then call Gauss-Newton linearized least-squares step with QR/SVD rank safeguards in QR mode on (Aλ,bλ). Exact mode uses the exact positive square root and requires a supplied exact reduced factorization of Aλ for each call; absence of that factorization returns linear-solve-failure. This matrix has full column rank because D is nonsingular and λ>0. In computed mode, copy the stored J(x) and r(x) into the top blocks, compute t=fl⁡(λ), then fill the bottom block entries fl⁡(tDij) in increasing row and column order and fill the appended residual entries with exact zeros. Any first arithmetic or range failure in this construction returns linear-solve-failure with its stage and indices. The call receives a computed QR report for this actual stored Aλ. A computed-candidate is usable only when that report includes the low-level procedure's independently verified full-rank certificate sλ>0 for the actual stored matrix, namely ∥Aλv∥2≥sλ∥v∥2 for every v∈Rn. Pass this bound as the computed report's certificate field; it is not inferred from a nonzero computed diagonal or from positive definiteness of the ideal exact system alone. A rank-unverified report and every other status besides exact-step in exact mode or computed-candidate in computed mode are unusable and return linear-solve-failure with the report. A computed-candidate remains a candidate and carries no convergence guarantee. If the solver status is not exact-step in exact mode or computed-candidate in computed mode, return linear-solve-failure with its report; in particular, rank-unverified is a failure, not a usable trial.
  2. If exact mode returns p=0 after the nonzero-gradient check, return linear-solve-failure with the inconsistent exact solve report. If computed mode returns p=0, return zero-step-unverified and do not compute a ratio. For every remaining candidate p (the zero candidates have already returned a status), compute pred⁡=m0(0)−m0(p). If this computation fails, return model-evaluation-failure; if pred⁡≤0, return nonpositive-predicted-decrease. In either case do not compute a ratio.
  3. If computing x+p or Dp fails in the selected arithmetic, return trial-evaluation-failure. If x+p∉U or ∥Dp∥2>Δ, reject the trial and compute the damping update λ+=γλ in the selected arithmetic. If that update fails, is nonfinite, or is outside the representable range, return damping-range-failure with the current x,λ and the trial report. Otherwise set λ←λ+ and continue.
  4. Otherwise evaluate r(x+p) and compute ared⁡=ϕ(x)−ϕ(x+p) and ρ=ared⁡/pred⁡. A failed trial evaluation or nonfinite computed result returns trial-evaluation-failure. If ρ<η1, reject and compute λ+=γλ in the selected arithmetic. If that damping update fails, is nonfinite, or is outside the representable range, return damping-range-failure with the current x,λ and the trial report. Otherwise set λ←λ+. If this was attempt N, return rejection-budget-exhausted; otherwise continue.
  5. If ρ≥η1, first determine the next damping. If also ρ≥η2 and ∥Dp∥2=Δ, compute q=λ/γ in exact mode and q=fl⁡(λ/γ) in computed mode. If this division fails, has a nonfinite or nonpositive result, or is outside the representable range, return damping-range-failure with the current x,λ and the trial report, without accepting that trial. Otherwise set λnext=max⁡{λmin⁡,q}. In every other accepted case set λnext=λ. Only after the next damping is available, accept and return x+p, p, ρ, and λnext.

If all N attempts are rejected, return rejection-budget-exhausted. The equality in the boundary test is exact for exact arithmetic and is the equality test on stored values in a computed run. No claim is made that every finite budget succeeds.

Facts & Assumptions

Given: The input objects and admissibility conditions in the Definition.

[F1]

Gauss-Newton linearized least-squares step with QR/SVD rank safeguards: an exact QR step solves the linear least-squares problem; a computed-candidate requires a verified full-rank certificate, while rank-unverified is a separate status.

[F2]

A damped least-squares step solves a scaled trust-region model: for g=JTr≠0, the unique damped step has positive predicted reduction m0(0)−m0(p)=∥Jp∥22/2+λ∥Dp∥22.

[F4]

Quadratic trust-region models and the actual-to-predicted reduction ratio: the actual-to-predicted reduction ratio is defined only for positive predicted reduction.

[F6]

The Euclidean inner product ⟨x,y⟩=∑k<nxkyk on Rn: ∥v∥22=vTv for the standard dot product.

[F7]

Rectangular matrix multiplication and the identity matrix In, including zero-sized shapes: a compatible product AB is defined entrywise by finite sums, and In is the identity matrix.

[F8]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: computed scalar operations use the stated rounding rule and return a range failure when its input conditions are not met.

Proof

1.1givenF1F5F6F7F8algebra

In exact mode, the augmented matrix satisfies AλTAλ=JTJ+λDTD and AλTbλ=JTr. For every v≠0, ∥Aλv∥22=∥Jv∥22+λ∥Dv∥22>0, so it has full column rank. The supplied exact QR factorization and [F1] give the unique minimizer of the augmented least-squares problem, which solves the displayed damped system. In computed mode, only a computed-candidate accompanied by the specified certificate is eligible; rank-unverified and all other non-candidate statuses return linear-solve-failure. The computed report is not used to assert the exact matrix identities or an exact minimizer. Construction and solving occur within each attempt at its current damping, and an earlier damping value's augmented factorization or report is not substituted.

1.2F2F3F4givenalgebra

Let Ψ(y)=∥y∥22/2. For every y,z, Ψ(y+z)−Ψ(y)−⟨y,z⟩=∥z∥22/2=o(∥z∥2), so DΨ(y)[z]=⟨y,z⟩. Since r is C1 and J=Dr, the chain rule [F3] gives Dϕ(x)[h]=⟨r(x),J(x)h⟩=(J(x)Tr(x))Th; thus JTr is the exact objective gradient. In exact arithmetic, if JTr=0, x is stationary, and the algorithm returns before the solve or any ratio. In a computed run the same return is made only with the stated exact-zero certificate; a rounded zero without it returns gradient-unverified. For an exact nonstationary step, [F2] gives p≠0 and positive predicted reduction. The computed path does not use [F2] to infer either property: its zero candidate returns zero-step-unverified, and its nonzero candidate reaches the ratio only after the explicit positive-prediction check.

2.1givenF1step 1.1step 1.2construct∎

Every attempt consists of finitely many gradient/status checks, a finite augmented construction and solve at the current damping, finitely many model and trial evaluations, and one of the listed branches. Any reported failure returns immediately. The attempt index increases by one after every rejection and is bounded by N, so execution returns a status after at most N trials. Every attempted damping multiplication or division either produces the stated next damping or returns damping-range-failure, and a trial is accepted only after its next damping is available. In exact arithmetic the high-ratio boundary update is still max⁡{λmin⁡,λ/γ}; the unchanged-parameter branch is retained.

Depends on

Used by

Dependency tree · two levels

46 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources