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.

Energy models, score matching, and contrastive divergence — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A two-state witness to short-run contrastive-divergence bias

Example

Let X={0,1}, θ∈R, and Eθ(0)=0, Eθ(1)=θ. Then Zθ=1+e−θ,pθ(1)=e−θ1+e−θ,pθ(0)=11+e−θ. Take q0=δ0 and the transition kernel Kθ(x,y)=121{y=x}+12pθ(y). This kernel is strictly positive and leaves pθ invariant. For k=1 and θ=0, the reconstruction law satisfies q1,0(1)=1/4 while p0(1)=1/2. The population stop-gradient CD-1 direction for the negative log-likelihood is −1/4, whereas the exact negative log-likelihood gradient is −1/2. The exact derivative of the scalar CD-1 objective at θ=0 is ddθCD⁡1(θ)∣θ=0=−14−18log⁡3. Thus the stop-gradient direction also omits a nonzero derivative of the reconstruction law. This finite witness asserts no general sign or consistency claim for contrastive-divergence bias.

At θ=0, the transition matrix and its state diagram are K0=(3/41/41/43/4).

013=43=41=41=4

The nodes are states; each arrow label is K0(x,y) from its source state x to its target state y. A self-loop records staying at the current state. The diagram displays the matrix and is not used in the verification.

Example references

Geoffrey Hinton, Section 2 of the full technical report describes the contrastive-divergence reconstruction update and its omitted derivative.

Kevin P. Murphy, Chapter 24, Section 24.2.2 defines the finite-step contrastive-divergence objective.

Facts & Assumptions

Given: The two-state energy family, data mass q0=δ0, invariant kernel Kθ, k=1, and parameter value θ=0 specified in the Example.

[F1]

Energy-based density and partition function: pθ(x)=e−Eθ(x)/Zθ for finite positive Zθ.

[F2]

Contrastive divergence with k transitions: q1,θ=q0Kθ and the population CD-1 direction is Eq0∇Eθ−Eq1,θ∇Eθ.

[F3]

Contrastive divergence with k transitions: for finite states, the population CD-1 direction is Eq0∇Eθ−Eq1,θ∇Eθ.

[F4]

The finite-state CD-k gradient includes the chain-distribution derivative: the exact finite-state likelihood gradient is the data energy-gradient mean minus the model energy-gradient mean, and ∂θCD⁡1 subtracts the reconstruction-law derivative term.

[F7]

The exponential function is smooth and (exp⁡)′=exp⁡: exp⁡′(u)=exp⁡(u) for real u.

[F8]

The derivative f′(c)=lim⁡x→cf(x)−f(c)x−c of f:A→R at a point c∈A that is a limit point of A, and differentiability on a set: the derivative in each real parameter coordinate is the limit of its difference quotient on an open interval around the point.

Verification

1.1givenF1F9constructalgebra

Direct normalization gives Zθ=1+e−θ and the displayed pθ. By [F9], its coordinates are positive. Each row of Kθ sums to 1/2+∑ypθ(y)/2=1, every entry is positive, and ∑xpθ(x)Kθ(x,y)=12pθ(y)+12pθ(y)∑xpθ(x)=pθ(y), so Kθ is an admissible invariant kernel.

2.1givenF1F2F5F6F7F8step 1.1algebra

At θ=0, p0(0)=p0(1)=1/2 and q0=δ0, so [F2] gives q1,0(1)=K0(0,1)=p0(1)/2=1/4 and q1,0(0)=3/4. Also Eθ′(0)=0 and Eθ′(1)=1. By [F6] and [F7], (e−θ)′=−e−θ; applying the quotient rule [F5] to u/(1+u), where u=e−θ, gives pθ′(1)=u′/(1+u)2=−e−θ/(1+e−θ)2=−pθ(1)pθ(0). Hence p0′(1)=−1/4; the scalar rule [F5] applied to q1,θ(1)=pθ(1)/2 gives q1,0′(1)=−1/8 and, since q1,θ(0)=1−q1,θ(1), q1,0′(0)=1/8.

3.1F3F4step 2.1algebra

By [F4], the exact negative log-likelihood gradient at 0 is 0−p0(1)=−1/2. By [F3], the population stop-gradient CD-1 direction is 0−q1,0(1)=−1/4, so it differs from the exact likelihood gradient.

4.1F4step 2.1step 3.1algebra∎

By [F4] and step 2.1, the chain correction is ∑x∈{0,1}q1,0′(x)log⁡(q1,0(x)/p0(x))=18log⁡32−18log⁡12=18log⁡3>0. Subtracting it from the first two CD terms −1/4 gives ddθCD⁡1(θ)∣θ=0=−14−18log⁡3, as stated. Thus the stop-gradient CD-1 direction also differs from the exact CD-1 objective derivative.

Sources