Alphabeta Math
Pipeline-generated
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.

Reconstruction and masked autoencoders

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Reconstruction autoencoder and denoising risk

Definition

Fix integers M,q≥1, set [M]={1,…,M}, and write the image space on a fixed patch grid as X=(Rq)M. A measurable space is a set with a specified sigma-algebra; equip X and a finite-dimensional latent space Z with such structures. An image is x=(x1,…,xM)∈X, with q real pixel values in each of its M patches. Let S=(x(1),…,x(n)) be a finite training set with n≥1. For u∈Rq, set ∥u∥22=∑r=1qur2. For V⊆[M] let ZV={(zj)j∈V:zj∈Z}. For unmasked reconstruction, the encoder and decoder are deterministic measurable maps Eϕ:X→Z and Dψ:Z→X. For masked reconstruction, the encoder is a measurable deterministic map (V,(xj)j∈V)↦(zj)j∈V∈ZV, and the decoder maps the ordered length-M sequence of encoded visible tokens and mask tokens to an element of X. Each mask token is one learned vector m∈Z reused at every masked position. All maps take finite real values; when implemented by feedforward neural networks, each is a finite computation graph evaluated in the layered order of its vertices.

Let X:Ω→X be a measurable random image on a probability space. Assume that the displayed squared-loss random variables are measurable. The population reconstruction risk is Rrec(ϕ,ψ;X):=E[1Mq∑j=1M∥Dψ(Eϕ(X))j−Xj∥22]∈[0,+∞]. A stochastic denoising corruption is any measurable random image X~:Ω→X on the same probability space as the clean image X; their dependence may be arbitrary, with no restriction on support. The population denoising risk reconstructs the clean image: Rden(ϕ,ψ;X,X~):=E[1Mq∑j=1M∥Dψ(Eϕ(X~))j−Xj∥22]∈[0,+∞]. These expectations use the extended integral of a nonnegative measurable random variable, so they may be infinite.

The empirical reconstruction risk on uncorrupted images is Rrecemp(ϕ,ψ;S):=1nMq∑i=1n∑j=1M∥Dψ(Eϕ(x(i)))j−xj(i)∥22.

A finite denoising corruption law assigns to each training image x(i) a finite set Ci of corrupted images and weights ci(x~)≥0 with ∑x~∈Cici(x~)=1. The empirical denoising risk is the finite-support specialization of the population risk: Rdenemp(ϕ,ψ;S,C):=1n∑i=1n∑x~∈Cici(x~)1Mq∑j=1M∥Dψ(Eϕ(x~))j−xj(i)∥22.

For masked autoencoding, fix an integer k with 1≤k<M and let Vk={V⊆[M]:∣V∣=k}, a set with cardinality (Mk). A mask V is sampled uniformly from Vk; the patches in V are visible and the patches in [M]∖V are masked. The encoder receives only the visible patches, with their positions, and no mask tokens. The decoder receives the encoded visible patches and a shared learned mask token at each missing position, with position information for all M slots, and outputs predictions x^j(ϕ,ψ;x,V)∈Rq for every patch position.

The original-pixel target map is Traw(u)=u. The optional normalized-pixel target is defined for u=(u1,…,uq) with positive standard deviation by uˉ:=1q∑r=1qur,s(u):=(1q∑r=1q(ur−uˉ)2)1/2>0,Tnorm(u):=u−uˉ1s(u), where 1=(1,…,1)∈Rq. The target choice T is one of these maps. Define Dnorm:={x∈X:s(xj)>0 for every j∈[M]}. For T=Tnorm, the masked-objective formulas below are defined only on Dnorm, so a finite empirical objective requires x(i)∈Dnorm for every i. For a population objective, require the event A:={X∈Dnorm} to be measurable with P(A)=1; interpret each loss integrand by its displayed formula on A and by 0 on Ac. Since Ac is null, any other measurable extension there gives the same expectation. The raw target has no such restriction. The per-example masked-patch mean squared error, its population objective, and its finite empirical objective are ℓMAE(ϕ,ψ;x,V,T):=1(M−k)q∑j∈[M]∖V∥x^j(ϕ,ψ;x,V)−T(xj)∥22, RMAE(ϕ,ψ;X,k,T):=1(Mk)∑V∈VkE[ℓMAE(ϕ,ψ;X,V,T)], RMAEemp(ϕ,ψ;S,k,T):=1n(Mk)∑i=1n∑V∈VkℓMAE(ϕ,ψ;x(i),V,T). The population objective averages the expectation over the image law for each fixed mask; equivalently, it is the joint expectation for an independent uniform mask. The finite empirical objective averages over every training image and mask.

Because the encoder input and decoder output depend on V and the loss is evaluated only on [M]∖V, this is an expectation of a mask-dependent loss. It is not defined as an estimator of the separate full-image risk Rrec, and no equality or unbiasedness between these objectives is asserted. Neither loss alone guarantees that a learned code retains distinctions needed for a downstream label (semantic sufficiency), uniquely determines an underlying data-generating parameter (identifiability), or improves performance on a specified later task (downstream feature quality).

Definition references

Finite feedforward computation graphs and layered MLPs: a feedforward network is a finite acyclic computation graph whose node values are evaluated in a specified order.

Expectation of a real random variable on a finite probability space: expectation on a finite probability space is the weighted finite sum.

Probability measures and probability spaces: a probability measure has total mass one and defines a probability space.

Random elements and real random variables: a random image is a measurable map from a probability space into the image space.

A measurable function between measurable spaces: a map is measurable when preimages of measurable sets are measurable.

Measurable spaces and measurable sets: a measurable space consists of a set and a sigma-algebra of its measurable subsets.

Sigma-algebras: a sigma-algebra is closed under complements and countable unions.

Expectation of a nonnegative or integrable random variable: the expectation of a nonnegative measurable loss is its extended-valued integral.

He et al., §§3.1–3.3: uniform random patch masking, visible-only encoder, mask-token decoder, masked-pixel MSE, and normalized-pixel target

Goodfellow et al., §14.5, pp. 507–508: denoising corruption and clean-target reconstruction objective

Vincent et al., §§2.2–2.3, equations (1), (3), and (5): reconstruction risk and stochastic corruption with clean target

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Masked autoencoder pretraining

Definition

Let S=(x(1),…,x(n)) be a finite image training set with n≥1 on a fixed grid with M,q≥1 (that is, M patches of q pixel values each). Choose a visible count k with 1≤k<M, a finite update count J≥0, differentiable encoder and decoder families parameterized by θ=(ϕ,ψ,m)∈Θ⊆Rp, an initial parameter vector θ0∈Θ, an optimizer state set S, and an initial optimizer state s0∈S. Choose either the original-pixel target T(u)=u or, provided every patch of every training image has positive standard deviation, the normalized target T(u)=(u−uˉ1)/s(u), where uˉ=q−1∑r=1qur and s(u)=(q−1∑r=1q(ur−uˉ)2)1/2. For each V⊆[M] with ∣V∣=k, the encoder is a map from V and the visible patch values to one encoded token at each position in V; it receives no mask tokens. The decoder is a map from the ordered length-M sequence of encoded visible tokens and one shared learned vector m at every position in [M]∖V to predictions x^j∈Rq at every patch position. Position j is supplied to the maps as its index. Require that the masked mean squared error 1(M−k)q∑j∈[M]∖V∥x^j−T(xj)∥22 has a finite parameter gradient at every iterate reached by the procedure.

An optimizer update schedule is a supplied finite family of maps Ut:(Θ×S)×Rp→Θ×S for 0≤t<J, each defined on its entire displayed domain. When Θ=Rp, plain stochastic gradient descent with step sizes ηt>0 is the special case Ut((θ,s),g)=(θ−ηtg,s).

For each t=0,…,J−1, perform the following steps.

  1. Sample It uniformly from {1,…,n} and, independently, sample Vt uniformly from Vk={V⊆[M]:∣V∣=k}. Sampling is with replacement across different update steps.
  2. Apply the encoder to the visible patch values at positions in Vt. Restore their original order, insert the shared learned vector m at every position in [M]∖Vt, and supply each position index to the decoder. Apply the decoder to this full ordered sequence to obtain x^t,j∈Rq for every j∈[M].
  3. Compute Lt=((M−k)q)−1∑j∈[M]∖Vt∥x^t,j−T(xj(It))∥22, compute gt=∇θLt, and update (θt+1,st+1)=Ut((θt,st),gt).

Return the trained encoder EϕJ and parameter vector θJ. The decoder is used during pretraining and may be discarded afterward. The mask ratio is ρ=(M−k)/M. The procedure defines finite stochastic updates only; it does not assert that the updates converge to a minimizer or that the returned representation is semantically sufficient.

The diagram records the data flow. Solid arrows pass data or predictions; the bottom comparison uses only positions in [M]∖V. The definitions and numbered instructions specify the algorithm completely, and no proof or property relies on the diagram.

InputpatchsequenceUniformlysamplevisiblepositionsEncoderseesvisiblepatchesonlyInsertlearnedtokensatmissingpositionsDecoderPredictionsatallpositionsMasked-patchMSEonlyCleantargetsatmissingpositionsvisiblesubset

4 · Examples, counterexamples and false statements

None yet.

Sources