Formula Pattern Catalog

Use this catalog when a paper equation is important but the notation is unfamiliar. The goal is to rewrite the equation into a known pattern, define the sampled unit, and connect it to the claim.

Most paper formulas can be reduced to:

where is the sampled unit, is the sampling distribution, and is a model, loss, score, update, estimator, or metric.

Pattern Map

PatternCanonical FormMain Question
Empirical riskwhat unit, label, and loss are optimized?
Maximum likelihoodwhat distribution is modeled?
Conditional likelihoodwhat is conditioned on and what is predicted?
Cross entropyare targets hard labels, soft labels, or distributions?
Contrastive losswhat are anchor, positive, negative set, and temperature?
Reconstructionwhat information is allowed through the bottleneck?
ELBOwhat is latent, decoder, prior, and approximation?
Denoisingwhat noise level and target are used?
Flow matchingwhat path and velocity target define training?
Score matchingwhat score is estimated and how is it sampled?
Message passingwhat graph, neighbors, messages, and aggregation are used?
Attentionwhat tokens attend to what, under which mask?
Equivariancewhat group acts and how should output transform?
Metric estimatewhat examples, selection rule, and denominator define the score?

Supervised Objective

The default supervised pattern is:

  • : input object or representation.
  • : label, target, class, scalar, ranking, coordinates, or structured output.
  • : model.
  • : surrogate loss.
  • : training examples after sampling and filtering.

Checks:

  • Does mean raw input or processed representation?
  • Does include context such as target, assay, time, or condition?
  • Is the same object as the final metric?
  • Is the final test set untouched by model selection?

Likelihood and Conditional Likelihood

Unconditional likelihood:

Conditional likelihood:

  • : observed object or condition.
  • : predicted object.
  • : optional context such as prompt, target, pocket, assay, or class.

Checks:

  • Is the paper modeling data likelihood, label likelihood, or sequence likelihood?
  • Is likelihood tractable or replaced by a surrogate bound?
  • Does high likelihood imply the reported utility claim?

Contrastive Objective

A common contrastive form is:

  • : anchor representation.
  • : positive representation.
  • : negative representation.
  • : negative set.
  • : temperature.

Checks:

  • What makes a positive pair valid?
  • Are negatives true negatives, in-batch negatives, hard negatives, or false negatives?
  • Does the downstream evaluator test representation quality or only the contrastive setup?

Generative Path Objective

Diffusion, flow matching, and score models usually define a path:

  • : clean data sample.
  • : noised or interpolated state.
  • : time or noise level.
  • : condition.
  • : predicted noise, score, velocity, or clean sample.
  • : training target.

Checks:

  • Is the target noise, score, velocity, , or another parameterization?
  • What sampling solver turns the learned field into a sample?
  • Are validity, novelty, diversity, and utility evaluated separately from the training loss?

Graph and Set Aggregation

Graph equations often hide permutation assumptions:

  • : neighbors of node .
  • : message function.
  • : permutation-invariant aggregation such as sum, mean, max, or attention.
  • : update function.

Checks:

  • What is a node: atom, residue, token, region, candidate, or object?
  • What is an edge: bond, contact, distance threshold, sequence adjacency, or learned relation?
  • Does the aggregation preserve the required permutation behavior?

Coordinate and Symmetry Rule

Coordinate-heavy models should state the transformation rule:

For equivariant outputs:

For invariant scalar outputs:

Checks:

  • Is the target scalar, vector, coordinate, force, velocity, or field?
  • Is the group translation, rotation, reflection, permutation, , , or ?
  • Does preprocessing leak a coordinate frame unavailable at inference?

Metric and Estimator

Reported scores are estimators:

  • : evaluated examples after filtering.
  • : metric function.
  • : prediction after thresholding, ranking, sampling, or selection.
  • : reference label or object.

Checks:

  • Is the metric averaged per example, per target, per scaffold, per dataset, or per task?
  • Was the threshold, checkpoint, or sampler selected on validation data?
  • Are confidence intervals, paired comparisons, or seed variation needed?

Claim Routing

Formula Looks LikeRoute First
supervised lossMachine learning, Loss function
likelihood or KLInformation and likelihood
contrastive or masked objectiveLearning methods
diffusion, score, or flow objectiveGenerative models
graph message passingArchitectures, Discrete math and graphs
coordinate transformGeometry and symmetry
reported metricEvaluation math
mixed AI and domain claimAI Computational Biology Math contract