Captioning

Captioning generates text conditioned on a non-text input such as an image, video, molecule, structure, table, or plot. It is a conditional generation task.

The conditional language model is:

where is an encoded representation of the input.

Common Pattern

  1. Encode the non-text input.
  2. Expose the encoded states to a text decoder.
  3. Generate a sequence with an autoregressive or iterative decoder.
  4. Evaluate both language quality and grounding.

Grounding Boundary

The output is text, but the claim is not only linguistic:

where means the caption can be supported by the input. A fluent caption can still be wrong if it names objects, events, molecular properties, or experimental conclusions that are not visible or provided.

Training Target

Supervised captioning often uses teacher-forced next-token loss:

This optimizes likelihood of reference wording, not necessarily complete grounding or factual coverage. Multiple valid captions can exist for the same input.

Evaluation

Caption evaluation should separate:

  • fluency: is the text well formed?
  • coverage: does it mention the important content?
  • grounding: is every concrete claim supported by the input?
  • utility: does the caption help the downstream user or task?
  • safety: does it avoid unsupported private or experimental claims?

For scientific captions, exact wording metrics are usually weaker than evidence-grounded checks and human or tool-assisted review.

Checks

  • Is the caption grounded in the input or filled with dataset priors?
  • Does the metric reward factuality, coverage, fluency, or exact wording?
  • Are captions descriptive, explanatory, diagnostic, or instructional?
  • Does the model hallucinate objects, events, or experimental claims?
  • Is the decoder allowed to copy labels from metadata?
  • Are multiple valid captions possible for the same input?
  • Are unsupported claims counted as failures even if the text is fluent?
  • Is the caption evaluated against the input, not only against a reference sentence?