Week 05 · lesson

Investigation: A Generated Output Is Not a Proven Output

System pipeline

From Input Compression to a Bounded Output Claim

Read from top to bottom. Each arrow means the next stage uses the result or information produced by the stage above it.

Input

Start with a declared supplied pattern or training example.

LAB4-BIT PATTERN

Encoder

Map the input into a constrained latent representation.

COMPARE2 BITS VS 1 BIT

Latent Code

Inspect whether distinct inputs retain distinct codes or collide.

RISKCOLLISION

Decoder or Generator

Produce a reconstruction or candidate from the latent input.

OUTPUTPRODUCED ≠ PROVEN

Evidence Test

Measure reconstruction error, diversity, memorization, or held-out behavior as appropriate.

LAB MEASUREBIT ERROR

Claim Boundary

Reject novelty, realism, safety, and generalization claims without supporting tests.

ACTIONREPAIR CLAIM
Read this concept flow as plain text
  1. Input. Start with a declared supplied pattern or training example. LAB: 4-BIT PATTERN.
  2. Encoder. Map the input into a constrained latent representation. COMPARE: 2 BITS VS 1 BIT.
  3. Latent Code. Inspect whether distinct inputs retain distinct codes or collide. RISK: COLLISION.
  4. Decoder or Generator. Produce a reconstruction or candidate from the latent input. OUTPUT: PRODUCED ≠ PROVEN.
  5. Evidence Test. Measure reconstruction error, diversity, memorization, or held-out behavior as appropriate. LAB MEASURE: BIT ERROR.
  6. Claim Boundary. Reject novelty, realism, safety, and generalization claims without supporting tests. ACTION: REPAIR CLAIM.

An autoencoder maps an input through an encoder into a smaller latent representation, then uses a decoder to reconstruct the input. Training adjusts parameters to reduce reconstruction loss.

input → encoder → bottleneck → decoder → reconstruction
  └──────────────── compare ────────────────────────┘

A narrower bottleneck can force useful compression, but it can also discard distinctions. Low reconstruction error on training examples does not establish useful representations or unfamiliar-data performance.

Completed bottleneck example

Inputs 1001 and 1101 receive different two-bit codes, 00 and 01, so a supplied decoder can reconstruct both exactly. If both are compressed to the one-bit code 0, the decoder can return only one stored reconstruction. When it returns 1001, the second input has Hamming error 1.

The calculation did not malfunction. The smaller representation merged two inputs that the decoder can no longer distinguish.

GANs optimize a different contest

A GAN generator maps a latent sample to a candidate output. A discriminator tries to distinguish training examples from generated candidates. The generator improves by making discrimination harder.

This competition can fail through instability or mode collapse, where many latent samples produce a narrow range of outputs. A discriminator score is not a fact check, copyright review, safety review, or proof of originality.

Investigation

  1. Predict which four-bit patterns will collide under a one-bit bottleneck.
  2. Explain how collision differs from software failure.
  3. Compare reconstruction loss with adversarial training objectives.
  4. Name one test for diversity and one test for memorization.
  5. Repair this claim: “The decoder created an output, so it learned the true structure and generated something new.”

Vocabulary lab

Flip the idea, not just the card

Explain the term before you reveal the back. Then compare your explanation with the definition, example, and warning.

1 / 5
Read all terms without animation
autoencoder
A model trained to encode an input and decode a reconstruction. Example: A four-bit input is compressed into a latent code and reconstructed. Do not confuse it with: It does not automatically generate useful or novel data.
latent representation
An intermediate numeric code produced by an encoder. Example: Two bits provide four available codes. Do not confuse it with: Its dimensions need not have simple human meanings.
reconstruction loss
A measurement comparing an input with its reconstruction. Example: Hamming error counts changed bits in the Lab. Do not confuse it with: Low loss does not prove semantic usefulness or generalization.
discriminator
The GAN network trained to distinguish supplied training examples from generated candidates. Example: Its feedback changes the generator's parameters. Do not confuse it with: It is not a universal truth or quality judge.
mode collapse
A GAN failure in which many inputs produce too narrow a range of outputs. Example: Different latent samples repeatedly yield similar candidates. Do not confuse it with: Plausible individual samples can hide poor diversity.