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.
Symmetric image-text contrastive loss
Definition
Let and be nonempty sets of image and text inputs, let , and let be an indexed batch whose th image and th text are the designated matched pair. Let and be image and text encoder maps into one shared -dimensional space; any learned projection into that space is included in the corresponding map. A finite feedforward network on vectorized inputs is one possible encoder realization. Assume and for every . For , set and . Define normalized embeddings
For a learned real log-scale , set and define the logits . For each image-to-text row and text-to-image column, respectively, define
The two directional cross-entropies use the matched diagonal as their labels:
The symmetric image-text contrastive loss on this batch is
Since the batch is nonempty, the embeddings are nonzero, the exponential is finite and positive on real inputs, and the logarithm is defined on positive reals, every displayed normalization and loss term is well-defined. Each off-diagonal candidate in a row or column denominator is treated as a negative for that anchor, whether or not the corresponding image and text might also be semantically compatible. This is an index-matching objective on the supplied batch; it makes no assumption about latent classes, sampling, or semantic alignment.
For , the similarity matrix has this pattern. Row indexes image and column indexes text ; outlined diagonal cells are designated matches and dashed off-diagonal cells are other batch candidates. The definition and its formula do not rely on the diagram.
Definition references
Radford et al., §§2.3–2.5 and Figure 3: batch matching objective, encoders, and training setup
Machine Learning II lecture notes, “The contrastive objective” and “Encoders and scaling”
Finite feedforward computation graphs and layered MLPs: a finite acyclic weighted/activation graph evaluates to an input-output map; this is one possible encoder model class here.
The real exponential function and the number by a power series: defines the real exponential on every real input by its convergent power series.
The exponential is a continuous bijection from onto : the real exponential has positive range, so the scale and softmax denominators are positive.
The natural logarithm as the inverse of the exponential function: defines the logarithm on positive reals as the inverse of the exponential.
Depends on
Used by
- Zero-shot prompt classification Algorithm
Dependency tree · two levels
14 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
- Alec Radford et al., Learning Transferable Visual Models From Natural Language Supervision (standard reference, not scraped)
- Machine Learning II, Lecture notes — 2021 Clip (standard reference, not scraped)