Lemma A.4 - Balancedness along fine-tuning
ProvedFeatureDistortion.BalancednessInvariantNotation: , is the input dimension, the feature dimension, the data map, the labels, the features, and the head. Adjoint means Euclidean transpose. The loss is , with no normalization. The probability model, when present, is explicitly specified below; deterministic flow statements involve no random data assumption.
For every triple of natural numbers , every continuous real-linear map , every , every , every continuous real-linear map , and every pair of functions and , assume , , and that at every real the derivatives within are and , with the latter derivative in the space of continuous linear maps. Then for every real , as endomorphisms of : for every , . Adjoints are Euclidean. No normalization or zero initial balance is assumed. Zero dimensions are allowed; for this is equality of the sole endomorphism of the zero space. The assertion is conditional on these curves and concerns nonnegative times only.
Formalization note: Direct source invariant, without an initial normalization assumption. Source: Kumar, Raghunathan, Jones, Ma, and Liang, Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution, ICLR 2022, https://arxiv.org/pdf/2202.10054v1. Appendix A.2, PDF p. 24, Lemma A.4, equations (A.19)--(A.20). Source-backed parent: Section 3.4, PDF p. 10, Proposition 3.7, equations (3.10)--(3.11); Appendix A.7, PDF pp. 45--47.
import Definitions.Def_FeatureDistortion_Model open MeasureTheory Filter open scoped Topology
namespace FeatureDistortion
theorem BalancednessInvariant :
∀ (n d k : ℕ) (X : Vec d →L[ℝ] Vec n) (Y : Vec n)
(v₀ : Vec k) (B₀ : Features d k) (γ : Trajectory d k),
IsFineTuningFlow X Y v₀ B₀ γ →
∀ t : ℝ, 0 ≤ t → balance (γ.head t) (γ.features t) = balance v₀ B₀ := by sorry
end FeatureDistortion
Read-back
What the Lean code literally says, in plain math · gpt-6
For every triple of natural numbers , every continuous real-linear map , every , every , every continuous real-linear map , and every pair of functions and , assume , , and that at every real the derivatives within are and , with the latter derivative in the space of continuous linear maps. Then for every real , as endomorphisms of : for every , . Adjoints are Euclidean. No normalization or zero initial balance is assumed. Zero dimensions are allowed; for this is equality of the sole endomorphism of the zero space. The assertion is conditional on these curves and concerns nonnegative times only.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.