Masked Autoencoder Objective Semantics #
This module formalizes the finite patch/token core of a masked autoencoder (MAE):
- an input is a finite collection of patches
Fin n → Patch; - an encoder/decoder computation is abstracted to a reconstruction function;
- the objective is a sum of per-patch losses over the masked indices.
The formalization focuses on the semantic core. It captures the semantics that examples and future model helpers should preserve, while leaving ViT blocks, convolutional patch embeddings, and image IO in the executable API layer.
Paper anchor: “Masked Autoencoders Are Scalable Vision Learners” (He, Chen, Xie, Li, Dollár,
Girshick, 2021), arXiv:2111.06377. The key objective-level fact we encode is that the
reconstruction loss is taken over the masked patch set. Therefore the objective should not depend
on an arbitrary ordering of masked patch indices; maeLoss_reverse is the small finite theorem
capturing that property.
A finite patch collection.
Instances For
Reconstruct every patch using a reconstruction function.
Instances For
Exact reconstruction predicate for all patches.
Instances For
MAE-style masked reconstruction loss over an explicit masked-index array.
The objective sums over the array, counting duplicate indices repeatedly. A set interpretation requires distinct indices; the theorems below cover reversal and concatenation of arrays.
Instances For
The masked-autoencoder loss is additive in the masked patch list, for the same reason.
The MAE loss is invariant under reversing the masked-index array. Multiplicities are preserved; this does not identify arrays that differ by duplicate indices.
If every selected patch has zero reconstruction loss, the masked MAE loss is zero.
Reconstructing with the identity decoder/prediction is exact.