Sampling

Sampling is the procedure that turns a learned generative model into concrete outputs.

For an unconditional model:

For a conditional model:

The sampling algorithm determines quality, diversity, latency, and controllability.

Sampling Patterns

PatternBase RandomnessMain ControlCommon Cost
autoregressive samplingtoken-level categorical drawstemperature, top-k, top-p, beam, constraintsone model call per step or block
diffusion samplingGaussian noise and denoising pathnoise schedule, sampler, guidance, NFEmany denoising evaluations
flow samplingbase noise and ODE/invertible transformsolver, step count, path, guidanceODE or inverse transform cost
latent samplinglatent prior, decoder, latent conditioningdecoder plus latent search/filtering
rejection or filteringcandidate poolverifier, score, validity rule, thresholdmany candidates per kept sample

Here NFE means number of function evaluations. It is often the right unit for diffusion, score, and flow samplers:

Diversity and Quality

Sampling often trades diversity for fidelity. If the sampler collapses to high-probability modes, outputs may look good but cover only a small part of the data distribution.

Effective Sample Distribution

Filtering, reranking, guidance, and beam search change the distribution being evaluated:

For post-filtering with acceptance rule :

Reported validity, novelty, and utility should state whether they are computed before filtering, after filtering, or per kept sample.

Reporting Fields

FieldRequired Detail
samplerdecoding rule, ODE/SDE solver, denoising schedule, or latent prior
stochasticityseed policy, temperature, noise scale, top-k/top-p, restart count
guidanceguidance type, strength, schedule, and guide source
filteringvalidity checks, score thresholds, rejection rate, reranking rule
budgetcandidates generated, candidates kept, NFE, wall-clock, hardware, memory
distributionwhether metrics are pre-filter, post-filter, best-of-n, or oracle-selected

Checks

  • What distribution is sampled first: token, noise, latent, graph, or coordinates?
  • How many sampling steps or decoding calls are required?
  • Are temperature, guidance strength, beam size, or rejection filters documented?
  • Are invalid samples counted or silently removed?
  • Are diversity, novelty, and task utility evaluated separately?
  • Are best-of-n and reranking reported as part of the method rather than hidden evaluation?
  • Is the comparison matched by quality at equal NFE/candidate budget, or only by headline metric?
  • Does the sampler preserve constraints such as graph validity, chirality, coordinate frame, or sequence length?