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 , an integer , a frozen matrix , a nonzero scale , a finite ordered data list with , and, for each data entry, a loss program that returns a real scalar wherever its primitive calls are defined. Let be a finite integer, let be fixed finite nonempty ordered lists of indices in (repeated indices are allowed), let be finite step sizes, and supply an initial matrix . The procedure has no dropout or random initialization; any random initialization must be sampled externally and supplied as . Set .
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 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.
Starting with , perform the following finite loop while :
- Evaluate the displayed program at , visiting its primitive calls in evaluation order. At the first call with no primal value, return
DOMAIN_ERRORwith the current factors and step index . At the first defined piecewise primitive whose input lies on a branch boundary or has ambiguous branch selection, returnNONDIFFERENTIABLEwith the current factors and step index . 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 , with the selected branch choices, with respect to the ordered list of all entries of followed by all entries of , each matrix flattened row by row. If reverse mode returns either failure status, return it with the current factors and step index . No factor update is made on a failure status. - If reverse mode returns gradients, reshape the first and second blocks into and , respectively, and set
Increment by one.
After successful updates, return SUCCESS, the matrices , and the merged weight . At return the supplied , zero , and 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
- Edward Hu et al., LoRA: Low-Rank Adaptation of Large Language Models, arXiv:2106.09685v2, §4.1 (standard reference, not scraped)
- MIT OpenCourseWare 18.S096, Matrix Calculus for Machine Learning and Beyond, Lecture 5 Part 3, §§8.3–8.4 (standard reference, not scraped)