Generation Conclusion and Learning from Actions

ECE 57000 — November 18, 2026

David I. Inouye

A generator needs both a sampler and evidence of useful outputs

  • A learned noisy score can support compatible stochastic or deterministic samplers.
  • Finite steps, learned scores and the initial distribution limit ideal sampling claims.
  • Conditioning specifies a request; a latent codec and denoiser can fail in different ways.

Today: finish generation and evaluation, then move to learning which actions to take.

The codec and denoiser create different sources of error

Check What it isolates
Real image \(\to\) encode \(\to\) decode Detail lost by the codec
Noise \(\to\) latent denoising \(\to\) decode End-to-end generation quality and diversity
Repeat requests across seeds Consistency and condition adherence

Smaller latent arrays can reduce repeated computation, with a compression tradeoff.

Generative families differ in how a sample is produced

Model Generation procedure Main computation to budget
VAE Sample a latent code, then decode Decoder evaluation
Diffusion Start with noise, then follow reverse steps Repeated denoiser evaluations
Autoregressive Sample the next symbol conditioned on the prefix Sequential symbol-generation steps

A vanilla AE or fixed-level DAE does not specify a generator by itself.

Choose image-generation metrics for how you will use the images

How will you use the images? What should you measure?
Illustrate a counting worksheet Correct objects and counts; clarity at printed size
Explore ideas for a poster Variety of usable designs; designer ratings; editing time
Add examples to classifier training Accuracy on held-out real images, including difficult groups

An attractive image can still be wrong for the job.

Image generation has many valid outputs and several ways to fail

Request: “Three red apples on a white background.”

  • Many arrangements could satisfy the request; no single target image defines success.
  • A realistic picture can contain the wrong number of apples.
  • Repeating one good picture can satisfy the request while providing little variety.

Realism, request adherence and diversity answer different questions.

A useful comparison needs representative requests and credible checks

  • Compare held-out requests, with the same generation budget; retain failures.
  • Combine repeatable checks with human judgment; either can make mistakes.
  • Inspect important failure groups and cost per usable output.

Good-looking samples alone cannot show that a generator is useful.

Which generator would you choose for counting worksheets?

A model produces beautiful pictures but sometimes adds extra objects.

Which evidence is most useful before choosing it?

A. Its ten most attractive images

B. Object-count accuracy on new worksheet requests

C. Its average generation speed

B. Test the requirement that makes the images useful; also track failures and cost.

Learning which action to take

David I. Inouye

Dynamic Content · Last Updated: November 18, 2026

How can we formalize the choice of Netflix artwork?

Six Dragons banners, A through C across the top and D through F across the bottom.

Pick a banner for the first viewer. Suppose you show C and they press play. For the next viewer, would you show C again or try another banner?

Our goal is to get as many viewers as possible to start the title within ten minutes.

The \(K\)-armed bandit problem is to maximize cumulative reward

Environment. Each arm \(a\in\{1,\ldots,K\}\) has a fixed, unknown reward distribution \(P_a\) with mean \(q(a)\). Here \(K=6\) and a reward is either 0 or 1.

Interaction. On round \(t\), the policy chooses \(A_t\) using past actions and rewards. The environment draws \(R_t\sim P_{A_t}\). The learner observes \((A_t,R_t)\).

Objective. Choose a policy \(\pi\) that maximizes \(\mathbb{E}_{\pi}\!\left[\sum_{t=1}^{T}R_t\right]\) over \(T\) rounds.

Learning counts toward the objective. Every trial earns a reward while supplying evidence for later decisions.

Bandits simplify RL to one state while retaining trial-and-error learning

Stationary bandit Sequential RL example
Decision Pick a banner for a fresh viewer. Pick a banner, then a trailer if the title page opens.
State One situation. All six arms are available each round. The banner affects which situation and actions come next.
Value of a choice Expected reward from this arm. Expected return, including rewards from later decisions.

Bandits isolate learning from evaluative feedback. The learner still chooses, receives reward, and explores under uncertainty. A single state removes the need to plan through transitions.

Supervised action labels are instructive. Bandit rewards are evaluative.

Suppose the learner chooses C. Compare the records two training setups could supply.

Training setup Feedback for this choice What can the learner infer?
Supervised action prediction Target label E C differs from the supplied target. Predicting A would give the same label.
Bandit Shown C, observed play (1) C earned 1. The outcomes for A, B, D, E and F are missing.

Instructive feedback specifies a target action. Evaluative feedback scores the action taken. A high reward on one trial does not identify the best action.

The value of an action is its expected reward

Six Dragons banners, A through C across the top and D through F across the bottom.

Banner A B C D E F
Hidden play probability 6% 8% 10% 7% 12% 9%

E has the highest mean. On any one impression it still earns zero with probability 88%.

Action value \(q(a)=\mathbb E_{R\sim P_a}[R]\) is the expected reward for choosing arm \(a\). One observed reward is a draw from that distribution.

A sample average estimates action value

Suppose C and E both have a 10% observed play rate. Update the sample means as two more viewers arrive.

Round Banner Reward C plays / trials E plays / trials
Before — — 1/10 = 10% 10/100 = 10%
Next C 1 2/11 ≈ 18.2% 10/100 = 10%
Following E 1 2/11 ≈ 18.2% 11/101 ≈ 10.9%

Uncertainty about value depends on the evidence behind the estimate. More independent trials sharpen a mean estimate. Individual rewards can still vary.

A greedy policy can be suboptimal when its value estimates are inaccurate

Try each banner once, then always choose the highest sample mean. Suppose only A gets an initial play.

Observations so far A B C D E F Next
One trial per arm 1/1 0/1 0/1 0/1 0/1 0/1 A
A earns 0 1/2 0/1 0/1 0/1 0/1 0/1 A
A earns nine more zeros 1/11 0/1 0/1 0/1 0/1 0/1 A

The policy controls its own training data. Greedy exploitation can leave a better arm permanently underexplored.

When is trying an uncertain banner worth it?

C has the highest estimated play rate. E has had few impressions. When is trying E most valuable?

A. This is the final viewer.

B. Many similar viewers will arrive.

C. All six banners will be replaced tomorrow, before the next viewer.

B. Exploration has value when information can improve future decisions. A longer horizon gives the learner more chances to use what it learns.