Conditional Generation

Conditional generation models a distribution over outputs given a condition .

The goal is:

can be text, class label, image, sequence, graph, structure, property target, scaffold, pocket, or another modality.

Conditional Objective

Most conditional generative objectives optimize a conditional distribution or conditional denoising target:

or, for diffusion/flow-style models:

The condition is part of the data contract. A paper should state whether is observed at inference, predicted by another model, retrieved, manually specified, or derived from the target output.

Conditioning Mechanisms

  • Concatenate condition tokens or features to the input.
  • Cross-attend from generated tokens to condition representations.
  • Condition a score, noise, velocity, or decoder network.
  • Use classifier or classifier-free guidance during sampling.
  • Constrain decoding or generation with validity rules.

Condition Boundary

Condition TypeExampleLeakage Risk
label or classmolecule property bin, protein familylabel may be unavailable or noisy at deployment
text or promptdesired function, natural-language instructionprompt may encode benchmark answer
structure or pocketbinding pocket, partial coordinatespocket may be ligand-defined or template-derived
scaffold or motiffixed substructure, sequence motifconstraint can make novelty claims narrower
retrieval contextnearest examples, database hitsretrieval corpus may include test or homologous examples
predicted conditionupstream model outputerror propagation must be measured

Evaluation Axes

Conditional generation should be evaluated along several axes:

AxisQuestion
validityis the sample syntactically, chemically, physically, or structurally valid?
fidelitydoes it satisfy ?
diversityare samples varied under the same condition?
noveltyare samples not memorized or near-duplicates?
utilitydoes the sample help the downstream task?
costhow much sampling, guidance, filtering, or reranking was used?

Molecular Modeling Examples

  • Generate a molecule conditioned on target property.
  • Generate a ligand conditioned on a pocket.
  • Generate protein sequence conditioned on fold or function.
  • Complete a structure conditioned on partial coordinates.

Checks

  • What is the condition and where does it enter the model?
  • Is the condition available at deployment time?
  • Does stronger conditioning reduce diversity?
  • Is controllability evaluated separately from sample quality?
  • Could condition labels leak target information across splits?
  • Is raw, predicted, retrieved, or derived from the target output?
  • Are filtered invalid samples counted in the evaluation?