Alphabeta Math
AlgorithmAlgorithm: AI-adaptedProof: Not applicablePipeline-generatedjudge pass (gpt-6-luna)
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 low-rank adaptation by gradient descent

Definition

Fix positive integers d,k,n, an integer 1≤r≤min⁡(d,k), a frozen matrix W0∈Rd×k, a nonzero scale c∈R, a finite ordered data list (xi,yi)i=1n with xi∈Rk, and, for each data entry, a loss program ℓi that returns a real scalar wherever its primitive calls are defined. Let T≥0 be a finite integer, let I0,…,IT−1 be fixed finite nonempty ordered lists of indices in {1,…,n} (repeated indices are allowed), let η0,…,ηT−1≥0 be finite step sizes, and supply an initial matrix A0∈Rr×k. The procedure has no dropout or random initialization; any random initialization must be sampled externally and supplied as A0. Set B0=0∈Rd×r.

Represent each loss evaluation by a specified finite real-arithmetic program with a scalar output. Each primitive is continuously differentiable on a declared open domain or is piecewise continuously differentiable, with finitely many open branch regions, a continuously differentiable formula on each region, and a separately specified primal boundary value when one is defined. Here C1 means totally differentiable with continuous derivative. Check admissibility at the current factors on each step; a strict branch used at one step need not be the branch used at another.

Lt(A,B)=1∣It∣∑i∈Itℓi ⁣((W0+cBA)xi)

Starting with t=0, perform the following finite loop while t<T:

  1. Evaluate the displayed program at (At,Bt), visiting its primitive calls in evaluation order. At the first call with no primal value, return DOMAIN_ERROR with the current factors and step index t. At the first defined piecewise primitive whose input lies on a branch boundary or has ambiguous branch selection, return NONDIFFERENTIABLE with the current factors and step index t. If every primitive call has a value and every piecewise primitive is on a unique strict branch, run reverse-mode automatic differentiation on this same scalar-output program at (At,Bt), with the selected branch choices, with respect to the ordered list of all entries of At followed by all entries of Bt, each matrix flattened row by row. If reverse mode returns either failure status, return it with the current factors and step index t. No factor update is made on a failure status.
  2. If reverse mode returns gradients, reshape the first and second blocks into GtA∈Rr×k and GtB∈Rd×r, respectively, and set

At+1=At−ηtGtA,Bt+1=Bt−ηtGtB.

Increment t by one.

After T successful updates, return SUCCESS, the matrices AT,BT, and the merged weight W0+cBTAT. At T=0 return the supplied A0, zero B0, and W0 without evaluating a loss. This is a finite real-arithmetic procedure; it asserts no convergence, minimization, generalization, floating-point accuracy, speed, or memory guarantee.

Definition references

Low-rank adaptation of a linear layer: the factor shapes, frozen base matrix, and updated matrix used here.

Finite straight-line computational programs and real-arithmetic tapes: finite ordered real-arithmetic graph, C1 primitive, admissible domain, and strict-branch conventions.

Reverse-mode automatic differentiation for a scalar graph output: scalar-output reverse sweep and its domain-error and branch-boundary statuses.

Hu et al., §4.1: frozen base weights, trainable factors, and merged weights

MIT OCW, §§8.3–8.4: reverse-mode accumulation for finite scalar objectives

Depends on

Used by

Dependency tree · two levels

6 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